diff --git a/.gitignore b/.gitignore index e9a8cf0885787d3b4107839b3161eab3301eba72..348658c61dd744e5e3a31833a41013ce1504c92c 100644 --- a/.gitignore +++ b/.gitignore @@ -224,6 +224,7 @@ storage_root-node /ts/yarn.lock /examples/ts/package-lock.json /examples/ts/yarn.lock +/examples/ts/**/test-results # Ignore lock files in examples /examples/ts/**/pnpm-lock.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2aa41d84c4158be808899f533da01dcd5e8b2af5..83a95c648d499a0f49d1be32ccce09757367bcc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: include: - project: 'hive/common-ci-configuration' - ref: 12db226cfde2df929bb8bcb0c7c51d04c8900d32 + ref: 40451cfbe8c2995c66b2d4150dbb3c4d11fd8590 file: - '/templates/npm_projects.gitlab-ci.yml' - '/templates/wasm_build.gitlab-ci.yml' @@ -78,11 +78,9 @@ wax_wasm_proto_tsc_generation: - "${DIST_DIR}/*.tgz" # Built package - "${CI_PROJECT_DIR}/ts/wasm/lib/proto" # For documentation generator - "${CI_PROJECT_DIR}/ts/wasm/lib/build_wasm" # For documentation generator - - "${DIST_DIR}/lib/build_wasm/wax.common.js" # For base WASM tests - - "${DIST_DIR}/lib/build_wasm/types.ts" # For base WASM tests + - "${CI_PROJECT_DIR}/ts/wasm/build_wasm/wax.node.js" # For documentation generator - "${DIST_DIR}/lib/proto" # For protobuf pattern tests - "${DIST_DIR}/lib" # For Node.js tests - - "${DIST_DIR}/bundle/index-full.js" # For web tests tags: - public-runner-docker diff --git a/core/binary_view/stringify.hpp b/core/binary_view/stringify.hpp index c4b164ca53ce588f91fc33e713f65ed58564309f..5b872aac9802ebb955b4048e2eb9c9ce78b6564b 100644 --- a/core/binary_view/stringify.hpp +++ b/core/binary_view/stringify.hpp @@ -5,6 +5,7 @@ #include <fc/optional.hpp> #include <fc/static_variant.hpp> +#include <fc/crypto/hex.hpp> #include <string> diff --git a/core/foundation.cpp b/core/foundation.cpp index d91a5a829f6620e6a8c38fdca941db1d75711939..d460527a86f820aaee4022daa400a2ca8e7477d6 100644 --- a/core/foundation.cpp +++ b/core/foundation.cpp @@ -2,9 +2,11 @@ #include "core/types.hpp" #include "core/utils.hpp" -#include "fc/crypto/elliptic.hpp" + #include <fc/reflect/reflect.hpp> #include <fc/io/json.hpp> +#include <fc/crypto/elliptic.hpp> +#include <fc/crypto/hex.hpp> #include <boost/lexical_cast.hpp> diff --git a/core/protocol_impl.inl b/core/protocol_impl.inl index 31681fa5f63e386acb6c1aa1e9f1e17e26a92dfc..f00151aa4d07e92fb5e2ca1761c701953d95e7bf 100644 --- a/core/protocol_impl.inl +++ b/core/protocol_impl.inl @@ -20,6 +20,8 @@ #include <fc/bitutil.hpp> #include <fc/container/flat.hpp> +#include <fc/crypto/hex.hpp> + #include <algorithm> namespace cpp { diff --git a/examples/ts/html/index.ts b/examples/ts/html/index.ts index 9bd53337b17cabab910507c77b1702b136a60390..a3d98c1867c8e1fae046ccada32413942e7f04d8 100644 --- a/examples/ts/html/index.ts +++ b/examples/ts/html/index.ts @@ -22,7 +22,10 @@ const configFor = (name: string): ConstructorParameters<typeof Parcel>[0] => ({ const port = 8000; const server = createServer({ - root: path.resolve(__dirname, 'dist') + root: path.resolve(__dirname, 'dist'), + logFn(req, res) { + console.log(req.method, req.url, res.statusCode); + }, }); server.listen(port); diff --git a/examples/ts/html/package.json b/examples/ts/html/package.json index 3a66945353bc72b9c5921a5e1179b00c87981f64..eb7b4a620a157caad585d84f05094f3e9985f201 100644 --- a/examples/ts/html/package.json +++ b/examples/ts/html/package.json @@ -1,28 +1,24 @@ { "name": "examples-html", - "packageManager": "pnpm@9.1.1+sha256.9551e803dcb7a1839fdf5416153a844060c7bce013218ce823410532504ac10b", + "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0", "scripts": { - "pretest": "playwright install", - "test": "pnpx tsx index.ts" + "pretest": "playwright install chromium", + "test": "rm -rf ./.parcel-cache ./dist && pnpx tsx index.ts" }, "devDependencies": { "@parcel/config-default": "^2.12.0", "@parcel/core": "^2.12.0", - "@playwright/test": "^1.39.0", + "@playwright/test": "^1.49.1", "@types/http-server": "^0.12.4", "@types/node": "^20.10.6", "buffer": "^6.0.3", - "crypto-browserify": "^3.12.0", "http-server": "^14.1.1", - "path-browserify": "^1.0.1", - "playwright": "^1.39.0", - "process": "^0.11.10", - "stream-browserify": "^3.0.0", + "playwright": "^1.49.1", "tsx": "^4.7.0", - "typescript": "5.2.2" + "typescript": "5.7.3" }, "dependencies": { - "@hiveio/beekeeper": "1.27.6-rc3-stable.240916231926", + "@hiveio/beekeeper": "1.27.8-stable.250129121514", "@hiveio/wax": "file:../../../ts" }, "type": "module", diff --git a/examples/ts/nextjs-app/README.md b/examples/ts/nextjs-app/README.md index a75ac5248816faee3e4ae1bf1447898bdfe17450..74e27a3f1863026ea7408777706fbc5f1c4dc16d 100644 --- a/examples/ts/nextjs-app/README.md +++ b/examples/ts/nextjs-app/README.md @@ -1,40 +1,5 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +# nextjs-app -## Getting Started +Created by command: `npx create-next-app@latest nextjs-app` -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +[pages/index.tsx](pages/index.tsx) file was modified diff --git a/examples/ts/nextjs-app/next.config.mjs b/examples/ts/nextjs-app/next.config.mjs index d5456a15d4ad2df165faab41c8ec8348e5d031f6..7d08ffa9c5ed726802a93ec8b1fd7f1256f1dde6 100644 --- a/examples/ts/nextjs-app/next.config.mjs +++ b/examples/ts/nextjs-app/next.config.mjs @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, + reactStrictMode: true }; export default nextConfig; diff --git a/examples/ts/nextjs-app/package.json b/examples/ts/nextjs-app/package.json index 6812e42c5d4526c08f5bed8f04b413c9880aaf85..e9d93fc9aecdd866e5b6bb4a97481c0b941aa5a9 100644 --- a/examples/ts/nextjs-app/package.json +++ b/examples/ts/nextjs-app/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "rm -rf ./.next && next build", "start": "next start", "lint": "next lint" }, diff --git a/examples/ts/node-app/package.json b/examples/ts/node-app/package.json index 4cb83454326bcab1d4c1d3dc47a9254ba4636ac6..adca26c27744ae4f149072629e8cc31c752e23ad 100644 --- a/examples/ts/node-app/package.json +++ b/examples/ts/node-app/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "tsc", "start": "node dist/index.js", - "test": "npm run build && npm run start" + "test": "rm -rf ./dist && npm run build && npm run start" }, "dependencies": { "@hiveio/wax": "file:../../../ts" diff --git a/examples/ts/nuxt-app/.gitignore b/examples/ts/nuxt-app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..4a7f73a2ed0d9f99a182a5855b29846de7bad09c --- /dev/null +++ b/examples/ts/nuxt-app/.gitignore @@ -0,0 +1,24 @@ +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache +dist + +# Node dependencies +node_modules + +# Logs +logs +*.log + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/examples/ts/nuxt-app/.npmrc b/examples/ts/nuxt-app/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..c09005dcafaf54825a5384138afaedffb19ae8f5 --- /dev/null +++ b/examples/ts/nuxt-app/.npmrc @@ -0,0 +1,2 @@ +# https://gitlab.syncad.com/hive group specification, offering aggregated package view: https://gitlab.syncad.com/groups/hive/-/packages +@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/ diff --git a/examples/ts/nuxt-app/README.md b/examples/ts/nuxt-app/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ecf6a5dc92a8e9689b7f3839ba5c49bb53ce7ea4 --- /dev/null +++ b/examples/ts/nuxt-app/README.md @@ -0,0 +1,22 @@ +# Nuxt (Vite) + +[app.vue](app.vue) file was modified. + +Important note!: + +__**When importing Wax in Vite, remember to import dedicated Vite bundle everywhere in your project: `@hiveio/wax/vite`**__ + +Also remember that you have to asynchronously import Wax in Nuxt (e.g. using onBeforeMount hook or store) + +## WASM-related Vite issues + +Internal Note: + +Vite currently does not fully support .WASM files as described [here](https://vite.dev/guide/features#webassembly), so we had to create some workarounds + +* https://github.com/rustwasm/wasm-pack/issues/1106#issuecomment-2237247752 +* https://stackoverflow.com/a/79204138 +* https://github.com/vitejs/vite/issues/10761#issuecomment-1334844871 +* https://vite.dev/guide/assets#explicit-url-imports +* https://www.npmjs.com/package/vite-plugin-wasm + diff --git a/examples/ts/nuxt-app/__tests__/index.spec.ts b/examples/ts/nuxt-app/__tests__/index.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..deedf6d56dfbcb21132b8feabbadc9f0feb4a544 --- /dev/null +++ b/examples/ts/nuxt-app/__tests__/index.spec.ts @@ -0,0 +1,61 @@ +import { expect, test } from '@playwright/test'; + +const waitForServerReady = async (url: string, interval: number = 1000, attempts: number = 10): Promise<void> => { + console.log(`Awaiting a server: ${url}...`); + + for (let count = 0; count < attempts; ++count) { + try { + console.log(`Trying to connect ${count}/${attempts})`); + + const response = await fetch(url, { + method: "GET", + signal: AbortSignal.timeout(interval) + }); + + if (response.ok && response.status === 200) { + console.log(`Connected successfully (${count}/${attempts}). Exiting.`); + return; + } + } + catch (error) { + if (typeof error !== "object" || !(error instanceof Error)) + console.log(`Caught an UNKNOWN error (${JSON.stringify(error)})`); + else + if (error.name === "TimeoutError") + console.log(`Caught a TIMEOUT error (${JSON.stringify(error)})`); + else + if (error.name === "AbortError") + console.log(`Caught an ABORT error (${JSON.stringify(error)})`); + } + + console.log(`Waiting for ${interval} ms...)`); + await new Promise(resolve => { setTimeout(resolve, interval); }); + } + + console.log(`Still down - bailing out.`); +}; + +test.describe('Proper WASM Wax loading on playwright ', () => { + test.beforeEach(async ({ page }) => { + /// use >> marker for each texts printed in the browser context + page.on('console', msg => { + console.log('>>', msg.type(), msg.text()); + }); + + await waitForServerReady("http://localhost:5173"); + + await page.goto("http://localhost:5173", { waitUntil: "load" }); + }); + + test('WASM should be properly loaded during development', async ({ page }) => { + // Wait for wax to be loaded + await page.waitForFunction(() => typeof (window as any).waxLoaded !== "undefined"); + + const result = await page.evaluate(async() => { + return (window as any).waxLoaded; // This value is set by this app in App.vue after successfull wax initialization + }); + + // Wax should be loaded + expect(result).toBe(true); + }); +}); diff --git a/examples/ts/nuxt-app/app.vue b/examples/ts/nuxt-app/app.vue new file mode 100644 index 0000000000000000000000000000000000000000..7afb1b5cb219f1d347807d744b9b2dfa0b57a0d1 --- /dev/null +++ b/examples/ts/nuxt-app/app.vue @@ -0,0 +1,26 @@ +<script setup> +import { createWaxFoundation } from "@hiveio/wax/vite"; +import { onBeforeMount } from 'vue'; + +const version = ref(''); + +onBeforeMount(async () => { + try { + const wax = await createWaxFoundation(); + + version.value = wax.getVersion(); + + window.waxLoaded = true; + } catch (error) { + console.error(error); + + window.waxLoaded = false; + } +}); +</script> + +<template> + <div> + {{ version }} + </div> +</template> diff --git a/examples/ts/nuxt-app/nuxt.config.ts b/examples/ts/nuxt-app/nuxt.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..5eed2da363d89c154b1920d4d7d7c25884999918 --- /dev/null +++ b/examples/ts/nuxt-app/nuxt.config.ts @@ -0,0 +1,5 @@ +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({ + compatibilityDate: '2024-11-01', + debug: false +}) diff --git a/examples/ts/nuxt-app/package.json b/examples/ts/nuxt-app/package.json new file mode 100644 index 0000000000000000000000000000000000000000..fc92190f9d61ac0d2355e5da2ed1ccfb63665c6b --- /dev/null +++ b/examples/ts/nuxt-app/package.json @@ -0,0 +1,21 @@ +{ + "name": "nuxt-app", + "private": true, + "type": "module", + "scripts": { + "build": "nuxt build", + "dev": "nuxt dev --host 0.0.0.0 --port 5173", + "generate": "nuxt generate", + "preview": "nuxt preview", + "postinstall": "nuxt prepare", + "test": "rm -rf ./.nuxt ./.output ./node_modules/.cache && unset CI && DEBUG=pw:webserver playwright test --workers 1 --max-failures 1 --project=wax_nuxt_vite_testsuite" + }, + "dependencies": { + "@hiveio/wax": "file:../../../ts", + "@playwright/test": "1.49.1", + "nuxt": "^3.15.3", + "playwright": "1.49.1", + "vue": "latest", + "vue-router": "latest" + } +} diff --git a/examples/ts/nuxt-app/playwright.config.ts b/examples/ts/nuxt-app/playwright.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..56731305aa2f7b687e9e0fa919e883872663e6b2 --- /dev/null +++ b/examples/ts/nuxt-app/playwright.config.ts @@ -0,0 +1,15 @@ +// This is a workaround for https://github.com/microsoft/playwright/issues/18282#issuecomment-1612266345 +import { defineConfig } from '@playwright/test'; + +export default defineConfig({ + projects: [ + { + name: "wax_nuxt_vite_testsuite", + testDir: "./__tests__" + } + ], + // Run your local dev server before starting the tests + webServer: { + command: 'npm run dev' + } +}); diff --git a/examples/ts/nuxt-app/tsconfig.json b/examples/ts/nuxt-app/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..a746f2a70c28960c343f778a460fa6124e0b55ca --- /dev/null +++ b/examples/ts/nuxt-app/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://nuxt.com/docs/guide/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +} diff --git a/examples/ts/react-vite/.npmrc b/examples/ts/react-vite/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..c09005dcafaf54825a5384138afaedffb19ae8f5 --- /dev/null +++ b/examples/ts/react-vite/.npmrc @@ -0,0 +1,2 @@ +# https://gitlab.syncad.com/hive group specification, offering aggregated package view: https://gitlab.syncad.com/groups/hive/-/packages +@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/ diff --git a/examples/ts/react-vite/README.md b/examples/ts/react-vite/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ba33dfe127c88b2ff4a870c23e080479a9ac69de --- /dev/null +++ b/examples/ts/react-vite/README.md @@ -0,0 +1,21 @@ +# React + Vite + +Inspired by [React + Vite Minimal setup](https://vite.new/react) + +[src/App.jsx](src/App.jsx) file was modified. + +Important note!: + +__**When importing Wax in Vite, remember to import dedicated Vite bundle everywhere in your project: `@hiveio/wax/vite`**__ + +## WASM-related Vite issues + +Internal Note: + +Vite currently does not fully support .WASM files as described [here](https://vite.dev/guide/features#webassembly), so we had to create some workarounds + +* https://github.com/rustwasm/wasm-pack/issues/1106#issuecomment-2237247752 +* https://stackoverflow.com/a/79204138 +* https://github.com/vitejs/vite/issues/10761#issuecomment-1334844871 +* https://vite.dev/guide/assets#explicit-url-imports +* https://www.npmjs.com/package/vite-plugin-wasm diff --git a/examples/ts/react-vite/__tests__/index.spec.ts b/examples/ts/react-vite/__tests__/index.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..deedf6d56dfbcb21132b8feabbadc9f0feb4a544 --- /dev/null +++ b/examples/ts/react-vite/__tests__/index.spec.ts @@ -0,0 +1,61 @@ +import { expect, test } from '@playwright/test'; + +const waitForServerReady = async (url: string, interval: number = 1000, attempts: number = 10): Promise<void> => { + console.log(`Awaiting a server: ${url}...`); + + for (let count = 0; count < attempts; ++count) { + try { + console.log(`Trying to connect ${count}/${attempts})`); + + const response = await fetch(url, { + method: "GET", + signal: AbortSignal.timeout(interval) + }); + + if (response.ok && response.status === 200) { + console.log(`Connected successfully (${count}/${attempts}). Exiting.`); + return; + } + } + catch (error) { + if (typeof error !== "object" || !(error instanceof Error)) + console.log(`Caught an UNKNOWN error (${JSON.stringify(error)})`); + else + if (error.name === "TimeoutError") + console.log(`Caught a TIMEOUT error (${JSON.stringify(error)})`); + else + if (error.name === "AbortError") + console.log(`Caught an ABORT error (${JSON.stringify(error)})`); + } + + console.log(`Waiting for ${interval} ms...)`); + await new Promise(resolve => { setTimeout(resolve, interval); }); + } + + console.log(`Still down - bailing out.`); +}; + +test.describe('Proper WASM Wax loading on playwright ', () => { + test.beforeEach(async ({ page }) => { + /// use >> marker for each texts printed in the browser context + page.on('console', msg => { + console.log('>>', msg.type(), msg.text()); + }); + + await waitForServerReady("http://localhost:5173"); + + await page.goto("http://localhost:5173", { waitUntil: "load" }); + }); + + test('WASM should be properly loaded during development', async ({ page }) => { + // Wait for wax to be loaded + await page.waitForFunction(() => typeof (window as any).waxLoaded !== "undefined"); + + const result = await page.evaluate(async() => { + return (window as any).waxLoaded; // This value is set by this app in App.vue after successfull wax initialization + }); + + // Wax should be loaded + expect(result).toBe(true); + }); +}); diff --git a/examples/ts/react-vite/index.html b/examples/ts/react-vite/index.html new file mode 100644 index 0000000000000000000000000000000000000000..86fa92c3d31f042c7288114242357161520cb57f --- /dev/null +++ b/examples/ts/react-vite/index.html @@ -0,0 +1,12 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Vite + React</title> + </head> + <body> + <div id="root"></div> + <script type="module" src="/src/main.jsx"></script> + </body> +</html> diff --git a/examples/ts/react-vite/package.json b/examples/ts/react-vite/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ba6e97ec58609e402beb74054795d28436746286 --- /dev/null +++ b/examples/ts/react-vite/package.json @@ -0,0 +1,27 @@ +{ + "name": "vite-react-starter", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0 --port 5173", + "build": "vite build", + "preview": "vite preview", + "test": "rm -rf ./dist && unset CI && DEBUG=pw:webserver playwright test --workers 1 --max-failures 1 --project=wax_react_vite_testsuite" + }, + "dependencies": { + "@hiveio/wax": "file:../../../ts", + "react": "^19.0.0", + "react-dom": "^19.0.0" + }, + "devDependencies": { + "@eslint/js": "^9.19.0", + "@playwright/test": "1.49.1", + "@types/react": "^19.0.8", + "@types/react-dom": "^19.0.3", + "@vitejs/plugin-react": "^4.3.4", + "globals": "^15.14.0", + "playwright": "1.49.1", + "vite": "^6.0.11" + } +} diff --git a/examples/ts/react-vite/playwright.config.ts b/examples/ts/react-vite/playwright.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..171e1b4cdd8fed00026b844f0b57e26206f16ed2 --- /dev/null +++ b/examples/ts/react-vite/playwright.config.ts @@ -0,0 +1,15 @@ +// This is a workaround for https://github.com/microsoft/playwright/issues/18282#issuecomment-1612266345 +import { defineConfig } from '@playwright/test'; + +export default defineConfig({ + projects: [ + { + name: "wax_react_vite_testsuite", + testDir: "./__tests__" + } + ], + // Run your local dev server before starting the tests + webServer: { + command: 'npm run dev' + } +}); diff --git a/examples/ts/react-vite/src/App.jsx b/examples/ts/react-vite/src/App.jsx new file mode 100644 index 0000000000000000000000000000000000000000..01276bba16e03e70e082b5dd87e1d4a41343f924 --- /dev/null +++ b/examples/ts/react-vite/src/App.jsx @@ -0,0 +1,25 @@ +import { useState, useEffect } from 'react' + +import { createWaxFoundation } from '@hiveio/wax/vite'; + +window.waxLoaded = false; + +function App() { + const [version, setVersion] = useState('') + + useEffect(() => { + createWaxFoundation().then(wax => { + setVersion(wax.getVersion()); + + window.waxLoaded = true; + }); + }, []); + + return ( + <> + {version} + </> + ) +} + +export default App diff --git a/examples/ts/react-vite/src/main.jsx b/examples/ts/react-vite/src/main.jsx new file mode 100644 index 0000000000000000000000000000000000000000..3d9da8acdb30f75c5146905c837217e782b9a2d4 --- /dev/null +++ b/examples/ts/react-vite/src/main.jsx @@ -0,0 +1,9 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import App from './App.jsx' + +createRoot(document.getElementById('root')).render( + <StrictMode> + <App /> + </StrictMode>, +) diff --git a/examples/ts/react-vite/vite.config.js b/examples/ts/react-vite/vite.config.js new file mode 100644 index 0000000000000000000000000000000000000000..8b0f57b91aeb45c54467e29f983a0893dc83c4d9 --- /dev/null +++ b/examples/ts/react-vite/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [react()], +}) diff --git a/examples/ts/vue-vite/.gitignore b/examples/ts/vue-vite/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8a0af72398a011f2f6d08d92388651d424181bec --- /dev/null +++ b/examples/ts/vue-vite/.gitignore @@ -0,0 +1,31 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ +test-results + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/examples/ts/vue-vite/.npmrc b/examples/ts/vue-vite/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..c09005dcafaf54825a5384138afaedffb19ae8f5 --- /dev/null +++ b/examples/ts/vue-vite/.npmrc @@ -0,0 +1,2 @@ +# https://gitlab.syncad.com/hive group specification, offering aggregated package view: https://gitlab.syncad.com/groups/hive/-/packages +@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/ diff --git a/examples/ts/vue-vite/.vscode/extensions.json b/examples/ts/vue-vite/.vscode/extensions.json new file mode 100644 index 0000000000000000000000000000000000000000..a7cea0b0678120a1b590d1b6592c7318039b9179 --- /dev/null +++ b/examples/ts/vue-vite/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/examples/ts/vue-vite/README.md b/examples/ts/vue-vite/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c9e2ca3641a47eccbc08370a4e5edf76b477ca6a --- /dev/null +++ b/examples/ts/vue-vite/README.md @@ -0,0 +1,21 @@ +# vue-webpack + +Created by command: `pnpm create vue@latest .` + +[src/App.vue](src/App.vue) file was modified. + +Important note!: + +__**When importing Wax in Vite, remember to import dedicated Vite bundle everywhere in your project: `@hiveio/wax/vite`**__ + +## WASM-related Vite issues + +Internal Note: + +Vite currently does not fully support .WASM files as described [here](https://vite.dev/guide/features#webassembly), so we had to create some workarounds + +* https://github.com/rustwasm/wasm-pack/issues/1106#issuecomment-2237247752 +* https://stackoverflow.com/a/79204138 +* https://github.com/vitejs/vite/issues/10761#issuecomment-1334844871 +* https://vite.dev/guide/assets#explicit-url-imports +* https://www.npmjs.com/package/vite-plugin-wasm \ No newline at end of file diff --git a/examples/ts/vue-vite/__tests__/index.spec.ts b/examples/ts/vue-vite/__tests__/index.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..deedf6d56dfbcb21132b8feabbadc9f0feb4a544 --- /dev/null +++ b/examples/ts/vue-vite/__tests__/index.spec.ts @@ -0,0 +1,61 @@ +import { expect, test } from '@playwright/test'; + +const waitForServerReady = async (url: string, interval: number = 1000, attempts: number = 10): Promise<void> => { + console.log(`Awaiting a server: ${url}...`); + + for (let count = 0; count < attempts; ++count) { + try { + console.log(`Trying to connect ${count}/${attempts})`); + + const response = await fetch(url, { + method: "GET", + signal: AbortSignal.timeout(interval) + }); + + if (response.ok && response.status === 200) { + console.log(`Connected successfully (${count}/${attempts}). Exiting.`); + return; + } + } + catch (error) { + if (typeof error !== "object" || !(error instanceof Error)) + console.log(`Caught an UNKNOWN error (${JSON.stringify(error)})`); + else + if (error.name === "TimeoutError") + console.log(`Caught a TIMEOUT error (${JSON.stringify(error)})`); + else + if (error.name === "AbortError") + console.log(`Caught an ABORT error (${JSON.stringify(error)})`); + } + + console.log(`Waiting for ${interval} ms...)`); + await new Promise(resolve => { setTimeout(resolve, interval); }); + } + + console.log(`Still down - bailing out.`); +}; + +test.describe('Proper WASM Wax loading on playwright ', () => { + test.beforeEach(async ({ page }) => { + /// use >> marker for each texts printed in the browser context + page.on('console', msg => { + console.log('>>', msg.type(), msg.text()); + }); + + await waitForServerReady("http://localhost:5173"); + + await page.goto("http://localhost:5173", { waitUntil: "load" }); + }); + + test('WASM should be properly loaded during development', async ({ page }) => { + // Wait for wax to be loaded + await page.waitForFunction(() => typeof (window as any).waxLoaded !== "undefined"); + + const result = await page.evaluate(async() => { + return (window as any).waxLoaded; // This value is set by this app in App.vue after successfull wax initialization + }); + + // Wax should be loaded + expect(result).toBe(true); + }); +}); diff --git a/examples/ts/vue-vite/index.html b/examples/ts/vue-vite/index.html new file mode 100644 index 0000000000000000000000000000000000000000..b19040a0e68e0bffcc502662b32b2aa2eb08c055 --- /dev/null +++ b/examples/ts/vue-vite/index.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang=""> + <head> + <meta charset="UTF-8"> + <link rel="icon" href="/favicon.ico"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Vite App</title> + </head> + <body> + <div id="app"></div> + <script type="module" src="/src/main.js"></script> + </body> +</html> diff --git a/examples/ts/vue-vite/jsconfig.json b/examples/ts/vue-vite/jsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..5a1f2d222a302a174e710614c6d76531b7bda926 --- /dev/null +++ b/examples/ts/vue-vite/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": ["node_modules", "dist"] +} diff --git a/examples/ts/vue-vite/package.json b/examples/ts/vue-vite/package.json new file mode 100644 index 0000000000000000000000000000000000000000..26e62bbf41882cd15eec7c6bb04c3e495b6dd0f4 --- /dev/null +++ b/examples/ts/vue-vite/package.json @@ -0,0 +1,23 @@ +{ + "name": "vue-vite", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0 --port 5173", + "build": "vite build", + "preview": "vite preview", + "test": "rm -rf ./node_modules/.vite && unset CI && DEBUG=pw:webserver playwright test --workers 1 --max-failures 1 --project=wax_vue_vite_testsuite" + }, + "dependencies": { + "@hiveio/wax": "file:../../../ts", + "vue": "^3.5.13" + }, + "devDependencies": { + "@playwright/test": "1.49.1", + "@vitejs/plugin-vue": "^5.2.1", + "playwright": "1.49.1", + "vite": "^6.0.5" + }, + "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0" +} diff --git a/examples/ts/vue-vite/playwright.config.ts b/examples/ts/vue-vite/playwright.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..9eabb07d4b4485e9a16cc710d9a5839dde3ba437 --- /dev/null +++ b/examples/ts/vue-vite/playwright.config.ts @@ -0,0 +1,15 @@ +// This is a workaround for https://github.com/microsoft/playwright/issues/18282#issuecomment-1612266345 +import { defineConfig } from '@playwright/test'; + +export default defineConfig({ + projects: [ + { + name: "wax_vue_vite_testsuite", + testDir: "./__tests__" + } + ], + // Run your local dev server before starting the tests + webServer: { + command: 'npm run dev' + } +}); diff --git a/examples/ts/vue-vite/src/App.vue b/examples/ts/vue-vite/src/App.vue new file mode 100644 index 0000000000000000000000000000000000000000..942e44b97b3a62bf6967519c97facdf25d6edef1 --- /dev/null +++ b/examples/ts/vue-vite/src/App.vue @@ -0,0 +1,24 @@ +<template> + <main>You are using wax version: "{{ version }}"</main> +</template> + +<script setup> +import { createWaxFoundation } from '@hiveio/wax/vite'; +import { ref, onBeforeMount } from 'vue'; + +const version = ref(); + +onBeforeMount(async () => { + try { + const wax = await createWaxFoundation(); + + version.value = wax.getVersion(); + + window.waxLoaded = true; + } catch (error) { + console.error(error); + + window.waxLoaded = false; + } +}); +</script> \ No newline at end of file diff --git a/examples/ts/vue-vite/src/main.js b/examples/ts/vue-vite/src/main.js new file mode 100644 index 0000000000000000000000000000000000000000..01433bca2ac76590c48fabfee8d69d7b223f48bb --- /dev/null +++ b/examples/ts/vue-vite/src/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/examples/ts/vue-vite/vite.config.js b/examples/ts/vue-vite/vite.config.js new file mode 100644 index 0000000000000000000000000000000000000000..36ea69096fead29c2a190ba7d0b2b88c9cf834fa --- /dev/null +++ b/examples/ts/vue-vite/vite.config.js @@ -0,0 +1,9 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + vue() + ] +}) diff --git a/examples/ts/vue-webpack/.gitignore b/examples/ts/vue-webpack/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..403adbc1e527906a4aa59558cd582c20bcd1d738 --- /dev/null +++ b/examples/ts/vue-webpack/.gitignore @@ -0,0 +1,23 @@ +.DS_Store +node_modules +/dist + + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/examples/ts/vue-webpack/.npmrc b/examples/ts/vue-webpack/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..22122d9c07930542c79178cfc6aab6cdffca42fd --- /dev/null +++ b/examples/ts/vue-webpack/.npmrc @@ -0,0 +1,2 @@ +shamefully-hoist=true +@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/ diff --git a/examples/ts/vue-webpack/README.md b/examples/ts/vue-webpack/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0f3e5142651c1a5927be313d82592177f0fa7b86 --- /dev/null +++ b/examples/ts/vue-webpack/README.md @@ -0,0 +1,5 @@ +# vue-webpack + +Created by command: `vue create vue-webpack` ([`@vue/cli` package](https://www.npmjs.com/package/@vue/cli)) + +[src/App.vue](src/App.vue) file was modified diff --git a/examples/ts/vue-webpack/babel.config.js b/examples/ts/vue-webpack/babel.config.js new file mode 100644 index 0000000000000000000000000000000000000000..e9558405fdcc02f12d757acb308e02937a7444f1 --- /dev/null +++ b/examples/ts/vue-webpack/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + ] +} diff --git a/examples/ts/vue-webpack/jsconfig.json b/examples/ts/vue-webpack/jsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..4aafc5f6ed86fe6dff8d4b6be59290cbdeb61656 --- /dev/null +++ b/examples/ts/vue-webpack/jsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "esnext", + "baseUrl": "./", + "moduleResolution": "node", + "paths": { + "@/*": [ + "src/*" + ] + }, + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ] + } +} diff --git a/examples/ts/vue-webpack/package.json b/examples/ts/vue-webpack/package.json new file mode 100644 index 0000000000000000000000000000000000000000..503f47cb3b51e9a507d0457ce67f6b897886bc6e --- /dev/null +++ b/examples/ts/vue-webpack/package.json @@ -0,0 +1,44 @@ +{ + "name": "vue-webpack", + "version": "0.1.0", + "private": true, + "scripts": { + "serve": "vue-cli-service serve", + "build": "rm -rf ./dist ./node_modules/.cache && vue-cli-service build", + "lint": "vue-cli-service lint" + }, + "dependencies": { + "core-js": "^3.8.3", + "vue": "^3.2.13", + "@hiveio/wax": "file:../../../ts" + }, + "devDependencies": { + "@babel/core": "^7.12.16", + "@babel/eslint-parser": "^7.12.16", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-eslint": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "eslint": "^7.32.0", + "eslint-plugin-vue": "^8.0.3" + }, + "eslintConfig": { + "root": true, + "env": { + "node": true + }, + "extends": [ + "plugin:vue/vue3-essential", + "eslint:recommended" + ], + "parserOptions": { + "parser": "@babel/eslint-parser" + }, + "rules": {} + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not dead", + "not ie 11" + ] +} diff --git a/examples/ts/vue-webpack/public/index.html b/examples/ts/vue-webpack/public/index.html new file mode 100644 index 0000000000000000000000000000000000000000..b4ea60dccb4a73acced1860c05db022097225385 --- /dev/null +++ b/examples/ts/vue-webpack/public/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width,initial-scale=1.0"> + </head> + <body> + <div id="app"></div> + </body> +</html> diff --git a/examples/ts/vue-webpack/src/App.vue b/examples/ts/vue-webpack/src/App.vue new file mode 100644 index 0000000000000000000000000000000000000000..387dfde02676983ca96093508932b1933492c2c5 --- /dev/null +++ b/examples/ts/vue-webpack/src/App.vue @@ -0,0 +1,16 @@ +<template> + <main>You are using wax version: "{{ version }}"</main> +</template> + +<script setup> +import { createWaxFoundation } from '@hiveio/wax'; +import { ref, onBeforeMount } from 'vue'; + +const version = ref(); + +onBeforeMount(async () => { + const wax = await createWaxFoundation(); + + version.value = wax.getVersion(); +}); +</script> diff --git a/examples/ts/vue-webpack/src/main.js b/examples/ts/vue-webpack/src/main.js new file mode 100644 index 0000000000000000000000000000000000000000..01433bca2ac76590c48fabfee8d69d7b223f48bb --- /dev/null +++ b/examples/ts/vue-webpack/src/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/examples/ts/vue-webpack/vue.config.js b/examples/ts/vue-webpack/vue.config.js new file mode 100644 index 0000000000000000000000000000000000000000..910e297e0f53483455d2aa432887c3b7975d6c11 --- /dev/null +++ b/examples/ts/vue-webpack/vue.config.js @@ -0,0 +1,4 @@ +const { defineConfig } = require('@vue/cli-service') +module.exports = defineConfig({ + transpileDependencies: true +}) diff --git a/examples/ts/vue/README.md b/examples/ts/vue/README.md deleted file mode 100644 index 6658eb61a3ffdf3350efafe6e5455c2feb9bfc9a..0000000000000000000000000000000000000000 --- a/examples/ts/vue/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# wax-vue - -This template should help get you started developing with Vue 3 in Vite with our wax library. - -## Project Setup - -```sh -# Change your directory to vue dir -cd examples/ts/vue - -# Create a vue project in current directory -pnpm create vue@latest . - -# Run through all options - -# Install all dependencies -pnpm install - -# Add wax library (the dist-tag should be stable) -pnpm add @hiveio/wax@stable -``` - -### You can use the following code as a template for a simple App.vue code implementing wax - -```vue -<template> - <main>You are using wax version: "{{ version }}"</main> -</template> - -<script lang="ts" setup> -import { createWaxFoundation } from '@hiveio/wax'; -import { ref, onBeforeMount } from 'vue'; - -const version = ref<string>(); - -onBeforeMount(async () => { - const wax = await createWaxFoundation(); - - version.value = wax.getVersion(); -}); -</script> -``` - -### Compile and Hot-Reload for Development - -Navigate in your browser to the displayed web server location to listen to the project changes - -```sh -pnpm dev -``` diff --git a/ts/.devcontainer/devcontainer.json b/ts/.devcontainer/devcontainer.json index bbd422fffab4efbe0b7615c5756ba4bda07e1328..541436d65e80826f31f49727af4fc57dcf394f8e 100644 --- a/ts/.devcontainer/devcontainer.json +++ b/ts/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Hive NodeJS & Typescript", - "image": "registry.gitlab.syncad.com/hive/common-ci-configuration/emsdk:3.1.62-1@sha256:98b3062135cc4e31b9efc8343e2b8c0c66b25efad18c5b7255237797ebdad286", + "image": "registry.gitlab.syncad.com/hive/common-ci-configuration/emsdk:4.0.1-1@sha256:2212741aa9c6647ece43a9ac222c677589f18b27cc8e39921636f125705155dd", "containerUser": "emscripten", "customizations": { "vscode": { diff --git a/ts/ARCHITECTURE.md b/ts/ARCHITECTURE.md new file mode 100644 index 0000000000000000000000000000000000000000..bbc8153912defa18fa943a4d74393b5a43e32dc2 --- /dev/null +++ b/ts/ARCHITECTURE.md @@ -0,0 +1,81 @@ +# Typescript part architecture design + +## Library source code consist of three main parts: + + - [Hive protocol ProtoBuf definitions (.proto files)](../hive/libraries/protocol/proto) - directly shared from [Hive](gitlab.syncad.com/hive/hive) repository, resulting in generating Typescript code containing blockchain operation definitions + - C++ core part (reusing [Hive protocol structures and algirithms](../hive/libraries/protocol) built into [WASM](https://webassembly.org/) form being ready for execution in Web Browser + - Typescript & JavaScript implementation of public Wax interfaces, joining together previously mentioned parts + +## Generation flow + +1. [Hive .proto files](../hive/libraries/protocol/proto) are transformed into the TypeScript representation using [`protoc` compiler](https://github.com/protocolbuffers/protobuf) and its [`ts-proto` extension](https://www.npmjs.com/package/ts-proto). Output files will be located under `wasm/lib/proto` directory. + +1. Then [Wax C++ core](./core) and direct [TS <-> C++ bridge](./wasm/src) parts are compiled into the WASM representation using [Emscripten compiler](https://emscripten.org/). This process involves building of multiple project targets: + + 1. `wax_wasm_node` targeting NodeJS environment generating: [wax.node.js](#waxnodejs) and [wax.node.wasm](#waxcommonwasm), `wax_node.d.ts` files + 1. `wax_wasm_web` targeting Web Browser resulting in [wax.web.js](#waxwebjs), [wax.web.wasm](#waxcommonwasm) and `wax_web.d.ts` outputs + + **What important to note, both targets should generate files having the same content**: + + - wasm outputs ( [wax.node.wasm](#waxcommonwasm) and [wax.web.wasm](#waxcommonwasm) ) finally renamed during installation to `wax.common.wasm` + - `*.d.ts` files containing type generated C++ <-> TS interface types + - `config.ts` - this file is just for full typing of protocol config + + All outputs are generated into `wasm/build_wasm` directory (containing also intermediate build files). Final outpus are installed into `wasm/lib/build_wasm`. + +1. Now, having all of the dependencies in place (generated in previous steps), main [TS & JS implementation](./wasm/lib) sources can be compiled by [TypeScript compiler](https://www.npmjs.com/package/typescript) using settings specified in [given configuration](tsconfig.json). This phase outputs are placed in `wasm/dist/lib` directory. + +1. Finally, all of produced JavaScript sources and type declarations can be bundled together using [Rollup](https://www.npmjs.com/package/rollup) in order to create files that will be available in the [final bundle](#final-bundle-files). Rollup, currently has 6 stages configured with bundle directory `wasm/dist/bundle`: + 1. Copy [wax.web.js](#waxwebjs) and [wax.node.js](#waxnodejs) into the bundle directory along setting proper WASM file path. Also terser will slice lines into smaller parts for more readable error stack trace reading. + 1. Copy [wax.common.wasm](#waxcommonwasm) into the bundle directory. + 1. Bundle ["second layer" of Wax library](wasm/lib/detailed) into one file imported by [web.js](#webjs) and [node.js](#nodejs) files. Also proper environment variables will be hardcoded, such as: version and package name. Terser will optimize code and all non-crucial dependencies will be inlined + 1. Transpile [library entry file](wasm/lib/index.ts) into two files: [web.js](#webjs) and [node.js](#nodejs), properly replacing WASM imports. Note that file [wasm/lib/wax_module.js](wasm/lib/wax_module.ts) is just a dummy file representing proper type declarations for the [wax.web.js](#waxwebjs) and [wax.node.js](#waxnodejs) files and it will not be bundled, but replaced with the mentioned files instead. + 1. Transpile [library entry file](wasm/lib/index.ts) into [vite.js](#vitejs), simirarly to the previous point, but properly adjusting WASM import paths for Vite to work, see [Vue Vite example](../examples/ts/vue-vite/README.md#wasm-related-vite-issues). + 1. Bundle all of the type declarations and output them into the [index.d.ts](#indexdts) file + +## Final bundle files + +### wax.common.wasm + +Contains the core WebAssembly code shared across environments. + +### wax.web.js + +Specialized WASM communication wrapper for running in the web environment - generated by Emscripten + +### wax.node.js + +Specialized WASM communication wrapper for running in the Node.js environment - generated by Emscripten + +### web.js + +Index file to load the environment-specific code in the browser. Its main purpose is to load `wax.web.js` and `detailed/index.js` + +### node.js + +Index file to load the environment-specific code in the Node.js. Its main purpose is to load `wax.node.js` and `detailed/index.js` + +### vite.js + +Index file to load the environment-specific code in the browser with Vite bundler as there are some WASM-loading-related issues. Its main purpose is to load `wax.web.js`, `detailed/index.js` and specify proper WASM package path + +### detailed/index.js + +Main bundle covering the library functionality described by its [public interface](wasm/lib/detailed/interfaces.ts) - "second layer" of the Wax library containing e.g. broadcasting transaction code, healthchecker and formatters. + +### index.d.ts + +Consolidated type declarations for all environments + +## Final bundle dependency graph + +```mermaid +graph TD; + index.d.ts + web.js-->detailed/index.js; + node.js-->detailed/index.js; + web.js-->wax.web.js; + node.js-->wax.node.js; + wax.web.js-->wax.common.wasm + wax.node.js-->wax.common.wasm +``` diff --git a/ts/README.md b/ts/README.md index 0d485b4ea7f19b4640641d851654c733b8fadac1..005a0ac874185f934aa6c52b68da7470d8ed0a22 100644 --- a/ts/README.md +++ b/ts/README.md @@ -8,7 +8,7 @@ This is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/). Before installing, [download and install Node.js](https://nodejs.org/en/download/). -Node.js 18 or higher is required. +Node.js 20.11 or higher is required. Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): @@ -20,6 +20,24 @@ echo @hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm npm install @hiveio/wax ``` +## Frameworks support + +We currently support multiple environments / bundlers / frameworks, such as: + +- [Node.js](https://nodejs.org/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/node-app) +- [Next.js](https://nextjs.org/) + [Webpack](https://webpack.js.org/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/nextjs-app) +- [Rollup](https://rollupjs.org/) - You may require to add plugin for proper WASM file dependency copying - [@web/rollup-plugin-import-meta-assets](https://www.npmjs.com/package/@web/rollup-plugin-import-meta-assets), see [example project using WASM in Workers](https://gitlab.syncad.com/hive/hb-auth) +- [React](https://react.dev/) + [Vite](https://vite.dev/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/react-vite) (__Requires different import - `/vite`__) +- [Nuxt](https://nuxt.com/) ([Vite](https://vite.dev/)), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/nuxt-app) (__Requires different import - `/vite`__) +- [Vue](https://vuejs.org/) + [Vite](https://vite.dev/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/vue-vite) (__Requires different import - `/vite`__) +- [Vue.js](https://vuejs.org/) + [Webpack](https://webpack.js.org/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/vue-webpack) +- [Parcel](https://parceljs.org/), see [our examples](https://gitlab.syncad.com/hive/wax/-/tree/develop/examples/ts/html). Parcel will probably require [`Buffer` polyfill](https://www.npmjs.com/package/buffer) installation +- Web "Vanilla JS" (you have to provide sourcemap in order to properly resolve our imports, simirarly as in [our tests](./wasm/__tests__/assets/test.html)) (__not recommended__) + +Imports should automatically resolve to either `@hiveio/wax/web` or `@hiveio/wax/node` based on your environment, but it is required to use `@hiveio/wax/vite` when using Vite in your stack. + +You can also force the usage of specific Wax version by providing proper import alias as mentioned above. + ## Usage ### Wax foundation diff --git a/ts/package.json b/ts/package.json index 0f9618c2ba329c337f471e619fec2b92b0413ad9..4c82a934058dc5f9e341cd292be9c4ee9c8f8d0a 100644 --- a/ts/package.json +++ b/ts/package.json @@ -2,15 +2,16 @@ "name": "@hiveio/wax", "version": "0.0.1-LastGitTagPlaceholder.GitHashPlaceholder", "description": "Provides Hive Protocol features to JavaScript", - "main": "wasm/dist/bundle/index.js", + "main": "wasm/dist/bundle/web.js", "types": "wasm/dist/bundle/index.d.ts", "type": "module", "private": false, - "packageManager": "pnpm@9.1.1+sha256.9551e803dcb7a1839fdf5416153a844060c7bce013218ce823410532504ac10b", + "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0", "scripts": { "prebuild": "cd ../ && husky install ts/.husky && cd ./ts && ./scripts/compile_proto_ts.sh && rimraf wasm/dist", + "rebuildall": "rimraf wasm/dist && rimraf wasm/build_wasm && wasm/build_wasm_wax.sh && tsc", "build": "wasm/build_wasm_wax.sh && tsc", - "postbuild": "rollup -c && bundlesize", + "postbuild": "rollup -c && size-limit", "build:test": "tsc --project wasm/configs/tsconfig.tests.json", "pretest": "playwright install chromium", "test": "unset CI && playwright test --workers 4 --max-failures 1 --project=wax_testsuite --project=healthchecker_tests --project=wax_testsuite_custom_chain_options --project=wax_regression_tests --project=wax_operation_factories --project=wax_encrypted_operations --project=wax_non_encrypted_operations --project=wax_utils --project=wax_custom_chain_online_tx --project=wax_mock_tests", @@ -18,68 +19,95 @@ "examples": "run-s examples:*", "examples:html": "cd ../examples/ts/html && pnpm install && pnpm run test && cd ../../../ts", "examples:nextjs-app": "cd ../examples/ts/nextjs-app && pnpm install && pnpm run build && cd ../../../ts", - "examples:node-app": "cd ../examples/ts/node-app && pnpm install && pnpm run test && cd ../../../ts" + "examples:node-app": "cd ../examples/ts/node-app && pnpm install && pnpm run test && cd ../../../ts", + "examples:vue-webpack": "cd ../examples/ts/vue-webpack && pnpm install && pnpm run build && cd ../../../ts", + "examples:vue-vite": "cd ../examples/ts/vue-vite && pnpm install && pnpm run test && pnpm run build && cd ../../../ts", + "examples:react-vite": "cd ../examples/ts/react-vite && pnpm install && pnpm run test && pnpm run build && cd ../../../ts", + "examples:nuxt-app": "cd ../examples/ts/nuxt-app && pnpm install && pnpm run test && pnpm run build && cd ../../../ts" }, "exports": { ".": { + "node": { + "import": { + "types": "./wasm/dist/bundle/index.d.ts", + "default": "./wasm/dist/bundle/node.js" + } + }, "default": { "import": { "types": "./wasm/dist/bundle/index.d.ts", - "default": "./wasm/dist/bundle/index.js" + "default": "./wasm/dist/bundle/web.js" } } }, + "./web": { + "import": { + "types": "./wasm/dist/bundle/index.d.ts", + "default": "./wasm/dist/bundle/web.js" + } + }, + "./vite": { + "import": { + "types": "./wasm/dist/bundle/index.d.ts", + "default": "./wasm/dist/bundle/vite.js" + } + }, + "./node": { + "import": { + "types": "./wasm/dist/bundle/index.d.ts", + "default": "./wasm/dist/bundle/node.js" + } + }, "./package.json": "./package.json" }, "devDependencies": { - "@playwright/test": "^1.39.0", - "@rollup/plugin-alias": "^5.1.1", + "@playwright/test": "^1.49.1", "@rollup/plugin-commonjs": "^27.0.0", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", + "@size-limit/file": "^11.1.6", "@types/cors": "^2.8.17", "@types/events": "^3.0.3", "@types/express": "^5.0.0", "@types/express-http-proxy": "^1.6.6", - "@types/node": "^20.10.6", - "bundlesize": "^0.18.2", + "@types/node": "^22.10.6", + "class-transformer": "^0.5.1", + "class-validator": "^0.14.0", "cors": "^2.8.5", "express": "^4.21.2", "express-http-proxy": "^2.1.1", "http-server": "^14.1.1", "husky": "8.0.3", "npm-run-all": "^4.1.5", - "playwright": "^1.39.0", + "playwright": "^1.49.1", "protobufjs": "^7.2.5", + "reflect-metadata": "^0.1.13", "rimraf": "^6.0.1", "rollup": "^4.22.4", + "rollup-plugin-copy": "^3.5.0", "rollup-plugin-dts": "^6.1.1", + "size-limit": "^11.1.6", + "test@1.49.1": "link:playwright/test@1.49.1", "ts-proto": "^1.172.0", - "tslib": "^2.6.2", + "tslib": "^2.8.1", "typedoc": "0.27.3", "typedoc-gitlab-wiki-theme": "^2.1.0", "typedoc-plugin-markdown": "4.3.1", - "typescript": "5.2.2" + "typescript": "5.7.3" }, "dependencies": { - "@hiveio/beekeeper": "1.27.7-250114120041", - "class-transformer": "^0.5.1", - "class-validator": "^0.14.0", + "@hiveio/beekeeper": "1.27.8-stable.250130141326", "events": "^3.3.0", - "long": "^5.2.3", - "reflect-metadata": "^0.1.13" + "long": "^5.2.3" }, - "bundlesize": [ - { - "path": "./wasm/dist/bundle/index.js", - "maxSize": "8400 kB", - "compression": "none" - }, + "size-limit": [ { - "path": "./wasm/dist/bundle/index.d.ts", - "maxSize": "1650 kB", - "compression": "none" + "path": [ + "./wasm/dist/bundle" + ], + "limit": "5700 kB", + "brotli": false } ], "license": "SEE LICENSE IN LICENSE.md", @@ -90,15 +118,14 @@ "files": [ "LICENSE.md", "README.md", - "wasm/dist/bundle/index.js", - "wasm/dist/bundle/index.d.ts" + "wasm/dist/bundle" ], "repository": { "type": "git", "url": "https://gitlab.syncad.com/hive/wax.git" }, "engines": { - "node": ">= 18" + "node": "^20.11 || >= 21.2" }, "publishConfig": { "registry": "https://RegistryPlaceholder", diff --git a/ts/pnpm-lock.yaml b/ts/pnpm-lock.yaml index 3b9cd2a9e5377be5c38d0ec4774589c9d9a098d8..9cf7934095b68e204d0e0c3ac88722aefa823308 100644 --- a/ts/pnpm-lock.yaml +++ b/ts/pnpm-lock.yaml @@ -9,30 +9,18 @@ importers: .: dependencies: '@hiveio/beekeeper': - specifier: 1.27.7-250114120041 - version: 1.27.7-250114120041 - class-transformer: - specifier: ^0.5.1 - version: 0.5.1 - class-validator: - specifier: ^0.14.0 - version: 0.14.0 + specifier: 1.27.8-stable.250130141326 + version: 1.27.8-stable.250130141326 events: specifier: ^3.3.0 version: 3.3.0 long: specifier: ^5.2.3 version: 5.2.3 - reflect-metadata: - specifier: ^0.1.13 - version: 0.1.13 devDependencies: '@playwright/test': - specifier: ^1.39.0 - version: 1.39.0 - '@rollup/plugin-alias': - specifier: ^5.1.1 - version: 5.1.1(rollup@4.24.0) + specifier: ^1.49.1 + version: 1.49.1 '@rollup/plugin-commonjs': specifier: ^27.0.0 version: 27.0.0(rollup@4.24.0) @@ -45,6 +33,9 @@ importers: '@rollup/plugin-terser': specifier: ^0.4.4 version: 0.4.4(rollup@4.24.0) + '@size-limit/file': + specifier: ^11.1.6 + version: 11.1.6(size-limit@11.1.6) '@types/cors': specifier: ^2.8.17 version: 2.8.17 @@ -58,11 +49,14 @@ importers: specifier: ^1.6.6 version: 1.6.6 '@types/node': - specifier: ^20.10.6 - version: 20.10.6 - bundlesize: - specifier: ^0.18.2 - version: 0.18.2 + specifier: ^22.10.6 + version: 22.10.7 + class-transformer: + specifier: ^0.5.1 + version: 0.5.1 + class-validator: + specifier: ^0.14.0 + version: 0.14.0 cors: specifier: ^2.8.5 version: 2.8.5 @@ -82,38 +76,50 @@ importers: specifier: ^4.1.5 version: 4.1.5 playwright: - specifier: ^1.39.0 - version: 1.39.0 + specifier: ^1.49.1 + version: 1.49.1 protobufjs: specifier: ^7.2.5 version: 7.2.5 + reflect-metadata: + specifier: ^0.1.13 + version: 0.1.13 rimraf: specifier: ^6.0.1 version: 6.0.1 rollup: specifier: ^4.22.4 version: 4.24.0 + rollup-plugin-copy: + specifier: ^3.5.0 + version: 3.5.0 rollup-plugin-dts: specifier: ^6.1.1 - version: 6.1.1(rollup@4.24.0)(typescript@5.2.2) + version: 6.1.1(rollup@4.24.0)(typescript@5.7.3) + size-limit: + specifier: ^11.1.6 + version: 11.1.6 + test@1.49.1: + specifier: link:playwright/test@1.49.1 + version: link:playwright/test@1.49.1 ts-proto: specifier: ^1.172.0 version: 1.172.0 tslib: - specifier: ^2.6.2 - version: 2.6.2 + specifier: ^2.8.1 + version: 2.8.1 typedoc: specifier: 0.27.3 - version: 0.27.3(typescript@5.2.2) + version: 0.27.3(typescript@5.7.3) typedoc-gitlab-wiki-theme: specifier: ^2.1.0 - version: 2.1.0(typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.2.2))) + version: 2.1.0(typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.7.3))) typedoc-plugin-markdown: specifier: 4.3.1 - version: 4.3.1(typedoc@0.27.3(typescript@5.2.2)) + version: 4.3.1(typedoc@0.27.3(typescript@5.7.3)) typescript: - specifier: 5.2.2 - version: 5.2.2 + specifier: 5.7.3 + version: 5.7.3 packages: @@ -132,9 +138,9 @@ packages: '@gerrit0/mini-shiki@1.24.4': resolution: {integrity: sha512-YEHW1QeAg6UmxEmswiQbOVEg1CW22b1XUD/lNTliOsu0LD0wqoyleFMnmbTp697QE0pcadQiR5cVtbbAPncvpw==} - '@hiveio/beekeeper@1.27.7-250114120041': - resolution: {integrity: sha1-VB8RFNdocfXm0aT31aG7UoayO2Q=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.7-250114120041.tgz} - engines: {node: '>= 18'} + '@hiveio/beekeeper@1.27.8-stable.250130141326': + resolution: {integrity: sha1-1NlAcWJ+REmRRmuKTeGT89b5Ufo=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.8-stable.250130141326.tgz} + engines: {node: ^20.11 || >= 21.2} '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -164,13 +170,25 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@playwright/test@1.39.0': - resolution: {integrity: sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==} - engines: {node: '>=16'} + '@playwright/test@1.49.1': + resolution: {integrity: sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==} + engines: {node: '>=18'} hasBin: true '@protobufjs/aspromise@1.1.2': @@ -203,15 +221,6 @@ packages: '@protobufjs/utf8@1.1.0': resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - '@rollup/plugin-alias@5.1.1': - resolution: {integrity: sha512-PR9zDb+rOzkRb2VD+EuKB7UC41vU5DIwZ5qqCpk0KJudcWAyi8rvYOhS7+L5aZCspw1stTViLgN5v6FF1p5cgQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - '@rollup/plugin-commonjs@27.0.0': resolution: {integrity: sha512-zSq7xlCb5aLRAS+rE6mE+++fEWvWQ8RQ+A4HkBT8bUW/cdYnrFJKRlgdb76XSekgU1n4Rssi/mrOG4GL8D9AwQ==} engines: {node: '>=16.0.0 || 14 >= 14.17'} @@ -346,6 +355,12 @@ packages: '@shikijs/vscode-textmate@9.3.1': resolution: {integrity: sha512-79QfK1393x9Ho60QFyLti+QfdJzRQCVLFb97kOIV7Eo9vQU/roINgk7m24uv0a7AUvN//RDH36FLjjK48v0s9g==} + '@size-limit/file@11.1.6': + resolution: {integrity: sha512-ojzzJMrTfcSECRnaTjGy0wNIolTCRdyqZTSWG9sG5XEoXG6PNgHXDDS6gf6YNxnqb+rWfCfVe93u6aKi3wEocQ==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + size-limit: 11.1.6 + '@types/body-parser@1.19.5': resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} @@ -373,6 +388,12 @@ packages: '@types/express@5.0.0': resolution: {integrity: sha512-DvZriSMehGHL1ZNLzi6MidnsDhUZM/x2pRdDIKdwbUNqqwHxMlRdkxtn6/EPKyqKpHqTl/4nRZsRNLpZxZRpPQ==} + '@types/fs-extra@8.1.5': + resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} + + '@types/glob@7.2.0': + resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} + '@types/hast@3.0.4': resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} @@ -382,8 +403,11 @@ packages: '@types/mime@1.3.5': resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} - '@types/node@20.10.6': - resolution: {integrity: sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==} + '@types/minimatch@5.1.2': + resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} + + '@types/node@22.10.7': + resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==} '@types/qs@6.9.17': resolution: {integrity: sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==} @@ -415,10 +439,6 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - ansi-regex@2.1.1: - resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} - engines: {node: '>=0.10.0'} - ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -439,16 +459,6 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} - aproba@1.2.0: - resolution: {integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==} - - are-we-there-yet@1.1.7: - resolution: {integrity: sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==} - deprecated: This package is no longer supported. - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -459,6 +469,10 @@ packages: array-flatten@1.1.1: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} + array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + arraybuffer.prototype.slice@1.0.4: resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==} engines: {node: '>= 0.4'} @@ -466,32 +480,17 @@ packages: async@2.6.4: resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} - asynckit@0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} - axios@1.6.0: - resolution: {integrity: sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==} - - axios@1.7.9: - resolution: {integrity: sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==} - balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - basic-auth@2.0.1: resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==} engines: {node: '>= 0.8'} - bl@4.1.0: - resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - body-parser@1.20.3: resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -502,19 +501,16 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - brotli-size@0.1.0: - resolution: {integrity: sha512-5ny7BNvpe2TSmdafF1T9dnFYp3AIrJ8qJt29K0DQJzORlK38LBim/CmlY26JtreV6SWmXza7Oa+9m61SzvxR0Q==} - engines: {node: '>=0.12.0'} + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - buffer@5.7.1: - resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - - bundlesize@0.18.2: - resolution: {integrity: sha512-wthRURckcAbe0Qcr7xMH8evVE/kjID8gqY0M17XJI/FVgCljLx6Ag4lIDbV76KVb2Ey5iCA4n5Fur61TEhF1JQ==} - hasBin: true + bytes-iec@3.1.1: + resolution: {integrity: sha512-fey6+4jDK7TFtFg/klGSvNKJctyU7n2aQdnM+CO0ruLPbqqMOM8Tio0Pc+deqUeVKX1tL5DQep1zQ7+37aTAsA==} + engines: {node: '>= 0.8'} bytes@3.1.2: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} @@ -536,26 +532,10 @@ packages: resolution: {integrity: sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==} engines: {node: '>= 0.4'} - caller-callsite@2.0.0: - resolution: {integrity: sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==} - engines: {node: '>=4'} - - caller-path@2.0.0: - resolution: {integrity: sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==} - engines: {node: '>=4'} - - callsites@2.0.0: - resolution: {integrity: sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==} - engines: {node: '>=4'} - case-anything@2.1.13: resolution: {integrity: sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==} engines: {node: '>=12.13'} - chalk@2.1.0: - resolution: {integrity: sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==} - engines: {node: '>=4'} - chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -564,11 +544,9 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chownr@1.1.4: - resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} - - ci-env@1.17.0: - resolution: {integrity: sha512-NtTjhgSEqv4Aj90TUYHQLxHdnCPXnjdtuGG1X8lTfp/JqeXTdw0FTWl/vUAPuvbWZTF8QVpv6ASe/XacE+7R2A==} + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} class-transformer@0.5.1: resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} @@ -576,10 +554,6 @@ packages: class-validator@0.14.0: resolution: {integrity: sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==} - code-point-at@1.1.0: - resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==} - engines: {node: '>=0.10.0'} - color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -593,9 +567,8 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - combined-stream@1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} + colorette@1.4.0: + resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==} commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -606,9 +579,6 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - console-control-strings@1.1.0: - resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} - content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} @@ -624,9 +594,6 @@ packages: resolution: {integrity: sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==} engines: {node: '>= 0.6'} - core-util-is@1.0.3: - resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - cors@2.8.5: resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} engines: {node: '>= 0.10'} @@ -635,10 +602,6 @@ packages: resolution: {integrity: sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==} engines: {node: '>= 0.4.0'} - cosmiconfig@5.2.1: - resolution: {integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==} - engines: {node: '>=4'} - cross-spawn@6.0.6: resolution: {integrity: sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==} engines: {node: '>=4.8'} @@ -675,14 +638,6 @@ packages: supports-color: optional: true - decompress-response@4.2.1: - resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==} - engines: {node: '>=8'} - - deep-extend@0.6.0: - resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} - engines: {node: '>=4.0.0'} - deepmerge@4.3.1: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} @@ -695,13 +650,6 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} - delayed-stream@1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - - delegates@1.0.0: - resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} - depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} @@ -715,6 +663,10 @@ packages: engines: {node: '>=0.10'} hasBin: true + dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dprint-node@1.0.8: resolution: {integrity: sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==} @@ -722,9 +674,6 @@ packages: resolution: {integrity: sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==} engines: {node: '>= 0.4'} - duplexer@0.1.2: - resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} - eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -745,9 +694,6 @@ packages: resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} engines: {node: '>= 0.8'} - end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} @@ -793,11 +739,6 @@ packages: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} @@ -812,10 +753,6 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} - expand-template@2.0.3: - resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} - engines: {node: '>=6'} - express-http-proxy@2.1.1: resolution: {integrity: sha512-4aRQRqDQU7qNPV5av0/hLcyc0guB9UP71nCYrQEYml7YphTo8tmWf3nDZWdTJMMjFikyz9xKXaURor7Chygdwg==} engines: {node: '>=6.0.0'} @@ -824,6 +761,25 @@ packages: resolution: {integrity: sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==} engines: {node: '>= 0.10.0'} + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fastq@1.18.0: + resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==} + + fdir@6.4.3: + resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + finalhandler@1.3.1: resolution: {integrity: sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==} engines: {node: '>= 0.8'} @@ -837,15 +793,6 @@ packages: debug: optional: true - follow-redirects@1.15.9: - resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} @@ -853,10 +800,6 @@ packages: resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} engines: {node: '>=14'} - form-data@4.0.1: - resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} - engines: {node: '>= 6'} - forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -865,8 +808,9 @@ packages: resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} - fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + fs-extra@8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -891,10 +835,6 @@ packages: functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} - gauge@2.7.4: - resolution: {integrity: sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==} - deprecated: This package is no longer supported. - get-intrinsic@1.2.4: resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} @@ -907,11 +847,9 @@ packages: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} - github-build@1.2.4: - resolution: {integrity: sha512-1kdMmIrvYH18ITHGMVa5BXOxj/+i/VZzPR4PGMBpLW9h15woU+gpM/mlqOk+jmuD4mmib8Dgb6Xcbyy0v+RqqA==} - - github-from-package@0.0.0: - resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} @@ -930,6 +868,10 @@ packages: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} + globby@10.0.1: + resolution: {integrity: sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==} + engines: {node: '>=8'} + gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -940,17 +882,9 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - gzip-size@4.1.0: - resolution: {integrity: sha512-1g6EPVvIHuPmpAdBBpsIVYLgjzGV/QqcFRJXpMyrqEWG10JhOaTjQeCcjMDyX0Iqfm/Q5M9twR/mbDk5f5MqkA==} - engines: {node: '>=4'} - has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} - has-flag@2.0.0: - resolution: {integrity: sha512-P+1n3MnwjR/Epg9BBo1KT8qbye2g2Ou4sFumihwt6I4tsUX7jnLcX4BTOSKg/B1ZrIYMN9FcEnG4x5a7NB8Eng==} - engines: {node: '>=0.10.0'} - has-flag@3.0.0: resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} @@ -982,9 +916,6 @@ packages: resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} engines: {node: '>= 0.4'} - has-unicode@2.0.1: - resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==} - hasown@2.0.0: resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} engines: {node: '>= 0.4'} @@ -1030,16 +961,9 @@ packages: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} - ieee754@1.2.1: - resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - - iltorb@2.4.5: - resolution: {integrity: sha512-EMCMl3LnnNSZJS5QrxyZmMTaAC4+TJkM5woD+xbpm9RB+mFYCr7C05GFE3TEGCsVQSVHmjX+3sf5AiwsylNInQ==} - deprecated: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb - - import-fresh@2.0.0: - resolution: {integrity: sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==} - engines: {node: '>=4'} + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} @@ -1048,9 +972,6 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - ini@1.3.8: - resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} - internal-slot@1.1.0: resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==} engines: {node: '>= 0.4'} @@ -1093,18 +1014,14 @@ packages: resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==} engines: {node: '>= 0.4'} - is-directory@0.3.1: - resolution: {integrity: sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==} + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} is-finalizationregistry@1.1.0: resolution: {integrity: sha512-qfMdqbAQEwBw78ZyReKnlA8ezmPdb9BemzIIip/JkjaZUhitfXDkkr+3QTboW0JrSXT1QWyYShpvnNHGZ4c4yA==} engines: {node: '>= 0.4'} - is-fullwidth-code-point@1.0.0: - resolution: {integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==} - engines: {node: '>=0.10.0'} - is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} @@ -1113,6 +1030,10 @@ packages: resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} engines: {node: '>= 0.4'} + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + is-map@2.0.3: resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} engines: {node: '>= 0.4'} @@ -1128,6 +1049,14 @@ packages: resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==} engines: {node: '>= 0.4'} + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-plain-object@3.0.1: + resolution: {integrity: sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==} + engines: {node: '>=0.10.0'} + is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} @@ -1167,9 +1096,6 @@ packages: resolution: {integrity: sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==} engines: {node: '>= 0.4'} - isarray@1.0.0: - resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} - isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} @@ -1183,19 +1109,26 @@ packages: resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} engines: {node: 20 || >=22} + jiti@2.4.2: + resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} + hasBin: true + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - json-parse-better-errors@1.0.2: resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} + jsonfile@4.0.0: + resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} + libphonenumber-js@1.10.49: resolution: {integrity: sha512-gvLtyC3tIuqfPzjvYLH9BmVdqzGDiSi4VjtWe2fAgSdBf0yt8yPmbNnRIHNbR5IdtVkm0ayGuzwQKTWmU0hdjQ==} + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + engines: {node: '>=14'} + linkify-it@5.0.0: resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==} @@ -1248,10 +1181,18 @@ packages: merge-descriptors@1.0.3: resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==} + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + methods@1.1.2: resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} engines: {node: '>= 0.6'} + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} @@ -1265,10 +1206,6 @@ packages: engines: {node: '>=4'} hasBin: true - mimic-response@2.1.0: - resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==} - engines: {node: '>=8'} - minimatch@10.0.1: resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} engines: {node: 20 || >=22} @@ -1291,9 +1228,6 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} - mkdirp-classic@0.5.3: - resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} - mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true @@ -1304,11 +1238,8 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - nan@2.22.0: - resolution: {integrity: sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==} - - napi-build-utils@1.0.2: - resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} + nanospinner@1.2.2: + resolution: {integrity: sha512-Zt/AmG6qRU3e+WnzGGLuMCEAO/dAu45stNbHY223tUxldaDAeE+FxSPsd9Q+j+paejmm0ZbrNVs5Sraqy3dRxA==} negotiator@0.6.3: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} @@ -1317,12 +1248,6 @@ packages: nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} - node-abi@2.30.1: - resolution: {integrity: sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==} - - noop-logger@0.1.1: - resolution: {integrity: sha512-6kM8CLXvuW5crTxsAtva2YLrRrDaiTIkIePWs9moLHqbFWT94WpNFjwS/5dfLfECg5i/lkmw3aoqVidxt23TEQ==} - normalize-package-data@2.5.0: resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} @@ -1331,14 +1256,6 @@ packages: engines: {node: '>= 4'} hasBin: true - npmlog@4.1.2: - resolution: {integrity: sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==} - deprecated: This package is no longer supported. - - number-is-nan@1.0.1: - resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==} - engines: {node: '>=0.10.0'} - object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -1411,13 +1328,24 @@ packages: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} + path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + picocolors@1.1.0: resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + pidtree@0.3.1: resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==} engines: {node: '>=0.10'} @@ -1427,14 +1355,14 @@ packages: resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} engines: {node: '>=4'} - playwright-core@1.39.0: - resolution: {integrity: sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==} - engines: {node: '>=16'} + playwright-core@1.49.1: + resolution: {integrity: sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==} + engines: {node: '>=18'} hasBin: true - playwright@1.39.0: - resolution: {integrity: sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==} - engines: {node: '>=16'} + playwright@1.49.1: + resolution: {integrity: sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==} + engines: {node: '>=18'} hasBin: true portfinder@1.0.32: @@ -1445,17 +1373,6 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - prebuild-install@5.3.6: - resolution: {integrity: sha512-s8Aai8++QQGi4sSbs/M1Qku62PFK49Jm1CbgXklGz4nmHveDq0wzJkg7Na5QbnO1uNH8K7iqx2EQ/mV0MZEmOg==} - engines: {node: '>=6'} - hasBin: true - - prettycli@1.4.3: - resolution: {integrity: sha512-KLiwAXXfSWXZqGmZlnKPuGMTFp+0QbcySplL1ft9gfteT/BNsG64Xo8u2Qr9r+qnsIZWBQ66Zs8tg+8s2fmzvw==} - - process-nextick-args@2.0.1: - resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - protobufjs@7.2.5: resolution: {integrity: sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==} engines: {node: '>=12.0.0'} @@ -1464,12 +1381,6 @@ packages: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} - proxy-from-env@1.1.0: - resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - - pump@3.0.2: - resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==} - punycode.js@2.3.1: resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} engines: {node: '>=6'} @@ -1482,6 +1393,9 @@ packages: resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} engines: {node: '>=0.6'} + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + randombytes@2.1.0: resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} @@ -1493,20 +1407,13 @@ packages: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} - rc@1.2.8: - resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} - hasBin: true - read-pkg@3.0.0: resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} engines: {node: '>=4'} - readable-stream@2.3.8: - resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} - - readable-stream@3.6.2: - resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} - engines: {node: '>= 6'} + readdirp@4.1.1: + resolution: {integrity: sha512-h80JrZu/MHUZCyHu5ciuoI0+WxsCxzxJTILn6Fs8rxSnFPh+UVHYfeIxK1nVGugMqkfC4vJcBOYbkfkwYK0+gw==} + engines: {node: '>= 14.18.0'} reflect-metadata@0.1.13: resolution: {integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==} @@ -1522,19 +1429,23 @@ packages: requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} - resolve-from@3.0.0: - resolution: {integrity: sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==} - engines: {node: '>=4'} - resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true + reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rimraf@6.0.1: resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} engines: {node: 20 || >=22} hasBin: true + rollup-plugin-copy@3.5.0: + resolution: {integrity: sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==} + engines: {node: '>=8.3'} + rollup-plugin-dts@6.1.1: resolution: {integrity: sha512-aSHRcJ6KG2IHIioYlvAOcEq6U99sVtqDDKVhnwt70rW6tsz3tv5OSjEiWcgzfsHdLyGXZ/3b/7b/+Za3Y6r1XA==} engines: {node: '>=16'} @@ -1547,6 +1458,9 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + safe-array-concat@1.1.3: resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==} engines: {node: '>=0.4'} @@ -1582,9 +1496,6 @@ packages: resolution: {integrity: sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==} engines: {node: '>= 0.8.0'} - set-blocking@2.0.0: - resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -1636,18 +1547,18 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} - signal-exit@3.0.7: - resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - simple-concat@1.0.1: - resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} + size-limit@11.1.6: + resolution: {integrity: sha512-S5ux2IB8rU26xwVgMskmknGMFkieaIAqDLuwgKiypk6oa4lFsie8yFPrzRFV+yrLDY2GddjXuCaVk5PveVOHiQ==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true - simple-get@3.1.1: - resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==} + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} smob@1.5.0: resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==} @@ -1671,17 +1582,10 @@ packages: spdx-license-ids@3.0.20: resolution: {integrity: sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==} - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - statuses@2.0.1: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} - string-width@1.0.2: - resolution: {integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==} - engines: {node: '>=0.10.0'} - string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -1706,16 +1610,6 @@ packages: resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==} engines: {node: '>= 0.4'} - string_decoder@1.1.1: - resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} - - string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - - strip-ansi@3.0.1: - resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==} - engines: {node: '>=0.10.0'} - strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -1728,14 +1622,6 @@ packages: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} - strip-json-comments@2.0.1: - resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} - engines: {node: '>=0.10.0'} - - supports-color@4.5.0: - resolution: {integrity: sha512-ycQR/UbvI9xIlEdQT1TQqwoXtEldExbCEAJgRo5YXlmSKjv6ThHnP9/vwGa1gr19Gfw+LkFd7KqYMhzrRC5JYw==} - engines: {node: '>=4'} - supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -1748,18 +1634,19 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - tar-fs@2.1.2: - resolution: {integrity: sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==} - - tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} - terser@5.31.0: resolution: {integrity: sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==} engines: {node: '>=10'} hasBin: true + tinyglobby@0.2.10: + resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==} + engines: {node: '>=12.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} @@ -1774,11 +1661,8 @@ packages: resolution: {integrity: sha512-+4myxp5H+qD4r3sQUwvewN3zpdKpApeuUI0+lxfdznvkd2TUFVaeOD0q6dHszEYKTzR7DHu96Z1pqpNSOXF8iQ==} hasBin: true - tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - - tunnel-agent@0.6.0: - resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} type-is@1.6.18: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} @@ -1818,8 +1702,8 @@ packages: peerDependencies: typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x - typescript@5.2.2: - resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} + typescript@5.7.3: + resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==} engines: {node: '>=14.17'} hasBin: true @@ -1830,13 +1714,17 @@ packages: resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==} engines: {node: '>= 0.4'} - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} union@0.5.0: resolution: {integrity: sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==} engines: {node: '>= 0.8.0'} + universalify@0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} @@ -1844,9 +1732,6 @@ packages: url-join@4.0.1: resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} - util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - utils-merge@1.0.1: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} @@ -1878,10 +1763,6 @@ packages: resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} engines: {node: '>= 0.4'} - which-pm-runs@1.1.0: - resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==} - engines: {node: '>=4'} - which-typed-array@1.1.16: resolution: {integrity: sha512-g+N+GAWiRj66DngFwHvISJd+ITsyphZvD1vChfVg6cEdnzy53GzB3oy0fUNlvhz7H7+MiqhYr26qxQShCpKTTQ==} engines: {node: '>= 0.4'} @@ -1895,9 +1776,6 @@ packages: engines: {node: '>= 8'} hasBin: true - wide-align@1.1.5: - resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} - wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -1939,7 +1817,7 @@ snapshots: '@shikijs/types': 1.24.2 '@shikijs/vscode-textmate': 9.3.1 - '@hiveio/beekeeper@1.27.7-250114120041': {} + '@hiveio/beekeeper@1.27.8-stable.250130141326': {} '@isaacs/cliui@8.0.2': dependencies: @@ -1974,12 +1852,24 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.18.0 + '@pkgjs/parseargs@0.11.0': optional: true - '@playwright/test@1.39.0': + '@playwright/test@1.49.1': dependencies: - playwright: 1.39.0 + playwright: 1.49.1 '@protobufjs/aspromise@1.1.2': {} @@ -2004,10 +1894,6 @@ snapshots: '@protobufjs/utf8@1.1.0': {} - '@rollup/plugin-alias@5.1.1(rollup@4.24.0)': - optionalDependencies: - rollup: 4.24.0 - '@rollup/plugin-commonjs@27.0.0(rollup@4.24.0)': dependencies: '@rollup/pluginutils': 5.0.5(rollup@4.24.0) @@ -2112,18 +1998,22 @@ snapshots: '@shikijs/vscode-textmate@9.3.1': {} + '@size-limit/file@11.1.6(size-limit@11.1.6)': + dependencies: + size-limit: 11.1.6 + '@types/body-parser@1.19.5': dependencies: '@types/connect': 3.4.38 - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/connect@3.4.38': dependencies: - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/cors@2.8.17': dependencies: - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/estree@1.0.5': {} @@ -2137,7 +2027,7 @@ snapshots: '@types/express-serve-static-core@5.0.2': dependencies: - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/qs': 6.9.17 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -2149,6 +2039,15 @@ snapshots: '@types/qs': 6.9.17 '@types/serve-static': 1.15.7 + '@types/fs-extra@8.1.5': + dependencies: + '@types/node': 22.10.7 + + '@types/glob@7.2.0': + dependencies: + '@types/minimatch': 5.1.2 + '@types/node': 22.10.7 + '@types/hast@3.0.4': dependencies: '@types/unist': 3.0.3 @@ -2157,9 +2056,11 @@ snapshots: '@types/mime@1.3.5': {} - '@types/node@20.10.6': + '@types/minimatch@5.1.2': {} + + '@types/node@22.10.7': dependencies: - undici-types: 5.26.5 + undici-types: 6.20.0 '@types/qs@6.9.17': {} @@ -2170,12 +2071,12 @@ snapshots: '@types/send@0.17.4': dependencies: '@types/mime': 1.3.5 - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/serve-static@1.15.7': dependencies: '@types/http-errors': 2.0.4 - '@types/node': 20.10.6 + '@types/node': 22.10.7 '@types/send': 0.17.4 '@types/unist@3.0.3': {} @@ -2189,8 +2090,6 @@ snapshots: acorn@8.11.3: {} - ansi-regex@2.1.1: {} - ansi-regex@5.0.1: {} ansi-regex@6.0.1: {} @@ -2205,17 +2104,6 @@ snapshots: ansi-styles@6.2.1: {} - aproba@1.2.0: {} - - are-we-there-yet@1.1.7: - dependencies: - delegates: 1.0.0 - readable-stream: 2.3.8 - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - argparse@2.0.1: {} array-buffer-byte-length@1.0.1: @@ -2225,6 +2113,8 @@ snapshots: array-flatten@1.1.1: {} + array-union@2.1.0: {} + arraybuffer.prototype.slice@1.0.4: dependencies: array-buffer-byte-length: 1.0.1 @@ -2239,42 +2129,16 @@ snapshots: dependencies: lodash: 4.17.21 - asynckit@0.4.0: {} - available-typed-arrays@1.0.7: dependencies: possible-typed-array-names: 1.0.0 - axios@1.6.0: - dependencies: - follow-redirects: 1.15.3 - form-data: 4.0.1 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - - axios@1.7.9: - dependencies: - follow-redirects: 1.15.9 - form-data: 4.0.1 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - balanced-match@1.0.2: {} - base64-js@1.5.1: {} - basic-auth@2.0.1: dependencies: safe-buffer: 5.1.2 - bl@4.1.0: - dependencies: - buffer: 5.7.1 - inherits: 2.0.4 - readable-stream: 3.6.2 - body-parser@1.20.3: dependencies: bytes: 3.1.2 @@ -2301,32 +2165,13 @@ snapshots: dependencies: balanced-match: 1.0.2 - brotli-size@0.1.0: + braces@3.0.3: dependencies: - duplexer: 0.1.2 - iltorb: 2.4.5 + fill-range: 7.1.1 buffer-from@1.1.2: {} - buffer@5.7.1: - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - - bundlesize@0.18.2: - dependencies: - axios: 1.7.9 - brotli-size: 0.1.0 - bytes: 3.1.2 - ci-env: 1.17.0 - commander: 2.20.3 - cosmiconfig: 5.2.1 - github-build: 1.2.4 - glob: 7.2.3 - gzip-size: 4.1.0 - prettycli: 1.4.3 - transitivePeerDependencies: - - debug + bytes-iec@3.1.1: {} bytes@3.1.2: {} @@ -2355,24 +2200,8 @@ snapshots: call-bind-apply-helpers: 1.0.1 get-intrinsic: 1.2.6 - caller-callsite@2.0.0: - dependencies: - callsites: 2.0.0 - - caller-path@2.0.0: - dependencies: - caller-callsite: 2.0.0 - - callsites@2.0.0: {} - case-anything@2.1.13: {} - chalk@2.1.0: - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 4.5.0 - chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -2384,9 +2213,9 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 - chownr@1.1.4: {} - - ci-env@1.17.0: {} + chokidar@4.0.3: + dependencies: + readdirp: 4.1.1 class-transformer@0.5.1: {} @@ -2396,8 +2225,6 @@ snapshots: libphonenumber-js: 1.10.49 validator: 13.11.0 - code-point-at@1.1.0: {} - color-convert@1.9.3: dependencies: color-name: 1.1.3 @@ -2410,9 +2237,7 @@ snapshots: color-name@1.1.4: {} - combined-stream@1.0.8: - dependencies: - delayed-stream: 1.0.0 + colorette@1.4.0: {} commander@2.20.3: {} @@ -2420,8 +2245,6 @@ snapshots: concat-map@0.0.1: {} - console-control-strings@1.1.0: {} - content-disposition@0.5.4: dependencies: safe-buffer: 5.2.1 @@ -2432,8 +2255,6 @@ snapshots: cookie@0.7.1: {} - core-util-is@1.0.3: {} - cors@2.8.5: dependencies: object-assign: 4.1.1 @@ -2441,13 +2262,6 @@ snapshots: corser@2.0.1: {} - cosmiconfig@5.2.1: - dependencies: - import-fresh: 2.0.0 - is-directory: 0.3.1 - js-yaml: 3.14.1 - parse-json: 4.0.0 - cross-spawn@6.0.6: dependencies: nice-try: 1.0.5 @@ -2488,12 +2302,6 @@ snapshots: dependencies: ms: 2.1.3 - decompress-response@4.2.1: - dependencies: - mimic-response: 2.1.0 - - deep-extend@0.6.0: {} - deepmerge@4.3.1: {} define-data-property@1.1.4: @@ -2508,16 +2316,16 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 - delayed-stream@1.0.0: {} - - delegates@1.0.0: {} - depd@2.0.0: {} destroy@1.2.0: {} detect-libc@1.0.3: {} + dir-glob@3.0.1: + dependencies: + path-type: 4.0.0 + dprint-node@1.0.8: dependencies: detect-libc: 1.0.3 @@ -2528,8 +2336,6 @@ snapshots: es-errors: 1.3.0 gopd: 1.2.0 - duplexer@0.1.2: {} - eastasianwidth@0.2.0: {} ee-first@1.1.1: {} @@ -2542,10 +2348,6 @@ snapshots: encodeurl@2.0.0: {} - end-of-stream@1.4.4: - dependencies: - once: 1.4.0 - entities@4.5.0: {} error-ex@1.3.2: @@ -2633,8 +2435,6 @@ snapshots: escape-string-regexp@1.0.5: {} - esprima@4.0.1: {} - estree-walker@2.0.2: {} etag@1.8.1: {} @@ -2643,8 +2443,6 @@ snapshots: events@3.3.0: {} - expand-template@2.0.3: {} - express-http-proxy@2.1.1: dependencies: debug: 3.2.7 @@ -2689,6 +2487,26 @@ snapshots: transitivePeerDependencies: - supports-color + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fastq@1.18.0: + dependencies: + reusify: 1.0.4 + + fdir@6.4.3(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + finalhandler@1.3.1: dependencies: debug: 2.6.9 @@ -2703,8 +2521,6 @@ snapshots: follow-redirects@1.15.3: {} - follow-redirects@1.15.9: {} - for-each@0.3.3: dependencies: is-callable: 1.2.7 @@ -2714,17 +2530,15 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - form-data@4.0.1: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - forwarded@0.2.0: {} fresh@0.5.2: {} - fs-constants@1.0.0: {} + fs-extra@8.1.0: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 4.0.0 + universalify: 0.1.2 fs.realpath@1.0.0: {} @@ -2746,17 +2560,6 @@ snapshots: functions-have-names@1.2.3: {} - gauge@2.7.4: - dependencies: - aproba: 1.2.0 - console-control-strings: 1.1.0 - has-unicode: 2.0.1 - object-assign: 4.1.1 - signal-exit: 3.0.7 - string-width: 1.0.2 - strip-ansi: 3.0.1 - wide-align: 1.1.5 - get-intrinsic@1.2.4: dependencies: es-errors: 1.3.0 @@ -2784,13 +2587,9 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.2.6 - github-build@1.2.4: + glob-parent@5.1.2: dependencies: - axios: 1.6.0 - transitivePeerDependencies: - - debug - - github-from-package@0.0.0: {} + is-glob: 4.0.3 glob@10.4.5: dependencies: @@ -2824,6 +2623,17 @@ snapshots: define-properties: 1.2.1 gopd: 1.2.0 + globby@10.0.1: + dependencies: + '@types/glob': 7.2.0 + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.3 + glob: 7.2.3 + ignore: 5.3.2 + merge2: 1.4.1 + slash: 3.0.0 + gopd@1.0.1: dependencies: get-intrinsic: 1.2.4 @@ -2832,15 +2642,8 @@ snapshots: graceful-fs@4.2.11: {} - gzip-size@4.1.0: - dependencies: - duplexer: 0.1.2 - pify: 3.0.0 - has-bigints@1.0.2: {} - has-flag@2.0.0: {} - has-flag@3.0.0: {} has-flag@4.0.0: {} @@ -2863,8 +2666,6 @@ snapshots: dependencies: has-symbols: 1.1.0 - has-unicode@2.0.1: {} - hasown@2.0.0: dependencies: function-bind: 1.1.2 @@ -2926,20 +2727,7 @@ snapshots: dependencies: safer-buffer: 2.1.2 - ieee754@1.2.1: {} - - iltorb@2.4.5: - dependencies: - detect-libc: 1.0.3 - nan: 2.22.0 - npmlog: 4.1.2 - prebuild-install: 5.3.6 - which-pm-runs: 1.1.0 - - import-fresh@2.0.0: - dependencies: - caller-path: 2.0.0 - resolve-from: 3.0.0 + ignore@5.3.2: {} inflight@1.0.6: dependencies: @@ -2948,8 +2736,6 @@ snapshots: inherits@2.0.4: {} - ini@1.3.8: {} - internal-slot@1.1.0: dependencies: es-errors: 1.3.0 @@ -2996,22 +2782,22 @@ snapshots: call-bound: 1.0.3 has-tostringtag: 1.0.2 - is-directory@0.3.1: {} + is-extglob@2.1.1: {} is-finalizationregistry@1.1.0: dependencies: call-bind: 1.0.8 - is-fullwidth-code-point@1.0.0: - dependencies: - number-is-nan: 1.0.1 - is-fullwidth-code-point@3.0.0: {} is-generator-function@1.0.10: dependencies: has-tostringtag: 1.0.2 + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + is-map@2.0.3: {} is-module@1.0.0: {} @@ -3023,6 +2809,10 @@ snapshots: call-bound: 1.0.3 has-tostringtag: 1.0.2 + is-number@7.0.0: {} + + is-plain-object@3.0.1: {} + is-reference@1.2.1: dependencies: '@types/estree': 1.0.6 @@ -3066,8 +2856,6 @@ snapshots: call-bind: 1.0.8 get-intrinsic: 1.2.6 - isarray@1.0.0: {} - isarray@2.0.5: {} isexe@2.0.0: {} @@ -3082,18 +2870,21 @@ snapshots: dependencies: '@isaacs/cliui': 8.0.2 + jiti@2.4.2: {} + js-tokens@4.0.0: optional: true - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - json-parse-better-errors@1.0.2: {} + jsonfile@4.0.0: + optionalDependencies: + graceful-fs: 4.2.11 + libphonenumber-js@1.10.49: {} + lilconfig@3.1.3: {} + linkify-it@5.0.0: dependencies: uc.micro: 2.1.0 @@ -3142,8 +2933,15 @@ snapshots: merge-descriptors@1.0.3: {} + merge2@1.4.1: {} + methods@1.1.2: {} + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + mime-db@1.52.0: {} mime-types@2.1.35: @@ -3152,8 +2950,6 @@ snapshots: mime@1.6.0: {} - mimic-response@2.1.0: {} - minimatch@10.0.1: dependencies: brace-expansion: 2.0.1 @@ -3174,8 +2970,6 @@ snapshots: minipass@7.1.2: {} - mkdirp-classic@0.5.3: {} - mkdirp@0.5.6: dependencies: minimist: 1.2.8 @@ -3184,20 +2978,14 @@ snapshots: ms@2.1.3: {} - nan@2.22.0: {} - - napi-build-utils@1.0.2: {} + nanospinner@1.2.2: + dependencies: + picocolors: 1.1.1 negotiator@0.6.3: {} nice-try@1.0.5: {} - node-abi@2.30.1: - dependencies: - semver: 5.7.2 - - noop-logger@0.1.1: {} - normalize-package-data@2.5.0: dependencies: hosted-git-info: 2.8.9 @@ -3217,15 +3005,6 @@ snapshots: shell-quote: 1.8.2 string.prototype.padend: 3.1.6 - npmlog@4.1.2: - dependencies: - are-we-there-yet: 1.1.7 - console-control-strings: 1.1.0 - gauge: 2.7.4 - set-blocking: 2.0.0 - - number-is-nan@1.0.1: {} - object-assign@4.1.1: {} object-inspect@1.13.2: {} @@ -3284,20 +3063,26 @@ snapshots: dependencies: pify: 3.0.0 + path-type@4.0.0: {} + picocolors@1.1.0: optional: true + picocolors@1.1.1: {} + picomatch@2.3.1: {} + picomatch@4.0.2: {} + pidtree@0.3.1: {} pify@3.0.0: {} - playwright-core@1.39.0: {} + playwright-core@1.49.1: {} - playwright@1.39.0: + playwright@1.49.1: dependencies: - playwright-core: 1.39.0 + playwright-core: 1.49.1 optionalDependencies: fsevents: 2.3.2 @@ -3311,30 +3096,6 @@ snapshots: possible-typed-array-names@1.0.0: {} - prebuild-install@5.3.6: - dependencies: - detect-libc: 1.0.3 - expand-template: 2.0.3 - github-from-package: 0.0.0 - minimist: 1.2.8 - mkdirp-classic: 0.5.3 - napi-build-utils: 1.0.2 - node-abi: 2.30.1 - noop-logger: 0.1.1 - npmlog: 4.1.2 - pump: 3.0.2 - rc: 1.2.8 - simple-get: 3.1.1 - tar-fs: 2.1.2 - tunnel-agent: 0.6.0 - which-pm-runs: 1.1.0 - - prettycli@1.4.3: - dependencies: - chalk: 2.1.0 - - process-nextick-args@2.0.1: {} - protobufjs@7.2.5: dependencies: '@protobufjs/aspromise': 1.1.2 @@ -3347,7 +3108,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.10.6 + '@types/node': 22.10.7 long: 5.2.3 proxy-addr@2.0.7: @@ -3355,13 +3116,6 @@ snapshots: forwarded: 0.2.0 ipaddr.js: 1.9.1 - proxy-from-env@1.1.0: {} - - pump@3.0.2: - dependencies: - end-of-stream: 1.4.4 - once: 1.4.0 - punycode.js@2.3.1: {} qs@6.12.3: @@ -3372,6 +3126,8 @@ snapshots: dependencies: side-channel: 1.0.6 + queue-microtask@1.2.3: {} + randombytes@2.1.0: dependencies: safe-buffer: 5.1.2 @@ -3385,34 +3141,13 @@ snapshots: iconv-lite: 0.4.24 unpipe: 1.0.0 - rc@1.2.8: - dependencies: - deep-extend: 0.6.0 - ini: 1.3.8 - minimist: 1.2.8 - strip-json-comments: 2.0.1 - read-pkg@3.0.0: dependencies: load-json-file: 4.0.0 normalize-package-data: 2.5.0 path-type: 3.0.0 - readable-stream@2.3.8: - dependencies: - core-util-is: 1.0.3 - inherits: 2.0.4 - isarray: 1.0.0 - process-nextick-args: 2.0.1 - safe-buffer: 5.1.2 - string_decoder: 1.1.1 - util-deprecate: 1.0.2 - - readable-stream@3.6.2: - dependencies: - inherits: 2.0.4 - string_decoder: 1.3.0 - util-deprecate: 1.0.2 + readdirp@4.1.1: {} reflect-metadata@0.1.13: {} @@ -3436,24 +3171,32 @@ snapshots: requires-port@1.0.0: {} - resolve-from@3.0.0: {} - resolve@1.22.8: dependencies: is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + reusify@1.0.4: {} + rimraf@6.0.1: dependencies: glob: 11.0.1 package-json-from-dist: 1.0.1 - rollup-plugin-dts@6.1.1(rollup@4.24.0)(typescript@5.2.2): + rollup-plugin-copy@3.5.0: + dependencies: + '@types/fs-extra': 8.1.5 + colorette: 1.4.0 + fs-extra: 8.1.0 + globby: 10.0.1 + is-plain-object: 3.0.1 + + rollup-plugin-dts@6.1.1(rollup@4.24.0)(typescript@5.7.3): dependencies: magic-string: 0.30.11 rollup: 4.24.0 - typescript: 5.2.2 + typescript: 5.7.3 optionalDependencies: '@babel/code-frame': 7.25.7 @@ -3479,6 +3222,10 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.24.0 fsevents: 2.3.3 + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + safe-array-concat@1.1.3: dependencies: call-bind: 1.0.8 @@ -3534,8 +3281,6 @@ snapshots: transitivePeerDependencies: - supports-color - set-blocking@2.0.0: {} - set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -3603,17 +3348,19 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 - signal-exit@3.0.7: {} - signal-exit@4.1.0: {} - simple-concat@1.0.1: {} - - simple-get@3.1.1: + size-limit@11.1.6: dependencies: - decompress-response: 4.2.1 - once: 1.4.0 - simple-concat: 1.0.1 + bytes-iec: 3.1.1 + chokidar: 4.0.3 + jiti: 2.4.2 + lilconfig: 3.1.3 + nanospinner: 1.2.2 + picocolors: 1.1.1 + tinyglobby: 0.2.10 + + slash@3.0.0: {} smob@1.5.0: {} @@ -3638,16 +3385,8 @@ snapshots: spdx-license-ids@3.0.20: {} - sprintf-js@1.0.3: {} - statuses@2.0.1: {} - string-width@1.0.2: - dependencies: - code-point-at: 1.1.0 - is-fullwidth-code-point: 1.0.0 - strip-ansi: 3.0.1 - string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -3690,18 +3429,6 @@ snapshots: define-properties: 1.2.1 es-object-atoms: 1.0.0 - string_decoder@1.1.1: - dependencies: - safe-buffer: 5.1.2 - - string_decoder@1.3.0: - dependencies: - safe-buffer: 5.2.1 - - strip-ansi@3.0.1: - dependencies: - ansi-regex: 2.1.1 - strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 @@ -3712,12 +3439,6 @@ snapshots: strip-bom@3.0.0: {} - strip-json-comments@2.0.1: {} - - supports-color@4.5.0: - dependencies: - has-flag: 2.0.0 - supports-color@5.5.0: dependencies: has-flag: 3.0.0 @@ -3728,21 +3449,6 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - tar-fs@2.1.2: - dependencies: - chownr: 1.1.4 - mkdirp-classic: 0.5.3 - pump: 3.0.2 - tar-stream: 2.2.0 - - tar-stream@2.2.0: - dependencies: - bl: 4.1.0 - end-of-stream: 1.4.4 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - terser@5.31.0: dependencies: '@jridgewell/source-map': 0.3.6 @@ -3750,6 +3456,15 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 + tinyglobby@0.2.10: + dependencies: + fdir: 6.4.3(picomatch@4.0.2) + picomatch: 4.0.2 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + toidentifier@1.0.1: {} ts-poet@6.9.0: @@ -3768,11 +3483,7 @@ snapshots: ts-poet: 6.9.0 ts-proto-descriptors: 1.15.0 - tslib@2.6.2: {} - - tunnel-agent@0.6.0: - dependencies: - safe-buffer: 5.2.1 + tslib@2.8.1: {} type-is@1.6.18: dependencies: @@ -3812,24 +3523,24 @@ snapshots: possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.8 - typedoc-gitlab-wiki-theme@2.1.0(typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.2.2))): + typedoc-gitlab-wiki-theme@2.1.0(typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.7.3))): dependencies: - typedoc-plugin-markdown: 4.3.1(typedoc@0.27.3(typescript@5.2.2)) + typedoc-plugin-markdown: 4.3.1(typedoc@0.27.3(typescript@5.7.3)) - typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.2.2)): + typedoc-plugin-markdown@4.3.1(typedoc@0.27.3(typescript@5.7.3)): dependencies: - typedoc: 0.27.3(typescript@5.2.2) + typedoc: 0.27.3(typescript@5.7.3) - typedoc@0.27.3(typescript@5.2.2): + typedoc@0.27.3(typescript@5.7.3): dependencies: '@gerrit0/mini-shiki': 1.24.4 lunr: 2.3.9 markdown-it: 14.1.0 minimatch: 9.0.5 - typescript: 5.2.2 + typescript: 5.7.3 yaml: 2.6.1 - typescript@5.2.2: {} + typescript@5.7.3: {} uc.micro@2.1.0: {} @@ -3840,18 +3551,18 @@ snapshots: has-symbols: 1.1.0 which-boxed-primitive: 1.1.1 - undici-types@5.26.5: {} + undici-types@6.20.0: {} union@0.5.0: dependencies: qs: 6.12.3 + universalify@0.1.2: {} + unpipe@1.0.0: {} url-join@4.0.1: {} - util-deprecate@1.0.2: {} - utils-merge@1.0.1: {} validate-npm-package-license@3.0.4: @@ -3898,8 +3609,6 @@ snapshots: is-weakmap: 2.0.2 is-weakset: 2.0.3 - which-pm-runs@1.1.0: {} - which-typed-array@1.1.16: dependencies: available-typed-arrays: 1.0.7 @@ -3916,10 +3625,6 @@ snapshots: dependencies: isexe: 2.0.0 - wide-align@1.1.5: - dependencies: - string-width: 4.2.3 - wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0 diff --git a/ts/protobuf_patterns/npm-pack.out b/ts/protobuf_patterns/npm-pack.out index 43e7c99cbba6aeda3b53a051e88672d2cb15b398..bd5d0bdd0dff90d7a6ab9e8bf9197ceb45563026 100644 --- a/ts/protobuf_patterns/npm-pack.out +++ b/ts/protobuf_patterns/npm-pack.out @@ -1,5 +1,11 @@ -package/wasm/dist/bundle/index.js +package/wasm/dist/bundle/detailed/index.js +package/wasm/dist/bundle/node.js +package/wasm/dist/bundle/vite.js +package/wasm/dist/bundle/wax.node.js +package/wasm/dist/bundle/wax.web.js +package/wasm/dist/bundle/web.js package/package.json package/LICENSE.md package/README.md package/wasm/dist/bundle/index.d.ts +package/wasm/dist/bundle/wax.common.wasm diff --git a/ts/protobuf_patterns/proto/account_create.d.ts b/ts/protobuf_patterns/proto/account_create.d.ts index 5a55024b744a3d2c479a2e9ddad4e5a52e1ba59e..1f081fe10c36dbbbc5b0c9e3388bd6883ace7a6d 100644 --- a/ts/protobuf_patterns/proto/account_create.d.ts +++ b/ts/protobuf_patterns/proto/account_create.d.ts @@ -33,236 +33,8 @@ export interface account_create { export declare const account_create: { fromJSON(object: any): account_create; toJSON(message: account_create): unknown; - create<I extends { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_2 in Exclude<keyof I["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_5 in Exclude<keyof I["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_7 in Exclude<keyof I["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_8 in Exclude<keyof I["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_10 in Exclude<keyof I, keyof account_create>]: never; }>(base?: I | undefined): account_create; - fromPartial<I_1 extends { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_11 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_12 in Exclude<keyof I_1["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_13 in Exclude<keyof I_1["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_14 in Exclude<keyof I_1["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_15 in Exclude<keyof I_1["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_16 in Exclude<keyof I_1["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_17 in Exclude<keyof I_1["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_18 in Exclude<keyof I_1["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_19 in Exclude<keyof I_1["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_20 in Exclude<keyof I_1["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_21 in Exclude<keyof I_1, keyof account_create>]: never; }>(object: I_1): account_create; + create<I extends Exact<DeepPartial<account_create>, I>>(base?: I): account_create; + fromPartial<I extends Exact<DeepPartial<account_create>, I>>(object: I): account_create; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_create.js b/ts/protobuf_patterns/proto/account_create.js index 8f3f3698fa09394e98f8de6626fc3bca0624e90d..ea94d34283a1995462f60d135fea4e6e7136eb8e 100644 --- a/ts/protobuf_patterns/proto/account_create.js +++ b/ts/protobuf_patterns/proto/account_create.js @@ -56,14 +56,13 @@ export const account_create = { return obj; }, create(base) { - return account_create.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_create.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseaccount_create(); message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; - message.new_account_name = (_b = object.new_account_name) !== null && _b !== void 0 ? _b : ""; + message.creator = object.creator ?? ""; + message.new_account_name = object.new_account_name ?? ""; message.owner = (object.owner !== undefined && object.owner !== null) ? authority.fromPartial(object.owner) : undefined; @@ -73,8 +72,8 @@ export const account_create = { message.posting = (object.posting !== undefined && object.posting !== null) ? authority.fromPartial(object.posting) : undefined; - message.memo_key = (_c = object.memo_key) !== null && _c !== void 0 ? _c : ""; - message.json_metadata = (_d = object.json_metadata) !== null && _d !== void 0 ? _d : ""; + message.memo_key = object.memo_key ?? ""; + message.json_metadata = object.json_metadata ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/account_create_with_delegation.d.ts b/ts/protobuf_patterns/proto/account_create_with_delegation.d.ts index 04191939400b16925f8125ae2270aa9b0879dcd3..2cba2436c6f12ba17a83b9fc85075c7de5ec26cc 100644 --- a/ts/protobuf_patterns/proto/account_create_with_delegation.d.ts +++ b/ts/protobuf_patterns/proto/account_create_with_delegation.d.ts @@ -22,288 +22,8 @@ export interface account_create_with_delegation { export declare const account_create_with_delegation: { fromJSON(object: any): account_create_with_delegation; toJSON(message: account_create_with_delegation): unknown; - create<I extends { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["delegation"], keyof asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_2 in Exclude<keyof I["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_5 in Exclude<keyof I["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_6 in Exclude<keyof I["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_8 in Exclude<keyof I["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_9 in Exclude<keyof I["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_10 in Exclude<keyof I["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_11 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_12 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_13 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_14 in Exclude<keyof I, keyof account_create_with_delegation>]: never; }>(base?: I | undefined): account_create_with_delegation; - fromPartial<I_1 extends { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_15 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_16 in Exclude<keyof I_1["delegation"], keyof asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_17 in Exclude<keyof I_1["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_18 in Exclude<keyof I_1["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_19 in Exclude<keyof I_1["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_20 in Exclude<keyof I_1["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_21 in Exclude<keyof I_1["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_22 in Exclude<keyof I_1["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_23 in Exclude<keyof I_1["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_24 in Exclude<keyof I_1["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_25 in Exclude<keyof I_1["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_26 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_27 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_28 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_29 in Exclude<keyof I_1, keyof account_create_with_delegation>]: never; }>(object: I_1): account_create_with_delegation; + create<I extends Exact<DeepPartial<account_create_with_delegation>, I>>(base?: I): account_create_with_delegation; + fromPartial<I extends Exact<DeepPartial<account_create_with_delegation>, I>>(object: I): account_create_with_delegation; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_create_with_delegation.js b/ts/protobuf_patterns/proto/account_create_with_delegation.js index ed0c97eef04cb1e534c3770e0108fac0296a12c9..5384cb365cfbd3b7bb5027bf2cd4b0bbfbd511af 100644 --- a/ts/protobuf_patterns/proto/account_create_with_delegation.js +++ b/ts/protobuf_patterns/proto/account_create_with_delegation.js @@ -29,13 +29,12 @@ export const account_create_with_delegation = { posting: isSet(object.posting) ? authority.fromJSON(object.posting) : undefined, memo_key: isSet(object.memo_key) ? globalThis.String(object.memo_key) : "", json_metadata: isSet(object.json_metadata) ? globalThis.String(object.json_metadata) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.fee !== undefined) { obj.fee = asset.toJSON(message.fee); @@ -64,23 +63,22 @@ export const account_create_with_delegation = { if (message.json_metadata !== undefined) { obj.json_metadata = message.json_metadata; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return account_create_with_delegation.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_create_with_delegation.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e; const message = createBaseaccount_create_with_delegation(); message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; message.delegation = (object.delegation !== undefined && object.delegation !== null) ? asset.fromPartial(object.delegation) : undefined; - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; - message.new_account_name = (_b = object.new_account_name) !== null && _b !== void 0 ? _b : ""; + message.creator = object.creator ?? ""; + message.new_account_name = object.new_account_name ?? ""; message.owner = (object.owner !== undefined && object.owner !== null) ? authority.fromPartial(object.owner) : undefined; @@ -90,9 +88,9 @@ export const account_create_with_delegation = { message.posting = (object.posting !== undefined && object.posting !== null) ? authority.fromPartial(object.posting) : undefined; - message.memo_key = (_c = object.memo_key) !== null && _c !== void 0 ? _c : ""; - message.json_metadata = (_d = object.json_metadata) !== null && _d !== void 0 ? _d : ""; - message.extensions = ((_e = object.extensions) === null || _e === void 0 ? void 0 : _e.map((e) => future_extensions.fromPartial(e))) || []; + message.memo_key = object.memo_key ?? ""; + message.json_metadata = object.json_metadata ?? ""; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/account_created.d.ts b/ts/protobuf_patterns/proto/account_created.d.ts index 8352491df3944971d14763f09268d0d62fc353b1..2af9898e48330dd37cc3851267484b112886f1e6 100644 --- a/ts/protobuf_patterns/proto/account_created.d.ts +++ b/ts/protobuf_patterns/proto/account_created.d.ts @@ -19,76 +19,8 @@ export interface account_created { export declare const account_created: { fromJSON(object: any): account_created; toJSON(message: account_created): unknown; - create<I extends { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["initial_vesting_shares"], keyof asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["initial_delegation"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof account_created>]: never; }>(base?: I | undefined): account_created; - fromPartial<I_1 extends { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["initial_vesting_shares"], keyof asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["initial_delegation"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof account_created>]: never; }>(object: I_1): account_created; + create<I extends Exact<DeepPartial<account_created>, I>>(base?: I): account_created; + fromPartial<I extends Exact<DeepPartial<account_created>, I>>(object: I): account_created; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_created.js b/ts/protobuf_patterns/proto/account_created.js index 692c09ffd75943f25e432b1272ecacbce0110cb1..ae0c4b57a1379033f61be991a1398b2e60472838 100644 --- a/ts/protobuf_patterns/proto/account_created.js +++ b/ts/protobuf_patterns/proto/account_created.js @@ -32,13 +32,12 @@ export const account_created = { return obj; }, create(base) { - return account_created.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_created.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseaccount_created(); - message.new_account_name = (_a = object.new_account_name) !== null && _a !== void 0 ? _a : ""; - message.creator = (_b = object.creator) !== null && _b !== void 0 ? _b : ""; + message.new_account_name = object.new_account_name ?? ""; + message.creator = object.creator ?? ""; message.initial_vesting_shares = (object.initial_vesting_shares !== undefined && object.initial_vesting_shares !== null) ? asset.fromPartial(object.initial_vesting_shares) diff --git a/ts/protobuf_patterns/proto/account_update.d.ts b/ts/protobuf_patterns/proto/account_update.d.ts index e2505c887baf470a89b7efe62fc41502a2ff75b9..166b103cf3ee8738d68b0110671da36dfe1fa5d6 100644 --- a/ts/protobuf_patterns/proto/account_update.d.ts +++ b/ts/protobuf_patterns/proto/account_update.d.ts @@ -39,204 +39,8 @@ export interface account_update { export declare const account_update: { fromJSON(object: any): account_update; toJSON(message: account_update): unknown; - create<I extends { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_6 in Exclude<keyof I["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_7 in Exclude<keyof I["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_8 in Exclude<keyof I["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_9 in Exclude<keyof I, keyof account_update>]: never; }>(base?: I | undefined): account_update; - fromPartial<I_1 extends { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_10 in Exclude<keyof I_1["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_11 in Exclude<keyof I_1["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_12 in Exclude<keyof I_1["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_13 in Exclude<keyof I_1["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_14 in Exclude<keyof I_1["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I_1["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_16 in Exclude<keyof I_1["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_17 in Exclude<keyof I_1["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_18 in Exclude<keyof I_1["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_19 in Exclude<keyof I_1, keyof account_update>]: never; }>(object: I_1): account_update; + create<I extends Exact<DeepPartial<account_update>, I>>(base?: I): account_update; + fromPartial<I extends Exact<DeepPartial<account_update>, I>>(object: I): account_update; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_update.js b/ts/protobuf_patterns/proto/account_update.js index ca33fc5807344151d138642871eaa251ba67e3fa..dd7db2a7def8c1a84924ae575bef2a66ebe2a781 100644 --- a/ts/protobuf_patterns/proto/account_update.js +++ b/ts/protobuf_patterns/proto/account_update.js @@ -38,12 +38,11 @@ export const account_update = { return obj; }, create(base) { - return account_update.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_update.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseaccount_update(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; message.owner = (object.owner !== undefined && object.owner !== null) ? authority.fromPartial(object.owner) : undefined; @@ -53,8 +52,8 @@ export const account_update = { message.posting = (object.posting !== undefined && object.posting !== null) ? authority.fromPartial(object.posting) : undefined; - message.memo_key = (_b = object.memo_key) !== null && _b !== void 0 ? _b : ""; - message.json_metadata = (_c = object.json_metadata) !== null && _c !== void 0 ? _c : ""; + message.memo_key = object.memo_key ?? ""; + message.json_metadata = object.json_metadata ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/account_update2.d.ts b/ts/protobuf_patterns/proto/account_update2.d.ts index 94d6a2b7516a020f32661dc847ffdb1168d1ce87..5995c34e2cb1e70647577ebf69c059bfc24c575f 100644 --- a/ts/protobuf_patterns/proto/account_update2.d.ts +++ b/ts/protobuf_patterns/proto/account_update2.d.ts @@ -70,232 +70,8 @@ export interface account_update2 { export declare const account_update2: { fromJSON(object: any): account_update2; toJSON(message: account_update2): unknown; - create<I extends { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_6 in Exclude<keyof I["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_7 in Exclude<keyof I["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_8 in Exclude<keyof I["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_9 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_10 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_11 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_12 in Exclude<keyof I, keyof account_update2>]: never; }>(base?: I | undefined): account_update2; - fromPartial<I_1 extends { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_13 in Exclude<keyof I_1["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_14 in Exclude<keyof I_1["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I_1["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_16 in Exclude<keyof I_1["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_17 in Exclude<keyof I_1["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_18 in Exclude<keyof I_1["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_19 in Exclude<keyof I_1["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_20 in Exclude<keyof I_1["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_21 in Exclude<keyof I_1["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_22 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_23 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_24 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_25 in Exclude<keyof I_1, keyof account_update2>]: never; }>(object: I_1): account_update2; + create<I extends Exact<DeepPartial<account_update2>, I>>(base?: I): account_update2; + fromPartial<I extends Exact<DeepPartial<account_update2>, I>>(object: I): account_update2; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_update2.js b/ts/protobuf_patterns/proto/account_update2.js index 15d68990da0f463073cf41916f802bd3af4ea5ca..ad2d271ca3f36c27a6c75a3c7627ca0a070dd2ea 100644 --- a/ts/protobuf_patterns/proto/account_update2.js +++ b/ts/protobuf_patterns/proto/account_update2.js @@ -15,13 +15,12 @@ export const account_update2 = { memo_key: isSet(object.memo_key) ? globalThis.String(object.memo_key) : undefined, json_metadata: isSet(object.json_metadata) ? globalThis.String(object.json_metadata) : "", posting_json_metadata: isSet(object.posting_json_metadata) ? globalThis.String(object.posting_json_metadata) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.account !== undefined) { obj.account = message.account; @@ -44,18 +43,17 @@ export const account_update2 = { if (message.posting_json_metadata !== undefined) { obj.posting_json_metadata = message.posting_json_metadata; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return account_update2.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_update2.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e; const message = createBaseaccount_update2(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; message.owner = (object.owner !== undefined && object.owner !== null) ? authority.fromPartial(object.owner) : undefined; @@ -65,10 +63,10 @@ export const account_update2 = { message.posting = (object.posting !== undefined && object.posting !== null) ? authority.fromPartial(object.posting) : undefined; - message.memo_key = (_b = object.memo_key) !== null && _b !== void 0 ? _b : "STM1111111111111111111111111111111114T1Anm"; - message.json_metadata = (_c = object.json_metadata) !== null && _c !== void 0 ? _c : ""; - message.posting_json_metadata = (_d = object.posting_json_metadata) !== null && _d !== void 0 ? _d : ""; - message.extensions = ((_e = object.extensions) === null || _e === void 0 ? void 0 : _e.map((e) => future_extensions.fromPartial(e))) || []; + message.memo_key = object.memo_key ?? "STM1111111111111111111111111111111114T1Anm"; + message.json_metadata = object.json_metadata ?? ""; + message.posting_json_metadata = object.posting_json_metadata ?? ""; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/account_witness_proxy.d.ts b/ts/protobuf_patterns/proto/account_witness_proxy.d.ts index bc1090eca4ca0e89fbffa038b89ccf2d613adb30..12f3ab18e94087f0d9e3b9e65e7c70e49442e02d 100644 --- a/ts/protobuf_patterns/proto/account_witness_proxy.d.ts +++ b/ts/protobuf_patterns/proto/account_witness_proxy.d.ts @@ -25,20 +25,8 @@ export interface account_witness_proxy { export declare const account_witness_proxy: { fromJSON(object: any): account_witness_proxy; toJSON(message: account_witness_proxy): unknown; - create<I extends { - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K in Exclude<keyof I, keyof account_witness_proxy>]: never; }>(base?: I | undefined): account_witness_proxy; - fromPartial<I_1 extends { - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof account_witness_proxy>]: never; }>(object: I_1): account_witness_proxy; + create<I extends Exact<DeepPartial<account_witness_proxy>, I>>(base?: I): account_witness_proxy; + fromPartial<I extends Exact<DeepPartial<account_witness_proxy>, I>>(object: I): account_witness_proxy; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_witness_proxy.js b/ts/protobuf_patterns/proto/account_witness_proxy.js index 621cc5b9bb4542eaaa4c200ab2e013999aee519a..70026713f5c989da6360521a5fa6caa655f349a1 100644 --- a/ts/protobuf_patterns/proto/account_witness_proxy.js +++ b/ts/protobuf_patterns/proto/account_witness_proxy.js @@ -21,13 +21,12 @@ export const account_witness_proxy = { return obj; }, create(base) { - return account_witness_proxy.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_witness_proxy.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseaccount_witness_proxy(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.proxy = (_b = object.proxy) !== null && _b !== void 0 ? _b : ""; + message.account = object.account ?? ""; + message.proxy = object.proxy ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/account_witness_vote.d.ts b/ts/protobuf_patterns/proto/account_witness_vote.d.ts index 0dc14ddbb56531a099cdd34151fc7f79debe7599..bebed97802dc8c94b66f7832e790820d6af00b57 100644 --- a/ts/protobuf_patterns/proto/account_witness_vote.d.ts +++ b/ts/protobuf_patterns/proto/account_witness_vote.d.ts @@ -23,24 +23,8 @@ export interface account_witness_vote { export declare const account_witness_vote: { fromJSON(object: any): account_witness_vote; toJSON(message: account_witness_vote): unknown; - create<I extends { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K in Exclude<keyof I, keyof account_witness_vote>]: never; }>(base?: I | undefined): account_witness_vote; - fromPartial<I_1 extends { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof account_witness_vote>]: never; }>(object: I_1): account_witness_vote; + create<I extends Exact<DeepPartial<account_witness_vote>, I>>(base?: I): account_witness_vote; + fromPartial<I extends Exact<DeepPartial<account_witness_vote>, I>>(object: I): account_witness_vote; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/account_witness_vote.js b/ts/protobuf_patterns/proto/account_witness_vote.js index fcf25819b472dcc0766fe7d4f0e8c0d844e3b091..ae145717e5903698417fa3f9a834cb44a66571f2 100644 --- a/ts/protobuf_patterns/proto/account_witness_vote.js +++ b/ts/protobuf_patterns/proto/account_witness_vote.js @@ -25,14 +25,13 @@ export const account_witness_vote = { return obj; }, create(base) { - return account_witness_vote.fromPartial(base !== null && base !== void 0 ? base : {}); + return account_witness_vote.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseaccount_witness_vote(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.witness = (_b = object.witness) !== null && _b !== void 0 ? _b : ""; - message.approve = (_c = object.approve) !== null && _c !== void 0 ? _c : false; + message.account = object.account ?? ""; + message.witness = object.witness ?? ""; + message.approve = object.approve ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/asset.d.ts b/ts/protobuf_patterns/proto/asset.d.ts index ea5347d7a1f47b9389b4fd1246006525388eb063..c44922e0173bb15e2e53c25bcd14228450200bd7 100644 --- a/ts/protobuf_patterns/proto/asset.d.ts +++ b/ts/protobuf_patterns/proto/asset.d.ts @@ -7,24 +7,8 @@ export interface asset { export declare const asset: { fromJSON(object: any): asset; toJSON(message: asset): unknown; - create<I extends { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I, keyof asset>]: never; }>(base?: I | undefined): asset; - fromPartial<I_1 extends { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof asset>]: never; }>(object: I_1): asset; + create<I extends Exact<DeepPartial<asset>, I>>(base?: I): asset; + fromPartial<I extends Exact<DeepPartial<asset>, I>>(object: I): asset; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/asset.js b/ts/protobuf_patterns/proto/asset.js index 5bfaecd3b875d3b96bbd546fcf2ce093e07dfc8d..96f4271a694cc861b50e6d9ee4f8ac0cf40b670b 100644 --- a/ts/protobuf_patterns/proto/asset.js +++ b/ts/protobuf_patterns/proto/asset.js @@ -25,14 +25,13 @@ export const asset = { return obj; }, create(base) { - return asset.fromPartial(base !== null && base !== void 0 ? base : {}); + return asset.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseasset(); - message.amount = (_a = object.amount) !== null && _a !== void 0 ? _a : ""; - message.precision = (_b = object.precision) !== null && _b !== void 0 ? _b : 0; - message.nai = (_c = object.nai) !== null && _c !== void 0 ? _c : ""; + message.amount = object.amount ?? ""; + message.precision = object.precision ?? 0; + message.nai = object.nai ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/author_reward.d.ts b/ts/protobuf_patterns/proto/author_reward.d.ts index 62afc8a9229ef566e133f031db491b6c635edcb5..2bee677cc0c90aecf96f75fd78f97a2c42afc2c0 100644 --- a/ts/protobuf_patterns/proto/author_reward.d.ts +++ b/ts/protobuf_patterns/proto/author_reward.d.ts @@ -26,136 +26,8 @@ export interface author_reward { export declare const author_reward: { fromJSON(object: any): author_reward; toJSON(message: author_reward): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_payout"], keyof asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_payout"], keyof asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["vesting_payout"], keyof asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I["curators_vesting_payout"], keyof asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_4 in Exclude<keyof I, keyof author_reward>]: never; }>(base?: I | undefined): author_reward; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["hbd_payout"], keyof asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["hive_payout"], keyof asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["vesting_payout"], keyof asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_8 in Exclude<keyof I_1["curators_vesting_payout"], keyof asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof author_reward>]: never; }>(object: I_1): author_reward; + create<I extends Exact<DeepPartial<author_reward>, I>>(base?: I): author_reward; + fromPartial<I extends Exact<DeepPartial<author_reward>, I>>(object: I): author_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/author_reward.js b/ts/protobuf_patterns/proto/author_reward.js index 389659604f4db27dbd1f9b54edbe20140bbe26b2..8e241b74abca92e9712ed3d6978c956fb36a5dd0 100644 --- a/ts/protobuf_patterns/proto/author_reward.js +++ b/ts/protobuf_patterns/proto/author_reward.js @@ -54,13 +54,12 @@ export const author_reward = { return obj; }, create(base) { - return author_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return author_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseauthor_reward(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; message.hbd_payout = (object.hbd_payout !== undefined && object.hbd_payout !== null) ? asset.fromPartial(object.hbd_payout) : undefined; @@ -74,7 +73,7 @@ export const author_reward = { (object.curators_vesting_payout !== undefined && object.curators_vesting_payout !== null) ? asset.fromPartial(object.curators_vesting_payout) : undefined; - message.payout_must_be_claimed = (_c = object.payout_must_be_claimed) !== null && _c !== void 0 ? _c : false; + message.payout_must_be_claimed = object.payout_must_be_claimed ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/authority.d.ts b/ts/protobuf_patterns/proto/authority.d.ts index 53199551a4cc2675ca4b1fd65f1c37ac606270a5..61b34283ad5288c0f1f7a57291026d989b3b9af5 100644 --- a/ts/protobuf_patterns/proto/authority.d.ts +++ b/ts/protobuf_patterns/proto/authority.d.ts @@ -19,84 +19,20 @@ export interface authority_KeyAuthsEntry { export declare const authority: { fromJSON(object: any): authority; toJSON(message: authority): unknown; - create<I extends { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof authority>]: never; }>(base?: I | undefined): authority; - fromPartial<I_1 extends { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I_1["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I_1["key_auths"], string | number>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof authority>]: never; }>(object: I_1): authority; + create<I extends Exact<DeepPartial<authority>, I>>(base?: I): authority; + fromPartial<I extends Exact<DeepPartial<authority>, I>>(object: I): authority; }; export declare const authority_AccountAuthsEntry: { fromJSON(object: any): authority_AccountAuthsEntry; toJSON(message: authority_AccountAuthsEntry): unknown; - create<I extends { - key?: string | undefined; - value?: number | undefined; - } & { - key?: string | undefined; - value?: number | undefined; - } & { [K in Exclude<keyof I, keyof authority_AccountAuthsEntry>]: never; }>(base?: I | undefined): authority_AccountAuthsEntry; - fromPartial<I_1 extends { - key?: string | undefined; - value?: number | undefined; - } & { - key?: string | undefined; - value?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof authority_AccountAuthsEntry>]: never; }>(object: I_1): authority_AccountAuthsEntry; + create<I extends Exact<DeepPartial<authority_AccountAuthsEntry>, I>>(base?: I): authority_AccountAuthsEntry; + fromPartial<I extends Exact<DeepPartial<authority_AccountAuthsEntry>, I>>(object: I): authority_AccountAuthsEntry; }; export declare const authority_KeyAuthsEntry: { fromJSON(object: any): authority_KeyAuthsEntry; toJSON(message: authority_KeyAuthsEntry): unknown; - create<I extends { - key?: string | undefined; - value?: number | undefined; - } & { - key?: string | undefined; - value?: number | undefined; - } & { [K in Exclude<keyof I, keyof authority_KeyAuthsEntry>]: never; }>(base?: I | undefined): authority_KeyAuthsEntry; - fromPartial<I_1 extends { - key?: string | undefined; - value?: number | undefined; - } & { - key?: string | undefined; - value?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof authority_KeyAuthsEntry>]: never; }>(object: I_1): authority_KeyAuthsEntry; + create<I extends Exact<DeepPartial<authority_KeyAuthsEntry>, I>>(base?: I): authority_KeyAuthsEntry; + fromPartial<I extends Exact<DeepPartial<authority_KeyAuthsEntry>, I>>(object: I): authority_KeyAuthsEntry; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/authority.js b/ts/protobuf_patterns/proto/authority.js index 41230fb19459eb20db992a0a0313aaeb9e7eb76c..88d50149fb4e428384dc719f6e0160790c33c675 100644 --- a/ts/protobuf_patterns/proto/authority.js +++ b/ts/protobuf_patterns/proto/authority.js @@ -47,19 +47,18 @@ export const authority = { return obj; }, create(base) { - return authority.fromPartial(base !== null && base !== void 0 ? base : {}); + return authority.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseauthority(); - message.weight_threshold = (_a = object.weight_threshold) !== null && _a !== void 0 ? _a : 0; - message.account_auths = Object.entries((_b = object.account_auths) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => { + message.weight_threshold = object.weight_threshold ?? 0; + message.account_auths = Object.entries(object.account_auths ?? {}).reduce((acc, [key, value]) => { if (value !== undefined) { acc[key] = globalThis.Number(value); } return acc; }, {}); - message.key_auths = Object.entries((_c = object.key_auths) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => { + message.key_auths = Object.entries(object.key_auths ?? {}).reduce((acc, [key, value]) => { if (value !== undefined) { acc[key] = globalThis.Number(value); } @@ -89,13 +88,12 @@ export const authority_AccountAuthsEntry = { return obj; }, create(base) { - return authority_AccountAuthsEntry.fromPartial(base !== null && base !== void 0 ? base : {}); + return authority_AccountAuthsEntry.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseauthority_AccountAuthsEntry(); - message.key = (_a = object.key) !== null && _a !== void 0 ? _a : ""; - message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0; + message.key = object.key ?? ""; + message.value = object.value ?? 0; return message; }, }; @@ -120,13 +118,12 @@ export const authority_KeyAuthsEntry = { return obj; }, create(base) { - return authority_KeyAuthsEntry.fromPartial(base !== null && base !== void 0 ? base : {}); + return authority_KeyAuthsEntry.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseauthority_KeyAuthsEntry(); - message.key = (_a = object.key) !== null && _a !== void 0 ? _a : ""; - message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0; + message.key = object.key ?? ""; + message.value = object.value ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/cancel_transfer_from_savings.d.ts b/ts/protobuf_patterns/proto/cancel_transfer_from_savings.d.ts index d957fd10430790e640f2e8f6d43d84f5afdb68c1..d777294c2dd45c11d1576af21cdd4ccd3fef1986 100644 --- a/ts/protobuf_patterns/proto/cancel_transfer_from_savings.d.ts +++ b/ts/protobuf_patterns/proto/cancel_transfer_from_savings.d.ts @@ -13,20 +13,8 @@ export interface cancel_transfer_from_savings { export declare const cancel_transfer_from_savings: { fromJSON(object: any): cancel_transfer_from_savings; toJSON(message: cancel_transfer_from_savings): unknown; - create<I extends { - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K in Exclude<keyof I, keyof cancel_transfer_from_savings>]: never; }>(base?: I | undefined): cancel_transfer_from_savings; - fromPartial<I_1 extends { - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof cancel_transfer_from_savings>]: never; }>(object: I_1): cancel_transfer_from_savings; + create<I extends Exact<DeepPartial<cancel_transfer_from_savings>, I>>(base?: I): cancel_transfer_from_savings; + fromPartial<I extends Exact<DeepPartial<cancel_transfer_from_savings>, I>>(object: I): cancel_transfer_from_savings; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/cancel_transfer_from_savings.js b/ts/protobuf_patterns/proto/cancel_transfer_from_savings.js index 3fb8c900a43ddbc6ea72fd9b79476fd24a3651d5..c57a19e896f98fea30cedfb2b4edd8c1d27bcf4c 100644 --- a/ts/protobuf_patterns/proto/cancel_transfer_from_savings.js +++ b/ts/protobuf_patterns/proto/cancel_transfer_from_savings.js @@ -21,13 +21,12 @@ export const cancel_transfer_from_savings = { return obj; }, create(base) { - return cancel_transfer_from_savings.fromPartial(base !== null && base !== void 0 ? base : {}); + return cancel_transfer_from_savings.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasecancel_transfer_from_savings(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.request_id = (_b = object.request_id) !== null && _b !== void 0 ? _b : 0; + message.from_account = object.from_account ?? ""; + message.request_id = object.request_id ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/change_recovery_account.d.ts b/ts/protobuf_patterns/proto/change_recovery_account.d.ts index 3b57901cd6ec23ee3e6708aa6c3993fb3e650357..4d081d1d46b47c41785f36e983757db740abc997 100644 --- a/ts/protobuf_patterns/proto/change_recovery_account.d.ts +++ b/ts/protobuf_patterns/proto/change_recovery_account.d.ts @@ -22,44 +22,8 @@ export interface change_recovery_account { export declare const change_recovery_account: { fromJSON(object: any): change_recovery_account; toJSON(message: change_recovery_account): unknown; - create<I extends { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_2 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof change_recovery_account>]: never; }>(base?: I | undefined): change_recovery_account; - fromPartial<I_1 extends { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_4 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_6 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof change_recovery_account>]: never; }>(object: I_1): change_recovery_account; + create<I extends Exact<DeepPartial<change_recovery_account>, I>>(base?: I): change_recovery_account; + fromPartial<I extends Exact<DeepPartial<change_recovery_account>, I>>(object: I): change_recovery_account; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/change_recovery_account.js b/ts/protobuf_patterns/proto/change_recovery_account.js index b9065acce5509f7231997fc981952845a8b07923..01cb1fe5f8216809881bb4eb45787f344593ee7c 100644 --- a/ts/protobuf_patterns/proto/change_recovery_account.js +++ b/ts/protobuf_patterns/proto/change_recovery_account.js @@ -9,13 +9,12 @@ export const change_recovery_account = { return { account_to_recover: isSet(object.account_to_recover) ? globalThis.String(object.account_to_recover) : "", new_recovery_account: isSet(object.new_recovery_account) ? globalThis.String(object.new_recovery_account) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.account_to_recover !== undefined) { obj.account_to_recover = message.account_to_recover; @@ -23,20 +22,19 @@ export const change_recovery_account = { if (message.new_recovery_account !== undefined) { obj.new_recovery_account = message.new_recovery_account; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return change_recovery_account.fromPartial(base !== null && base !== void 0 ? base : {}); + return change_recovery_account.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasechange_recovery_account(); - message.account_to_recover = (_a = object.account_to_recover) !== null && _a !== void 0 ? _a : ""; - message.new_recovery_account = (_b = object.new_recovery_account) !== null && _b !== void 0 ? _b : ""; - message.extensions = ((_c = object.extensions) === null || _c === void 0 ? void 0 : _c.map((e) => future_extensions.fromPartial(e))) || []; + message.account_to_recover = object.account_to_recover ?? ""; + message.new_recovery_account = object.new_recovery_account ?? ""; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/changed_recovery_account.d.ts b/ts/protobuf_patterns/proto/changed_recovery_account.d.ts index 2fee0bfca74817e606533567283c126ba72de0e1..b5553aeadd3d809883bc48af4148e801ff0c45b5 100644 --- a/ts/protobuf_patterns/proto/changed_recovery_account.d.ts +++ b/ts/protobuf_patterns/proto/changed_recovery_account.d.ts @@ -14,24 +14,8 @@ export interface changed_recovery_account { export declare const changed_recovery_account: { fromJSON(object: any): changed_recovery_account; toJSON(message: changed_recovery_account): unknown; - create<I extends { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K in Exclude<keyof I, keyof changed_recovery_account>]: never; }>(base?: I | undefined): changed_recovery_account; - fromPartial<I_1 extends { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof changed_recovery_account>]: never; }>(object: I_1): changed_recovery_account; + create<I extends Exact<DeepPartial<changed_recovery_account>, I>>(base?: I): changed_recovery_account; + fromPartial<I extends Exact<DeepPartial<changed_recovery_account>, I>>(object: I): changed_recovery_account; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/changed_recovery_account.js b/ts/protobuf_patterns/proto/changed_recovery_account.js index f8abd8dac254aaaa737c84536765f954c672ddf0..5364791ef83a3852ec39cdad6f4d8f7858b16335 100644 --- a/ts/protobuf_patterns/proto/changed_recovery_account.js +++ b/ts/protobuf_patterns/proto/changed_recovery_account.js @@ -25,14 +25,13 @@ export const changed_recovery_account = { return obj; }, create(base) { - return changed_recovery_account.fromPartial(base !== null && base !== void 0 ? base : {}); + return changed_recovery_account.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasechanged_recovery_account(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.old_recovery_account = (_b = object.old_recovery_account) !== null && _b !== void 0 ? _b : ""; - message.new_recovery_account = (_c = object.new_recovery_account) !== null && _c !== void 0 ? _c : ""; + message.account = object.account ?? ""; + message.old_recovery_account = object.old_recovery_account ?? ""; + message.new_recovery_account = object.new_recovery_account ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/claim_account.d.ts b/ts/protobuf_patterns/proto/claim_account.d.ts index bd50282b5bb734e150a2cca7ff54f67af70907fe..3d831b432d1b45b2bc53fc0fef63f22d9332665c 100644 --- a/ts/protobuf_patterns/proto/claim_account.d.ts +++ b/ts/protobuf_patterns/proto/claim_account.d.ts @@ -24,68 +24,8 @@ export interface claim_account { export declare const claim_account: { fromJSON(object: any): claim_account; toJSON(message: claim_account): unknown; - create<I extends { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_3 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof claim_account>]: never; }>(base?: I | undefined): claim_account; - fromPartial<I_1 extends { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof claim_account>]: never; }>(object: I_1): claim_account; + create<I extends Exact<DeepPartial<claim_account>, I>>(base?: I): claim_account; + fromPartial<I extends Exact<DeepPartial<claim_account>, I>>(object: I): claim_account; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/claim_account.js b/ts/protobuf_patterns/proto/claim_account.js index 9728276f93384b9a4d74d94ec280e7c4f0330f7c..a796e1577d21b9abe968ae8161aeacac3bc43c56 100644 --- a/ts/protobuf_patterns/proto/claim_account.js +++ b/ts/protobuf_patterns/proto/claim_account.js @@ -10,13 +10,12 @@ export const claim_account = { return { creator: isSet(object.creator) ? globalThis.String(object.creator) : "", fee: isSet(object.fee) ? asset.fromJSON(object.fee) : undefined, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.creator !== undefined) { obj.creator = message.creator; @@ -24,20 +23,19 @@ export const claim_account = { if (message.fee !== undefined) { obj.fee = asset.toJSON(message.fee); } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return claim_account.fromPartial(base !== null && base !== void 0 ? base : {}); + return claim_account.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseclaim_account(); - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; + message.creator = object.creator ?? ""; message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; - message.extensions = ((_b = object.extensions) === null || _b === void 0 ? void 0 : _b.map((e) => future_extensions.fromPartial(e))) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/claim_reward_balance.d.ts b/ts/protobuf_patterns/proto/claim_reward_balance.d.ts index 6f95c4f526e6742143a0fa2a65c9d3810e7faf61..58d7720877cb08dadb488803322de4cb4a01d14f 100644 --- a/ts/protobuf_patterns/proto/claim_reward_balance.d.ts +++ b/ts/protobuf_patterns/proto/claim_reward_balance.d.ts @@ -21,100 +21,8 @@ export interface claim_reward_balance { export declare const claim_reward_balance: { fromJSON(object: any): claim_reward_balance; toJSON(message: claim_reward_balance): unknown; - create<I extends { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["reward_hive"], keyof asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["reward_hbd"], keyof asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["reward_vests"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof claim_reward_balance>]: never; }>(base?: I | undefined): claim_reward_balance; - fromPartial<I_1 extends { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["reward_hive"], keyof asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["reward_hbd"], keyof asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["reward_vests"], keyof asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof claim_reward_balance>]: never; }>(object: I_1): claim_reward_balance; + create<I extends Exact<DeepPartial<claim_reward_balance>, I>>(base?: I): claim_reward_balance; + fromPartial<I extends Exact<DeepPartial<claim_reward_balance>, I>>(object: I): claim_reward_balance; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/claim_reward_balance.js b/ts/protobuf_patterns/proto/claim_reward_balance.js index 69a47eb7a8a5365e7feb58229742e87dbf5e5ab8..a950d77198e322f656ab3e3900f91fe4f2edcba8 100644 --- a/ts/protobuf_patterns/proto/claim_reward_balance.js +++ b/ts/protobuf_patterns/proto/claim_reward_balance.js @@ -30,12 +30,11 @@ export const claim_reward_balance = { return obj; }, create(base) { - return claim_reward_balance.fromPartial(base !== null && base !== void 0 ? base : {}); + return claim_reward_balance.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseclaim_reward_balance(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; message.reward_hive = (object.reward_hive !== undefined && object.reward_hive !== null) ? asset.fromPartial(object.reward_hive) : undefined; diff --git a/ts/protobuf_patterns/proto/clear_null_account_balance.d.ts b/ts/protobuf_patterns/proto/clear_null_account_balance.d.ts index b6d299591bd94cabc4d21c8a41c13eedeeaca2ef..c5ccd14a11822546f1e42e36d626f613c7a844ba 100644 --- a/ts/protobuf_patterns/proto/clear_null_account_balance.d.ts +++ b/ts/protobuf_patterns/proto/clear_null_account_balance.d.ts @@ -12,56 +12,8 @@ export interface clear_null_account_balance { export declare const clear_null_account_balance: { fromJSON(object: any): clear_null_account_balance; toJSON(message: clear_null_account_balance): unknown; - create<I extends { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["total_cleared"][number], keyof asset>]: never; })[] & { [K_1 in Exclude<keyof I["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, "total_cleared">]: never; }>(base?: I | undefined): clear_null_account_balance; - fromPartial<I_1 extends { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["total_cleared"][number], keyof asset>]: never; })[] & { [K_4 in Exclude<keyof I_1["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, "total_cleared">]: never; }>(object: I_1): clear_null_account_balance; + create<I extends Exact<DeepPartial<clear_null_account_balance>, I>>(base?: I): clear_null_account_balance; + fromPartial<I extends Exact<DeepPartial<clear_null_account_balance>, I>>(object: I): clear_null_account_balance; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/clear_null_account_balance.js b/ts/protobuf_patterns/proto/clear_null_account_balance.js index bbe3490dd692f6c2b09910b2ca277d98372c0b13..24483b43862646ad234c7013401e9af6335ac455 100644 --- a/ts/protobuf_patterns/proto/clear_null_account_balance.js +++ b/ts/protobuf_patterns/proto/clear_null_account_balance.js @@ -7,26 +7,24 @@ function createBaseclear_null_account_balance() { export const clear_null_account_balance = { fromJSON(object) { return { - total_cleared: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.total_cleared) + total_cleared: globalThis.Array.isArray(object?.total_cleared) ? object.total_cleared.map((e) => asset.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; - if ((_a = message.total_cleared) === null || _a === void 0 ? void 0 : _a.length) { + if (message.total_cleared?.length) { obj.total_cleared = message.total_cleared.map((e) => asset.toJSON(e)); } return obj; }, create(base) { - return clear_null_account_balance.fromPartial(base !== null && base !== void 0 ? base : {}); + return clear_null_account_balance.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseclear_null_account_balance(); - message.total_cleared = ((_a = object.total_cleared) === null || _a === void 0 ? void 0 : _a.map((e) => asset.fromPartial(e))) || []; + message.total_cleared = object.total_cleared?.map((e) => asset.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/collateralized_convert.d.ts b/ts/protobuf_patterns/proto/collateralized_convert.d.ts index b6fab3cf8040a717f7c4042312acb82ce8cac385..4ecb4ff53158cde1351b9bcbf08a1f9d506ad15f 100644 --- a/ts/protobuf_patterns/proto/collateralized_convert.d.ts +++ b/ts/protobuf_patterns/proto/collateralized_convert.d.ts @@ -19,48 +19,8 @@ export interface collateralized_convert { export declare const collateralized_convert: { fromJSON(object: any): collateralized_convert; toJSON(message: collateralized_convert): unknown; - create<I extends { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof collateralized_convert>]: never; }>(base?: I | undefined): collateralized_convert; - fromPartial<I_1 extends { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof collateralized_convert>]: never; }>(object: I_1): collateralized_convert; + create<I extends Exact<DeepPartial<collateralized_convert>, I>>(base?: I): collateralized_convert; + fromPartial<I extends Exact<DeepPartial<collateralized_convert>, I>>(object: I): collateralized_convert; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/collateralized_convert.js b/ts/protobuf_patterns/proto/collateralized_convert.js index e0b667eb7044c712d24ca5ab31492aea78347729..97a746a0bd2f93a77d9d3762d8f480760dd79fd1 100644 --- a/ts/protobuf_patterns/proto/collateralized_convert.js +++ b/ts/protobuf_patterns/proto/collateralized_convert.js @@ -26,13 +26,12 @@ export const collateralized_convert = { return obj; }, create(base) { - return collateralized_convert.fromPartial(base !== null && base !== void 0 ? base : {}); + return collateralized_convert.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasecollateralized_convert(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.requestid = (_b = object.requestid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.requestid = object.requestid ?? 0; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; diff --git a/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.d.ts b/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.d.ts index bba4ff9c3f903eaffbacb011467dc40a16227acc..4aee0b890d0900d3fe8d355c8a90968912666370 100644 --- a/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.d.ts +++ b/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.d.ts @@ -16,48 +16,8 @@ export interface collateralized_convert_immediate_conversion { export declare const collateralized_convert_immediate_conversion: { fromJSON(object: any): collateralized_convert_immediate_conversion; toJSON(message: collateralized_convert_immediate_conversion): unknown; - create<I extends { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_out"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof collateralized_convert_immediate_conversion>]: never; }>(base?: I | undefined): collateralized_convert_immediate_conversion; - fromPartial<I_1 extends { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["hbd_out"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof collateralized_convert_immediate_conversion>]: never; }>(object: I_1): collateralized_convert_immediate_conversion; + create<I extends Exact<DeepPartial<collateralized_convert_immediate_conversion>, I>>(base?: I): collateralized_convert_immediate_conversion; + fromPartial<I extends Exact<DeepPartial<collateralized_convert_immediate_conversion>, I>>(object: I): collateralized_convert_immediate_conversion; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.js b/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.js index 802d1ca1071a8404daed8ef9b993920d1e407ea0..41ee4e1bcacb3a396e78dd1ced827db986f7d34e 100644 --- a/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.js +++ b/ts/protobuf_patterns/proto/collateralized_convert_immediate_conversion.js @@ -26,13 +26,12 @@ export const collateralized_convert_immediate_conversion = { return obj; }, create(base) { - return collateralized_convert_immediate_conversion.fromPartial(base !== null && base !== void 0 ? base : {}); + return collateralized_convert_immediate_conversion.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasecollateralized_convert_immediate_conversion(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.requestid = (_b = object.requestid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.requestid = object.requestid ?? 0; message.hbd_out = (object.hbd_out !== undefined && object.hbd_out !== null) ? asset.fromPartial(object.hbd_out) : undefined; diff --git a/ts/protobuf_patterns/proto/comment.d.ts b/ts/protobuf_patterns/proto/comment.d.ts index 2aefd75b9329fb99e40c7fbb408b1ac41e79fdda..f41c3cf7f3aac7f90ae1a8ed11c6831dc319b916 100644 --- a/ts/protobuf_patterns/proto/comment.d.ts +++ b/ts/protobuf_patterns/proto/comment.d.ts @@ -58,40 +58,8 @@ export interface comment { export declare const comment: { fromJSON(object: any): comment; toJSON(message: comment): unknown; - create<I extends { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K in Exclude<keyof I, keyof comment>]: never; }>(base?: I | undefined): comment; - fromPartial<I_1 extends { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof comment>]: never; }>(object: I_1): comment; + create<I extends Exact<DeepPartial<comment>, I>>(base?: I): comment; + fromPartial<I extends Exact<DeepPartial<comment>, I>>(object: I): comment; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/comment.js b/ts/protobuf_patterns/proto/comment.js index 06ffc1e194e67cc6f3076e0e93d4cbeae62f037a..0c710db56e74544aaab877c37deb64fda74a62bc 100644 --- a/ts/protobuf_patterns/proto/comment.js +++ b/ts/protobuf_patterns/proto/comment.js @@ -41,18 +41,17 @@ export const comment = { return obj; }, create(base) { - return comment.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f, _g; const message = createBasecomment(); - message.parent_author = (_a = object.parent_author) !== null && _a !== void 0 ? _a : ""; - message.parent_permlink = (_b = object.parent_permlink) !== null && _b !== void 0 ? _b : ""; - message.author = (_c = object.author) !== null && _c !== void 0 ? _c : ""; - message.permlink = (_d = object.permlink) !== null && _d !== void 0 ? _d : ""; - message.title = (_e = object.title) !== null && _e !== void 0 ? _e : ""; - message.body = (_f = object.body) !== null && _f !== void 0 ? _f : ""; - message.json_metadata = (_g = object.json_metadata) !== null && _g !== void 0 ? _g : ""; + message.parent_author = object.parent_author ?? ""; + message.parent_permlink = object.parent_permlink ?? ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; + message.title = object.title ?? ""; + message.body = object.body ?? ""; + message.json_metadata = object.json_metadata ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/comment_benefactor_reward.d.ts b/ts/protobuf_patterns/proto/comment_benefactor_reward.d.ts index f17baf85eeb0bc5fc5f25c21a3d404980ace37aa..5491a8332437bbc5c70e048fec6853546c27e233 100644 --- a/ts/protobuf_patterns/proto/comment_benefactor_reward.d.ts +++ b/ts/protobuf_patterns/proto/comment_benefactor_reward.d.ts @@ -26,112 +26,8 @@ export interface comment_benefactor_reward { export declare const comment_benefactor_reward: { fromJSON(object: any): comment_benefactor_reward; toJSON(message: comment_benefactor_reward): unknown; - create<I extends { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_payout"], keyof asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_payout"], keyof asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["vesting_payout"], keyof asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_3 in Exclude<keyof I, keyof comment_benefactor_reward>]: never; }>(base?: I | undefined): comment_benefactor_reward; - fromPartial<I_1 extends { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hbd_payout"], keyof asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["hive_payout"], keyof asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["vesting_payout"], keyof asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof comment_benefactor_reward>]: never; }>(object: I_1): comment_benefactor_reward; + create<I extends Exact<DeepPartial<comment_benefactor_reward>, I>>(base?: I): comment_benefactor_reward; + fromPartial<I extends Exact<DeepPartial<comment_benefactor_reward>, I>>(object: I): comment_benefactor_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/comment_benefactor_reward.js b/ts/protobuf_patterns/proto/comment_benefactor_reward.js index 7da1484db0f3e92fcce63db5b0296b6e42bc82de..847b9e927dd0c27d8be42d96e5d2bee57cdd80d6 100644 --- a/ts/protobuf_patterns/proto/comment_benefactor_reward.js +++ b/ts/protobuf_patterns/proto/comment_benefactor_reward.js @@ -52,14 +52,13 @@ export const comment_benefactor_reward = { return obj; }, create(base) { - return comment_benefactor_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_benefactor_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasecomment_benefactor_reward(); - message.benefactor = (_a = object.benefactor) !== null && _a !== void 0 ? _a : ""; - message.author = (_b = object.author) !== null && _b !== void 0 ? _b : ""; - message.permlink = (_c = object.permlink) !== null && _c !== void 0 ? _c : ""; + message.benefactor = object.benefactor ?? ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; message.hbd_payout = (object.hbd_payout !== undefined && object.hbd_payout !== null) ? asset.fromPartial(object.hbd_payout) : undefined; @@ -69,7 +68,7 @@ export const comment_benefactor_reward = { message.vesting_payout = (object.vesting_payout !== undefined && object.vesting_payout !== null) ? asset.fromPartial(object.vesting_payout) : undefined; - message.payout_must_be_claimed = (_d = object.payout_must_be_claimed) !== null && _d !== void 0 ? _d : false; + message.payout_must_be_claimed = object.payout_must_be_claimed ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/comment_options.d.ts b/ts/protobuf_patterns/proto/comment_options.d.ts index f96fa044cfb5edfefc683c1cd64b390c74090e19..c51deb15bc5f1f2259d8b4c335cf0452e079a1c0 100644 --- a/ts/protobuf_patterns/proto/comment_options.d.ts +++ b/ts/protobuf_patterns/proto/comment_options.d.ts @@ -67,286 +67,26 @@ export interface comment_options { export declare const beneficiary_route_type: { fromJSON(object: any): beneficiary_route_type; toJSON(message: beneficiary_route_type): unknown; - create<I extends { - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I, keyof beneficiary_route_type>]: never; }>(base?: I | undefined): beneficiary_route_type; - fromPartial<I_1 extends { - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof beneficiary_route_type>]: never; }>(object: I_1): beneficiary_route_type; + create<I extends Exact<DeepPartial<beneficiary_route_type>, I>>(base?: I): beneficiary_route_type; + fromPartial<I extends Exact<DeepPartial<beneficiary_route_type>, I>>(object: I): beneficiary_route_type; }; export declare const comment_payout_beneficiaries: { fromJSON(object: any): comment_payout_beneficiaries; toJSON(message: comment_payout_beneficiaries): unknown; - create<I extends { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_1 in Exclude<keyof I["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, "beneficiaries">]: never; }>(base?: I | undefined): comment_payout_beneficiaries; - fromPartial<I_1 extends { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_3 in Exclude<keyof I_1["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_4 in Exclude<keyof I_1["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, "beneficiaries">]: never; }>(object: I_1): comment_payout_beneficiaries; + create<I extends Exact<DeepPartial<comment_payout_beneficiaries>, I>>(base?: I): comment_payout_beneficiaries; + fromPartial<I extends Exact<DeepPartial<comment_payout_beneficiaries>, I>>(object: I): comment_payout_beneficiaries; }; export declare const comment_options_extension: { fromJSON(object: any): comment_options_extension; toJSON(message: comment_options_extension): unknown; - create<I extends { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I["comment_payout_beneficiaries"]["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_1 in Exclude<keyof I["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, "comment_payout_beneficiaries">]: never; }>(base?: I | undefined): comment_options_extension; - fromPartial<I_1 extends { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_4 in Exclude<keyof I_1["comment_payout_beneficiaries"]["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_5 in Exclude<keyof I_1["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I_1["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, "comment_payout_beneficiaries">]: never; }>(object: I_1): comment_options_extension; + create<I extends Exact<DeepPartial<comment_options_extension>, I>>(base?: I): comment_options_extension; + fromPartial<I extends Exact<DeepPartial<comment_options_extension>, I>>(object: I): comment_options_extension; }; export declare const comment_options: { fromJSON(object: any): comment_options; toJSON(message: comment_options): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["max_accepted_payout"], keyof asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_1 in Exclude<keyof I["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_2 in Exclude<keyof I["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_5 in Exclude<keyof I["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I, keyof comment_options>]: never; }>(base?: I | undefined): comment_options; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["max_accepted_payout"], keyof asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_8 in Exclude<keyof I_1["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof beneficiary_route_type>]: never; })[] & { [K_9 in Exclude<keyof I_1["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_10 in Exclude<keyof I_1["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_12 in Exclude<keyof I_1["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_13 in Exclude<keyof I_1, keyof comment_options>]: never; }>(object: I_1): comment_options; + create<I extends Exact<DeepPartial<comment_options>, I>>(base?: I): comment_options; + fromPartial<I extends Exact<DeepPartial<comment_options>, I>>(object: I): comment_options; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/comment_options.js b/ts/protobuf_patterns/proto/comment_options.js index ce648b336a5c145d5ba3fe61837a3cf61dbad9d4..890c00e1706b4eab3eee3d657f0f7ee6eacd7bd9 100644 --- a/ts/protobuf_patterns/proto/comment_options.js +++ b/ts/protobuf_patterns/proto/comment_options.js @@ -22,13 +22,12 @@ export const beneficiary_route_type = { return obj; }, create(base) { - return beneficiary_route_type.fromPartial(base !== null && base !== void 0 ? base : {}); + return beneficiary_route_type.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasebeneficiary_route_type(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.weight = (_b = object.weight) !== null && _b !== void 0 ? _b : 0; + message.account = object.account ?? ""; + message.weight = object.weight ?? 0; return message; }, }; @@ -38,26 +37,24 @@ function createBasecomment_payout_beneficiaries() { export const comment_payout_beneficiaries = { fromJSON(object) { return { - beneficiaries: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.beneficiaries) + beneficiaries: globalThis.Array.isArray(object?.beneficiaries) ? object.beneficiaries.map((e) => beneficiary_route_type.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; - if ((_a = message.beneficiaries) === null || _a === void 0 ? void 0 : _a.length) { + if (message.beneficiaries?.length) { obj.beneficiaries = message.beneficiaries.map((e) => beneficiary_route_type.toJSON(e)); } return obj; }, create(base) { - return comment_payout_beneficiaries.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_payout_beneficiaries.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasecomment_payout_beneficiaries(); - message.beneficiaries = ((_a = object.beneficiaries) === null || _a === void 0 ? void 0 : _a.map((e) => beneficiary_route_type.fromPartial(e))) || []; + message.beneficiaries = object.beneficiaries?.map((e) => beneficiary_route_type.fromPartial(e)) || []; return message; }, }; @@ -80,7 +77,7 @@ export const comment_options_extension = { return obj; }, create(base) { - return comment_options_extension.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_options_extension.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBasecomment_options_extension(); @@ -113,13 +110,12 @@ export const comment_options = { allow_curation_rewards: isSet(object.allow_curation_rewards) ? globalThis.Boolean(object.allow_curation_rewards) : false, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => comment_options_extension.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.author !== undefined) { obj.author = message.author; @@ -139,26 +135,25 @@ export const comment_options = { if (message.allow_curation_rewards !== undefined) { obj.allow_curation_rewards = message.allow_curation_rewards; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => comment_options_extension.toJSON(e)); } return obj; }, create(base) { - return comment_options.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_options.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBasecomment_options(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; message.max_accepted_payout = (object.max_accepted_payout !== undefined && object.max_accepted_payout !== null) ? asset.fromPartial(object.max_accepted_payout) : undefined; - message.percent_hbd = (_c = object.percent_hbd) !== null && _c !== void 0 ? _c : 0; - message.allow_votes = (_d = object.allow_votes) !== null && _d !== void 0 ? _d : false; - message.allow_curation_rewards = (_e = object.allow_curation_rewards) !== null && _e !== void 0 ? _e : false; - message.extensions = ((_f = object.extensions) === null || _f === void 0 ? void 0 : _f.map((e) => comment_options_extension.fromPartial(e))) || []; + message.percent_hbd = object.percent_hbd ?? 0; + message.allow_votes = object.allow_votes ?? false; + message.allow_curation_rewards = object.allow_curation_rewards ?? false; + message.extensions = object.extensions?.map((e) => comment_options_extension.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/comment_payout_update.d.ts b/ts/protobuf_patterns/proto/comment_payout_update.d.ts index ca8f6083f8891ddb4c1cfc6f8bd60bda927a7790..dbed0e9c8a6665287d5536faae4652eb64eb3381 100644 --- a/ts/protobuf_patterns/proto/comment_payout_update.d.ts +++ b/ts/protobuf_patterns/proto/comment_payout_update.d.ts @@ -13,20 +13,8 @@ export interface comment_payout_update { export declare const comment_payout_update: { fromJSON(object: any): comment_payout_update; toJSON(message: comment_payout_update): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K in Exclude<keyof I, keyof comment_payout_update>]: never; }>(base?: I | undefined): comment_payout_update; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof comment_payout_update>]: never; }>(object: I_1): comment_payout_update; + create<I extends Exact<DeepPartial<comment_payout_update>, I>>(base?: I): comment_payout_update; + fromPartial<I extends Exact<DeepPartial<comment_payout_update>, I>>(object: I): comment_payout_update; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/comment_payout_update.js b/ts/protobuf_patterns/proto/comment_payout_update.js index ba589bab269c1ffecb56a46ec3c31e6af19ea2e6..55f61a01f9600d4cbf5bd47b180669e13f677eb1 100644 --- a/ts/protobuf_patterns/proto/comment_payout_update.js +++ b/ts/protobuf_patterns/proto/comment_payout_update.js @@ -21,13 +21,12 @@ export const comment_payout_update = { return obj; }, create(base) { - return comment_payout_update.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_payout_update.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasecomment_payout_update(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/comment_reward.d.ts b/ts/protobuf_patterns/proto/comment_reward.d.ts index b69233ff166f365181061a0cc70b851ac3019d1f..3357f71b100a7e0735ae8492dd5cd8a56819f94d 100644 --- a/ts/protobuf_patterns/proto/comment_reward.d.ts +++ b/ts/protobuf_patterns/proto/comment_reward.d.ts @@ -27,136 +27,8 @@ export interface comment_reward { export declare const comment_reward: { fromJSON(object: any): comment_reward; toJSON(message: comment_reward): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["payout"], keyof asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["total_payout_value"], keyof asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["curator_payout_value"], keyof asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I["beneficiary_payout_value"], keyof asset>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof comment_reward>]: never; }>(base?: I | undefined): comment_reward; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["payout"], keyof asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["total_payout_value"], keyof asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["curator_payout_value"], keyof asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_8 in Exclude<keyof I_1["beneficiary_payout_value"], keyof asset>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof comment_reward>]: never; }>(object: I_1): comment_reward; + create<I extends Exact<DeepPartial<comment_reward>, I>>(base?: I): comment_reward; + fromPartial<I extends Exact<DeepPartial<comment_reward>, I>>(object: I): comment_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/comment_reward.js b/ts/protobuf_patterns/proto/comment_reward.js index f08e131d4c6ec12a57c256684c957b9c1075f4e5..49c36629ca8243c505749e5eb24fbd1722448628 100644 --- a/ts/protobuf_patterns/proto/comment_reward.js +++ b/ts/protobuf_patterns/proto/comment_reward.js @@ -54,17 +54,16 @@ export const comment_reward = { return obj; }, create(base) { - return comment_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return comment_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasecomment_reward(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; message.payout = (object.payout !== undefined && object.payout !== null) ? asset.fromPartial(object.payout) : undefined; - message.author_rewards = (_c = object.author_rewards) !== null && _c !== void 0 ? _c : "0"; + message.author_rewards = object.author_rewards ?? "0"; message.total_payout_value = (object.total_payout_value !== undefined && object.total_payout_value !== null) ? asset.fromPartial(object.total_payout_value) : undefined; diff --git a/ts/protobuf_patterns/proto/consolidate_treasury_balance.d.ts b/ts/protobuf_patterns/proto/consolidate_treasury_balance.d.ts index f3408c9c6ca728a96388688eccfa6ddc96788a21..a02908ef73027b66d1307f6c96752f50236a2fbd 100644 --- a/ts/protobuf_patterns/proto/consolidate_treasury_balance.d.ts +++ b/ts/protobuf_patterns/proto/consolidate_treasury_balance.d.ts @@ -13,56 +13,8 @@ export interface consolidate_treasury_balance { export declare const consolidate_treasury_balance: { fromJSON(object: any): consolidate_treasury_balance; toJSON(message: consolidate_treasury_balance): unknown; - create<I extends { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["total_moved"][number], keyof asset>]: never; })[] & { [K_1 in Exclude<keyof I["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, "total_moved">]: never; }>(base?: I | undefined): consolidate_treasury_balance; - fromPartial<I_1 extends { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["total_moved"][number], keyof asset>]: never; })[] & { [K_4 in Exclude<keyof I_1["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, "total_moved">]: never; }>(object: I_1): consolidate_treasury_balance; + create<I extends Exact<DeepPartial<consolidate_treasury_balance>, I>>(base?: I): consolidate_treasury_balance; + fromPartial<I extends Exact<DeepPartial<consolidate_treasury_balance>, I>>(object: I): consolidate_treasury_balance; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/consolidate_treasury_balance.js b/ts/protobuf_patterns/proto/consolidate_treasury_balance.js index 30b277cafb83119095949eaff5814049f4d85534..713e0277c311f1c163cd9963c61b193e87f12354 100644 --- a/ts/protobuf_patterns/proto/consolidate_treasury_balance.js +++ b/ts/protobuf_patterns/proto/consolidate_treasury_balance.js @@ -7,26 +7,24 @@ function createBaseconsolidate_treasury_balance() { export const consolidate_treasury_balance = { fromJSON(object) { return { - total_moved: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.total_moved) + total_moved: globalThis.Array.isArray(object?.total_moved) ? object.total_moved.map((e) => asset.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; - if ((_a = message.total_moved) === null || _a === void 0 ? void 0 : _a.length) { + if (message.total_moved?.length) { obj.total_moved = message.total_moved.map((e) => asset.toJSON(e)); } return obj; }, create(base) { - return consolidate_treasury_balance.fromPartial(base !== null && base !== void 0 ? base : {}); + return consolidate_treasury_balance.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseconsolidate_treasury_balance(); - message.total_moved = ((_a = object.total_moved) === null || _a === void 0 ? void 0 : _a.map((e) => asset.fromPartial(e))) || []; + message.total_moved = object.total_moved?.map((e) => asset.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/convert.d.ts b/ts/protobuf_patterns/proto/convert.d.ts index 586a0cf8b7586025911ed8a4fd13b2e7be128dd4..98aa537007e5f2ccc554b70bc9f10f8347d01611 100644 --- a/ts/protobuf_patterns/proto/convert.d.ts +++ b/ts/protobuf_patterns/proto/convert.d.ts @@ -17,48 +17,8 @@ export interface convert { export declare const convert: { fromJSON(object: any): convert; toJSON(message: convert): unknown; - create<I extends { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof convert>]: never; }>(base?: I | undefined): convert; - fromPartial<I_1 extends { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof convert>]: never; }>(object: I_1): convert; + create<I extends Exact<DeepPartial<convert>, I>>(base?: I): convert; + fromPartial<I extends Exact<DeepPartial<convert>, I>>(object: I): convert; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/convert.js b/ts/protobuf_patterns/proto/convert.js index 4166c8bd9936614867bc8105aeed37356e4f2645..fd7747b0e2aed9c2afd9c2afce5d21dc8e3ea589 100644 --- a/ts/protobuf_patterns/proto/convert.js +++ b/ts/protobuf_patterns/proto/convert.js @@ -26,13 +26,12 @@ export const convert = { return obj; }, create(base) { - return convert.fromPartial(base !== null && base !== void 0 ? base : {}); + return convert.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseconvert(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.requestid = (_b = object.requestid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.requestid = object.requestid ?? 0; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; diff --git a/ts/protobuf_patterns/proto/create_claimed_account.d.ts b/ts/protobuf_patterns/proto/create_claimed_account.d.ts index 307939124dd2985113dcc633878a4e388b5e4ebf..7af346923f7d92ffbef1d11aa9c660544969f53e 100644 --- a/ts/protobuf_patterns/proto/create_claimed_account.d.ts +++ b/ts/protobuf_patterns/proto/create_claimed_account.d.ts @@ -34,232 +34,8 @@ export interface create_claimed_account { export declare const create_claimed_account: { fromJSON(object: any): create_claimed_account; toJSON(message: create_claimed_account): unknown; - create<I extends { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_6 in Exclude<keyof I["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_7 in Exclude<keyof I["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_8 in Exclude<keyof I["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_9 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_10 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_11 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_12 in Exclude<keyof I, keyof create_claimed_account>]: never; }>(base?: I | undefined): create_claimed_account; - fromPartial<I_1 extends { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_13 in Exclude<keyof I_1["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_14 in Exclude<keyof I_1["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I_1["owner"], keyof authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_16 in Exclude<keyof I_1["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_17 in Exclude<keyof I_1["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_18 in Exclude<keyof I_1["active"], keyof authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_19 in Exclude<keyof I_1["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_20 in Exclude<keyof I_1["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_21 in Exclude<keyof I_1["posting"], keyof authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_22 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_23 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_24 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_25 in Exclude<keyof I_1, keyof create_claimed_account>]: never; }>(object: I_1): create_claimed_account; + create<I extends Exact<DeepPartial<create_claimed_account>, I>>(base?: I): create_claimed_account; + fromPartial<I extends Exact<DeepPartial<create_claimed_account>, I>>(object: I): create_claimed_account; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/create_claimed_account.js b/ts/protobuf_patterns/proto/create_claimed_account.js index 4a69d71bfe066d5b6c4eb5def57b434250e9a965..186e304c4d0b18aa2e0741d0e5420d6f6d15bc84 100644 --- a/ts/protobuf_patterns/proto/create_claimed_account.js +++ b/ts/protobuf_patterns/proto/create_claimed_account.js @@ -24,13 +24,12 @@ export const create_claimed_account = { posting: isSet(object.posting) ? authority.fromJSON(object.posting) : undefined, memo_key: isSet(object.memo_key) ? globalThis.String(object.memo_key) : "", json_metadata: isSet(object.json_metadata) ? globalThis.String(object.json_metadata) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.creator !== undefined) { obj.creator = message.creator; @@ -53,19 +52,18 @@ export const create_claimed_account = { if (message.json_metadata !== undefined) { obj.json_metadata = message.json_metadata; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return create_claimed_account.fromPartial(base !== null && base !== void 0 ? base : {}); + return create_claimed_account.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e; const message = createBasecreate_claimed_account(); - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; - message.new_account_name = (_b = object.new_account_name) !== null && _b !== void 0 ? _b : ""; + message.creator = object.creator ?? ""; + message.new_account_name = object.new_account_name ?? ""; message.owner = (object.owner !== undefined && object.owner !== null) ? authority.fromPartial(object.owner) : undefined; @@ -75,9 +73,9 @@ export const create_claimed_account = { message.posting = (object.posting !== undefined && object.posting !== null) ? authority.fromPartial(object.posting) : undefined; - message.memo_key = (_c = object.memo_key) !== null && _c !== void 0 ? _c : ""; - message.json_metadata = (_d = object.json_metadata) !== null && _d !== void 0 ? _d : ""; - message.extensions = ((_e = object.extensions) === null || _e === void 0 ? void 0 : _e.map((e) => future_extensions.fromPartial(e))) || []; + message.memo_key = object.memo_key ?? ""; + message.json_metadata = object.json_metadata ?? ""; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/create_proposal.d.ts b/ts/protobuf_patterns/proto/create_proposal.d.ts index 52d8f6d0058d2da163860d216a53d17c9240625a..a4fbe550ceb280c5e8c4f2ee38a9f765b74682f3 100644 --- a/ts/protobuf_patterns/proto/create_proposal.d.ts +++ b/ts/protobuf_patterns/proto/create_proposal.d.ts @@ -34,88 +34,8 @@ export interface create_proposal { export declare const create_proposal: { fromJSON(object: any): create_proposal; toJSON(message: create_proposal): unknown; - create<I extends { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["daily_pay"], keyof asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_3 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof create_proposal>]: never; }>(base?: I | undefined): create_proposal; - fromPartial<I_1 extends { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["daily_pay"], keyof asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof create_proposal>]: never; }>(object: I_1): create_proposal; + create<I extends Exact<DeepPartial<create_proposal>, I>>(base?: I): create_proposal; + fromPartial<I extends Exact<DeepPartial<create_proposal>, I>>(object: I): create_proposal; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/create_proposal.js b/ts/protobuf_patterns/proto/create_proposal.js index 3aa7f2adab9e60f8a64b6f029c59dcc17c7ee1db..a8640eb0faea58057e9e51599cf937a33f225efe 100644 --- a/ts/protobuf_patterns/proto/create_proposal.js +++ b/ts/protobuf_patterns/proto/create_proposal.js @@ -24,13 +24,12 @@ export const create_proposal = { daily_pay: isSet(object.daily_pay) ? asset.fromJSON(object.daily_pay) : undefined, subject: isSet(object.subject) ? globalThis.String(object.subject) : "", permlink: isSet(object.permlink) ? globalThis.String(object.permlink) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.creator !== undefined) { obj.creator = message.creator; @@ -53,27 +52,26 @@ export const create_proposal = { if (message.permlink !== undefined) { obj.permlink = message.permlink; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return create_proposal.fromPartial(base !== null && base !== void 0 ? base : {}); + return create_proposal.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f, _g; const message = createBasecreate_proposal(); - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; - message.receiver = (_b = object.receiver) !== null && _b !== void 0 ? _b : ""; - message.start_date = (_c = object.start_date) !== null && _c !== void 0 ? _c : ""; - message.end_date = (_d = object.end_date) !== null && _d !== void 0 ? _d : ""; + message.creator = object.creator ?? ""; + message.receiver = object.receiver ?? ""; + message.start_date = object.start_date ?? ""; + message.end_date = object.end_date ?? ""; message.daily_pay = (object.daily_pay !== undefined && object.daily_pay !== null) ? asset.fromPartial(object.daily_pay) : undefined; - message.subject = (_e = object.subject) !== null && _e !== void 0 ? _e : ""; - message.permlink = (_f = object.permlink) !== null && _f !== void 0 ? _f : ""; - message.extensions = ((_g = object.extensions) === null || _g === void 0 ? void 0 : _g.map((e) => future_extensions.fromPartial(e))) || []; + message.subject = object.subject ?? ""; + message.permlink = object.permlink ?? ""; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/curation_reward.d.ts b/ts/protobuf_patterns/proto/curation_reward.d.ts index 256502884920ccbc070a80bbe2530ba01a224a48..13bdc6e61226220dc2fe44587c729e6679cb0e3b 100644 --- a/ts/protobuf_patterns/proto/curation_reward.d.ts +++ b/ts/protobuf_patterns/proto/curation_reward.d.ts @@ -21,56 +21,8 @@ export interface curation_reward { export declare const curation_reward: { fromJSON(object: any): curation_reward; toJSON(message: curation_reward): unknown; - create<I extends { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["reward"], keyof asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_1 in Exclude<keyof I, keyof curation_reward>]: never; }>(base?: I | undefined): curation_reward; - fromPartial<I_1 extends { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["reward"], keyof asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof curation_reward>]: never; }>(object: I_1): curation_reward; + create<I extends Exact<DeepPartial<curation_reward>, I>>(base?: I): curation_reward; + fromPartial<I extends Exact<DeepPartial<curation_reward>, I>>(object: I): curation_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/curation_reward.js b/ts/protobuf_patterns/proto/curation_reward.js index cb68a0cb1a165085068130f97b99d629bd75cc9f..0907ab9d5190c209a03484c198ace6252a6b1879 100644 --- a/ts/protobuf_patterns/proto/curation_reward.js +++ b/ts/protobuf_patterns/proto/curation_reward.js @@ -36,18 +36,17 @@ export const curation_reward = { return obj; }, create(base) { - return curation_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return curation_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasecuration_reward(); - message.curator = (_a = object.curator) !== null && _a !== void 0 ? _a : ""; + message.curator = object.curator ?? ""; message.reward = (object.reward !== undefined && object.reward !== null) ? asset.fromPartial(object.reward) : undefined; - message.author = (_b = object.author) !== null && _b !== void 0 ? _b : ""; - message.permlink = (_c = object.permlink) !== null && _c !== void 0 ? _c : ""; - message.payout_must_be_claimed = (_d = object.payout_must_be_claimed) !== null && _d !== void 0 ? _d : false; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; + message.payout_must_be_claimed = object.payout_must_be_claimed ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/custom.d.ts b/ts/protobuf_patterns/proto/custom.d.ts index 3756a99761fe8b2aec4828899bc9b4a059631187..aa8283f0a6818812547ef72117ccf12f77a5741c 100644 --- a/ts/protobuf_patterns/proto/custom.d.ts +++ b/ts/protobuf_patterns/proto/custom.d.ts @@ -16,24 +16,8 @@ export interface custom { export declare const custom: { fromJSON(object: any): custom; toJSON(message: custom): unknown; - create<I extends { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K in Exclude<keyof I["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_1 in Exclude<keyof I, keyof custom>]: never; }>(base?: I | undefined): custom; - fromPartial<I_1 extends { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof custom>]: never; }>(object: I_1): custom; + create<I extends Exact<DeepPartial<custom>, I>>(base?: I): custom; + fromPartial<I extends Exact<DeepPartial<custom>, I>>(object: I): custom; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/custom.js b/ts/protobuf_patterns/proto/custom.js index 3c2e16e762ea3f4f9e4fafa8c3a752e769c39a0a..4a997c62adb98b1568c6f27194759195fd281bab 100644 --- a/ts/protobuf_patterns/proto/custom.js +++ b/ts/protobuf_patterns/proto/custom.js @@ -6,7 +6,7 @@ function createBasecustom() { export const custom = { fromJSON(object) { return { - required_auths: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.required_auths) + required_auths: globalThis.Array.isArray(object?.required_auths) ? object.required_auths.map((e) => globalThis.String(e)) : [], id: isSet(object.id) ? globalThis.Number(object.id) : 0, @@ -14,9 +14,8 @@ export const custom = { }; }, toJSON(message) { - var _a; const obj = {}; - if ((_a = message.required_auths) === null || _a === void 0 ? void 0 : _a.length) { + if (message.required_auths?.length) { obj.required_auths = message.required_auths; } if (message.id !== undefined) { @@ -28,14 +27,13 @@ export const custom = { return obj; }, create(base) { - return custom.fromPartial(base !== null && base !== void 0 ? base : {}); + return custom.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasecustom(); - message.required_auths = ((_a = object.required_auths) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; - message.id = (_b = object.id) !== null && _b !== void 0 ? _b : 0; - message.data = (_c = object.data) !== null && _c !== void 0 ? _c : ""; + message.required_auths = object.required_auths?.map((e) => e) || []; + message.id = object.id ?? 0; + message.data = object.data ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/custom_json.d.ts b/ts/protobuf_patterns/proto/custom_json.d.ts index 13786a6e3b287d087aed784a722bcb27228162cb..e66424528d145796b215f5d698333b572b5023bd 100644 --- a/ts/protobuf_patterns/proto/custom_json.d.ts +++ b/ts/protobuf_patterns/proto/custom_json.d.ts @@ -25,28 +25,8 @@ export interface custom_json { export declare const custom_json: { fromJSON(object: any): custom_json; toJSON(message: custom_json): unknown; - create<I extends { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K in Exclude<keyof I["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_1 in Exclude<keyof I["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_2 in Exclude<keyof I, keyof custom_json>]: never; }>(base?: I | undefined): custom_json; - fromPartial<I_1 extends { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof custom_json>]: never; }>(object: I_1): custom_json; + create<I extends Exact<DeepPartial<custom_json>, I>>(base?: I): custom_json; + fromPartial<I extends Exact<DeepPartial<custom_json>, I>>(object: I): custom_json; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/custom_json.js b/ts/protobuf_patterns/proto/custom_json.js index e3b334407c91fc4fdd40f0d70cf5df149a15f7e9..e89af85c897f623d2565fa09ab15166ba89a247a 100644 --- a/ts/protobuf_patterns/proto/custom_json.js +++ b/ts/protobuf_patterns/proto/custom_json.js @@ -6,10 +6,10 @@ function createBasecustom_json() { export const custom_json = { fromJSON(object) { return { - required_auths: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.required_auths) + required_auths: globalThis.Array.isArray(object?.required_auths) ? object.required_auths.map((e) => globalThis.String(e)) : [], - required_posting_auths: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.required_posting_auths) + required_posting_auths: globalThis.Array.isArray(object?.required_posting_auths) ? object.required_posting_auths.map((e) => globalThis.String(e)) : [], id: isSet(object.id) ? globalThis.String(object.id) : "", @@ -17,12 +17,11 @@ export const custom_json = { }; }, toJSON(message) { - var _a, _b; const obj = {}; - if ((_a = message.required_auths) === null || _a === void 0 ? void 0 : _a.length) { + if (message.required_auths?.length) { obj.required_auths = message.required_auths; } - if ((_b = message.required_posting_auths) === null || _b === void 0 ? void 0 : _b.length) { + if (message.required_posting_auths?.length) { obj.required_posting_auths = message.required_posting_auths; } if (message.id !== undefined) { @@ -34,15 +33,14 @@ export const custom_json = { return obj; }, create(base) { - return custom_json.fromPartial(base !== null && base !== void 0 ? base : {}); + return custom_json.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasecustom_json(); - message.required_auths = ((_a = object.required_auths) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; - message.required_posting_auths = ((_b = object.required_posting_auths) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || []; - message.id = (_c = object.id) !== null && _c !== void 0 ? _c : ""; - message.json = (_d = object.json) !== null && _d !== void 0 ? _d : ""; + message.required_auths = object.required_auths?.map((e) => e) || []; + message.required_posting_auths = object.required_posting_auths?.map((e) => e) || []; + message.id = object.id ?? ""; + message.json = object.json ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/decline_voting_rights.d.ts b/ts/protobuf_patterns/proto/decline_voting_rights.d.ts index 39ecf6b8d7eefbfd6602ef22385b0d69c1ab5aef..bdd7ec743b289a357aa6cf2478471b3e94a9e84a 100644 --- a/ts/protobuf_patterns/proto/decline_voting_rights.d.ts +++ b/ts/protobuf_patterns/proto/decline_voting_rights.d.ts @@ -19,20 +19,8 @@ export interface decline_voting_rights { export declare const decline_voting_rights: { fromJSON(object: any): decline_voting_rights; toJSON(message: decline_voting_rights): unknown; - create<I extends { - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K in Exclude<keyof I, keyof decline_voting_rights>]: never; }>(base?: I | undefined): decline_voting_rights; - fromPartial<I_1 extends { - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof decline_voting_rights>]: never; }>(object: I_1): decline_voting_rights; + create<I extends Exact<DeepPartial<decline_voting_rights>, I>>(base?: I): decline_voting_rights; + fromPartial<I extends Exact<DeepPartial<decline_voting_rights>, I>>(object: I): decline_voting_rights; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/decline_voting_rights.js b/ts/protobuf_patterns/proto/decline_voting_rights.js index a45adea2ce16a9018b11d934410d78ebba883fe6..979a250f27d40634201227a1bacde12355488391 100644 --- a/ts/protobuf_patterns/proto/decline_voting_rights.js +++ b/ts/protobuf_patterns/proto/decline_voting_rights.js @@ -21,13 +21,12 @@ export const decline_voting_rights = { return obj; }, create(base) { - return decline_voting_rights.fromPartial(base !== null && base !== void 0 ? base : {}); + return decline_voting_rights.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasedecline_voting_rights(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.decline = (_b = object.decline) !== null && _b !== void 0 ? _b : false; + message.account = object.account ?? ""; + message.decline = object.decline ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/declined_voting_rights.d.ts b/ts/protobuf_patterns/proto/declined_voting_rights.d.ts index 1ce414bf03cd23fb4c5f0b4a72ff071d1a5d657f..9eb721c9887a67e74496486a04a48410f43cfbdc 100644 --- a/ts/protobuf_patterns/proto/declined_voting_rights.d.ts +++ b/ts/protobuf_patterns/proto/declined_voting_rights.d.ts @@ -10,16 +10,8 @@ export interface declined_voting_rights { export declare const declined_voting_rights: { fromJSON(object: any): declined_voting_rights; toJSON(message: declined_voting_rights): unknown; - create<I extends { - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K in Exclude<keyof I, "account">]: never; }>(base?: I | undefined): declined_voting_rights; - fromPartial<I_1 extends { - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "account">]: never; }>(object: I_1): declined_voting_rights; + create<I extends Exact<DeepPartial<declined_voting_rights>, I>>(base?: I): declined_voting_rights; + fromPartial<I extends Exact<DeepPartial<declined_voting_rights>, I>>(object: I): declined_voting_rights; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/declined_voting_rights.js b/ts/protobuf_patterns/proto/declined_voting_rights.js index 0f7998c63f7714d3fef03cb3b000031bfccb5028..1c022391df79c28fc41a95a46cbf1ec90159df81 100644 --- a/ts/protobuf_patterns/proto/declined_voting_rights.js +++ b/ts/protobuf_patterns/proto/declined_voting_rights.js @@ -15,12 +15,11 @@ export const declined_voting_rights = { return obj; }, create(base) { - return declined_voting_rights.fromPartial(base !== null && base !== void 0 ? base : {}); + return declined_voting_rights.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasedeclined_voting_rights(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/delayed_voting.d.ts b/ts/protobuf_patterns/proto/delayed_voting.d.ts index ec46e4a26568a551ac5fd874b417052e066b4d2c..16d82cedd658dab15b6afa6769311b75a63bc8e2 100644 --- a/ts/protobuf_patterns/proto/delayed_voting.d.ts +++ b/ts/protobuf_patterns/proto/delayed_voting.d.ts @@ -14,20 +14,8 @@ export interface delayed_voting { export declare const delayed_voting: { fromJSON(object: any): delayed_voting; toJSON(message: delayed_voting): unknown; - create<I extends { - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K in Exclude<keyof I, keyof delayed_voting>]: never; }>(base?: I | undefined): delayed_voting; - fromPartial<I_1 extends { - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof delayed_voting>]: never; }>(object: I_1): delayed_voting; + create<I extends Exact<DeepPartial<delayed_voting>, I>>(base?: I): delayed_voting; + fromPartial<I extends Exact<DeepPartial<delayed_voting>, I>>(object: I): delayed_voting; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/delayed_voting.js b/ts/protobuf_patterns/proto/delayed_voting.js index 9b1047cfc6af0d145dd2a3ecef5f028aa86d89d6..f676caacd33776cf876c8508384856c291648206 100644 --- a/ts/protobuf_patterns/proto/delayed_voting.js +++ b/ts/protobuf_patterns/proto/delayed_voting.js @@ -21,13 +21,12 @@ export const delayed_voting = { return obj; }, create(base) { - return delayed_voting.fromPartial(base !== null && base !== void 0 ? base : {}); + return delayed_voting.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasedelayed_voting(); - message.voter = (_a = object.voter) !== null && _a !== void 0 ? _a : ""; - message.votes = (_b = object.votes) !== null && _b !== void 0 ? _b : "0"; + message.voter = object.voter ?? ""; + message.votes = object.votes ?? "0"; return message; }, }; diff --git a/ts/protobuf_patterns/proto/delegate_vesting_shares.d.ts b/ts/protobuf_patterns/proto/delegate_vesting_shares.d.ts index d169e5dd76470b0838d00c970f43426eea859079..8d778125175c67eb904e966000e24637f2d07649 100644 --- a/ts/protobuf_patterns/proto/delegate_vesting_shares.d.ts +++ b/ts/protobuf_patterns/proto/delegate_vesting_shares.d.ts @@ -29,48 +29,8 @@ export interface delegate_vesting_shares { export declare const delegate_vesting_shares: { fromJSON(object: any): delegate_vesting_shares; toJSON(message: delegate_vesting_shares): unknown; - create<I extends { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof delegate_vesting_shares>]: never; }>(base?: I | undefined): delegate_vesting_shares; - fromPartial<I_1 extends { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof delegate_vesting_shares>]: never; }>(object: I_1): delegate_vesting_shares; + create<I extends Exact<DeepPartial<delegate_vesting_shares>, I>>(base?: I): delegate_vesting_shares; + fromPartial<I extends Exact<DeepPartial<delegate_vesting_shares>, I>>(object: I): delegate_vesting_shares; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/delegate_vesting_shares.js b/ts/protobuf_patterns/proto/delegate_vesting_shares.js index bd7349ffe10bf3d62a60ce5dcc541390280ba37d..51c9a2fa5994a7f794dcde65bc9e70f88a1e74a2 100644 --- a/ts/protobuf_patterns/proto/delegate_vesting_shares.js +++ b/ts/protobuf_patterns/proto/delegate_vesting_shares.js @@ -26,13 +26,12 @@ export const delegate_vesting_shares = { return obj; }, create(base) { - return delegate_vesting_shares.fromPartial(base !== null && base !== void 0 ? base : {}); + return delegate_vesting_shares.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasedelegate_vesting_shares(); - message.delegator = (_a = object.delegator) !== null && _a !== void 0 ? _a : ""; - message.delegatee = (_b = object.delegatee) !== null && _b !== void 0 ? _b : ""; + message.delegator = object.delegator ?? ""; + message.delegatee = object.delegatee ?? ""; message.vesting_shares = (object.vesting_shares !== undefined && object.vesting_shares !== null) ? asset.fromPartial(object.vesting_shares) : undefined; diff --git a/ts/protobuf_patterns/proto/delete_comment.d.ts b/ts/protobuf_patterns/proto/delete_comment.d.ts index 42d3d923950dd87875d186a3bab46581f07b1797..2a2302ad1de85a99396660498c2f21860b5e9c1b 100644 --- a/ts/protobuf_patterns/proto/delete_comment.d.ts +++ b/ts/protobuf_patterns/proto/delete_comment.d.ts @@ -14,20 +14,8 @@ export interface delete_comment { export declare const delete_comment: { fromJSON(object: any): delete_comment; toJSON(message: delete_comment): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K in Exclude<keyof I, keyof delete_comment>]: never; }>(base?: I | undefined): delete_comment; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof delete_comment>]: never; }>(object: I_1): delete_comment; + create<I extends Exact<DeepPartial<delete_comment>, I>>(base?: I): delete_comment; + fromPartial<I extends Exact<DeepPartial<delete_comment>, I>>(object: I): delete_comment; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/delete_comment.js b/ts/protobuf_patterns/proto/delete_comment.js index 37f96cc939ddff4b6267535baf05c9e3372e8ef9..a3fb12d45ee2f75beb88fa10cfbb84d2a537a9ef 100644 --- a/ts/protobuf_patterns/proto/delete_comment.js +++ b/ts/protobuf_patterns/proto/delete_comment.js @@ -21,13 +21,12 @@ export const delete_comment = { return obj; }, create(base) { - return delete_comment.fromPartial(base !== null && base !== void 0 ? base : {}); + return delete_comment.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasedelete_comment(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/dhf_conversion.d.ts b/ts/protobuf_patterns/proto/dhf_conversion.d.ts index b232c1f6bb530a4062d02853b9f30a2a9556de73..21e7854d6c039f4b01758d7a1899aebdea75fb2e 100644 --- a/ts/protobuf_patterns/proto/dhf_conversion.d.ts +++ b/ts/protobuf_patterns/proto/dhf_conversion.d.ts @@ -17,72 +17,8 @@ export interface dhf_conversion { export declare const dhf_conversion: { fromJSON(object: any): dhf_conversion; toJSON(message: dhf_conversion): unknown; - create<I extends { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hive_amount_in"], keyof asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hbd_amount_out"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof dhf_conversion>]: never; }>(base?: I | undefined): dhf_conversion; - fromPartial<I_1 extends { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["hive_amount_in"], keyof asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hbd_amount_out"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof dhf_conversion>]: never; }>(object: I_1): dhf_conversion; + create<I extends Exact<DeepPartial<dhf_conversion>, I>>(base?: I): dhf_conversion; + fromPartial<I extends Exact<DeepPartial<dhf_conversion>, I>>(object: I): dhf_conversion; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/dhf_conversion.js b/ts/protobuf_patterns/proto/dhf_conversion.js index f8164bcb49cb2ab5012b0a5c762ba2b9b5fc3b67..7987bbfadbe0cb4d7b7f3631a8cb58d773f82dcd 100644 --- a/ts/protobuf_patterns/proto/dhf_conversion.js +++ b/ts/protobuf_patterns/proto/dhf_conversion.js @@ -26,12 +26,11 @@ export const dhf_conversion = { return obj; }, create(base) { - return dhf_conversion.fromPartial(base !== null && base !== void 0 ? base : {}); + return dhf_conversion.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasedhf_conversion(); - message.treasury = (_a = object.treasury) !== null && _a !== void 0 ? _a : ""; + message.treasury = object.treasury ?? ""; message.hive_amount_in = (object.hive_amount_in !== undefined && object.hive_amount_in !== null) ? asset.fromPartial(object.hive_amount_in) : undefined; diff --git a/ts/protobuf_patterns/proto/dhf_funding.d.ts b/ts/protobuf_patterns/proto/dhf_funding.d.ts index d9b8b88be5aa4e85ccc141cd8d0fd9f9f3fcb87b..10fea540dda951673fbdf60e9894b641c081d053 100644 --- a/ts/protobuf_patterns/proto/dhf_funding.d.ts +++ b/ts/protobuf_patterns/proto/dhf_funding.d.ts @@ -15,44 +15,8 @@ export interface dhf_funding { export declare const dhf_funding: { fromJSON(object: any): dhf_funding; toJSON(message: dhf_funding): unknown; - create<I extends { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["additional_funds"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof dhf_funding>]: never; }>(base?: I | undefined): dhf_funding; - fromPartial<I_1 extends { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["additional_funds"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof dhf_funding>]: never; }>(object: I_1): dhf_funding; + create<I extends Exact<DeepPartial<dhf_funding>, I>>(base?: I): dhf_funding; + fromPartial<I extends Exact<DeepPartial<dhf_funding>, I>>(object: I): dhf_funding; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/dhf_funding.js b/ts/protobuf_patterns/proto/dhf_funding.js index 81e05d85191a8e86b8e120ad91002d9449093722..1e92b81853f704aa4134a27799e73d410ada26ad 100644 --- a/ts/protobuf_patterns/proto/dhf_funding.js +++ b/ts/protobuf_patterns/proto/dhf_funding.js @@ -22,12 +22,11 @@ export const dhf_funding = { return obj; }, create(base) { - return dhf_funding.fromPartial(base !== null && base !== void 0 ? base : {}); + return dhf_funding.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasedhf_funding(); - message.treasury = (_a = object.treasury) !== null && _a !== void 0 ? _a : ""; + message.treasury = object.treasury ?? ""; message.additional_funds = (object.additional_funds !== undefined && object.additional_funds !== null) ? asset.fromPartial(object.additional_funds) : undefined; diff --git a/ts/protobuf_patterns/proto/effective_comment_vote.d.ts b/ts/protobuf_patterns/proto/effective_comment_vote.d.ts index c179a73ec1916501d5b91dbaef689c8b84b16f6c..0ffd3f9ff99df2618189a4fdc58061fae91009a9 100644 --- a/ts/protobuf_patterns/proto/effective_comment_vote.d.ts +++ b/ts/protobuf_patterns/proto/effective_comment_vote.d.ts @@ -24,64 +24,8 @@ export interface effective_comment_vote { export declare const effective_comment_vote: { fromJSON(object: any): effective_comment_vote; toJSON(message: effective_comment_vote): unknown; - create<I extends { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["pending_payout"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof effective_comment_vote>]: never; }>(base?: I | undefined): effective_comment_vote; - fromPartial<I_1 extends { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["pending_payout"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof effective_comment_vote>]: never; }>(object: I_1): effective_comment_vote; + create<I extends Exact<DeepPartial<effective_comment_vote>, I>>(base?: I): effective_comment_vote; + fromPartial<I extends Exact<DeepPartial<effective_comment_vote>, I>>(object: I): effective_comment_vote; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/effective_comment_vote.js b/ts/protobuf_patterns/proto/effective_comment_vote.js index 8810744e1c1350bc86808a3aabeb0871d7cf7230..be091974b7b58ffb2af4371586930a2e2881a719 100644 --- a/ts/protobuf_patterns/proto/effective_comment_vote.js +++ b/ts/protobuf_patterns/proto/effective_comment_vote.js @@ -50,17 +50,16 @@ export const effective_comment_vote = { return obj; }, create(base) { - return effective_comment_vote.fromPartial(base !== null && base !== void 0 ? base : {}); + return effective_comment_vote.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBaseeffective_comment_vote(); - message.voter = (_a = object.voter) !== null && _a !== void 0 ? _a : ""; - message.author = (_b = object.author) !== null && _b !== void 0 ? _b : ""; - message.permlink = (_c = object.permlink) !== null && _c !== void 0 ? _c : ""; - message.weight = (_d = object.weight) !== null && _d !== void 0 ? _d : "0"; - message.rshares = (_e = object.rshares) !== null && _e !== void 0 ? _e : "0"; - message.total_vote_weight = (_f = object.total_vote_weight) !== null && _f !== void 0 ? _f : "0"; + message.voter = object.voter ?? ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; + message.weight = object.weight ?? "0"; + message.rshares = object.rshares ?? "0"; + message.total_vote_weight = object.total_vote_weight ?? "0"; message.pending_payout = (object.pending_payout !== undefined && object.pending_payout !== null) ? asset.fromPartial(object.pending_payout) : undefined; diff --git a/ts/protobuf_patterns/proto/escrow_approve.d.ts b/ts/protobuf_patterns/proto/escrow_approve.d.ts index 9cdea49eb4c1ee9984f59f3790f272f12136efa0..d9e8afb9e38bf00a8fd2d89bcad3548658112982 100644 --- a/ts/protobuf_patterns/proto/escrow_approve.d.ts +++ b/ts/protobuf_patterns/proto/escrow_approve.d.ts @@ -26,36 +26,8 @@ export interface escrow_approve { export declare const escrow_approve: { fromJSON(object: any): escrow_approve; toJSON(message: escrow_approve): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K in Exclude<keyof I, keyof escrow_approve>]: never; }>(base?: I | undefined): escrow_approve; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof escrow_approve>]: never; }>(object: I_1): escrow_approve; + create<I extends Exact<DeepPartial<escrow_approve>, I>>(base?: I): escrow_approve; + fromPartial<I extends Exact<DeepPartial<escrow_approve>, I>>(object: I): escrow_approve; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_approve.js b/ts/protobuf_patterns/proto/escrow_approve.js index b8bd33cfe35518ff44dcd4228af471aab769917c..d2d0e4a9ea34f1cb5ef94e0f65cf6bcab848bdc4 100644 --- a/ts/protobuf_patterns/proto/escrow_approve.js +++ b/ts/protobuf_patterns/proto/escrow_approve.js @@ -37,17 +37,16 @@ export const escrow_approve = { return obj; }, create(base) { - return escrow_approve.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_approve.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBaseescrow_approve(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.who = (_d = object.who) !== null && _d !== void 0 ? _d : ""; - message.escrow_id = (_e = object.escrow_id) !== null && _e !== void 0 ? _e : 0; - message.approve = (_f = object.approve) !== null && _f !== void 0 ? _f : false; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.who = object.who ?? ""; + message.escrow_id = object.escrow_id ?? 0; + message.approve = object.approve ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/escrow_approved.d.ts b/ts/protobuf_patterns/proto/escrow_approved.d.ts index 066949f3fc6570ed861d9b945e89e9378bb51072..86cd2ac6750274f7c501a76235f313761ff9abe9 100644 --- a/ts/protobuf_patterns/proto/escrow_approved.d.ts +++ b/ts/protobuf_patterns/proto/escrow_approved.d.ts @@ -20,56 +20,8 @@ export interface escrow_approved { export declare const escrow_approved: { fromJSON(object: any): escrow_approved; toJSON(message: escrow_approved): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof escrow_approved>]: never; }>(base?: I | undefined): escrow_approved; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof escrow_approved>]: never; }>(object: I_1): escrow_approved; + create<I extends Exact<DeepPartial<escrow_approved>, I>>(base?: I): escrow_approved; + fromPartial<I extends Exact<DeepPartial<escrow_approved>, I>>(object: I): escrow_approved; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_approved.js b/ts/protobuf_patterns/proto/escrow_approved.js index ae6137605406f6a79b98509ea4ec57dd4ae521c1..3d69aaf96b079f3a35a12bf5ca5b258ba62806c3 100644 --- a/ts/protobuf_patterns/proto/escrow_approved.js +++ b/ts/protobuf_patterns/proto/escrow_approved.js @@ -34,15 +34,14 @@ export const escrow_approved = { return obj; }, create(base) { - return escrow_approved.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_approved.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseescrow_approved(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.escrow_id = (_d = object.escrow_id) !== null && _d !== void 0 ? _d : 0; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.escrow_id = object.escrow_id ?? 0; message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; return message; }, diff --git a/ts/protobuf_patterns/proto/escrow_dispute.d.ts b/ts/protobuf_patterns/proto/escrow_dispute.d.ts index 64b2cdf27065d940c4a352461a58ded82505a751..0f666eea1a3f944ca087acfcfb1e4cfcb5c61ebf 100644 --- a/ts/protobuf_patterns/proto/escrow_dispute.d.ts +++ b/ts/protobuf_patterns/proto/escrow_dispute.d.ts @@ -20,32 +20,8 @@ export interface escrow_dispute { export declare const escrow_dispute: { fromJSON(object: any): escrow_dispute; toJSON(message: escrow_dispute): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K in Exclude<keyof I, keyof escrow_dispute>]: never; }>(base?: I | undefined): escrow_dispute; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof escrow_dispute>]: never; }>(object: I_1): escrow_dispute; + create<I extends Exact<DeepPartial<escrow_dispute>, I>>(base?: I): escrow_dispute; + fromPartial<I extends Exact<DeepPartial<escrow_dispute>, I>>(object: I): escrow_dispute; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_dispute.js b/ts/protobuf_patterns/proto/escrow_dispute.js index b43e699f8fd6e0e1e1a3de6abc5cff942a593b2c..c648b9d0e709fa6e828b6a99afb3abb77ba2aba5 100644 --- a/ts/protobuf_patterns/proto/escrow_dispute.js +++ b/ts/protobuf_patterns/proto/escrow_dispute.js @@ -33,16 +33,15 @@ export const escrow_dispute = { return obj; }, create(base) { - return escrow_dispute.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_dispute.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e; const message = createBaseescrow_dispute(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.who = (_d = object.who) !== null && _d !== void 0 ? _d : ""; - message.escrow_id = (_e = object.escrow_id) !== null && _e !== void 0 ? _e : 0; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.who = object.who ?? ""; + message.escrow_id = object.escrow_id ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/escrow_rejected.d.ts b/ts/protobuf_patterns/proto/escrow_rejected.d.ts index b16a4ae25a081120dd3d78abc02ae23383d8f288..ce46eb5d1a95acf80ebbea14497573b5af1f2493 100644 --- a/ts/protobuf_patterns/proto/escrow_rejected.d.ts +++ b/ts/protobuf_patterns/proto/escrow_rejected.d.ts @@ -26,112 +26,8 @@ export interface escrow_rejected { export declare const escrow_rejected: { fromJSON(object: any): escrow_rejected; toJSON(message: escrow_rejected): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_amount"], keyof asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof escrow_rejected>]: never; }>(base?: I | undefined): escrow_rejected; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["hive_amount"], keyof asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof escrow_rejected>]: never; }>(object: I_1): escrow_rejected; + create<I extends Exact<DeepPartial<escrow_rejected>, I>>(base?: I): escrow_rejected; + fromPartial<I extends Exact<DeepPartial<escrow_rejected>, I>>(object: I): escrow_rejected; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_rejected.js b/ts/protobuf_patterns/proto/escrow_rejected.js index ef4b6345dfe72e41793352d21ac7ca11a6e0ca5b..5aa0ee5c7754934522f989c55639a4dd3239c49d 100644 --- a/ts/protobuf_patterns/proto/escrow_rejected.js +++ b/ts/protobuf_patterns/proto/escrow_rejected.js @@ -50,15 +50,14 @@ export const escrow_rejected = { return obj; }, create(base) { - return escrow_rejected.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_rejected.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseescrow_rejected(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.escrow_id = (_d = object.escrow_id) !== null && _d !== void 0 ? _d : 0; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.escrow_id = object.escrow_id ?? 0; message.hbd_amount = (object.hbd_amount !== undefined && object.hbd_amount !== null) ? asset.fromPartial(object.hbd_amount) : undefined; diff --git a/ts/protobuf_patterns/proto/escrow_release.d.ts b/ts/protobuf_patterns/proto/escrow_release.d.ts index 05175f6427d036a00fb088fee4fbd898d2e6bd20..1ba3cc57e97e912fcfba990d1e66089abc8ab016 100644 --- a/ts/protobuf_patterns/proto/escrow_release.d.ts +++ b/ts/protobuf_patterns/proto/escrow_release.d.ts @@ -31,92 +31,8 @@ export interface escrow_release { export declare const escrow_release: { fromJSON(object: any): escrow_release; toJSON(message: escrow_release): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_amount"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof escrow_release>]: never; }>(base?: I | undefined): escrow_release; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hive_amount"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof escrow_release>]: never; }>(object: I_1): escrow_release; + create<I extends Exact<DeepPartial<escrow_release>, I>>(base?: I): escrow_release; + fromPartial<I extends Exact<DeepPartial<escrow_release>, I>>(object: I): escrow_release; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_release.js b/ts/protobuf_patterns/proto/escrow_release.js index 4fb025f8466967f9bcba2a25b0b37f6c3b445a53..0485c694eaa11c8931a8e25c031f3dbbd81cecb5 100644 --- a/ts/protobuf_patterns/proto/escrow_release.js +++ b/ts/protobuf_patterns/proto/escrow_release.js @@ -55,17 +55,16 @@ export const escrow_release = { return obj; }, create(base) { - return escrow_release.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_release.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBaseescrow_release(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.who = (_d = object.who) !== null && _d !== void 0 ? _d : ""; - message.receiver = (_e = object.receiver) !== null && _e !== void 0 ? _e : ""; - message.escrow_id = (_f = object.escrow_id) !== null && _f !== void 0 ? _f : 0; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.who = object.who ?? ""; + message.receiver = object.receiver ?? ""; + message.escrow_id = object.escrow_id ?? 0; message.hbd_amount = (object.hbd_amount !== undefined && object.hbd_amount !== null) ? asset.fromPartial(object.hbd_amount) : undefined; diff --git a/ts/protobuf_patterns/proto/escrow_transfer.d.ts b/ts/protobuf_patterns/proto/escrow_transfer.d.ts index 54985daae3aea684d6e5b8668af3ed567e167bc1..a979a756f529469137c8d8f21cbc2bc8087f402f 100644 --- a/ts/protobuf_patterns/proto/escrow_transfer.d.ts +++ b/ts/protobuf_patterns/proto/escrow_transfer.d.ts @@ -43,124 +43,8 @@ export interface escrow_transfer { export declare const escrow_transfer: { fromJSON(object: any): escrow_transfer; toJSON(message: escrow_transfer): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_amount"], keyof asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_3 in Exclude<keyof I, keyof escrow_transfer>]: never; }>(base?: I | undefined): escrow_transfer; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hbd_amount"], keyof asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["hive_amount"], keyof asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof escrow_transfer>]: never; }>(object: I_1): escrow_transfer; + create<I extends Exact<DeepPartial<escrow_transfer>, I>>(base?: I): escrow_transfer; + fromPartial<I extends Exact<DeepPartial<escrow_transfer>, I>>(object: I): escrow_transfer; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/escrow_transfer.js b/ts/protobuf_patterns/proto/escrow_transfer.js index f7d48e36e6e82b4eeaa831e634458f1bfbf0a749..49bfec94373acc1d26b877dac781b8bc288aa47b 100644 --- a/ts/protobuf_patterns/proto/escrow_transfer.js +++ b/ts/protobuf_patterns/proto/escrow_transfer.js @@ -65,15 +65,14 @@ export const escrow_transfer = { return obj; }, create(base) { - return escrow_transfer.fromPartial(base !== null && base !== void 0 ? base : {}); + return escrow_transfer.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f, _g; const message = createBaseescrow_transfer(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.agent = (_c = object.agent) !== null && _c !== void 0 ? _c : ""; - message.escrow_id = (_d = object.escrow_id) !== null && _d !== void 0 ? _d : 0; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.agent = object.agent ?? ""; + message.escrow_id = object.escrow_id ?? 0; message.hbd_amount = (object.hbd_amount !== undefined && object.hbd_amount !== null) ? asset.fromPartial(object.hbd_amount) : undefined; @@ -81,9 +80,9 @@ export const escrow_transfer = { ? asset.fromPartial(object.hive_amount) : undefined; message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; - message.ratification_deadline = (_e = object.ratification_deadline) !== null && _e !== void 0 ? _e : ""; - message.escrow_expiration = (_f = object.escrow_expiration) !== null && _f !== void 0 ? _f : ""; - message.json_meta = (_g = object.json_meta) !== null && _g !== void 0 ? _g : ""; + message.ratification_deadline = object.ratification_deadline ?? ""; + message.escrow_expiration = object.escrow_expiration ?? ""; + message.json_meta = object.json_meta ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/expired_account_notification.d.ts b/ts/protobuf_patterns/proto/expired_account_notification.d.ts index 42bfa66aba0de1c1c147dda02c69e155b3acdbfe..80f101fa267c63ab156056b8fefe54c26bf0212c 100644 --- a/ts/protobuf_patterns/proto/expired_account_notification.d.ts +++ b/ts/protobuf_patterns/proto/expired_account_notification.d.ts @@ -11,16 +11,8 @@ export interface expired_account_notification { export declare const expired_account_notification: { fromJSON(object: any): expired_account_notification; toJSON(message: expired_account_notification): unknown; - create<I extends { - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K in Exclude<keyof I, "account">]: never; }>(base?: I | undefined): expired_account_notification; - fromPartial<I_1 extends { - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "account">]: never; }>(object: I_1): expired_account_notification; + create<I extends Exact<DeepPartial<expired_account_notification>, I>>(base?: I): expired_account_notification; + fromPartial<I extends Exact<DeepPartial<expired_account_notification>, I>>(object: I): expired_account_notification; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/expired_account_notification.js b/ts/protobuf_patterns/proto/expired_account_notification.js index 4e3d398e8a61e0b2c1dad780a83e9fc7b91245e9..b3084b74e553a0e75a86913ae8143d93073965c2 100644 --- a/ts/protobuf_patterns/proto/expired_account_notification.js +++ b/ts/protobuf_patterns/proto/expired_account_notification.js @@ -15,12 +15,11 @@ export const expired_account_notification = { return obj; }, create(base) { - return expired_account_notification.fromPartial(base !== null && base !== void 0 ? base : {}); + return expired_account_notification.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseexpired_account_notification(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/failed_recurrent_transfer.d.ts b/ts/protobuf_patterns/proto/failed_recurrent_transfer.d.ts index a8580cd16cd63020ba021a150ff4eaeb7a5e1129..b61032bbcc3e1d55c69b62f05cb187e6e44e5fb5 100644 --- a/ts/protobuf_patterns/proto/failed_recurrent_transfer.d.ts +++ b/ts/protobuf_patterns/proto/failed_recurrent_transfer.d.ts @@ -26,64 +26,8 @@ export interface failed_recurrent_transfer { export declare const failed_recurrent_transfer: { fromJSON(object: any): failed_recurrent_transfer; toJSON(message: failed_recurrent_transfer): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_1 in Exclude<keyof I, keyof failed_recurrent_transfer>]: never; }>(base?: I | undefined): failed_recurrent_transfer; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof failed_recurrent_transfer>]: never; }>(object: I_1): failed_recurrent_transfer; + create<I extends Exact<DeepPartial<failed_recurrent_transfer>, I>>(base?: I): failed_recurrent_transfer; + fromPartial<I extends Exact<DeepPartial<failed_recurrent_transfer>, I>>(object: I): failed_recurrent_transfer; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/failed_recurrent_transfer.js b/ts/protobuf_patterns/proto/failed_recurrent_transfer.js index 6f801cbf02b4257562b535273d4b2ad5530daa47..8b9eac77caba31e596bd5a37b89c7d3c13b2354d 100644 --- a/ts/protobuf_patterns/proto/failed_recurrent_transfer.js +++ b/ts/protobuf_patterns/proto/failed_recurrent_transfer.js @@ -50,20 +50,19 @@ export const failed_recurrent_transfer = { return obj; }, create(base) { - return failed_recurrent_transfer.fromPartial(base !== null && base !== void 0 ? base : {}); + return failed_recurrent_transfer.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBasefailed_recurrent_transfer(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_c = object.memo) !== null && _c !== void 0 ? _c : ""; - message.consecutive_failures = (_d = object.consecutive_failures) !== null && _d !== void 0 ? _d : 0; - message.remaining_executions = (_e = object.remaining_executions) !== null && _e !== void 0 ? _e : 0; - message.deleted = (_f = object.deleted) !== null && _f !== void 0 ? _f : false; + message.memo = object.memo ?? ""; + message.consecutive_failures = object.consecutive_failures ?? 0; + message.remaining_executions = object.remaining_executions ?? 0; + message.deleted = object.deleted ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/feed_publish.d.ts b/ts/protobuf_patterns/proto/feed_publish.d.ts index fc66c0ab61fa350a7b0eb38fe38901cf92c46977..32d5d181c85eb715610d687c2cec8ee9b6d96946 100644 --- a/ts/protobuf_patterns/proto/feed_publish.d.ts +++ b/ts/protobuf_patterns/proto/feed_publish.d.ts @@ -19,102 +19,8 @@ export interface feed_publish { export declare const feed_publish: { fromJSON(object: any): feed_publish; toJSON(message: feed_publish): unknown; - create<I extends { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["exchange_rate"], keyof price>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof feed_publish>]: never; }>(base?: I | undefined): feed_publish; - fromPartial<I_1 extends { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I_1["exchange_rate"], keyof price>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof feed_publish>]: never; }>(object: I_1): feed_publish; + create<I extends Exact<DeepPartial<feed_publish>, I>>(base?: I): feed_publish; + fromPartial<I extends Exact<DeepPartial<feed_publish>, I>>(object: I): feed_publish; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/feed_publish.js b/ts/protobuf_patterns/proto/feed_publish.js index 980128e537618a6a2e5033b09add89cb15e4af79..2ca64eca383ff3e4604d11e45e730e034784271a 100644 --- a/ts/protobuf_patterns/proto/feed_publish.js +++ b/ts/protobuf_patterns/proto/feed_publish.js @@ -22,12 +22,11 @@ export const feed_publish = { return obj; }, create(base) { - return feed_publish.fromPartial(base !== null && base !== void 0 ? base : {}); + return feed_publish.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasefeed_publish(); - message.publisher = (_a = object.publisher) !== null && _a !== void 0 ? _a : ""; + message.publisher = object.publisher ?? ""; message.exchange_rate = (object.exchange_rate !== undefined && object.exchange_rate !== null) ? price.fromPartial(object.exchange_rate) : undefined; diff --git a/ts/protobuf_patterns/proto/fill_collateralized_convert_request.d.ts b/ts/protobuf_patterns/proto/fill_collateralized_convert_request.d.ts index 58d839f16754a8e9bc26caa92516701f89e969a9..b35d11e63334f82ff3e0bb285efdcd6c4fe2baf4 100644 --- a/ts/protobuf_patterns/proto/fill_collateralized_convert_request.d.ts +++ b/ts/protobuf_patterns/proto/fill_collateralized_convert_request.d.ts @@ -22,104 +22,8 @@ export interface fill_collateralized_convert_request { export declare const fill_collateralized_convert_request: { fromJSON(object: any): fill_collateralized_convert_request; toJSON(message: fill_collateralized_convert_request): unknown; - create<I extends { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount_in"], keyof asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["amount_out"], keyof asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["excess_collateral"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof fill_collateralized_convert_request>]: never; }>(base?: I | undefined): fill_collateralized_convert_request; - fromPartial<I_1 extends { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["amount_in"], keyof asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["amount_out"], keyof asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["excess_collateral"], keyof asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof fill_collateralized_convert_request>]: never; }>(object: I_1): fill_collateralized_convert_request; + create<I extends Exact<DeepPartial<fill_collateralized_convert_request>, I>>(base?: I): fill_collateralized_convert_request; + fromPartial<I extends Exact<DeepPartial<fill_collateralized_convert_request>, I>>(object: I): fill_collateralized_convert_request; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_collateralized_convert_request.js b/ts/protobuf_patterns/proto/fill_collateralized_convert_request.js index 9388623b0ce01f6800015f2ee4d56080385ccd78..1d6cfdff879784e722c365bbf77c37c71beadd58 100644 --- a/ts/protobuf_patterns/proto/fill_collateralized_convert_request.js +++ b/ts/protobuf_patterns/proto/fill_collateralized_convert_request.js @@ -34,13 +34,12 @@ export const fill_collateralized_convert_request = { return obj; }, create(base) { - return fill_collateralized_convert_request.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_collateralized_convert_request.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasefill_collateralized_convert_request(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.requestid = (_b = object.requestid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.requestid = object.requestid ?? 0; message.amount_in = (object.amount_in !== undefined && object.amount_in !== null) ? asset.fromPartial(object.amount_in) : undefined; diff --git a/ts/protobuf_patterns/proto/fill_convert_request.d.ts b/ts/protobuf_patterns/proto/fill_convert_request.d.ts index 4d1a7eb31327f2619cd1ca6a694fdb320ee59407..ee2736e792444c71d4a70a7506b8f4f53fea45da 100644 --- a/ts/protobuf_patterns/proto/fill_convert_request.d.ts +++ b/ts/protobuf_patterns/proto/fill_convert_request.d.ts @@ -17,76 +17,8 @@ export interface fill_convert_request { export declare const fill_convert_request: { fromJSON(object: any): fill_convert_request; toJSON(message: fill_convert_request): unknown; - create<I extends { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount_in"], keyof asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["amount_out"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof fill_convert_request>]: never; }>(base?: I | undefined): fill_convert_request; - fromPartial<I_1 extends { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["amount_in"], keyof asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["amount_out"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof fill_convert_request>]: never; }>(object: I_1): fill_convert_request; + create<I extends Exact<DeepPartial<fill_convert_request>, I>>(base?: I): fill_convert_request; + fromPartial<I extends Exact<DeepPartial<fill_convert_request>, I>>(object: I): fill_convert_request; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_convert_request.js b/ts/protobuf_patterns/proto/fill_convert_request.js index abc3313a3aad69227762668bd8c2eb8862c371f8..8b6125c497673d62e32db37e4b05e76205da3319 100644 --- a/ts/protobuf_patterns/proto/fill_convert_request.js +++ b/ts/protobuf_patterns/proto/fill_convert_request.js @@ -30,13 +30,12 @@ export const fill_convert_request = { return obj; }, create(base) { - return fill_convert_request.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_convert_request.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasefill_convert_request(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.requestid = (_b = object.requestid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.requestid = object.requestid ?? 0; message.amount_in = (object.amount_in !== undefined && object.amount_in !== null) ? asset.fromPartial(object.amount_in) : undefined; diff --git a/ts/protobuf_patterns/proto/fill_order.d.ts b/ts/protobuf_patterns/proto/fill_order.d.ts index d0a5d7dbfe8bc3728baebc634ca5f50d9b92cf35..95f1d83b87212c355ce68f6b23666f75ba6bc82a 100644 --- a/ts/protobuf_patterns/proto/fill_order.d.ts +++ b/ts/protobuf_patterns/proto/fill_order.d.ts @@ -22,84 +22,8 @@ export interface fill_order { export declare const fill_order: { fromJSON(object: any): fill_order; toJSON(message: fill_order): unknown; - create<I extends { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["current_pays"], keyof asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["open_pays"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof fill_order>]: never; }>(base?: I | undefined): fill_order; - fromPartial<I_1 extends { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["current_pays"], keyof asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["open_pays"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof fill_order>]: never; }>(object: I_1): fill_order; + create<I extends Exact<DeepPartial<fill_order>, I>>(base?: I): fill_order; + fromPartial<I extends Exact<DeepPartial<fill_order>, I>>(object: I): fill_order; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_order.js b/ts/protobuf_patterns/proto/fill_order.js index 8df86af57327799de4c8f26a4951ad8379a3928b..27e40b4e961f0f57bd3f897c897ebc8f60a86255 100644 --- a/ts/protobuf_patterns/proto/fill_order.js +++ b/ts/protobuf_patterns/proto/fill_order.js @@ -45,18 +45,17 @@ export const fill_order = { return obj; }, create(base) { - return fill_order.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_order.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasefill_order(); - message.current_owner = (_a = object.current_owner) !== null && _a !== void 0 ? _a : ""; - message.current_orderid = (_b = object.current_orderid) !== null && _b !== void 0 ? _b : 0; + message.current_owner = object.current_owner ?? ""; + message.current_orderid = object.current_orderid ?? 0; message.current_pays = (object.current_pays !== undefined && object.current_pays !== null) ? asset.fromPartial(object.current_pays) : undefined; - message.open_owner = (_c = object.open_owner) !== null && _c !== void 0 ? _c : ""; - message.open_orderid = (_d = object.open_orderid) !== null && _d !== void 0 ? _d : 0; + message.open_owner = object.open_owner ?? ""; + message.open_orderid = object.open_orderid ?? 0; message.open_pays = (object.open_pays !== undefined && object.open_pays !== null) ? asset.fromPartial(object.open_pays) : undefined; diff --git a/ts/protobuf_patterns/proto/fill_recurrent_transfer.d.ts b/ts/protobuf_patterns/proto/fill_recurrent_transfer.d.ts index 000cf3556b3a6f6424d4a1e426f3b3414b1c0045..ec02e8850eba98316e38b34c1d3e4793c5c77d1f 100644 --- a/ts/protobuf_patterns/proto/fill_recurrent_transfer.d.ts +++ b/ts/protobuf_patterns/proto/fill_recurrent_transfer.d.ts @@ -23,56 +23,8 @@ export interface fill_recurrent_transfer { export declare const fill_recurrent_transfer: { fromJSON(object: any): fill_recurrent_transfer; toJSON(message: fill_recurrent_transfer): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_1 in Exclude<keyof I, keyof fill_recurrent_transfer>]: never; }>(base?: I | undefined): fill_recurrent_transfer; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof fill_recurrent_transfer>]: never; }>(object: I_1): fill_recurrent_transfer; + create<I extends Exact<DeepPartial<fill_recurrent_transfer>, I>>(base?: I): fill_recurrent_transfer; + fromPartial<I extends Exact<DeepPartial<fill_recurrent_transfer>, I>>(object: I): fill_recurrent_transfer; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_recurrent_transfer.js b/ts/protobuf_patterns/proto/fill_recurrent_transfer.js index 6791285cc64845cffa51653b621e937e0ad12c66..59f4bbfef8ae27d25940d02bdd1e2d1813e97c9d 100644 --- a/ts/protobuf_patterns/proto/fill_recurrent_transfer.js +++ b/ts/protobuf_patterns/proto/fill_recurrent_transfer.js @@ -34,18 +34,17 @@ export const fill_recurrent_transfer = { return obj; }, create(base) { - return fill_recurrent_transfer.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_recurrent_transfer.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasefill_recurrent_transfer(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_c = object.memo) !== null && _c !== void 0 ? _c : ""; - message.remaining_executions = (_d = object.remaining_executions) !== null && _d !== void 0 ? _d : 0; + message.memo = object.memo ?? ""; + message.remaining_executions = object.remaining_executions ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/fill_transfer_from_savings.d.ts b/ts/protobuf_patterns/proto/fill_transfer_from_savings.d.ts index 6a544c7a879004b355e6fbe6e668fbd7eb94726c..df55b4f36466fec108b548caffe55715f2e4b31f 100644 --- a/ts/protobuf_patterns/proto/fill_transfer_from_savings.d.ts +++ b/ts/protobuf_patterns/proto/fill_transfer_from_savings.d.ts @@ -20,56 +20,8 @@ export interface fill_transfer_from_savings { export declare const fill_transfer_from_savings: { fromJSON(object: any): fill_transfer_from_savings; toJSON(message: fill_transfer_from_savings): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_1 in Exclude<keyof I, keyof fill_transfer_from_savings>]: never; }>(base?: I | undefined): fill_transfer_from_savings; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof fill_transfer_from_savings>]: never; }>(object: I_1): fill_transfer_from_savings; + create<I extends Exact<DeepPartial<fill_transfer_from_savings>, I>>(base?: I): fill_transfer_from_savings; + fromPartial<I extends Exact<DeepPartial<fill_transfer_from_savings>, I>>(object: I): fill_transfer_from_savings; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_transfer_from_savings.js b/ts/protobuf_patterns/proto/fill_transfer_from_savings.js index 461755a659fe8d438fb27cd42b3b659edf00e7f6..9af14a96aa0aea206970f22b125998e7dbc4a1d4 100644 --- a/ts/protobuf_patterns/proto/fill_transfer_from_savings.js +++ b/ts/protobuf_patterns/proto/fill_transfer_from_savings.js @@ -34,18 +34,17 @@ export const fill_transfer_from_savings = { return obj; }, create(base) { - return fill_transfer_from_savings.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_transfer_from_savings.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasefill_transfer_from_savings(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.request_id = (_c = object.request_id) !== null && _c !== void 0 ? _c : 0; - message.memo = (_d = object.memo) !== null && _d !== void 0 ? _d : ""; + message.request_id = object.request_id ?? 0; + message.memo = object.memo ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/fill_vesting_withdraw.d.ts b/ts/protobuf_patterns/proto/fill_vesting_withdraw.d.ts index 65e82f063ed16ba45743db26b61fdb526a0d083f..04098499625aeb1cdcd18b6005b7ad8b286d1f8e 100644 --- a/ts/protobuf_patterns/proto/fill_vesting_withdraw.d.ts +++ b/ts/protobuf_patterns/proto/fill_vesting_withdraw.d.ts @@ -19,76 +19,8 @@ export interface fill_vesting_withdraw { export declare const fill_vesting_withdraw: { fromJSON(object: any): fill_vesting_withdraw; toJSON(message: fill_vesting_withdraw): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["withdrawn"], keyof asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["deposited"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof fill_vesting_withdraw>]: never; }>(base?: I | undefined): fill_vesting_withdraw; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["withdrawn"], keyof asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["deposited"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof fill_vesting_withdraw>]: never; }>(object: I_1): fill_vesting_withdraw; + create<I extends Exact<DeepPartial<fill_vesting_withdraw>, I>>(base?: I): fill_vesting_withdraw; + fromPartial<I extends Exact<DeepPartial<fill_vesting_withdraw>, I>>(object: I): fill_vesting_withdraw; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/fill_vesting_withdraw.js b/ts/protobuf_patterns/proto/fill_vesting_withdraw.js index 09e716c46ec657b0c2a603c8b3d4d116dab8390b..427cdb18c16244b72dadeaa3e3d4a9d1041e9543 100644 --- a/ts/protobuf_patterns/proto/fill_vesting_withdraw.js +++ b/ts/protobuf_patterns/proto/fill_vesting_withdraw.js @@ -30,13 +30,12 @@ export const fill_vesting_withdraw = { return obj; }, create(base) { - return fill_vesting_withdraw.fromPartial(base !== null && base !== void 0 ? base : {}); + return fill_vesting_withdraw.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasefill_vesting_withdraw(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.withdrawn = (object.withdrawn !== undefined && object.withdrawn !== null) ? asset.fromPartial(object.withdrawn) : undefined; diff --git a/ts/protobuf_patterns/proto/future_extensions.d.ts b/ts/protobuf_patterns/proto/future_extensions.d.ts index da5a113b42c43e4ca6e660f75492706a740c4876..1815031813eaa8231522051e7ff3d6183a9d7594 100644 --- a/ts/protobuf_patterns/proto/future_extensions.d.ts +++ b/ts/protobuf_patterns/proto/future_extensions.d.ts @@ -7,22 +7,14 @@ export interface future_extensions { export declare const void_t: { fromJSON(_: any): void_t; toJSON(_: void_t): unknown; - create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I | undefined): void_t; - fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): void_t; + create<I extends Exact<DeepPartial<void_t>, I>>(base?: I): void_t; + fromPartial<I extends Exact<DeepPartial<void_t>, I>>(_: I): void_t; }; export declare const future_extensions: { fromJSON(object: any): future_extensions; toJSON(message: future_extensions): unknown; - create<I extends { - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K in Exclude<keyof I["void_t"], never>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, "void_t">]: never; }>(base?: I | undefined): future_extensions; - fromPartial<I_1 extends { - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_2 in Exclude<keyof I_1["void_t"], never>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, "void_t">]: never; }>(object: I_1): future_extensions; + create<I extends Exact<DeepPartial<future_extensions>, I>>(base?: I): future_extensions; + fromPartial<I extends Exact<DeepPartial<future_extensions>, I>>(object: I): future_extensions; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/future_extensions.js b/ts/protobuf_patterns/proto/future_extensions.js index a94b72c904125b602688d78f17499fd7c40f3d1a..3ad56c976e80db74d6c4b96335138698c55dd468 100644 --- a/ts/protobuf_patterns/proto/future_extensions.js +++ b/ts/protobuf_patterns/proto/future_extensions.js @@ -12,7 +12,7 @@ export const void_t = { return obj; }, create(base) { - return void_t.fromPartial(base !== null && base !== void 0 ? base : {}); + return void_t.fromPartial(base ?? {}); }, fromPartial(_) { const message = createBasevoid_t(); @@ -34,7 +34,7 @@ export const future_extensions = { return obj; }, create(base) { - return future_extensions.fromPartial(base !== null && base !== void 0 ? base : {}); + return future_extensions.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBasefuture_extensions(); diff --git a/ts/protobuf_patterns/proto/hardfork.d.ts b/ts/protobuf_patterns/proto/hardfork.d.ts index 08d24233709a6f5cf3d7df18eae4848ed27fa5d7..bac1cff5dab18ac675315131027a5a08de6d10ab 100644 --- a/ts/protobuf_patterns/proto/hardfork.d.ts +++ b/ts/protobuf_patterns/proto/hardfork.d.ts @@ -10,16 +10,8 @@ export interface hardfork { export declare const hardfork: { fromJSON(object: any): hardfork; toJSON(message: hardfork): unknown; - create<I extends { - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K in Exclude<keyof I, "hardfork_id">]: never; }>(base?: I | undefined): hardfork; - fromPartial<I_1 extends { - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, "hardfork_id">]: never; }>(object: I_1): hardfork; + create<I extends Exact<DeepPartial<hardfork>, I>>(base?: I): hardfork; + fromPartial<I extends Exact<DeepPartial<hardfork>, I>>(object: I): hardfork; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/hardfork.js b/ts/protobuf_patterns/proto/hardfork.js index 87162b1c0fe81608707996de4f01f893b81f5d4d..6f2b6986dd7dee5d9fff5592b2d27a8fa5f7455f 100644 --- a/ts/protobuf_patterns/proto/hardfork.js +++ b/ts/protobuf_patterns/proto/hardfork.js @@ -15,12 +15,11 @@ export const hardfork = { return obj; }, create(base) { - return hardfork.fromPartial(base !== null && base !== void 0 ? base : {}); + return hardfork.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasehardfork(); - message.hardfork_id = (_a = object.hardfork_id) !== null && _a !== void 0 ? _a : 0; + message.hardfork_id = object.hardfork_id ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/hardfork_hive.d.ts b/ts/protobuf_patterns/proto/hardfork_hive.d.ts index 56b23450f892d87686ba272b9318ab875b88757a..d1ff85e79fb640f1999355df3baa6c6c941fa27a 100644 --- a/ts/protobuf_patterns/proto/hardfork_hive.d.ts +++ b/ts/protobuf_patterns/proto/hardfork_hive.d.ts @@ -23,136 +23,8 @@ export interface hardfork_hive { export declare const hardfork_hive: { fromJSON(object: any): hardfork_hive; toJSON(message: hardfork_hive): unknown; - create<I extends { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K in Exclude<keyof I["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hbd_transferred"], keyof asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["hive_transferred"], keyof asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I["vests_converted"], keyof asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I["total_hive_from_vests"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I, keyof hardfork_hive>]: never; }>(base?: I | undefined): hardfork_hive; - fromPartial<I_1 extends { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["hbd_transferred"], keyof asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_8 in Exclude<keyof I_1["hive_transferred"], keyof asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_9 in Exclude<keyof I_1["vests_converted"], keyof asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_10 in Exclude<keyof I_1["total_hive_from_vests"], keyof asset>]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1, keyof hardfork_hive>]: never; }>(object: I_1): hardfork_hive; + create<I extends Exact<DeepPartial<hardfork_hive>, I>>(base?: I): hardfork_hive; + fromPartial<I extends Exact<DeepPartial<hardfork_hive>, I>>(object: I): hardfork_hive; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/hardfork_hive.js b/ts/protobuf_patterns/proto/hardfork_hive.js index 3b2efde8e6b5be908476dddeb14ca59ae1fe1a88..61a250b55dc12117334c3af2921571b0e0e650d7 100644 --- a/ts/protobuf_patterns/proto/hardfork_hive.js +++ b/ts/protobuf_patterns/proto/hardfork_hive.js @@ -17,7 +17,7 @@ export const hardfork_hive = { return { account: isSet(object.account) ? globalThis.String(object.account) : "", treasury: isSet(object.treasury) ? globalThis.String(object.treasury) : "", - other_affected_accounts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.other_affected_accounts) + other_affected_accounts: globalThis.Array.isArray(object?.other_affected_accounts) ? object.other_affected_accounts.map((e) => globalThis.String(e)) : [], hbd_transferred: isSet(object.hbd_transferred) ? asset.fromJSON(object.hbd_transferred) : undefined, @@ -29,7 +29,6 @@ export const hardfork_hive = { }; }, toJSON(message) { - var _a; const obj = {}; if (message.account !== undefined) { obj.account = message.account; @@ -37,7 +36,7 @@ export const hardfork_hive = { if (message.treasury !== undefined) { obj.treasury = message.treasury; } - if ((_a = message.other_affected_accounts) === null || _a === void 0 ? void 0 : _a.length) { + if (message.other_affected_accounts?.length) { obj.other_affected_accounts = message.other_affected_accounts; } if (message.hbd_transferred !== undefined) { @@ -55,14 +54,13 @@ export const hardfork_hive = { return obj; }, create(base) { - return hardfork_hive.fromPartial(base !== null && base !== void 0 ? base : {}); + return hardfork_hive.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasehardfork_hive(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.treasury = (_b = object.treasury) !== null && _b !== void 0 ? _b : ""; - message.other_affected_accounts = ((_c = object.other_affected_accounts) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || []; + message.account = object.account ?? ""; + message.treasury = object.treasury ?? ""; + message.other_affected_accounts = object.other_affected_accounts?.map((e) => e) || []; message.hbd_transferred = (object.hbd_transferred !== undefined && object.hbd_transferred !== null) ? asset.fromPartial(object.hbd_transferred) : undefined; diff --git a/ts/protobuf_patterns/proto/hardfork_hive_restore.d.ts b/ts/protobuf_patterns/proto/hardfork_hive_restore.d.ts index 9d949b22c1ed4f7cf3c38953073129cdef9abba1..b26a522cb5065ff6ea3b2e0dcde1c9eeb85e8da4 100644 --- a/ts/protobuf_patterns/proto/hardfork_hive_restore.d.ts +++ b/ts/protobuf_patterns/proto/hardfork_hive_restore.d.ts @@ -20,76 +20,8 @@ export interface hardfork_hive_restore { export declare const hardfork_hive_restore: { fromJSON(object: any): hardfork_hive_restore; toJSON(message: hardfork_hive_restore): unknown; - create<I extends { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hbd_transferred"], keyof asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["hive_transferred"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof hardfork_hive_restore>]: never; }>(base?: I | undefined): hardfork_hive_restore; - fromPartial<I_1 extends { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["hbd_transferred"], keyof asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["hive_transferred"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof hardfork_hive_restore>]: never; }>(object: I_1): hardfork_hive_restore; + create<I extends Exact<DeepPartial<hardfork_hive_restore>, I>>(base?: I): hardfork_hive_restore; + fromPartial<I extends Exact<DeepPartial<hardfork_hive_restore>, I>>(object: I): hardfork_hive_restore; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/hardfork_hive_restore.js b/ts/protobuf_patterns/proto/hardfork_hive_restore.js index 0f8df92f119ebda3e4296a7efd6641a11bae865c..2a3509ede688405ff17d13848e4f0355e8ddde84 100644 --- a/ts/protobuf_patterns/proto/hardfork_hive_restore.js +++ b/ts/protobuf_patterns/proto/hardfork_hive_restore.js @@ -30,13 +30,12 @@ export const hardfork_hive_restore = { return obj; }, create(base) { - return hardfork_hive_restore.fromPartial(base !== null && base !== void 0 ? base : {}); + return hardfork_hive_restore.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasehardfork_hive_restore(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.treasury = (_b = object.treasury) !== null && _b !== void 0 ? _b : ""; + message.account = object.account ?? ""; + message.treasury = object.treasury ?? ""; message.hbd_transferred = (object.hbd_transferred !== undefined && object.hbd_transferred !== null) ? asset.fromPartial(object.hbd_transferred) : undefined; diff --git a/ts/protobuf_patterns/proto/ineffective_delete_comment.d.ts b/ts/protobuf_patterns/proto/ineffective_delete_comment.d.ts index d866dc5ec1803b25f57c326e1ae4870d57cc0283..3d045b10f3bef73d1e05d02af3e5580a9a1b6b6f 100644 --- a/ts/protobuf_patterns/proto/ineffective_delete_comment.d.ts +++ b/ts/protobuf_patterns/proto/ineffective_delete_comment.d.ts @@ -14,20 +14,8 @@ export interface ineffective_delete_comment { export declare const ineffective_delete_comment: { fromJSON(object: any): ineffective_delete_comment; toJSON(message: ineffective_delete_comment): unknown; - create<I extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K in Exclude<keyof I, keyof ineffective_delete_comment>]: never; }>(base?: I | undefined): ineffective_delete_comment; - fromPartial<I_1 extends { - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof ineffective_delete_comment>]: never; }>(object: I_1): ineffective_delete_comment; + create<I extends Exact<DeepPartial<ineffective_delete_comment>, I>>(base?: I): ineffective_delete_comment; + fromPartial<I extends Exact<DeepPartial<ineffective_delete_comment>, I>>(object: I): ineffective_delete_comment; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/ineffective_delete_comment.js b/ts/protobuf_patterns/proto/ineffective_delete_comment.js index e7fc7ad0e30cfaa052f379d6873d39ec1f218bf6..5e8ddf2e7bec285b711248025cb1b1ea72a6ef2d 100644 --- a/ts/protobuf_patterns/proto/ineffective_delete_comment.js +++ b/ts/protobuf_patterns/proto/ineffective_delete_comment.js @@ -21,13 +21,12 @@ export const ineffective_delete_comment = { return obj; }, create(base) { - return ineffective_delete_comment.fromPartial(base !== null && base !== void 0 ? base : {}); + return ineffective_delete_comment.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseineffective_delete_comment(); - message.author = (_a = object.author) !== null && _a !== void 0 ? _a : ""; - message.permlink = (_b = object.permlink) !== null && _b !== void 0 ? _b : ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/interest.d.ts b/ts/protobuf_patterns/proto/interest.d.ts index 5806660eaaf78e41c4e3d5e2a992bd218685658b..05e42b5fe31506a8962f97bd1e95709f44f507e4 100644 --- a/ts/protobuf_patterns/proto/interest.d.ts +++ b/ts/protobuf_patterns/proto/interest.d.ts @@ -17,48 +17,8 @@ export interface interest { export declare const interest: { fromJSON(object: any): interest; toJSON(message: interest): unknown; - create<I extends { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["interest"], keyof asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_1 in Exclude<keyof I, keyof interest>]: never; }>(base?: I | undefined): interest; - fromPartial<I_1 extends { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["interest"], keyof asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof interest>]: never; }>(object: I_1): interest; + create<I extends Exact<DeepPartial<interest>, I>>(base?: I): interest; + fromPartial<I extends Exact<DeepPartial<interest>, I>>(object: I): interest; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/interest.js b/ts/protobuf_patterns/proto/interest.js index 90117c61fadae881112b2cec8905ec851ea62786..f3cab49f1c4baf49715b978b245606a99009ca41 100644 --- a/ts/protobuf_patterns/proto/interest.js +++ b/ts/protobuf_patterns/proto/interest.js @@ -28,16 +28,15 @@ export const interest = { return obj; }, create(base) { - return interest.fromPartial(base !== null && base !== void 0 ? base : {}); + return interest.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseinterest(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; + message.owner = object.owner ?? ""; message.interest = (object.interest !== undefined && object.interest !== null) ? asset.fromPartial(object.interest) : undefined; - message.is_saved_into_hbd_balance = (_b = object.is_saved_into_hbd_balance) !== null && _b !== void 0 ? _b : false; + message.is_saved_into_hbd_balance = object.is_saved_into_hbd_balance ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/legacy_chain_properties.d.ts b/ts/protobuf_patterns/proto/legacy_chain_properties.d.ts index a90e0eca17cadc469d16945c225960505d6ce104..4e0fe63437c91745a29accb4eddae386fa34d3ce 100644 --- a/ts/protobuf_patterns/proto/legacy_chain_properties.d.ts +++ b/ts/protobuf_patterns/proto/legacy_chain_properties.d.ts @@ -21,48 +21,8 @@ export interface legacy_chain_properties { export declare const legacy_chain_properties: { fromJSON(object: any): legacy_chain_properties; toJSON(message: legacy_chain_properties): unknown; - create<I extends { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["account_creation_fee"], keyof asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_1 in Exclude<keyof I, keyof legacy_chain_properties>]: never; }>(base?: I | undefined): legacy_chain_properties; - fromPartial<I_1 extends { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["account_creation_fee"], keyof asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof legacy_chain_properties>]: never; }>(object: I_1): legacy_chain_properties; + create<I extends Exact<DeepPartial<legacy_chain_properties>, I>>(base?: I): legacy_chain_properties; + fromPartial<I extends Exact<DeepPartial<legacy_chain_properties>, I>>(object: I): legacy_chain_properties; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/legacy_chain_properties.js b/ts/protobuf_patterns/proto/legacy_chain_properties.js index 9aa83a4a30951c340d1075f18081e1aef11e0054..141b49b4617c05520fa9d7b2c06d55ec194b6851 100644 --- a/ts/protobuf_patterns/proto/legacy_chain_properties.js +++ b/ts/protobuf_patterns/proto/legacy_chain_properties.js @@ -28,16 +28,15 @@ export const legacy_chain_properties = { return obj; }, create(base) { - return legacy_chain_properties.fromPartial(base !== null && base !== void 0 ? base : {}); + return legacy_chain_properties.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaselegacy_chain_properties(); message.account_creation_fee = (object.account_creation_fee !== undefined && object.account_creation_fee !== null) ? asset.fromPartial(object.account_creation_fee) : undefined; - message.maximum_block_size = (_a = object.maximum_block_size) !== null && _a !== void 0 ? _a : 0; - message.hbd_interest_rate = (_b = object.hbd_interest_rate) !== null && _b !== void 0 ? _b : 0; + message.maximum_block_size = object.maximum_block_size ?? 0; + message.hbd_interest_rate = object.hbd_interest_rate ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/limit_order_cancel.d.ts b/ts/protobuf_patterns/proto/limit_order_cancel.d.ts index cdb9dba0e15beb3530f52623e8cf40fd48b72d99..f864e90732b7acb3d4f4fc02e844601b21378e51 100644 --- a/ts/protobuf_patterns/proto/limit_order_cancel.d.ts +++ b/ts/protobuf_patterns/proto/limit_order_cancel.d.ts @@ -17,20 +17,8 @@ export interface limit_order_cancel { export declare const limit_order_cancel: { fromJSON(object: any): limit_order_cancel; toJSON(message: limit_order_cancel): unknown; - create<I extends { - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K in Exclude<keyof I, keyof limit_order_cancel>]: never; }>(base?: I | undefined): limit_order_cancel; - fromPartial<I_1 extends { - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof limit_order_cancel>]: never; }>(object: I_1): limit_order_cancel; + create<I extends Exact<DeepPartial<limit_order_cancel>, I>>(base?: I): limit_order_cancel; + fromPartial<I extends Exact<DeepPartial<limit_order_cancel>, I>>(object: I): limit_order_cancel; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/limit_order_cancel.js b/ts/protobuf_patterns/proto/limit_order_cancel.js index 71c88ecdcef3b2becea8e085ecadb15597786529..3c45ee974190c7d4188c576433fb470aa09a645e 100644 --- a/ts/protobuf_patterns/proto/limit_order_cancel.js +++ b/ts/protobuf_patterns/proto/limit_order_cancel.js @@ -21,13 +21,12 @@ export const limit_order_cancel = { return obj; }, create(base) { - return limit_order_cancel.fromPartial(base !== null && base !== void 0 ? base : {}); + return limit_order_cancel.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaselimit_order_cancel(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.orderid = (_b = object.orderid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.orderid = object.orderid ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/limit_order_cancelled.d.ts b/ts/protobuf_patterns/proto/limit_order_cancelled.d.ts index a4ad1cb48736971707914d9e48f90b45de8a5224..371699d3c325e9fcba6b4a5f6f74727137a6ece8 100644 --- a/ts/protobuf_patterns/proto/limit_order_cancelled.d.ts +++ b/ts/protobuf_patterns/proto/limit_order_cancelled.d.ts @@ -18,48 +18,8 @@ export interface limit_order_cancelled { export declare const limit_order_cancelled: { fromJSON(object: any): limit_order_cancelled; toJSON(message: limit_order_cancelled): unknown; - create<I extends { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount_back"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof limit_order_cancelled>]: never; }>(base?: I | undefined): limit_order_cancelled; - fromPartial<I_1 extends { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount_back"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof limit_order_cancelled>]: never; }>(object: I_1): limit_order_cancelled; + create<I extends Exact<DeepPartial<limit_order_cancelled>, I>>(base?: I): limit_order_cancelled; + fromPartial<I extends Exact<DeepPartial<limit_order_cancelled>, I>>(object: I): limit_order_cancelled; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/limit_order_cancelled.js b/ts/protobuf_patterns/proto/limit_order_cancelled.js index 15f4ce81b3a3c71b50e12c98f22767cad771abbb..9505e5b84fc7f6a3253817ddaf41be2df9d00ee0 100644 --- a/ts/protobuf_patterns/proto/limit_order_cancelled.js +++ b/ts/protobuf_patterns/proto/limit_order_cancelled.js @@ -26,13 +26,12 @@ export const limit_order_cancelled = { return obj; }, create(base) { - return limit_order_cancelled.fromPartial(base !== null && base !== void 0 ? base : {}); + return limit_order_cancelled.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaselimit_order_cancelled(); - message.seller = (_a = object.seller) !== null && _a !== void 0 ? _a : ""; - message.orderid = (_b = object.orderid) !== null && _b !== void 0 ? _b : 0; + message.seller = object.seller ?? ""; + message.orderid = object.orderid ?? 0; message.amount_back = (object.amount_back !== undefined && object.amount_back !== null) ? asset.fromPartial(object.amount_back) : undefined; diff --git a/ts/protobuf_patterns/proto/limit_order_create.d.ts b/ts/protobuf_patterns/proto/limit_order_create.d.ts index afa58e17bfbd7dca5bd7ede812213f8a9ee3c4d0..7b99f952500faa0b4da8156ac4d1e822773530ce 100644 --- a/ts/protobuf_patterns/proto/limit_order_create.d.ts +++ b/ts/protobuf_patterns/proto/limit_order_create.d.ts @@ -34,84 +34,8 @@ export interface limit_order_create { export declare const limit_order_create: { fromJSON(object: any): limit_order_create; toJSON(message: limit_order_create): unknown; - create<I extends { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount_to_sell"], keyof asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["min_to_receive"], keyof asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_2 in Exclude<keyof I, keyof limit_order_create>]: never; }>(base?: I | undefined): limit_order_create; - fromPartial<I_1 extends { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["amount_to_sell"], keyof asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["min_to_receive"], keyof asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof limit_order_create>]: never; }>(object: I_1): limit_order_create; + create<I extends Exact<DeepPartial<limit_order_create>, I>>(base?: I): limit_order_create; + fromPartial<I extends Exact<DeepPartial<limit_order_create>, I>>(object: I): limit_order_create; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/limit_order_create.js b/ts/protobuf_patterns/proto/limit_order_create.js index a4fde32e91c50247424a65a6e317d6f8505dac57..3891c9ed2236a8eee0bacd534755242999a047b9 100644 --- a/ts/protobuf_patterns/proto/limit_order_create.js +++ b/ts/protobuf_patterns/proto/limit_order_create.js @@ -45,21 +45,20 @@ export const limit_order_create = { return obj; }, create(base) { - return limit_order_create.fromPartial(base !== null && base !== void 0 ? base : {}); + return limit_order_create.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaselimit_order_create(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.orderid = (_b = object.orderid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.orderid = object.orderid ?? 0; message.amount_to_sell = (object.amount_to_sell !== undefined && object.amount_to_sell !== null) ? asset.fromPartial(object.amount_to_sell) : undefined; message.min_to_receive = (object.min_to_receive !== undefined && object.min_to_receive !== null) ? asset.fromPartial(object.min_to_receive) : undefined; - message.fill_or_kill = (_c = object.fill_or_kill) !== null && _c !== void 0 ? _c : false; - message.expiration = (_d = object.expiration) !== null && _d !== void 0 ? _d : ""; + message.fill_or_kill = object.fill_or_kill ?? false; + message.expiration = object.expiration ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/limit_order_create2.d.ts b/ts/protobuf_patterns/proto/limit_order_create2.d.ts index 71b973c21623c0a4209dc52003bed0baecb76c00..7eeb55693a44e2c5b70b0d253c5080935028a214 100644 --- a/ts/protobuf_patterns/proto/limit_order_create2.d.ts +++ b/ts/protobuf_patterns/proto/limit_order_create2.d.ts @@ -30,142 +30,8 @@ export interface limit_order_create2 { export declare const limit_order_create2: { fromJSON(object: any): limit_order_create2; toJSON(message: limit_order_create2): unknown; - create<I extends { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount_to_sell"], keyof asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["exchange_rate"]["base"], keyof asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["exchange_rate"]["quote"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I["exchange_rate"], keyof price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_4 in Exclude<keyof I, keyof limit_order_create2>]: never; }>(base?: I | undefined): limit_order_create2; - fromPartial<I_1 extends { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["amount_to_sell"], keyof asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["exchange_rate"]["base"], keyof asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["exchange_rate"]["quote"], keyof asset>]: never; }) | undefined; - } & { [K_8 in Exclude<keyof I_1["exchange_rate"], keyof price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof limit_order_create2>]: never; }>(object: I_1): limit_order_create2; + create<I extends Exact<DeepPartial<limit_order_create2>, I>>(base?: I): limit_order_create2; + fromPartial<I extends Exact<DeepPartial<limit_order_create2>, I>>(object: I): limit_order_create2; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/limit_order_create2.js b/ts/protobuf_patterns/proto/limit_order_create2.js index 3d741638cea435a625b48c8b0e794d20d1e46153..7d61d63b20a1b561cf39a02ff8a2745469df29c8 100644 --- a/ts/protobuf_patterns/proto/limit_order_create2.js +++ b/ts/protobuf_patterns/proto/limit_order_create2.js @@ -46,21 +46,20 @@ export const limit_order_create2 = { return obj; }, create(base) { - return limit_order_create2.fromPartial(base !== null && base !== void 0 ? base : {}); + return limit_order_create2.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaselimit_order_create2(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.orderid = (_b = object.orderid) !== null && _b !== void 0 ? _b : 0; + message.owner = object.owner ?? ""; + message.orderid = object.orderid ?? 0; message.amount_to_sell = (object.amount_to_sell !== undefined && object.amount_to_sell !== null) ? asset.fromPartial(object.amount_to_sell) : undefined; - message.fill_or_kill = (_c = object.fill_or_kill) !== null && _c !== void 0 ? _c : false; + message.fill_or_kill = object.fill_or_kill ?? false; message.exchange_rate = (object.exchange_rate !== undefined && object.exchange_rate !== null) ? price.fromPartial(object.exchange_rate) : undefined; - message.expiration = (_d = object.expiration) !== null && _d !== void 0 ? _d : ""; + message.expiration = object.expiration ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/liquidity_reward.d.ts b/ts/protobuf_patterns/proto/liquidity_reward.d.ts index f5088c679c00b6846dd306eb54c1038832d33b80..eae1fd54fbeaacda35bdac3ec42b3ab1fa48dfdd 100644 --- a/ts/protobuf_patterns/proto/liquidity_reward.d.ts +++ b/ts/protobuf_patterns/proto/liquidity_reward.d.ts @@ -15,44 +15,8 @@ export interface liquidity_reward { export declare const liquidity_reward: { fromJSON(object: any): liquidity_reward; toJSON(message: liquidity_reward): unknown; - create<I extends { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["payout"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof liquidity_reward>]: never; }>(base?: I | undefined): liquidity_reward; - fromPartial<I_1 extends { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["payout"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof liquidity_reward>]: never; }>(object: I_1): liquidity_reward; + create<I extends Exact<DeepPartial<liquidity_reward>, I>>(base?: I): liquidity_reward; + fromPartial<I extends Exact<DeepPartial<liquidity_reward>, I>>(object: I): liquidity_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/liquidity_reward.js b/ts/protobuf_patterns/proto/liquidity_reward.js index 016a5f5574e5b2e5dc995ea97f79814cfe244795..9ac15bff400bfb5aebaaf10b7c7eb3723a393a42 100644 --- a/ts/protobuf_patterns/proto/liquidity_reward.js +++ b/ts/protobuf_patterns/proto/liquidity_reward.js @@ -22,12 +22,11 @@ export const liquidity_reward = { return obj; }, create(base) { - return liquidity_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return liquidity_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseliquidity_reward(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; + message.owner = object.owner ?? ""; message.payout = (object.payout !== undefined && object.payout !== null) ? asset.fromPartial(object.payout) : undefined; diff --git a/ts/protobuf_patterns/proto/operation.d.ts b/ts/protobuf_patterns/proto/operation.d.ts index 2e11f63008cb7766b613eef6917de31014e3406e..dd81083b03e718d96564a4682a456e855c466e7f 100644 --- a/ts/protobuf_patterns/proto/operation.d.ts +++ b/ts/protobuf_patterns/proto/operation.d.ts @@ -189,8348 +189,8 @@ export interface operation { export declare const operation: { fromJSON(object: any): operation; toJSON(message: operation): unknown; - create<I extends { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - } & { - vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I["vote"], keyof vote>]: never; }) | undefined; - comment?: ({ - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K_1 in Exclude<keyof I["comment"], keyof comment>]: never; }) | undefined; - transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I["transfer"], keyof transfer>]: never; }) | undefined; - transfer_to_vesting?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I["transfer_to_vesting"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["transfer_to_vesting"], keyof transfer_to_vesting>]: never; }) | undefined; - withdraw_vesting?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I["withdraw_vesting"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I["withdraw_vesting"], keyof withdraw_vesting>]: never; }) | undefined; - limit_order_create?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_8 in Exclude<keyof I["limit_order_create"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_9 in Exclude<keyof I["limit_order_create"]["min_to_receive"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_10 in Exclude<keyof I["limit_order_create"], keyof limit_order_create>]: never; }) | undefined; - limit_order_cancel?: ({ - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K_11 in Exclude<keyof I["limit_order_cancel"], keyof limit_order_cancel>]: never; }) | undefined; - feed_publish?: ({ - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_12 in Exclude<keyof I["feed_publish"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_13 in Exclude<keyof I["feed_publish"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_14 in Exclude<keyof I["feed_publish"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I["feed_publish"], keyof feed_publish>]: never; }) | undefined; - convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_16 in Exclude<keyof I["convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_17 in Exclude<keyof I["convert"], keyof convert>]: never; }) | undefined; - account_create?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_18 in Exclude<keyof I["account_create"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_19 in Exclude<keyof I["account_create"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_20 in Exclude<keyof I["account_create"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_21 in Exclude<keyof I["account_create"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_22 in Exclude<keyof I["account_create"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_23 in Exclude<keyof I["account_create"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_24 in Exclude<keyof I["account_create"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_25 in Exclude<keyof I["account_create"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_26 in Exclude<keyof I["account_create"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_27 in Exclude<keyof I["account_create"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_28 in Exclude<keyof I["account_create"], keyof account_create>]: never; }) | undefined; - account_update?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_29 in Exclude<keyof I["account_update"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_30 in Exclude<keyof I["account_update"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_31 in Exclude<keyof I["account_update"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_32 in Exclude<keyof I["account_update"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_33 in Exclude<keyof I["account_update"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_34 in Exclude<keyof I["account_update"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_35 in Exclude<keyof I["account_update"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_36 in Exclude<keyof I["account_update"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_37 in Exclude<keyof I["account_update"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_38 in Exclude<keyof I["account_update"], keyof account_update>]: never; }) | undefined; - witness_update?: ({ - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_39 in Exclude<keyof I["witness_update"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_40 in Exclude<keyof I["witness_update"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_41 in Exclude<keyof I["witness_update"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_42 in Exclude<keyof I["witness_update"], keyof witness_update>]: never; }) | undefined; - account_witness_vote?: ({ - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K_43 in Exclude<keyof I["account_witness_vote"], keyof account_witness_vote>]: never; }) | undefined; - account_witness_proxy?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_44 in Exclude<keyof I["account_witness_proxy"], keyof account_witness_proxy>]: never; }) | undefined; - pow?: ({ - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_45 in Exclude<keyof I["pow"]["work"], keyof import("./pow.js").pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_46 in Exclude<keyof I["pow"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_47 in Exclude<keyof I["pow"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_48 in Exclude<keyof I["pow"], keyof pow>]: never; }) | undefined; - custom?: ({ - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_49 in Exclude<keyof I["custom"]["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_50 in Exclude<keyof I["custom"], keyof custom>]: never; }) | undefined; - witness_block_approve?: ({ - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K_51 in Exclude<keyof I["witness_block_approve"], keyof witness_block_approve>]: never; }) | undefined; - delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_52 in Exclude<keyof I["delete_comment"], keyof delete_comment>]: never; }) | undefined; - custom_json?: ({ - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_53 in Exclude<keyof I["custom_json"]["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_54 in Exclude<keyof I["custom_json"]["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_55 in Exclude<keyof I["custom_json"], keyof custom_json>]: never; }) | undefined; - comment_options?: ({ - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_56 in Exclude<keyof I["comment_options"]["max_accepted_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_57 in Exclude<keyof I["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof import("./comment_options.js").beneficiary_route_type>]: never; })[] & { [K_58 in Exclude<keyof I["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_59 in Exclude<keyof I["comment_options"]["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_60 in Exclude<keyof I["comment_options"]["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_61 in Exclude<keyof I["comment_options"]["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_62 in Exclude<keyof I["comment_options"], keyof comment_options>]: never; }) | undefined; - set_withdraw_vesting_route?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K_63 in Exclude<keyof I["set_withdraw_vesting_route"], keyof set_withdraw_vesting_route>]: never; }) | undefined; - limit_order_create2?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_64 in Exclude<keyof I["limit_order_create2"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_65 in Exclude<keyof I["limit_order_create2"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_66 in Exclude<keyof I["limit_order_create2"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_67 in Exclude<keyof I["limit_order_create2"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_68 in Exclude<keyof I["limit_order_create2"], keyof limit_order_create2>]: never; }) | undefined; - claim_account?: ({ - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_69 in Exclude<keyof I["claim_account"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_70 in Exclude<keyof I["claim_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_71 in Exclude<keyof I["claim_account"]["extensions"][number], "void_t">]: never; })[] & { [K_72 in Exclude<keyof I["claim_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_73 in Exclude<keyof I["claim_account"], keyof claim_account>]: never; }) | undefined; - create_claimed_account?: ({ - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_74 in Exclude<keyof I["create_claimed_account"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_75 in Exclude<keyof I["create_claimed_account"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_76 in Exclude<keyof I["create_claimed_account"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_77 in Exclude<keyof I["create_claimed_account"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_78 in Exclude<keyof I["create_claimed_account"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_79 in Exclude<keyof I["create_claimed_account"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_80 in Exclude<keyof I["create_claimed_account"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_81 in Exclude<keyof I["create_claimed_account"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_82 in Exclude<keyof I["create_claimed_account"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_83 in Exclude<keyof I["create_claimed_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_84 in Exclude<keyof I["create_claimed_account"]["extensions"][number], "void_t">]: never; })[] & { [K_85 in Exclude<keyof I["create_claimed_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_86 in Exclude<keyof I["create_claimed_account"], keyof create_claimed_account>]: never; }) | undefined; - request_account_recovery?: ({ - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_87 in Exclude<keyof I["request_account_recovery"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_88 in Exclude<keyof I["request_account_recovery"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_89 in Exclude<keyof I["request_account_recovery"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_90 in Exclude<keyof I["request_account_recovery"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_91 in Exclude<keyof I["request_account_recovery"]["extensions"][number], "void_t">]: never; })[] & { [K_92 in Exclude<keyof I["request_account_recovery"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_93 in Exclude<keyof I["request_account_recovery"], keyof request_account_recovery>]: never; }) | undefined; - recover_account?: ({ - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_94 in Exclude<keyof I["recover_account"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_95 in Exclude<keyof I["recover_account"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_96 in Exclude<keyof I["recover_account"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_97 in Exclude<keyof I["recover_account"]["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_98 in Exclude<keyof I["recover_account"]["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_99 in Exclude<keyof I["recover_account"]["recent_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_100 in Exclude<keyof I["recover_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_101 in Exclude<keyof I["recover_account"]["extensions"][number], "void_t">]: never; })[] & { [K_102 in Exclude<keyof I["recover_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_103 in Exclude<keyof I["recover_account"], keyof recover_account>]: never; }) | undefined; - change_recovery_account?: ({ - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_104 in Exclude<keyof I["change_recovery_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_105 in Exclude<keyof I["change_recovery_account"]["extensions"][number], "void_t">]: never; })[] & { [K_106 in Exclude<keyof I["change_recovery_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_107 in Exclude<keyof I["change_recovery_account"], keyof change_recovery_account>]: never; }) | undefined; - escrow_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_108 in Exclude<keyof I["escrow_transfer"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_109 in Exclude<keyof I["escrow_transfer"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_110 in Exclude<keyof I["escrow_transfer"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_111 in Exclude<keyof I["escrow_transfer"], keyof escrow_transfer>]: never; }) | undefined; - escrow_dispute?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K_112 in Exclude<keyof I["escrow_dispute"], keyof escrow_dispute>]: never; }) | undefined; - escrow_release?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_113 in Exclude<keyof I["escrow_release"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_114 in Exclude<keyof I["escrow_release"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_115 in Exclude<keyof I["escrow_release"], keyof escrow_release>]: never; }) | undefined; - pow2?: ({ - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_116 in Exclude<keyof I["pow2"]["work"]["pow2"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_117 in Exclude<keyof I["pow2"]["work"]["pow2"], keyof import("./pow2.js").pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_118 in Exclude<keyof I["pow2"]["work"]["equihash_pow"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_119 in Exclude<keyof I["pow2"]["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_120 in Exclude<keyof I["pow2"]["work"]["equihash_pow"]["proof"], keyof import("./pow2.js").equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_121 in Exclude<keyof I["pow2"]["work"]["equihash_pow"], keyof import("./pow2.js").equihash_pow>]: never; }) | undefined; - } & { [K_122 in Exclude<keyof I["pow2"]["work"], keyof import("./pow2.js").pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_123 in Exclude<keyof I["pow2"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_124 in Exclude<keyof I["pow2"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_125 in Exclude<keyof I["pow2"], keyof pow2>]: never; }) | undefined; - escrow_approve?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K_126 in Exclude<keyof I["escrow_approve"], keyof escrow_approve>]: never; }) | undefined; - transfer_to_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_127 in Exclude<keyof I["transfer_to_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_128 in Exclude<keyof I["transfer_to_savings"], keyof transfer_to_savings>]: never; }) | undefined; - transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_129 in Exclude<keyof I["transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_130 in Exclude<keyof I["transfer_from_savings"], keyof transfer_from_savings>]: never; }) | undefined; - cancel_transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K_131 in Exclude<keyof I["cancel_transfer_from_savings"], keyof cancel_transfer_from_savings>]: never; }) | undefined; - decline_voting_rights?: ({ - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K_132 in Exclude<keyof I["decline_voting_rights"], keyof decline_voting_rights>]: never; }) | undefined; - claim_reward_balance?: ({ - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_133 in Exclude<keyof I["claim_reward_balance"]["reward_hive"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_134 in Exclude<keyof I["claim_reward_balance"]["reward_hbd"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_135 in Exclude<keyof I["claim_reward_balance"]["reward_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_136 in Exclude<keyof I["claim_reward_balance"], keyof claim_reward_balance>]: never; }) | undefined; - delegate_vesting_shares?: ({ - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_137 in Exclude<keyof I["delegate_vesting_shares"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_138 in Exclude<keyof I["delegate_vesting_shares"], keyof delegate_vesting_shares>]: never; }) | undefined; - account_create_with_delegation?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_139 in Exclude<keyof I["account_create_with_delegation"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_140 in Exclude<keyof I["account_create_with_delegation"]["delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_141 in Exclude<keyof I["account_create_with_delegation"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_142 in Exclude<keyof I["account_create_with_delegation"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_143 in Exclude<keyof I["account_create_with_delegation"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_144 in Exclude<keyof I["account_create_with_delegation"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_145 in Exclude<keyof I["account_create_with_delegation"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_146 in Exclude<keyof I["account_create_with_delegation"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_147 in Exclude<keyof I["account_create_with_delegation"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_148 in Exclude<keyof I["account_create_with_delegation"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_149 in Exclude<keyof I["account_create_with_delegation"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_150 in Exclude<keyof I["account_create_with_delegation"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_151 in Exclude<keyof I["account_create_with_delegation"]["extensions"][number], "void_t">]: never; })[] & { [K_152 in Exclude<keyof I["account_create_with_delegation"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_153 in Exclude<keyof I["account_create_with_delegation"], keyof account_create_with_delegation>]: never; }) | undefined; - witness_set_properties?: ({ - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K_154 in Exclude<keyof I["witness_set_properties"]["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_155 in Exclude<keyof I["witness_set_properties"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_156 in Exclude<keyof I["witness_set_properties"]["extensions"][number], "void_t">]: never; })[] & { [K_157 in Exclude<keyof I["witness_set_properties"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_158 in Exclude<keyof I["witness_set_properties"], keyof witness_set_properties>]: never; }) | undefined; - account_update2?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_159 in Exclude<keyof I["account_update2"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_160 in Exclude<keyof I["account_update2"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_161 in Exclude<keyof I["account_update2"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_162 in Exclude<keyof I["account_update2"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_163 in Exclude<keyof I["account_update2"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_164 in Exclude<keyof I["account_update2"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_165 in Exclude<keyof I["account_update2"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_166 in Exclude<keyof I["account_update2"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_167 in Exclude<keyof I["account_update2"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_168 in Exclude<keyof I["account_update2"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_169 in Exclude<keyof I["account_update2"]["extensions"][number], "void_t">]: never; })[] & { [K_170 in Exclude<keyof I["account_update2"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_171 in Exclude<keyof I["account_update2"], keyof account_update2>]: never; }) | undefined; - create_proposal?: ({ - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_172 in Exclude<keyof I["create_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_173 in Exclude<keyof I["create_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_174 in Exclude<keyof I["create_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_175 in Exclude<keyof I["create_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_176 in Exclude<keyof I["create_proposal"], keyof create_proposal>]: never; }) | undefined; - update_proposal_votes?: ({ - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_177 in Exclude<keyof I["update_proposal_votes"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_178 in Exclude<keyof I["update_proposal_votes"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_179 in Exclude<keyof I["update_proposal_votes"]["extensions"][number], "void_t">]: never; })[] & { [K_180 in Exclude<keyof I["update_proposal_votes"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_181 in Exclude<keyof I["update_proposal_votes"], keyof update_proposal_votes>]: never; }) | undefined; - remove_proposal?: ({ - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_182 in Exclude<keyof I["remove_proposal"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_183 in Exclude<keyof I["remove_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_184 in Exclude<keyof I["remove_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_185 in Exclude<keyof I["remove_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_186 in Exclude<keyof I["remove_proposal"], keyof remove_proposal>]: never; }) | undefined; - update_proposal?: ({ - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_187 in Exclude<keyof I["update_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_188 in Exclude<keyof I["update_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_189 in Exclude<keyof I["update_proposal"]["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_190 in Exclude<keyof I["update_proposal"]["extensions"][number], keyof import("./update_proposal.js").update_proposal_extension>]: never; })[] & { [K_191 in Exclude<keyof I["update_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_192 in Exclude<keyof I["update_proposal"], keyof update_proposal>]: never; }) | undefined; - collateralized_convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_193 in Exclude<keyof I["collateralized_convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_194 in Exclude<keyof I["collateralized_convert"], keyof collateralized_convert>]: never; }) | undefined; - recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_195 in Exclude<keyof I["recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_196 in Exclude<keyof I["recurrent_transfer"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_197 in Exclude<keyof I["recurrent_transfer"]["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_198 in Exclude<keyof I["recurrent_transfer"]["extensions"][number], keyof import("./recurrent_transfer.js").recurrent_transfer_extension>]: never; })[] & { [K_199 in Exclude<keyof I["recurrent_transfer"]["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_200 in Exclude<keyof I["recurrent_transfer"], keyof recurrent_transfer>]: never; }) | undefined; - fill_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_201 in Exclude<keyof I["fill_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_202 in Exclude<keyof I["fill_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_203 in Exclude<keyof I["fill_convert_request"], keyof fill_convert_request>]: never; }) | undefined; - author_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_204 in Exclude<keyof I["author_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_205 in Exclude<keyof I["author_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_206 in Exclude<keyof I["author_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_207 in Exclude<keyof I["author_reward"]["curators_vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_208 in Exclude<keyof I["author_reward"], keyof author_reward>]: never; }) | undefined; - curation_reward?: ({ - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_209 in Exclude<keyof I["curation_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_210 in Exclude<keyof I["curation_reward"], keyof curation_reward>]: never; }) | undefined; - comment_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_211 in Exclude<keyof I["comment_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_212 in Exclude<keyof I["comment_reward"]["total_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_213 in Exclude<keyof I["comment_reward"]["curator_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_214 in Exclude<keyof I["comment_reward"]["beneficiary_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_215 in Exclude<keyof I["comment_reward"], keyof comment_reward>]: never; }) | undefined; - liquidity_reward?: ({ - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_216 in Exclude<keyof I["liquidity_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_217 in Exclude<keyof I["liquidity_reward"], keyof liquidity_reward>]: never; }) | undefined; - interest?: ({ - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_218 in Exclude<keyof I["interest"]["interest"], keyof import("./asset.js").asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_219 in Exclude<keyof I["interest"], keyof interest>]: never; }) | undefined; - fill_vesting_withdraw?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_220 in Exclude<keyof I["fill_vesting_withdraw"]["withdrawn"], keyof import("./asset.js").asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_221 in Exclude<keyof I["fill_vesting_withdraw"]["deposited"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_222 in Exclude<keyof I["fill_vesting_withdraw"], keyof fill_vesting_withdraw>]: never; }) | undefined; - fill_order?: ({ - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_223 in Exclude<keyof I["fill_order"]["current_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_224 in Exclude<keyof I["fill_order"]["open_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_225 in Exclude<keyof I["fill_order"], keyof fill_order>]: never; }) | undefined; - shutdown_witness?: ({ - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K_226 in Exclude<keyof I["shutdown_witness"], "owner">]: never; }) | undefined; - fill_transfer_from_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_227 in Exclude<keyof I["fill_transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_228 in Exclude<keyof I["fill_transfer_from_savings"], keyof fill_transfer_from_savings>]: never; }) | undefined; - hardfork?: ({ - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K_229 in Exclude<keyof I["hardfork"], "hardfork_id">]: never; }) | undefined; - comment_payout_update?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_230 in Exclude<keyof I["comment_payout_update"], keyof comment_payout_update>]: never; }) | undefined; - return_vesting_delegation?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_231 in Exclude<keyof I["return_vesting_delegation"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_232 in Exclude<keyof I["return_vesting_delegation"], keyof return_vesting_delegation>]: never; }) | undefined; - comment_benefactor_reward?: ({ - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_233 in Exclude<keyof I["comment_benefactor_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_234 in Exclude<keyof I["comment_benefactor_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_235 in Exclude<keyof I["comment_benefactor_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_236 in Exclude<keyof I["comment_benefactor_reward"], keyof comment_benefactor_reward>]: never; }) | undefined; - producer_reward?: ({ - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_237 in Exclude<keyof I["producer_reward"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_238 in Exclude<keyof I["producer_reward"], keyof producer_reward>]: never; }) | undefined; - clear_null_account_balance?: ({ - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_239 in Exclude<keyof I["clear_null_account_balance"]["total_cleared"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_240 in Exclude<keyof I["clear_null_account_balance"]["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_241 in Exclude<keyof I["clear_null_account_balance"], "total_cleared">]: never; }) | undefined; - proposal_pay?: ({ - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_242 in Exclude<keyof I["proposal_pay"]["payment"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_243 in Exclude<keyof I["proposal_pay"], keyof proposal_pay>]: never; }) | undefined; - dhf_funding?: ({ - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_244 in Exclude<keyof I["dhf_funding"]["additional_funds"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_245 in Exclude<keyof I["dhf_funding"], keyof dhf_funding>]: never; }) | undefined; - hardfork_hive?: ({ - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K_246 in Exclude<keyof I["hardfork_hive"]["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_247 in Exclude<keyof I["hardfork_hive"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_248 in Exclude<keyof I["hardfork_hive"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_249 in Exclude<keyof I["hardfork_hive"]["vests_converted"], keyof import("./asset.js").asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_250 in Exclude<keyof I["hardfork_hive"]["total_hive_from_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_251 in Exclude<keyof I["hardfork_hive"], keyof hardfork_hive>]: never; }) | undefined; - hardfork_hive_restore?: ({ - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_252 in Exclude<keyof I["hardfork_hive_restore"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_253 in Exclude<keyof I["hardfork_hive_restore"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_254 in Exclude<keyof I["hardfork_hive_restore"], keyof hardfork_hive_restore>]: never; }) | undefined; - delayed_voting?: ({ - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K_255 in Exclude<keyof I["delayed_voting"], keyof delayed_voting>]: never; }) | undefined; - consolidate_treasury_balance?: ({ - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_256 in Exclude<keyof I["consolidate_treasury_balance"]["total_moved"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_257 in Exclude<keyof I["consolidate_treasury_balance"]["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_258 in Exclude<keyof I["consolidate_treasury_balance"], "total_moved">]: never; }) | undefined; - effective_comment_vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_259 in Exclude<keyof I["effective_comment_vote"]["pending_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_260 in Exclude<keyof I["effective_comment_vote"], keyof effective_comment_vote>]: never; }) | undefined; - ineffective_delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_261 in Exclude<keyof I["ineffective_delete_comment"], keyof ineffective_delete_comment>]: never; }) | undefined; - dhf_conversion?: ({ - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_262 in Exclude<keyof I["dhf_conversion"]["hive_amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_263 in Exclude<keyof I["dhf_conversion"]["hbd_amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_264 in Exclude<keyof I["dhf_conversion"], keyof dhf_conversion>]: never; }) | undefined; - expired_account_notification?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_265 in Exclude<keyof I["expired_account_notification"], "account">]: never; }) | undefined; - changed_recovery_account?: ({ - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K_266 in Exclude<keyof I["changed_recovery_account"], keyof changed_recovery_account>]: never; }) | undefined; - transfer_to_vesting_completed?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_267 in Exclude<keyof I["transfer_to_vesting_completed"]["hive_vested"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_268 in Exclude<keyof I["transfer_to_vesting_completed"]["vesting_shares_received"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_269 in Exclude<keyof I["transfer_to_vesting_completed"], keyof transfer_to_vesting_completed>]: never; }) | undefined; - pow_reward?: ({ - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_270 in Exclude<keyof I["pow_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_271 in Exclude<keyof I["pow_reward"], keyof pow_reward>]: never; }) | undefined; - vesting_shares_split?: ({ - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_272 in Exclude<keyof I["vesting_shares_split"]["vesting_shares_before_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_273 in Exclude<keyof I["vesting_shares_split"]["vesting_shares_after_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_274 in Exclude<keyof I["vesting_shares_split"], keyof vesting_shares_split>]: never; }) | undefined; - account_created?: ({ - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_275 in Exclude<keyof I["account_created"]["initial_vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_276 in Exclude<keyof I["account_created"]["initial_delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_277 in Exclude<keyof I["account_created"], keyof account_created>]: never; }) | undefined; - fill_collateralized_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_278 in Exclude<keyof I["fill_collateralized_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_279 in Exclude<keyof I["fill_collateralized_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_280 in Exclude<keyof I["fill_collateralized_convert_request"]["excess_collateral"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_281 in Exclude<keyof I["fill_collateralized_convert_request"], keyof fill_collateralized_convert_request>]: never; }) | undefined; - system_warning?: ({ - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K_282 in Exclude<keyof I["system_warning"], "message">]: never; }) | undefined; - fill_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_283 in Exclude<keyof I["fill_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_284 in Exclude<keyof I["fill_recurrent_transfer"], keyof fill_recurrent_transfer>]: never; }) | undefined; - failed_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_285 in Exclude<keyof I["failed_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_286 in Exclude<keyof I["failed_recurrent_transfer"], keyof failed_recurrent_transfer>]: never; }) | undefined; - limit_order_cancelled?: ({ - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_287 in Exclude<keyof I["limit_order_cancelled"]["amount_back"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_288 in Exclude<keyof I["limit_order_cancelled"], keyof limit_order_cancelled>]: never; }) | undefined; - producer_missed?: ({ - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K_289 in Exclude<keyof I["producer_missed"], "producer">]: never; }) | undefined; - proposal_fee?: ({ - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_290 in Exclude<keyof I["proposal_fee"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_291 in Exclude<keyof I["proposal_fee"], keyof proposal_fee>]: never; }) | undefined; - collateralized_convert_immediate_conversion?: ({ - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_292 in Exclude<keyof I["collateralized_convert_immediate_conversion"]["hbd_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_293 in Exclude<keyof I["collateralized_convert_immediate_conversion"], keyof collateralized_convert_immediate_conversion>]: never; }) | undefined; - escrow_approved?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_294 in Exclude<keyof I["escrow_approved"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_295 in Exclude<keyof I["escrow_approved"], keyof escrow_approved>]: never; }) | undefined; - escrow_rejected?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_296 in Exclude<keyof I["escrow_rejected"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_297 in Exclude<keyof I["escrow_rejected"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_298 in Exclude<keyof I["escrow_rejected"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_299 in Exclude<keyof I["escrow_rejected"], keyof escrow_rejected>]: never; }) | undefined; - proxy_cleared?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_300 in Exclude<keyof I["proxy_cleared"], keyof proxy_cleared>]: never; }) | undefined; - declined_voting_rights?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_301 in Exclude<keyof I["declined_voting_rights"], "account">]: never; }) | undefined; - } & { [K_302 in Exclude<keyof I, keyof operation>]: never; }>(base?: I | undefined): operation; - fromPartial<I_1 extends { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - } & { - vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K_303 in Exclude<keyof I_1["vote"], keyof vote>]: never; }) | undefined; - comment?: ({ - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K_304 in Exclude<keyof I_1["comment"], keyof comment>]: never; }) | undefined; - transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_305 in Exclude<keyof I_1["transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_306 in Exclude<keyof I_1["transfer"], keyof transfer>]: never; }) | undefined; - transfer_to_vesting?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_307 in Exclude<keyof I_1["transfer_to_vesting"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_308 in Exclude<keyof I_1["transfer_to_vesting"], keyof transfer_to_vesting>]: never; }) | undefined; - withdraw_vesting?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_309 in Exclude<keyof I_1["withdraw_vesting"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_310 in Exclude<keyof I_1["withdraw_vesting"], keyof withdraw_vesting>]: never; }) | undefined; - limit_order_create?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_311 in Exclude<keyof I_1["limit_order_create"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_312 in Exclude<keyof I_1["limit_order_create"]["min_to_receive"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_313 in Exclude<keyof I_1["limit_order_create"], keyof limit_order_create>]: never; }) | undefined; - limit_order_cancel?: ({ - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K_314 in Exclude<keyof I_1["limit_order_cancel"], keyof limit_order_cancel>]: never; }) | undefined; - feed_publish?: ({ - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_315 in Exclude<keyof I_1["feed_publish"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_316 in Exclude<keyof I_1["feed_publish"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_317 in Exclude<keyof I_1["feed_publish"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - } & { [K_318 in Exclude<keyof I_1["feed_publish"], keyof feed_publish>]: never; }) | undefined; - convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_319 in Exclude<keyof I_1["convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_320 in Exclude<keyof I_1["convert"], keyof convert>]: never; }) | undefined; - account_create?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_321 in Exclude<keyof I_1["account_create"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_322 in Exclude<keyof I_1["account_create"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_323 in Exclude<keyof I_1["account_create"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_324 in Exclude<keyof I_1["account_create"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_325 in Exclude<keyof I_1["account_create"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_326 in Exclude<keyof I_1["account_create"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_327 in Exclude<keyof I_1["account_create"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_328 in Exclude<keyof I_1["account_create"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_329 in Exclude<keyof I_1["account_create"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_330 in Exclude<keyof I_1["account_create"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_331 in Exclude<keyof I_1["account_create"], keyof account_create>]: never; }) | undefined; - account_update?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_332 in Exclude<keyof I_1["account_update"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_333 in Exclude<keyof I_1["account_update"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_334 in Exclude<keyof I_1["account_update"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_335 in Exclude<keyof I_1["account_update"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_336 in Exclude<keyof I_1["account_update"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_337 in Exclude<keyof I_1["account_update"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_338 in Exclude<keyof I_1["account_update"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_339 in Exclude<keyof I_1["account_update"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_340 in Exclude<keyof I_1["account_update"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_341 in Exclude<keyof I_1["account_update"], keyof account_update>]: never; }) | undefined; - witness_update?: ({ - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_342 in Exclude<keyof I_1["witness_update"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_343 in Exclude<keyof I_1["witness_update"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_344 in Exclude<keyof I_1["witness_update"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_345 in Exclude<keyof I_1["witness_update"], keyof witness_update>]: never; }) | undefined; - account_witness_vote?: ({ - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K_346 in Exclude<keyof I_1["account_witness_vote"], keyof account_witness_vote>]: never; }) | undefined; - account_witness_proxy?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_347 in Exclude<keyof I_1["account_witness_proxy"], keyof account_witness_proxy>]: never; }) | undefined; - pow?: ({ - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_348 in Exclude<keyof I_1["pow"]["work"], keyof import("./pow.js").pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_349 in Exclude<keyof I_1["pow"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_350 in Exclude<keyof I_1["pow"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_351 in Exclude<keyof I_1["pow"], keyof pow>]: never; }) | undefined; - custom?: ({ - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_352 in Exclude<keyof I_1["custom"]["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_353 in Exclude<keyof I_1["custom"], keyof custom>]: never; }) | undefined; - witness_block_approve?: ({ - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K_354 in Exclude<keyof I_1["witness_block_approve"], keyof witness_block_approve>]: never; }) | undefined; - delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_355 in Exclude<keyof I_1["delete_comment"], keyof delete_comment>]: never; }) | undefined; - custom_json?: ({ - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_356 in Exclude<keyof I_1["custom_json"]["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_357 in Exclude<keyof I_1["custom_json"]["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_358 in Exclude<keyof I_1["custom_json"], keyof custom_json>]: never; }) | undefined; - comment_options?: ({ - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_359 in Exclude<keyof I_1["comment_options"]["max_accepted_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_360 in Exclude<keyof I_1["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof import("./comment_options.js").beneficiary_route_type>]: never; })[] & { [K_361 in Exclude<keyof I_1["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_362 in Exclude<keyof I_1["comment_options"]["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_363 in Exclude<keyof I_1["comment_options"]["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_364 in Exclude<keyof I_1["comment_options"]["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_365 in Exclude<keyof I_1["comment_options"], keyof comment_options>]: never; }) | undefined; - set_withdraw_vesting_route?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K_366 in Exclude<keyof I_1["set_withdraw_vesting_route"], keyof set_withdraw_vesting_route>]: never; }) | undefined; - limit_order_create2?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_367 in Exclude<keyof I_1["limit_order_create2"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_368 in Exclude<keyof I_1["limit_order_create2"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_369 in Exclude<keyof I_1["limit_order_create2"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_370 in Exclude<keyof I_1["limit_order_create2"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_371 in Exclude<keyof I_1["limit_order_create2"], keyof limit_order_create2>]: never; }) | undefined; - claim_account?: ({ - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_372 in Exclude<keyof I_1["claim_account"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_373 in Exclude<keyof I_1["claim_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_374 in Exclude<keyof I_1["claim_account"]["extensions"][number], "void_t">]: never; })[] & { [K_375 in Exclude<keyof I_1["claim_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_376 in Exclude<keyof I_1["claim_account"], keyof claim_account>]: never; }) | undefined; - create_claimed_account?: ({ - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_377 in Exclude<keyof I_1["create_claimed_account"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_378 in Exclude<keyof I_1["create_claimed_account"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_379 in Exclude<keyof I_1["create_claimed_account"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_380 in Exclude<keyof I_1["create_claimed_account"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_381 in Exclude<keyof I_1["create_claimed_account"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_382 in Exclude<keyof I_1["create_claimed_account"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_383 in Exclude<keyof I_1["create_claimed_account"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_384 in Exclude<keyof I_1["create_claimed_account"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_385 in Exclude<keyof I_1["create_claimed_account"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_386 in Exclude<keyof I_1["create_claimed_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_387 in Exclude<keyof I_1["create_claimed_account"]["extensions"][number], "void_t">]: never; })[] & { [K_388 in Exclude<keyof I_1["create_claimed_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_389 in Exclude<keyof I_1["create_claimed_account"], keyof create_claimed_account>]: never; }) | undefined; - request_account_recovery?: ({ - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_390 in Exclude<keyof I_1["request_account_recovery"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_391 in Exclude<keyof I_1["request_account_recovery"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_392 in Exclude<keyof I_1["request_account_recovery"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_393 in Exclude<keyof I_1["request_account_recovery"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_394 in Exclude<keyof I_1["request_account_recovery"]["extensions"][number], "void_t">]: never; })[] & { [K_395 in Exclude<keyof I_1["request_account_recovery"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_396 in Exclude<keyof I_1["request_account_recovery"], keyof request_account_recovery>]: never; }) | undefined; - recover_account?: ({ - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_397 in Exclude<keyof I_1["recover_account"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_398 in Exclude<keyof I_1["recover_account"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_399 in Exclude<keyof I_1["recover_account"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_400 in Exclude<keyof I_1["recover_account"]["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_401 in Exclude<keyof I_1["recover_account"]["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_402 in Exclude<keyof I_1["recover_account"]["recent_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_403 in Exclude<keyof I_1["recover_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_404 in Exclude<keyof I_1["recover_account"]["extensions"][number], "void_t">]: never; })[] & { [K_405 in Exclude<keyof I_1["recover_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_406 in Exclude<keyof I_1["recover_account"], keyof recover_account>]: never; }) | undefined; - change_recovery_account?: ({ - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_407 in Exclude<keyof I_1["change_recovery_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_408 in Exclude<keyof I_1["change_recovery_account"]["extensions"][number], "void_t">]: never; })[] & { [K_409 in Exclude<keyof I_1["change_recovery_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_410 in Exclude<keyof I_1["change_recovery_account"], keyof change_recovery_account>]: never; }) | undefined; - escrow_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_411 in Exclude<keyof I_1["escrow_transfer"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_412 in Exclude<keyof I_1["escrow_transfer"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_413 in Exclude<keyof I_1["escrow_transfer"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_414 in Exclude<keyof I_1["escrow_transfer"], keyof escrow_transfer>]: never; }) | undefined; - escrow_dispute?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K_415 in Exclude<keyof I_1["escrow_dispute"], keyof escrow_dispute>]: never; }) | undefined; - escrow_release?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_416 in Exclude<keyof I_1["escrow_release"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_417 in Exclude<keyof I_1["escrow_release"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_418 in Exclude<keyof I_1["escrow_release"], keyof escrow_release>]: never; }) | undefined; - pow2?: ({ - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_419 in Exclude<keyof I_1["pow2"]["work"]["pow2"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_420 in Exclude<keyof I_1["pow2"]["work"]["pow2"], keyof import("./pow2.js").pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_421 in Exclude<keyof I_1["pow2"]["work"]["equihash_pow"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_422 in Exclude<keyof I_1["pow2"]["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_423 in Exclude<keyof I_1["pow2"]["work"]["equihash_pow"]["proof"], keyof import("./pow2.js").equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_424 in Exclude<keyof I_1["pow2"]["work"]["equihash_pow"], keyof import("./pow2.js").equihash_pow>]: never; }) | undefined; - } & { [K_425 in Exclude<keyof I_1["pow2"]["work"], keyof import("./pow2.js").pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_426 in Exclude<keyof I_1["pow2"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_427 in Exclude<keyof I_1["pow2"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_428 in Exclude<keyof I_1["pow2"], keyof pow2>]: never; }) | undefined; - escrow_approve?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K_429 in Exclude<keyof I_1["escrow_approve"], keyof escrow_approve>]: never; }) | undefined; - transfer_to_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_430 in Exclude<keyof I_1["transfer_to_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_431 in Exclude<keyof I_1["transfer_to_savings"], keyof transfer_to_savings>]: never; }) | undefined; - transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_432 in Exclude<keyof I_1["transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_433 in Exclude<keyof I_1["transfer_from_savings"], keyof transfer_from_savings>]: never; }) | undefined; - cancel_transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K_434 in Exclude<keyof I_1["cancel_transfer_from_savings"], keyof cancel_transfer_from_savings>]: never; }) | undefined; - decline_voting_rights?: ({ - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K_435 in Exclude<keyof I_1["decline_voting_rights"], keyof decline_voting_rights>]: never; }) | undefined; - claim_reward_balance?: ({ - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_436 in Exclude<keyof I_1["claim_reward_balance"]["reward_hive"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_437 in Exclude<keyof I_1["claim_reward_balance"]["reward_hbd"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_438 in Exclude<keyof I_1["claim_reward_balance"]["reward_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_439 in Exclude<keyof I_1["claim_reward_balance"], keyof claim_reward_balance>]: never; }) | undefined; - delegate_vesting_shares?: ({ - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_440 in Exclude<keyof I_1["delegate_vesting_shares"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_441 in Exclude<keyof I_1["delegate_vesting_shares"], keyof delegate_vesting_shares>]: never; }) | undefined; - account_create_with_delegation?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_442 in Exclude<keyof I_1["account_create_with_delegation"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_443 in Exclude<keyof I_1["account_create_with_delegation"]["delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_444 in Exclude<keyof I_1["account_create_with_delegation"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_445 in Exclude<keyof I_1["account_create_with_delegation"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_446 in Exclude<keyof I_1["account_create_with_delegation"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_447 in Exclude<keyof I_1["account_create_with_delegation"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_448 in Exclude<keyof I_1["account_create_with_delegation"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_449 in Exclude<keyof I_1["account_create_with_delegation"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_450 in Exclude<keyof I_1["account_create_with_delegation"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_451 in Exclude<keyof I_1["account_create_with_delegation"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_452 in Exclude<keyof I_1["account_create_with_delegation"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_453 in Exclude<keyof I_1["account_create_with_delegation"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_454 in Exclude<keyof I_1["account_create_with_delegation"]["extensions"][number], "void_t">]: never; })[] & { [K_455 in Exclude<keyof I_1["account_create_with_delegation"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_456 in Exclude<keyof I_1["account_create_with_delegation"], keyof account_create_with_delegation>]: never; }) | undefined; - witness_set_properties?: ({ - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K_457 in Exclude<keyof I_1["witness_set_properties"]["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_458 in Exclude<keyof I_1["witness_set_properties"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_459 in Exclude<keyof I_1["witness_set_properties"]["extensions"][number], "void_t">]: never; })[] & { [K_460 in Exclude<keyof I_1["witness_set_properties"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_461 in Exclude<keyof I_1["witness_set_properties"], keyof witness_set_properties>]: never; }) | undefined; - account_update2?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_462 in Exclude<keyof I_1["account_update2"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_463 in Exclude<keyof I_1["account_update2"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_464 in Exclude<keyof I_1["account_update2"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_465 in Exclude<keyof I_1["account_update2"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_466 in Exclude<keyof I_1["account_update2"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_467 in Exclude<keyof I_1["account_update2"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_468 in Exclude<keyof I_1["account_update2"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_469 in Exclude<keyof I_1["account_update2"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_470 in Exclude<keyof I_1["account_update2"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_471 in Exclude<keyof I_1["account_update2"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_472 in Exclude<keyof I_1["account_update2"]["extensions"][number], "void_t">]: never; })[] & { [K_473 in Exclude<keyof I_1["account_update2"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_474 in Exclude<keyof I_1["account_update2"], keyof account_update2>]: never; }) | undefined; - create_proposal?: ({ - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_475 in Exclude<keyof I_1["create_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_476 in Exclude<keyof I_1["create_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_477 in Exclude<keyof I_1["create_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_478 in Exclude<keyof I_1["create_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_479 in Exclude<keyof I_1["create_proposal"], keyof create_proposal>]: never; }) | undefined; - update_proposal_votes?: ({ - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_480 in Exclude<keyof I_1["update_proposal_votes"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_481 in Exclude<keyof I_1["update_proposal_votes"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_482 in Exclude<keyof I_1["update_proposal_votes"]["extensions"][number], "void_t">]: never; })[] & { [K_483 in Exclude<keyof I_1["update_proposal_votes"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_484 in Exclude<keyof I_1["update_proposal_votes"], keyof update_proposal_votes>]: never; }) | undefined; - remove_proposal?: ({ - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_485 in Exclude<keyof I_1["remove_proposal"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_486 in Exclude<keyof I_1["remove_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_487 in Exclude<keyof I_1["remove_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_488 in Exclude<keyof I_1["remove_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_489 in Exclude<keyof I_1["remove_proposal"], keyof remove_proposal>]: never; }) | undefined; - update_proposal?: ({ - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_490 in Exclude<keyof I_1["update_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_491 in Exclude<keyof I_1["update_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_492 in Exclude<keyof I_1["update_proposal"]["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_493 in Exclude<keyof I_1["update_proposal"]["extensions"][number], keyof import("./update_proposal.js").update_proposal_extension>]: never; })[] & { [K_494 in Exclude<keyof I_1["update_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_495 in Exclude<keyof I_1["update_proposal"], keyof update_proposal>]: never; }) | undefined; - collateralized_convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_496 in Exclude<keyof I_1["collateralized_convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_497 in Exclude<keyof I_1["collateralized_convert"], keyof collateralized_convert>]: never; }) | undefined; - recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_498 in Exclude<keyof I_1["recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_499 in Exclude<keyof I_1["recurrent_transfer"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_500 in Exclude<keyof I_1["recurrent_transfer"]["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_501 in Exclude<keyof I_1["recurrent_transfer"]["extensions"][number], keyof import("./recurrent_transfer.js").recurrent_transfer_extension>]: never; })[] & { [K_502 in Exclude<keyof I_1["recurrent_transfer"]["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_503 in Exclude<keyof I_1["recurrent_transfer"], keyof recurrent_transfer>]: never; }) | undefined; - fill_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_504 in Exclude<keyof I_1["fill_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_505 in Exclude<keyof I_1["fill_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_506 in Exclude<keyof I_1["fill_convert_request"], keyof fill_convert_request>]: never; }) | undefined; - author_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_507 in Exclude<keyof I_1["author_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_508 in Exclude<keyof I_1["author_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_509 in Exclude<keyof I_1["author_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_510 in Exclude<keyof I_1["author_reward"]["curators_vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_511 in Exclude<keyof I_1["author_reward"], keyof author_reward>]: never; }) | undefined; - curation_reward?: ({ - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_512 in Exclude<keyof I_1["curation_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_513 in Exclude<keyof I_1["curation_reward"], keyof curation_reward>]: never; }) | undefined; - comment_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_514 in Exclude<keyof I_1["comment_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_515 in Exclude<keyof I_1["comment_reward"]["total_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_516 in Exclude<keyof I_1["comment_reward"]["curator_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_517 in Exclude<keyof I_1["comment_reward"]["beneficiary_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_518 in Exclude<keyof I_1["comment_reward"], keyof comment_reward>]: never; }) | undefined; - liquidity_reward?: ({ - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_519 in Exclude<keyof I_1["liquidity_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_520 in Exclude<keyof I_1["liquidity_reward"], keyof liquidity_reward>]: never; }) | undefined; - interest?: ({ - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_521 in Exclude<keyof I_1["interest"]["interest"], keyof import("./asset.js").asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_522 in Exclude<keyof I_1["interest"], keyof interest>]: never; }) | undefined; - fill_vesting_withdraw?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_523 in Exclude<keyof I_1["fill_vesting_withdraw"]["withdrawn"], keyof import("./asset.js").asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_524 in Exclude<keyof I_1["fill_vesting_withdraw"]["deposited"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_525 in Exclude<keyof I_1["fill_vesting_withdraw"], keyof fill_vesting_withdraw>]: never; }) | undefined; - fill_order?: ({ - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_526 in Exclude<keyof I_1["fill_order"]["current_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_527 in Exclude<keyof I_1["fill_order"]["open_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_528 in Exclude<keyof I_1["fill_order"], keyof fill_order>]: never; }) | undefined; - shutdown_witness?: ({ - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K_529 in Exclude<keyof I_1["shutdown_witness"], "owner">]: never; }) | undefined; - fill_transfer_from_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_530 in Exclude<keyof I_1["fill_transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_531 in Exclude<keyof I_1["fill_transfer_from_savings"], keyof fill_transfer_from_savings>]: never; }) | undefined; - hardfork?: ({ - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K_532 in Exclude<keyof I_1["hardfork"], "hardfork_id">]: never; }) | undefined; - comment_payout_update?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_533 in Exclude<keyof I_1["comment_payout_update"], keyof comment_payout_update>]: never; }) | undefined; - return_vesting_delegation?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_534 in Exclude<keyof I_1["return_vesting_delegation"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_535 in Exclude<keyof I_1["return_vesting_delegation"], keyof return_vesting_delegation>]: never; }) | undefined; - comment_benefactor_reward?: ({ - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_536 in Exclude<keyof I_1["comment_benefactor_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_537 in Exclude<keyof I_1["comment_benefactor_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_538 in Exclude<keyof I_1["comment_benefactor_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_539 in Exclude<keyof I_1["comment_benefactor_reward"], keyof comment_benefactor_reward>]: never; }) | undefined; - producer_reward?: ({ - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_540 in Exclude<keyof I_1["producer_reward"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_541 in Exclude<keyof I_1["producer_reward"], keyof producer_reward>]: never; }) | undefined; - clear_null_account_balance?: ({ - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_542 in Exclude<keyof I_1["clear_null_account_balance"]["total_cleared"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_543 in Exclude<keyof I_1["clear_null_account_balance"]["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_544 in Exclude<keyof I_1["clear_null_account_balance"], "total_cleared">]: never; }) | undefined; - proposal_pay?: ({ - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_545 in Exclude<keyof I_1["proposal_pay"]["payment"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_546 in Exclude<keyof I_1["proposal_pay"], keyof proposal_pay>]: never; }) | undefined; - dhf_funding?: ({ - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_547 in Exclude<keyof I_1["dhf_funding"]["additional_funds"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_548 in Exclude<keyof I_1["dhf_funding"], keyof dhf_funding>]: never; }) | undefined; - hardfork_hive?: ({ - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K_549 in Exclude<keyof I_1["hardfork_hive"]["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_550 in Exclude<keyof I_1["hardfork_hive"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_551 in Exclude<keyof I_1["hardfork_hive"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_552 in Exclude<keyof I_1["hardfork_hive"]["vests_converted"], keyof import("./asset.js").asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_553 in Exclude<keyof I_1["hardfork_hive"]["total_hive_from_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_554 in Exclude<keyof I_1["hardfork_hive"], keyof hardfork_hive>]: never; }) | undefined; - hardfork_hive_restore?: ({ - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_555 in Exclude<keyof I_1["hardfork_hive_restore"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_556 in Exclude<keyof I_1["hardfork_hive_restore"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_557 in Exclude<keyof I_1["hardfork_hive_restore"], keyof hardfork_hive_restore>]: never; }) | undefined; - delayed_voting?: ({ - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K_558 in Exclude<keyof I_1["delayed_voting"], keyof delayed_voting>]: never; }) | undefined; - consolidate_treasury_balance?: ({ - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_559 in Exclude<keyof I_1["consolidate_treasury_balance"]["total_moved"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_560 in Exclude<keyof I_1["consolidate_treasury_balance"]["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_561 in Exclude<keyof I_1["consolidate_treasury_balance"], "total_moved">]: never; }) | undefined; - effective_comment_vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_562 in Exclude<keyof I_1["effective_comment_vote"]["pending_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_563 in Exclude<keyof I_1["effective_comment_vote"], keyof effective_comment_vote>]: never; }) | undefined; - ineffective_delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_564 in Exclude<keyof I_1["ineffective_delete_comment"], keyof ineffective_delete_comment>]: never; }) | undefined; - dhf_conversion?: ({ - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_565 in Exclude<keyof I_1["dhf_conversion"]["hive_amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_566 in Exclude<keyof I_1["dhf_conversion"]["hbd_amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_567 in Exclude<keyof I_1["dhf_conversion"], keyof dhf_conversion>]: never; }) | undefined; - expired_account_notification?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_568 in Exclude<keyof I_1["expired_account_notification"], "account">]: never; }) | undefined; - changed_recovery_account?: ({ - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K_569 in Exclude<keyof I_1["changed_recovery_account"], keyof changed_recovery_account>]: never; }) | undefined; - transfer_to_vesting_completed?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_570 in Exclude<keyof I_1["transfer_to_vesting_completed"]["hive_vested"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_571 in Exclude<keyof I_1["transfer_to_vesting_completed"]["vesting_shares_received"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_572 in Exclude<keyof I_1["transfer_to_vesting_completed"], keyof transfer_to_vesting_completed>]: never; }) | undefined; - pow_reward?: ({ - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_573 in Exclude<keyof I_1["pow_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_574 in Exclude<keyof I_1["pow_reward"], keyof pow_reward>]: never; }) | undefined; - vesting_shares_split?: ({ - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_575 in Exclude<keyof I_1["vesting_shares_split"]["vesting_shares_before_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_576 in Exclude<keyof I_1["vesting_shares_split"]["vesting_shares_after_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_577 in Exclude<keyof I_1["vesting_shares_split"], keyof vesting_shares_split>]: never; }) | undefined; - account_created?: ({ - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_578 in Exclude<keyof I_1["account_created"]["initial_vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_579 in Exclude<keyof I_1["account_created"]["initial_delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_580 in Exclude<keyof I_1["account_created"], keyof account_created>]: never; }) | undefined; - fill_collateralized_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_581 in Exclude<keyof I_1["fill_collateralized_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_582 in Exclude<keyof I_1["fill_collateralized_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_583 in Exclude<keyof I_1["fill_collateralized_convert_request"]["excess_collateral"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_584 in Exclude<keyof I_1["fill_collateralized_convert_request"], keyof fill_collateralized_convert_request>]: never; }) | undefined; - system_warning?: ({ - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K_585 in Exclude<keyof I_1["system_warning"], "message">]: never; }) | undefined; - fill_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_586 in Exclude<keyof I_1["fill_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_587 in Exclude<keyof I_1["fill_recurrent_transfer"], keyof fill_recurrent_transfer>]: never; }) | undefined; - failed_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_588 in Exclude<keyof I_1["failed_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_589 in Exclude<keyof I_1["failed_recurrent_transfer"], keyof failed_recurrent_transfer>]: never; }) | undefined; - limit_order_cancelled?: ({ - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_590 in Exclude<keyof I_1["limit_order_cancelled"]["amount_back"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_591 in Exclude<keyof I_1["limit_order_cancelled"], keyof limit_order_cancelled>]: never; }) | undefined; - producer_missed?: ({ - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K_592 in Exclude<keyof I_1["producer_missed"], "producer">]: never; }) | undefined; - proposal_fee?: ({ - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_593 in Exclude<keyof I_1["proposal_fee"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_594 in Exclude<keyof I_1["proposal_fee"], keyof proposal_fee>]: never; }) | undefined; - collateralized_convert_immediate_conversion?: ({ - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_595 in Exclude<keyof I_1["collateralized_convert_immediate_conversion"]["hbd_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_596 in Exclude<keyof I_1["collateralized_convert_immediate_conversion"], keyof collateralized_convert_immediate_conversion>]: never; }) | undefined; - escrow_approved?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_597 in Exclude<keyof I_1["escrow_approved"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_598 in Exclude<keyof I_1["escrow_approved"], keyof escrow_approved>]: never; }) | undefined; - escrow_rejected?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_599 in Exclude<keyof I_1["escrow_rejected"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_600 in Exclude<keyof I_1["escrow_rejected"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_601 in Exclude<keyof I_1["escrow_rejected"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_602 in Exclude<keyof I_1["escrow_rejected"], keyof escrow_rejected>]: never; }) | undefined; - proxy_cleared?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_603 in Exclude<keyof I_1["proxy_cleared"], keyof proxy_cleared>]: never; }) | undefined; - declined_voting_rights?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_604 in Exclude<keyof I_1["declined_voting_rights"], "account">]: never; }) | undefined; - } & { [K_605 in Exclude<keyof I_1, keyof operation>]: never; }>(object: I_1): operation; + create<I extends Exact<DeepPartial<operation>, I>>(base?: I): operation; + fromPartial<I extends Exact<DeepPartial<operation>, I>>(object: I): operation; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/operation.js b/ts/protobuf_patterns/proto/operation.js index 5440e16ef3049aec1a61404b077a033ac4a50ddf..44de6bc02318daa0bf7b69a3f0e0d00e9c83b80e 100644 --- a/ts/protobuf_patterns/proto/operation.js +++ b/ts/protobuf_patterns/proto/operation.js @@ -549,7 +549,7 @@ export const operation = { return obj; }, create(base) { - return operation.fromPartial(base !== null && base !== void 0 ? base : {}); + return operation.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseoperation(); diff --git a/ts/protobuf_patterns/proto/pow.d.ts b/ts/protobuf_patterns/proto/pow.d.ts index 1a2a9c4f94aef6f01703f8250de603c6bbc37f56..73db54a87d081d1fdefd8c5b1bdc18ea827326c8 100644 --- a/ts/protobuf_patterns/proto/pow.d.ts +++ b/ts/protobuf_patterns/proto/pow.d.ts @@ -16,144 +16,14 @@ export interface pow { export declare const pow_work: { fromJSON(object: any): pow_work; toJSON(message: pow_work): unknown; - create<I extends { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K in Exclude<keyof I, keyof pow_work>]: never; }>(base?: I | undefined): pow_work; - fromPartial<I_1 extends { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof pow_work>]: never; }>(object: I_1): pow_work; + create<I extends Exact<DeepPartial<pow_work>, I>>(base?: I): pow_work; + fromPartial<I extends Exact<DeepPartial<pow_work>, I>>(object: I): pow_work; }; export declare const pow: { fromJSON(object: any): pow; toJSON(message: pow): unknown; - create<I extends { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K in Exclude<keyof I["work"], keyof pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_2 in Exclude<keyof I["props"], keyof legacy_chain_properties>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof pow>]: never; }>(base?: I | undefined): pow; - fromPartial<I_1 extends { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["work"], keyof pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_5 in Exclude<keyof I_1["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_6 in Exclude<keyof I_1["props"], keyof legacy_chain_properties>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof pow>]: never; }>(object: I_1): pow; + create<I extends Exact<DeepPartial<pow>, I>>(base?: I): pow; + fromPartial<I extends Exact<DeepPartial<pow>, I>>(object: I): pow; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/pow.js b/ts/protobuf_patterns/proto/pow.js index d6fb530c5a308a669b359ade3b143e90d24acdff..b8ef27d0ae12719a9ee6551262f1f07a3844f29a 100644 --- a/ts/protobuf_patterns/proto/pow.js +++ b/ts/protobuf_patterns/proto/pow.js @@ -30,15 +30,14 @@ export const pow_work = { return obj; }, create(base) { - return pow_work.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow_work.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasepow_work(); - message.worker = (_a = object.worker) !== null && _a !== void 0 ? _a : ""; - message.input = (_b = object.input) !== null && _b !== void 0 ? _b : ""; - message.signature = (_c = object.signature) !== null && _c !== void 0 ? _c : ""; - message.work = (_d = object.work) !== null && _d !== void 0 ? _d : ""; + message.worker = object.worker ?? ""; + message.input = object.input ?? ""; + message.signature = object.signature ?? ""; + message.work = object.work ?? ""; return message; }, }; @@ -75,14 +74,13 @@ export const pow = { return obj; }, create(base) { - return pow.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasepow(); - message.worker_account = (_a = object.worker_account) !== null && _a !== void 0 ? _a : ""; - message.block_id = (_b = object.block_id) !== null && _b !== void 0 ? _b : ""; - message.nonce = (_c = object.nonce) !== null && _c !== void 0 ? _c : "0"; + message.worker_account = object.worker_account ?? ""; + message.block_id = object.block_id ?? ""; + message.nonce = object.nonce ?? "0"; message.work = (object.work !== undefined && object.work !== null) ? pow_work.fromPartial(object.work) : undefined; message.props = (object.props !== undefined && object.props !== null) ? legacy_chain_properties.fromPartial(object.props) diff --git a/ts/protobuf_patterns/proto/pow2.d.ts b/ts/protobuf_patterns/proto/pow2.d.ts index 81efbdced0c93dcec88c39b7a026c4b29b388c8f..053ccd82ebdb025a754170d55f5d058482e189d1 100644 --- a/ts/protobuf_patterns/proto/pow2.d.ts +++ b/ts/protobuf_patterns/proto/pow2.d.ts @@ -33,632 +33,38 @@ export interface pow2 { export declare const pow2_input: { fromJSON(object: any): pow2_input; toJSON(message: pow2_input): unknown; - create<I extends { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K in Exclude<keyof I, keyof pow2_input>]: never; }>(base?: I | undefined): pow2_input; - fromPartial<I_1 extends { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof pow2_input>]: never; }>(object: I_1): pow2_input; + create<I extends Exact<DeepPartial<pow2_input>, I>>(base?: I): pow2_input; + fromPartial<I extends Exact<DeepPartial<pow2_input>, I>>(object: I): pow2_input; }; export declare const pow2_pow: { fromJSON(object: any): pow2_pow; toJSON(message: pow2_pow): unknown; - create<I extends { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K in Exclude<keyof I["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_1 in Exclude<keyof I, keyof pow2_pow>]: never; }>(base?: I | undefined): pow2_pow; - fromPartial<I_1 extends { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof pow2_pow>]: never; }>(object: I_1): pow2_pow; + create<I extends Exact<DeepPartial<pow2_pow>, I>>(base?: I): pow2_pow; + fromPartial<I extends Exact<DeepPartial<pow2_pow>, I>>(object: I): pow2_pow; }; export declare const equihash_proof: { fromJSON(object: any): equihash_proof; toJSON(message: equihash_proof): unknown; - create<I extends { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K in Exclude<keyof I["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof equihash_proof>]: never; }>(base?: I | undefined): equihash_proof; - fromPartial<I_1 extends { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_2 in Exclude<keyof I_1["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof equihash_proof>]: never; }>(object: I_1): equihash_proof; + create<I extends Exact<DeepPartial<equihash_proof>, I>>(base?: I): equihash_proof; + fromPartial<I extends Exact<DeepPartial<equihash_proof>, I>>(object: I): equihash_proof; }; export declare const equihash_pow: { fromJSON(object: any): equihash_pow; toJSON(message: equihash_pow): unknown; - create<I extends { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K in Exclude<keyof I["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_1 in Exclude<keyof I["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_3 in Exclude<keyof I, keyof equihash_pow>]: never; }>(base?: I | undefined): equihash_pow; - fromPartial<I_1 extends { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_5 in Exclude<keyof I_1["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I_1["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof equihash_pow>]: never; }>(object: I_1): equihash_pow; + create<I extends Exact<DeepPartial<equihash_pow>, I>>(base?: I): equihash_pow; + fromPartial<I extends Exact<DeepPartial<equihash_pow>, I>>(object: I): equihash_pow; }; export declare const pow2_work: { fromJSON(object: any): pow2_work; toJSON(message: pow2_work): unknown; - create<I extends { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K in Exclude<keyof I["pow2"]["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_1 in Exclude<keyof I["pow2"], keyof pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_2 in Exclude<keyof I["equihash_pow"]["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_3 in Exclude<keyof I["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I["equihash_pow"]["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_5 in Exclude<keyof I["equihash_pow"], keyof equihash_pow>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I, keyof pow2_work>]: never; }>(base?: I | undefined): pow2_work; - fromPartial<I_1 extends { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_7 in Exclude<keyof I_1["pow2"]["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_8 in Exclude<keyof I_1["pow2"], keyof pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_9 in Exclude<keyof I_1["equihash_pow"]["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_10 in Exclude<keyof I_1["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1["equihash_pow"]["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_12 in Exclude<keyof I_1["equihash_pow"], keyof equihash_pow>]: never; }) | undefined; - } & { [K_13 in Exclude<keyof I_1, keyof pow2_work>]: never; }>(object: I_1): pow2_work; + create<I extends Exact<DeepPartial<pow2_work>, I>>(base?: I): pow2_work; + fromPartial<I extends Exact<DeepPartial<pow2_work>, I>>(object: I): pow2_work; }; export declare const pow2: { fromJSON(object: any): pow2; toJSON(message: pow2): unknown; - create<I extends { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K in Exclude<keyof I["work"]["pow2"]["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_1 in Exclude<keyof I["work"]["pow2"], keyof pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_2 in Exclude<keyof I["work"]["equihash_pow"]["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_3 in Exclude<keyof I["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I["work"]["equihash_pow"]["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_5 in Exclude<keyof I["work"]["equihash_pow"], keyof equihash_pow>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I["work"], keyof pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_7 in Exclude<keyof I["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_8 in Exclude<keyof I["props"], keyof legacy_chain_properties>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I, keyof pow2>]: never; }>(base?: I | undefined): pow2; - fromPartial<I_1 extends { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_10 in Exclude<keyof I_1["work"]["pow2"]["input"], keyof pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_11 in Exclude<keyof I_1["work"]["pow2"], keyof pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_12 in Exclude<keyof I_1["work"]["equihash_pow"]["input"], keyof pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_13 in Exclude<keyof I_1["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_14 in Exclude<keyof I_1["work"]["equihash_pow"]["proof"], keyof equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_15 in Exclude<keyof I_1["work"]["equihash_pow"], keyof equihash_pow>]: never; }) | undefined; - } & { [K_16 in Exclude<keyof I_1["work"], keyof pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_17 in Exclude<keyof I_1["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_18 in Exclude<keyof I_1["props"], keyof legacy_chain_properties>]: never; }) | undefined; - } & { [K_19 in Exclude<keyof I_1, keyof pow2>]: never; }>(object: I_1): pow2; + create<I extends Exact<DeepPartial<pow2>, I>>(base?: I): pow2; + fromPartial<I extends Exact<DeepPartial<pow2>, I>>(object: I): pow2; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/pow2.js b/ts/protobuf_patterns/proto/pow2.js index bfeb620902be3ae395ffd631c81b9163a2654b52..dbae8c1b0ab48b2954b29059ca2779c432105d99 100644 --- a/ts/protobuf_patterns/proto/pow2.js +++ b/ts/protobuf_patterns/proto/pow2.js @@ -26,14 +26,13 @@ export const pow2_input = { return obj; }, create(base) { - return pow2_input.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow2_input.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasepow2_input(); - message.worker_account = (_a = object.worker_account) !== null && _a !== void 0 ? _a : ""; - message.prev_block = (_b = object.prev_block) !== null && _b !== void 0 ? _b : ""; - message.nonce = (_c = object.nonce) !== null && _c !== void 0 ? _c : "0"; + message.worker_account = object.worker_account ?? ""; + message.prev_block = object.prev_block ?? ""; + message.nonce = object.nonce ?? "0"; return message; }, }; @@ -58,15 +57,14 @@ export const pow2_pow = { return obj; }, create(base) { - return pow2_pow.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow2_pow.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasepow2_pow(); message.input = (object.input !== undefined && object.input !== null) ? pow2_input.fromPartial(object.input) : undefined; - message.pow_summary = (_a = object.pow_summary) !== null && _a !== void 0 ? _a : 0; + message.pow_summary = object.pow_summary ?? 0; return message; }, }; @@ -79,13 +77,12 @@ export const equihash_proof = { n: isSet(object.n) ? globalThis.Number(object.n) : 0, k: isSet(object.k) ? globalThis.Number(object.k) : 0, seed: isSet(object.seed) ? globalThis.String(object.seed) : "", - inputs: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.inputs) + inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => globalThis.Number(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.n !== undefined) { obj.n = Math.round(message.n); @@ -96,21 +93,20 @@ export const equihash_proof = { if (message.seed !== undefined) { obj.seed = message.seed; } - if ((_a = message.inputs) === null || _a === void 0 ? void 0 : _a.length) { + if (message.inputs?.length) { obj.inputs = message.inputs.map((e) => Math.round(e)); } return obj; }, create(base) { - return equihash_proof.fromPartial(base !== null && base !== void 0 ? base : {}); + return equihash_proof.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseequihash_proof(); - message.n = (_a = object.n) !== null && _a !== void 0 ? _a : 0; - message.k = (_b = object.k) !== null && _b !== void 0 ? _b : 0; - message.seed = (_c = object.seed) !== null && _c !== void 0 ? _c : ""; - message.inputs = ((_d = object.inputs) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || []; + message.n = object.n ?? 0; + message.k = object.k ?? 0; + message.seed = object.seed ?? ""; + message.inputs = object.inputs?.map((e) => e) || []; return message; }, }; @@ -143,10 +139,9 @@ export const equihash_pow = { return obj; }, create(base) { - return equihash_pow.fromPartial(base !== null && base !== void 0 ? base : {}); + return equihash_pow.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseequihash_pow(); message.input = (object.input !== undefined && object.input !== null) ? pow2_input.fromPartial(object.input) @@ -154,8 +149,8 @@ export const equihash_pow = { message.proof = (object.proof !== undefined && object.proof !== null) ? equihash_proof.fromPartial(object.proof) : undefined; - message.prev_block = (_a = object.prev_block) !== null && _a !== void 0 ? _a : ""; - message.pow_summary = (_b = object.pow_summary) !== null && _b !== void 0 ? _b : 0; + message.prev_block = object.prev_block ?? ""; + message.pow_summary = object.pow_summary ?? 0; return message; }, }; @@ -180,7 +175,7 @@ export const pow2_work = { return obj; }, create(base) { - return pow2_work.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow2_work.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBasepow2_work(); @@ -216,13 +211,12 @@ export const pow2 = { return obj; }, create(base) { - return pow2.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow2.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasepow2(); message.work = (object.work !== undefined && object.work !== null) ? pow2_work.fromPartial(object.work) : undefined; - message.new_owner_key = (_a = object.new_owner_key) !== null && _a !== void 0 ? _a : "STM1111111111111111111111111111111114T1Anm"; + message.new_owner_key = object.new_owner_key ?? "STM1111111111111111111111111111111114T1Anm"; message.props = (object.props !== undefined && object.props !== null) ? legacy_chain_properties.fromPartial(object.props) : undefined; diff --git a/ts/protobuf_patterns/proto/pow_reward.d.ts b/ts/protobuf_patterns/proto/pow_reward.d.ts index f0b0319d9a4c737cdcd339f1b5b91b699d22487e..5e135dc9083e437bdcd6193ab9c301744cbaf26f 100644 --- a/ts/protobuf_patterns/proto/pow_reward.d.ts +++ b/ts/protobuf_patterns/proto/pow_reward.d.ts @@ -14,44 +14,8 @@ export interface pow_reward { export declare const pow_reward: { fromJSON(object: any): pow_reward; toJSON(message: pow_reward): unknown; - create<I extends { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["reward"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof pow_reward>]: never; }>(base?: I | undefined): pow_reward; - fromPartial<I_1 extends { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["reward"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof pow_reward>]: never; }>(object: I_1): pow_reward; + create<I extends Exact<DeepPartial<pow_reward>, I>>(base?: I): pow_reward; + fromPartial<I extends Exact<DeepPartial<pow_reward>, I>>(object: I): pow_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/pow_reward.js b/ts/protobuf_patterns/proto/pow_reward.js index edb873e99c48f1936380fecf5c84efcb5a94f68a..b01c5ff6f2a959ff46d46f2360cd2645c585b048 100644 --- a/ts/protobuf_patterns/proto/pow_reward.js +++ b/ts/protobuf_patterns/proto/pow_reward.js @@ -22,12 +22,11 @@ export const pow_reward = { return obj; }, create(base) { - return pow_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return pow_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasepow_reward(); - message.worker = (_a = object.worker) !== null && _a !== void 0 ? _a : ""; + message.worker = object.worker ?? ""; message.reward = (object.reward !== undefined && object.reward !== null) ? asset.fromPartial(object.reward) : undefined; diff --git a/ts/protobuf_patterns/proto/price.d.ts b/ts/protobuf_patterns/proto/price.d.ts index 2490da17e29abc886505e7e9167c518aa985cc8f..ea815d859393a8975b23d66dda53684f9800e6da 100644 --- a/ts/protobuf_patterns/proto/price.d.ts +++ b/ts/protobuf_patterns/proto/price.d.ts @@ -23,68 +23,8 @@ export interface price { export declare const price: { fromJSON(object: any): price; toJSON(message: price): unknown; - create<I extends { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["base"], keyof asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["quote"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof price>]: never; }>(base?: I | undefined): price; - fromPartial<I_1 extends { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["base"], keyof asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["quote"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof price>]: never; }>(object: I_1): price; + create<I extends Exact<DeepPartial<price>, I>>(base?: I): price; + fromPartial<I extends Exact<DeepPartial<price>, I>>(object: I): price; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/price.js b/ts/protobuf_patterns/proto/price.js index d2b555455ad7b9003f205e18b453a766597bbbf8..849017957c515ca4e200d33d8bb8d33d1001a7f2 100644 --- a/ts/protobuf_patterns/proto/price.js +++ b/ts/protobuf_patterns/proto/price.js @@ -22,7 +22,7 @@ export const price = { return obj; }, create(base) { - return price.fromPartial(base !== null && base !== void 0 ? base : {}); + return price.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseprice(); diff --git a/ts/protobuf_patterns/proto/producer_missed.d.ts b/ts/protobuf_patterns/proto/producer_missed.d.ts index 2f9de1838a49b4c03efbcbbbf2bff0a061e3a46d..365067a21716abb06353e488fd9a1a0208aa661f 100644 --- a/ts/protobuf_patterns/proto/producer_missed.d.ts +++ b/ts/protobuf_patterns/proto/producer_missed.d.ts @@ -11,16 +11,8 @@ export interface producer_missed { export declare const producer_missed: { fromJSON(object: any): producer_missed; toJSON(message: producer_missed): unknown; - create<I extends { - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K in Exclude<keyof I, "producer">]: never; }>(base?: I | undefined): producer_missed; - fromPartial<I_1 extends { - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "producer">]: never; }>(object: I_1): producer_missed; + create<I extends Exact<DeepPartial<producer_missed>, I>>(base?: I): producer_missed; + fromPartial<I extends Exact<DeepPartial<producer_missed>, I>>(object: I): producer_missed; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/producer_missed.js b/ts/protobuf_patterns/proto/producer_missed.js index 8644a4a3337ba1b062b5853b28c72decfb6d1cc0..ee2e28f331627e7c83f3965a1df41401a3048486 100644 --- a/ts/protobuf_patterns/proto/producer_missed.js +++ b/ts/protobuf_patterns/proto/producer_missed.js @@ -15,12 +15,11 @@ export const producer_missed = { return obj; }, create(base) { - return producer_missed.fromPartial(base !== null && base !== void 0 ? base : {}); + return producer_missed.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseproducer_missed(); - message.producer = (_a = object.producer) !== null && _a !== void 0 ? _a : ""; + message.producer = object.producer ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/producer_reward.d.ts b/ts/protobuf_patterns/proto/producer_reward.d.ts index 804b762f210a7b879cefb1b360f361a68405a5c2..5a35e0cc0e15f6f6f459d2356137fa98c81e62c7 100644 --- a/ts/protobuf_patterns/proto/producer_reward.d.ts +++ b/ts/protobuf_patterns/proto/producer_reward.d.ts @@ -13,44 +13,8 @@ export interface producer_reward { export declare const producer_reward: { fromJSON(object: any): producer_reward; toJSON(message: producer_reward): unknown; - create<I extends { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof producer_reward>]: never; }>(base?: I | undefined): producer_reward; - fromPartial<I_1 extends { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof producer_reward>]: never; }>(object: I_1): producer_reward; + create<I extends Exact<DeepPartial<producer_reward>, I>>(base?: I): producer_reward; + fromPartial<I extends Exact<DeepPartial<producer_reward>, I>>(object: I): producer_reward; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/producer_reward.js b/ts/protobuf_patterns/proto/producer_reward.js index 493c24025229126569fda00f0eb66992b0584b9a..443bd9e01013e7d94ac0a270ed1079074866650e 100644 --- a/ts/protobuf_patterns/proto/producer_reward.js +++ b/ts/protobuf_patterns/proto/producer_reward.js @@ -22,12 +22,11 @@ export const producer_reward = { return obj; }, create(base) { - return producer_reward.fromPartial(base !== null && base !== void 0 ? base : {}); + return producer_reward.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseproducer_reward(); - message.producer = (_a = object.producer) !== null && _a !== void 0 ? _a : ""; + message.producer = object.producer ?? ""; message.vesting_shares = (object.vesting_shares !== undefined && object.vesting_shares !== null) ? asset.fromPartial(object.vesting_shares) : undefined; diff --git a/ts/protobuf_patterns/proto/proposal_fee.d.ts b/ts/protobuf_patterns/proto/proposal_fee.d.ts index 4baa80884b431cdd23d65b86c04329a4449929c4..ec125cd02a086f21a0741978e92629349e72d222 100644 --- a/ts/protobuf_patterns/proto/proposal_fee.d.ts +++ b/ts/protobuf_patterns/proto/proposal_fee.d.ts @@ -17,52 +17,8 @@ export interface proposal_fee { export declare const proposal_fee: { fromJSON(object: any): proposal_fee; toJSON(message: proposal_fee): unknown; - create<I extends { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof proposal_fee>]: never; }>(base?: I | undefined): proposal_fee; - fromPartial<I_1 extends { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof proposal_fee>]: never; }>(object: I_1): proposal_fee; + create<I extends Exact<DeepPartial<proposal_fee>, I>>(base?: I): proposal_fee; + fromPartial<I extends Exact<DeepPartial<proposal_fee>, I>>(object: I): proposal_fee; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/proposal_fee.js b/ts/protobuf_patterns/proto/proposal_fee.js index d4c48976504a72e83d669b0d3103446e0b1666aa..9fce8fa4bde8606658a4203f635a19d28370893f 100644 --- a/ts/protobuf_patterns/proto/proposal_fee.js +++ b/ts/protobuf_patterns/proto/proposal_fee.js @@ -30,14 +30,13 @@ export const proposal_fee = { return obj; }, create(base) { - return proposal_fee.fromPartial(base !== null && base !== void 0 ? base : {}); + return proposal_fee.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseproposal_fee(); - message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : ""; - message.treasury = (_b = object.treasury) !== null && _b !== void 0 ? _b : ""; - message.proposal_id = (_c = object.proposal_id) !== null && _c !== void 0 ? _c : 0; + message.creator = object.creator ?? ""; + message.treasury = object.treasury ?? ""; + message.proposal_id = object.proposal_id ?? 0; message.fee = (object.fee !== undefined && object.fee !== null) ? asset.fromPartial(object.fee) : undefined; return message; }, diff --git a/ts/protobuf_patterns/proto/proposal_pay.d.ts b/ts/protobuf_patterns/proto/proposal_pay.d.ts index cdc090da2e0425a61d803b43be96e75b423bcb88..de92c09b7dc10fdea64f793b52af9e07bcb30009 100644 --- a/ts/protobuf_patterns/proto/proposal_pay.d.ts +++ b/ts/protobuf_patterns/proto/proposal_pay.d.ts @@ -18,52 +18,8 @@ export interface proposal_pay { export declare const proposal_pay: { fromJSON(object: any): proposal_pay; toJSON(message: proposal_pay): unknown; - create<I extends { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["payment"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof proposal_pay>]: never; }>(base?: I | undefined): proposal_pay; - fromPartial<I_1 extends { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["payment"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof proposal_pay>]: never; }>(object: I_1): proposal_pay; + create<I extends Exact<DeepPartial<proposal_pay>, I>>(base?: I): proposal_pay; + fromPartial<I extends Exact<DeepPartial<proposal_pay>, I>>(object: I): proposal_pay; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/proposal_pay.js b/ts/protobuf_patterns/proto/proposal_pay.js index 90d43c8affafdacce876a3458da807d2acf7cc2c..10b8f5c82d135fb7f13d2e380de88802d2041dd8 100644 --- a/ts/protobuf_patterns/proto/proposal_pay.js +++ b/ts/protobuf_patterns/proto/proposal_pay.js @@ -30,14 +30,13 @@ export const proposal_pay = { return obj; }, create(base) { - return proposal_pay.fromPartial(base !== null && base !== void 0 ? base : {}); + return proposal_pay.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseproposal_pay(); - message.proposal_id = (_a = object.proposal_id) !== null && _a !== void 0 ? _a : 0; - message.receiver = (_b = object.receiver) !== null && _b !== void 0 ? _b : ""; - message.payer = (_c = object.payer) !== null && _c !== void 0 ? _c : ""; + message.proposal_id = object.proposal_id ?? 0; + message.receiver = object.receiver ?? ""; + message.payer = object.payer ?? ""; message.payment = (object.payment !== undefined && object.payment !== null) ? asset.fromPartial(object.payment) : undefined; diff --git a/ts/protobuf_patterns/proto/proxy_cleared.d.ts b/ts/protobuf_patterns/proto/proxy_cleared.d.ts index b269f41b4bef0aa4b616efa4413006212a8797e3..032a24b8afd72822eb6bf1ec3b3002f35506c0a0 100644 --- a/ts/protobuf_patterns/proto/proxy_cleared.d.ts +++ b/ts/protobuf_patterns/proto/proxy_cleared.d.ts @@ -26,20 +26,8 @@ export interface proxy_cleared { export declare const proxy_cleared: { fromJSON(object: any): proxy_cleared; toJSON(message: proxy_cleared): unknown; - create<I extends { - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K in Exclude<keyof I, keyof proxy_cleared>]: never; }>(base?: I | undefined): proxy_cleared; - fromPartial<I_1 extends { - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof proxy_cleared>]: never; }>(object: I_1): proxy_cleared; + create<I extends Exact<DeepPartial<proxy_cleared>, I>>(base?: I): proxy_cleared; + fromPartial<I extends Exact<DeepPartial<proxy_cleared>, I>>(object: I): proxy_cleared; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/proxy_cleared.js b/ts/protobuf_patterns/proto/proxy_cleared.js index 82e86ed1c2bbc066e3405eba9d969a201d9bdbda..56cdb430709ccde7e0babdcb6e1016e567df68bc 100644 --- a/ts/protobuf_patterns/proto/proxy_cleared.js +++ b/ts/protobuf_patterns/proto/proxy_cleared.js @@ -21,13 +21,12 @@ export const proxy_cleared = { return obj; }, create(base) { - return proxy_cleared.fromPartial(base !== null && base !== void 0 ? base : {}); + return proxy_cleared.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaseproxy_cleared(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; - message.proxy = (_b = object.proxy) !== null && _b !== void 0 ? _b : ""; + message.account = object.account ?? ""; + message.proxy = object.proxy ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/recover_account.d.ts b/ts/protobuf_patterns/proto/recover_account.d.ts index fb21010350a9058a49266a11e055084916319ceb..caf624cf45dc671d52a1509d1d18cb6c96fa0476 100644 --- a/ts/protobuf_patterns/proto/recover_account.d.ts +++ b/ts/protobuf_patterns/proto/recover_account.d.ts @@ -29,160 +29,8 @@ export interface recover_account { export declare const recover_account: { fromJSON(object: any): recover_account; toJSON(message: recover_account): unknown; - create<I extends { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["new_owner_authority"], keyof authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_3 in Exclude<keyof I["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_4 in Exclude<keyof I["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["recent_owner_authority"], keyof authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I, keyof recover_account>]: never; }>(base?: I | undefined): recover_account; - fromPartial<I_1 extends { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_10 in Exclude<keyof I_1["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_11 in Exclude<keyof I_1["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_12 in Exclude<keyof I_1["new_owner_authority"], keyof authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_13 in Exclude<keyof I_1["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_14 in Exclude<keyof I_1["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I_1["recent_owner_authority"], keyof authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_16 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_17 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_18 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_19 in Exclude<keyof I_1, keyof recover_account>]: never; }>(object: I_1): recover_account; + create<I extends Exact<DeepPartial<recover_account>, I>>(base?: I): recover_account; + fromPartial<I extends Exact<DeepPartial<recover_account>, I>>(object: I): recover_account; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/recover_account.js b/ts/protobuf_patterns/proto/recover_account.js index 7e9e90cad14930c75c2ea6a704ecb4425d02ab99..fd260960282ade4e6c2eb3d96862205ec2b4b0b4 100644 --- a/ts/protobuf_patterns/proto/recover_account.js +++ b/ts/protobuf_patterns/proto/recover_account.js @@ -15,13 +15,12 @@ export const recover_account = { recent_owner_authority: isSet(object.recent_owner_authority) ? authority.fromJSON(object.recent_owner_authority) : undefined, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.account_to_recover !== undefined) { obj.account_to_recover = message.account_to_recover; @@ -32,18 +31,17 @@ export const recover_account = { if (message.recent_owner_authority !== undefined) { obj.recent_owner_authority = authority.toJSON(message.recent_owner_authority); } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return recover_account.fromPartial(base !== null && base !== void 0 ? base : {}); + return recover_account.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBaserecover_account(); - message.account_to_recover = (_a = object.account_to_recover) !== null && _a !== void 0 ? _a : ""; + message.account_to_recover = object.account_to_recover ?? ""; message.new_owner_authority = (object.new_owner_authority !== undefined && object.new_owner_authority !== null) ? authority.fromPartial(object.new_owner_authority) : undefined; @@ -51,7 +49,7 @@ export const recover_account = { (object.recent_owner_authority !== undefined && object.recent_owner_authority !== null) ? authority.fromPartial(object.recent_owner_authority) : undefined; - message.extensions = ((_b = object.extensions) === null || _b === void 0 ? void 0 : _b.map((e) => future_extensions.fromPartial(e))) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/recurrent_transfer.d.ts b/ts/protobuf_patterns/proto/recurrent_transfer.d.ts index 2f7dec61fbc713e36d1aed9237a8ea1dd156dad0..3e7b412fc0f62891f6f5c7ff8cd29ebe40df9569 100644 --- a/ts/protobuf_patterns/proto/recurrent_transfer.d.ts +++ b/ts/protobuf_patterns/proto/recurrent_transfer.d.ts @@ -60,162 +60,20 @@ export interface recurrent_transfer { export declare const recurrent_transfer_pair_id: { fromJSON(object: any): recurrent_transfer_pair_id; toJSON(message: recurrent_transfer_pair_id): unknown; - create<I extends { - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K in Exclude<keyof I, "pair_id">]: never; }>(base?: I | undefined): recurrent_transfer_pair_id; - fromPartial<I_1 extends { - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, "pair_id">]: never; }>(object: I_1): recurrent_transfer_pair_id; + create<I extends Exact<DeepPartial<recurrent_transfer_pair_id>, I>>(base?: I): recurrent_transfer_pair_id; + fromPartial<I extends Exact<DeepPartial<recurrent_transfer_pair_id>, I>>(object: I): recurrent_transfer_pair_id; }; export declare const recurrent_transfer_extension: { fromJSON(object: any): recurrent_transfer_extension; toJSON(message: recurrent_transfer_extension): unknown; - create<I extends { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K in Exclude<keyof I["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_1 in Exclude<keyof I["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof recurrent_transfer_extension>]: never; }>(base?: I | undefined): recurrent_transfer_extension; - fromPartial<I_1 extends { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_3 in Exclude<keyof I_1["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_4 in Exclude<keyof I_1["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof recurrent_transfer_extension>]: never; }>(object: I_1): recurrent_transfer_extension; + create<I extends Exact<DeepPartial<recurrent_transfer_extension>, I>>(base?: I): recurrent_transfer_extension; + fromPartial<I extends Exact<DeepPartial<recurrent_transfer_extension>, I>>(object: I): recurrent_transfer_extension; }; export declare const recurrent_transfer: { fromJSON(object: any): recurrent_transfer; toJSON(message: recurrent_transfer): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I["extensions"][number], keyof recurrent_transfer_extension>]: never; })[] & { [K_4 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I, keyof recurrent_transfer>]: never; }>(base?: I | undefined): recurrent_transfer; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_7 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_8 in Exclude<keyof I_1["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1["extensions"][number], keyof recurrent_transfer_extension>]: never; })[] & { [K_10 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1, keyof recurrent_transfer>]: never; }>(object: I_1): recurrent_transfer; + create<I extends Exact<DeepPartial<recurrent_transfer>, I>>(base?: I): recurrent_transfer; + fromPartial<I extends Exact<DeepPartial<recurrent_transfer>, I>>(object: I): recurrent_transfer; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/recurrent_transfer.js b/ts/protobuf_patterns/proto/recurrent_transfer.js index bf15c640a9faa10659eb966f7cd25620dd4af987..c7830776616aabf74c203fc2d78db31d5220c918 100644 --- a/ts/protobuf_patterns/proto/recurrent_transfer.js +++ b/ts/protobuf_patterns/proto/recurrent_transfer.js @@ -17,12 +17,11 @@ export const recurrent_transfer_pair_id = { return obj; }, create(base) { - return recurrent_transfer_pair_id.fromPartial(base !== null && base !== void 0 ? base : {}); + return recurrent_transfer_pair_id.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaserecurrent_transfer_pair_id(); - message.pair_id = (_a = object.pair_id) !== null && _a !== void 0 ? _a : 0; + message.pair_id = object.pair_id ?? 0; return message; }, }; @@ -49,7 +48,7 @@ export const recurrent_transfer_extension = { return obj; }, create(base) { - return recurrent_transfer_extension.fromPartial(base !== null && base !== void 0 ? base : {}); + return recurrent_transfer_extension.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaserecurrent_transfer_extension(); @@ -83,13 +82,12 @@ export const recurrent_transfer = { memo: isSet(object.memo) ? globalThis.String(object.memo) : "", recurrence: isSet(object.recurrence) ? globalThis.Number(object.recurrence) : 0, executions: isSet(object.executions) ? globalThis.Number(object.executions) : 0, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => recurrent_transfer_extension.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.from_account !== undefined) { obj.from = message.from_account; @@ -109,26 +107,25 @@ export const recurrent_transfer = { if (message.executions !== undefined) { obj.executions = Math.round(message.executions); } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => recurrent_transfer_extension.toJSON(e)); } return obj; }, create(base) { - return recurrent_transfer.fromPartial(base !== null && base !== void 0 ? base : {}); + return recurrent_transfer.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBaserecurrent_transfer(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_c = object.memo) !== null && _c !== void 0 ? _c : ""; - message.recurrence = (_d = object.recurrence) !== null && _d !== void 0 ? _d : 0; - message.executions = (_e = object.executions) !== null && _e !== void 0 ? _e : 0; - message.extensions = ((_f = object.extensions) === null || _f === void 0 ? void 0 : _f.map((e) => recurrent_transfer_extension.fromPartial(e))) || []; + message.memo = object.memo ?? ""; + message.recurrence = object.recurrence ?? 0; + message.executions = object.executions ?? 0; + message.extensions = object.extensions?.map((e) => recurrent_transfer_extension.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/remove_proposal.d.ts b/ts/protobuf_patterns/proto/remove_proposal.d.ts index 5bbfc6a760272a455d97481ec5d83dd15534344e..a50ff5b6091df02e4dab13f6f79d75882ed45653 100644 --- a/ts/protobuf_patterns/proto/remove_proposal.d.ts +++ b/ts/protobuf_patterns/proto/remove_proposal.d.ts @@ -16,44 +16,8 @@ export interface remove_proposal { export declare const remove_proposal: { fromJSON(object: any): remove_proposal; toJSON(message: remove_proposal): unknown; - create<I extends { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K in Exclude<keyof I["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_3 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof remove_proposal>]: never; }>(base?: I | undefined): remove_proposal; - fromPartial<I_1 extends { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof remove_proposal>]: never; }>(object: I_1): remove_proposal; + create<I extends Exact<DeepPartial<remove_proposal>, I>>(base?: I): remove_proposal; + fromPartial<I extends Exact<DeepPartial<remove_proposal>, I>>(object: I): remove_proposal; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/remove_proposal.js b/ts/protobuf_patterns/proto/remove_proposal.js index 4025b3c190c93fd413b080bff3108f4e0d62f7a4..20be600cd5545f4b4e7df7bb8de33fd67295247f 100644 --- a/ts/protobuf_patterns/proto/remove_proposal.js +++ b/ts/protobuf_patterns/proto/remove_proposal.js @@ -8,37 +8,35 @@ export const remove_proposal = { fromJSON(object) { return { proposal_owner: isSet(object.proposal_owner) ? globalThis.String(object.proposal_owner) : "", - proposal_ids: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.proposal_ids) + proposal_ids: globalThis.Array.isArray(object?.proposal_ids) ? object.proposal_ids.map((e) => globalThis.String(e)) : [], - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a, _b; const obj = {}; if (message.proposal_owner !== undefined) { obj.proposal_owner = message.proposal_owner; } - if ((_a = message.proposal_ids) === null || _a === void 0 ? void 0 : _a.length) { + if (message.proposal_ids?.length) { obj.proposal_ids = message.proposal_ids; } - if ((_b = message.extensions) === null || _b === void 0 ? void 0 : _b.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return remove_proposal.fromPartial(base !== null && base !== void 0 ? base : {}); + return remove_proposal.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaseremove_proposal(); - message.proposal_owner = (_a = object.proposal_owner) !== null && _a !== void 0 ? _a : ""; - message.proposal_ids = ((_b = object.proposal_ids) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || []; - message.extensions = ((_c = object.extensions) === null || _c === void 0 ? void 0 : _c.map((e) => future_extensions.fromPartial(e))) || []; + message.proposal_owner = object.proposal_owner ?? ""; + message.proposal_ids = object.proposal_ids?.map((e) => e) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/request_account_recovery.d.ts b/ts/protobuf_patterns/proto/request_account_recovery.d.ts index ba1e5324d4b7c2a2dd58684c6b4461ca2b3a1bd8..961908883d86523123dc7f30a5a3dc4e7b0feb56 100644 --- a/ts/protobuf_patterns/proto/request_account_recovery.d.ts +++ b/ts/protobuf_patterns/proto/request_account_recovery.d.ts @@ -55,104 +55,8 @@ export interface request_account_recovery { export declare const request_account_recovery: { fromJSON(object: any): request_account_recovery; toJSON(message: request_account_recovery): unknown; - create<I extends { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K in Exclude<keyof I["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_1 in Exclude<keyof I["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["new_owner_authority"], keyof authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_3 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_5 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_6 in Exclude<keyof I, keyof request_account_recovery>]: never; }>(base?: I | undefined): request_account_recovery; - fromPartial<I_1 extends { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_7 in Exclude<keyof I_1["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_8 in Exclude<keyof I_1["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1["new_owner_authority"], keyof authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_10 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_12 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_13 in Exclude<keyof I_1, keyof request_account_recovery>]: never; }>(object: I_1): request_account_recovery; + create<I extends Exact<DeepPartial<request_account_recovery>, I>>(base?: I): request_account_recovery; + fromPartial<I extends Exact<DeepPartial<request_account_recovery>, I>>(object: I): request_account_recovery; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/request_account_recovery.js b/ts/protobuf_patterns/proto/request_account_recovery.js index fd8b95f55422b34130d54ed1764998cdca8df623..a84042578d4de16689e468e554a2f9e26769b75f 100644 --- a/ts/protobuf_patterns/proto/request_account_recovery.js +++ b/ts/protobuf_patterns/proto/request_account_recovery.js @@ -13,13 +13,12 @@ export const request_account_recovery = { new_owner_authority: isSet(object.new_owner_authority) ? authority.fromJSON(object.new_owner_authority) : undefined, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.recovery_account !== undefined) { obj.recovery_account = message.recovery_account; @@ -30,23 +29,22 @@ export const request_account_recovery = { if (message.new_owner_authority !== undefined) { obj.new_owner_authority = authority.toJSON(message.new_owner_authority); } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return request_account_recovery.fromPartial(base !== null && base !== void 0 ? base : {}); + return request_account_recovery.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBaserequest_account_recovery(); - message.recovery_account = (_a = object.recovery_account) !== null && _a !== void 0 ? _a : ""; - message.account_to_recover = (_b = object.account_to_recover) !== null && _b !== void 0 ? _b : ""; + message.recovery_account = object.recovery_account ?? ""; + message.account_to_recover = object.account_to_recover ?? ""; message.new_owner_authority = (object.new_owner_authority !== undefined && object.new_owner_authority !== null) ? authority.fromPartial(object.new_owner_authority) : undefined; - message.extensions = ((_c = object.extensions) === null || _c === void 0 ? void 0 : _c.map((e) => future_extensions.fromPartial(e))) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/return_vesting_delegation.d.ts b/ts/protobuf_patterns/proto/return_vesting_delegation.d.ts index 5f1fe98cc112797891b6c5286286c70d5e3a32dc..d02bbb62df23fc1945fb7a2f053791863e84362a 100644 --- a/ts/protobuf_patterns/proto/return_vesting_delegation.d.ts +++ b/ts/protobuf_patterns/proto/return_vesting_delegation.d.ts @@ -14,44 +14,8 @@ export interface return_vesting_delegation { export declare const return_vesting_delegation: { fromJSON(object: any): return_vesting_delegation; toJSON(message: return_vesting_delegation): unknown; - create<I extends { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof return_vesting_delegation>]: never; }>(base?: I | undefined): return_vesting_delegation; - fromPartial<I_1 extends { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof return_vesting_delegation>]: never; }>(object: I_1): return_vesting_delegation; + create<I extends Exact<DeepPartial<return_vesting_delegation>, I>>(base?: I): return_vesting_delegation; + fromPartial<I extends Exact<DeepPartial<return_vesting_delegation>, I>>(object: I): return_vesting_delegation; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/return_vesting_delegation.js b/ts/protobuf_patterns/proto/return_vesting_delegation.js index 382acedcca0a1ae25523db25bef972fd30d3c35f..e3b28fabfad934b2b542357deb790ef4e5ad1895 100644 --- a/ts/protobuf_patterns/proto/return_vesting_delegation.js +++ b/ts/protobuf_patterns/proto/return_vesting_delegation.js @@ -22,12 +22,11 @@ export const return_vesting_delegation = { return obj; }, create(base) { - return return_vesting_delegation.fromPartial(base !== null && base !== void 0 ? base : {}); + return return_vesting_delegation.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasereturn_vesting_delegation(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; message.vesting_shares = (object.vesting_shares !== undefined && object.vesting_shares !== null) ? asset.fromPartial(object.vesting_shares) : undefined; diff --git a/ts/protobuf_patterns/proto/set_withdraw_vesting_route.d.ts b/ts/protobuf_patterns/proto/set_withdraw_vesting_route.d.ts index 089e6a6aa69feb178321f267e1579f7971e073f5..5e33ef103c15b2fd70be86861f15301e07f1b89f 100644 --- a/ts/protobuf_patterns/proto/set_withdraw_vesting_route.d.ts +++ b/ts/protobuf_patterns/proto/set_withdraw_vesting_route.d.ts @@ -33,28 +33,8 @@ export interface set_withdraw_vesting_route { export declare const set_withdraw_vesting_route: { fromJSON(object: any): set_withdraw_vesting_route; toJSON(message: set_withdraw_vesting_route): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K in Exclude<keyof I, keyof set_withdraw_vesting_route>]: never; }>(base?: I | undefined): set_withdraw_vesting_route; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof set_withdraw_vesting_route>]: never; }>(object: I_1): set_withdraw_vesting_route; + create<I extends Exact<DeepPartial<set_withdraw_vesting_route>, I>>(base?: I): set_withdraw_vesting_route; + fromPartial<I extends Exact<DeepPartial<set_withdraw_vesting_route>, I>>(object: I): set_withdraw_vesting_route; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/set_withdraw_vesting_route.js b/ts/protobuf_patterns/proto/set_withdraw_vesting_route.js index 48ad768e50c478dc37c3650e941a48adae95f16f..0211900396eb48bc6ebf8ce788b26fb83c51ebb8 100644 --- a/ts/protobuf_patterns/proto/set_withdraw_vesting_route.js +++ b/ts/protobuf_patterns/proto/set_withdraw_vesting_route.js @@ -29,15 +29,14 @@ export const set_withdraw_vesting_route = { return obj; }, create(base) { - return set_withdraw_vesting_route.fromPartial(base !== null && base !== void 0 ? base : {}); + return set_withdraw_vesting_route.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseset_withdraw_vesting_route(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; - message.percent = (_c = object.percent) !== null && _c !== void 0 ? _c : 0; - message.auto_vest = (_d = object.auto_vest) !== null && _d !== void 0 ? _d : false; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; + message.percent = object.percent ?? 0; + message.auto_vest = object.auto_vest ?? false; return message; }, }; diff --git a/ts/protobuf_patterns/proto/shutdown_witness.d.ts b/ts/protobuf_patterns/proto/shutdown_witness.d.ts index 93dfc621764c6898da3a3607439e9b94aa707f2b..65cdc9c4edb16affdf3fc9e8a68153a3be0df971 100644 --- a/ts/protobuf_patterns/proto/shutdown_witness.d.ts +++ b/ts/protobuf_patterns/proto/shutdown_witness.d.ts @@ -12,16 +12,8 @@ export interface shutdown_witness { export declare const shutdown_witness: { fromJSON(object: any): shutdown_witness; toJSON(message: shutdown_witness): unknown; - create<I extends { - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K in Exclude<keyof I, "owner">]: never; }>(base?: I | undefined): shutdown_witness; - fromPartial<I_1 extends { - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "owner">]: never; }>(object: I_1): shutdown_witness; + create<I extends Exact<DeepPartial<shutdown_witness>, I>>(base?: I): shutdown_witness; + fromPartial<I extends Exact<DeepPartial<shutdown_witness>, I>>(object: I): shutdown_witness; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/shutdown_witness.js b/ts/protobuf_patterns/proto/shutdown_witness.js index 87b4c5fd8bfa6fb60e6e0f35b10fc0f751a858a0..c10a58a5542e387ab11f87c6dc3134066d4bb6e6 100644 --- a/ts/protobuf_patterns/proto/shutdown_witness.js +++ b/ts/protobuf_patterns/proto/shutdown_witness.js @@ -15,12 +15,11 @@ export const shutdown_witness = { return obj; }, create(base) { - return shutdown_witness.fromPartial(base !== null && base !== void 0 ? base : {}); + return shutdown_witness.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseshutdown_witness(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; + message.owner = object.owner ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/system_warning.d.ts b/ts/protobuf_patterns/proto/system_warning.d.ts index 1ba104dae0a79105073cf445d8ab4451f6d80d2b..a1fbbdd7bed93a1a7fe54db26a1b4fda5cc569f5 100644 --- a/ts/protobuf_patterns/proto/system_warning.d.ts +++ b/ts/protobuf_patterns/proto/system_warning.d.ts @@ -20,16 +20,8 @@ export interface system_warning { export declare const system_warning: { fromJSON(object: any): system_warning; toJSON(message: system_warning): unknown; - create<I extends { - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K in Exclude<keyof I, "message">]: never; }>(base?: I | undefined): system_warning; - fromPartial<I_1 extends { - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "message">]: never; }>(object: I_1): system_warning; + create<I extends Exact<DeepPartial<system_warning>, I>>(base?: I): system_warning; + fromPartial<I extends Exact<DeepPartial<system_warning>, I>>(object: I): system_warning; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/system_warning.js b/ts/protobuf_patterns/proto/system_warning.js index 5626e70d532c2a6a2a0d0f4e98bf5ca9152ddfb3..06911e3968f115c2404ffb72641aefc2bd9f4b52 100644 --- a/ts/protobuf_patterns/proto/system_warning.js +++ b/ts/protobuf_patterns/proto/system_warning.js @@ -15,12 +15,11 @@ export const system_warning = { return obj; }, create(base) { - return system_warning.fromPartial(base !== null && base !== void 0 ? base : {}); + return system_warning.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasesystem_warning(); - message.message = (_a = object.message) !== null && _a !== void 0 ? _a : ""; + message.message = object.message ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/transaction.d.ts b/ts/protobuf_patterns/proto/transaction.d.ts index 122e14cbc9bf7c93a509c35bd198e00bad1447d9..53918e813d2bd7e7f9b3f9ee64a3074ef5ac402b 100644 --- a/ts/protobuf_patterns/proto/transaction.d.ts +++ b/ts/protobuf_patterns/proto/transaction.d.ts @@ -13,15242 +13,8 @@ export interface transaction { export declare const transaction: { fromJSON(object: any): transaction; toJSON(message: transaction): unknown; - create<I extends { - ref_block_num?: number | undefined; - ref_block_prefix?: number | undefined; - expiration?: string | undefined; - operations?: { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - signatures?: string[] | undefined; - } & { - ref_block_num?: number | undefined; - ref_block_prefix?: number | undefined; - expiration?: string | undefined; - operations?: ({ - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[] & ({ - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - } & { - vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I["operations"][number]["vote"], keyof import("./vote.js").vote>]: never; }) | undefined; - comment?: ({ - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K_1 in Exclude<keyof I["operations"][number]["comment"], keyof import("./comment.js").comment>]: never; }) | undefined; - transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["operations"][number]["transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I["operations"][number]["transfer"], keyof import("./transfer.js").transfer>]: never; }) | undefined; - transfer_to_vesting?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I["operations"][number]["transfer_to_vesting"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I["operations"][number]["transfer_to_vesting"], keyof import("./transfer_to_vesting.js").transfer_to_vesting>]: never; }) | undefined; - withdraw_vesting?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I["operations"][number]["withdraw_vesting"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I["operations"][number]["withdraw_vesting"], keyof import("./withdraw_vesting.js").withdraw_vesting>]: never; }) | undefined; - limit_order_create?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_8 in Exclude<keyof I["operations"][number]["limit_order_create"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_9 in Exclude<keyof I["operations"][number]["limit_order_create"]["min_to_receive"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_10 in Exclude<keyof I["operations"][number]["limit_order_create"], keyof import("./limit_order_create.js").limit_order_create>]: never; }) | undefined; - limit_order_cancel?: ({ - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K_11 in Exclude<keyof I["operations"][number]["limit_order_cancel"], keyof import("./limit_order_cancel.js").limit_order_cancel>]: never; }) | undefined; - feed_publish?: ({ - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_12 in Exclude<keyof I["operations"][number]["feed_publish"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_13 in Exclude<keyof I["operations"][number]["feed_publish"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_14 in Exclude<keyof I["operations"][number]["feed_publish"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - } & { [K_15 in Exclude<keyof I["operations"][number]["feed_publish"], keyof import("./feed_publish.js").feed_publish>]: never; }) | undefined; - convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_16 in Exclude<keyof I["operations"][number]["convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_17 in Exclude<keyof I["operations"][number]["convert"], keyof import("./convert.js").convert>]: never; }) | undefined; - account_create?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_18 in Exclude<keyof I["operations"][number]["account_create"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_19 in Exclude<keyof I["operations"][number]["account_create"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_20 in Exclude<keyof I["operations"][number]["account_create"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_21 in Exclude<keyof I["operations"][number]["account_create"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_22 in Exclude<keyof I["operations"][number]["account_create"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_23 in Exclude<keyof I["operations"][number]["account_create"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_24 in Exclude<keyof I["operations"][number]["account_create"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_25 in Exclude<keyof I["operations"][number]["account_create"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_26 in Exclude<keyof I["operations"][number]["account_create"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_27 in Exclude<keyof I["operations"][number]["account_create"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_28 in Exclude<keyof I["operations"][number]["account_create"], keyof import("./account_create.js").account_create>]: never; }) | undefined; - account_update?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_29 in Exclude<keyof I["operations"][number]["account_update"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_30 in Exclude<keyof I["operations"][number]["account_update"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_31 in Exclude<keyof I["operations"][number]["account_update"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_32 in Exclude<keyof I["operations"][number]["account_update"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_33 in Exclude<keyof I["operations"][number]["account_update"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_34 in Exclude<keyof I["operations"][number]["account_update"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_35 in Exclude<keyof I["operations"][number]["account_update"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_36 in Exclude<keyof I["operations"][number]["account_update"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_37 in Exclude<keyof I["operations"][number]["account_update"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_38 in Exclude<keyof I["operations"][number]["account_update"], keyof import("./account_update.js").account_update>]: never; }) | undefined; - witness_update?: ({ - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_39 in Exclude<keyof I["operations"][number]["witness_update"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_40 in Exclude<keyof I["operations"][number]["witness_update"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_41 in Exclude<keyof I["operations"][number]["witness_update"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_42 in Exclude<keyof I["operations"][number]["witness_update"], keyof import("./witness_update.js").witness_update>]: never; }) | undefined; - account_witness_vote?: ({ - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K_43 in Exclude<keyof I["operations"][number]["account_witness_vote"], keyof import("./account_witness_vote.js").account_witness_vote>]: never; }) | undefined; - account_witness_proxy?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_44 in Exclude<keyof I["operations"][number]["account_witness_proxy"], keyof import("./account_witness_proxy.js").account_witness_proxy>]: never; }) | undefined; - pow?: ({ - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_45 in Exclude<keyof I["operations"][number]["pow"]["work"], keyof import("./pow.js").pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_46 in Exclude<keyof I["operations"][number]["pow"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_47 in Exclude<keyof I["operations"][number]["pow"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_48 in Exclude<keyof I["operations"][number]["pow"], keyof import("./pow.js").pow>]: never; }) | undefined; - custom?: ({ - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_49 in Exclude<keyof I["operations"][number]["custom"]["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_50 in Exclude<keyof I["operations"][number]["custom"], keyof import("./custom.js").custom>]: never; }) | undefined; - witness_block_approve?: ({ - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K_51 in Exclude<keyof I["operations"][number]["witness_block_approve"], keyof import("./witness_block_approve.js").witness_block_approve>]: never; }) | undefined; - delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_52 in Exclude<keyof I["operations"][number]["delete_comment"], keyof import("./delete_comment.js").delete_comment>]: never; }) | undefined; - custom_json?: ({ - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_53 in Exclude<keyof I["operations"][number]["custom_json"]["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_54 in Exclude<keyof I["operations"][number]["custom_json"]["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_55 in Exclude<keyof I["operations"][number]["custom_json"], keyof import("./custom_json.js").custom_json>]: never; }) | undefined; - comment_options?: ({ - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_56 in Exclude<keyof I["operations"][number]["comment_options"]["max_accepted_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_57 in Exclude<keyof I["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof import("./comment_options.js").beneficiary_route_type>]: never; })[] & { [K_58 in Exclude<keyof I["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_59 in Exclude<keyof I["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_60 in Exclude<keyof I["operations"][number]["comment_options"]["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_61 in Exclude<keyof I["operations"][number]["comment_options"]["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_62 in Exclude<keyof I["operations"][number]["comment_options"], keyof import("./comment_options.js").comment_options>]: never; }) | undefined; - set_withdraw_vesting_route?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K_63 in Exclude<keyof I["operations"][number]["set_withdraw_vesting_route"], keyof import("./set_withdraw_vesting_route.js").set_withdraw_vesting_route>]: never; }) | undefined; - limit_order_create2?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_64 in Exclude<keyof I["operations"][number]["limit_order_create2"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_65 in Exclude<keyof I["operations"][number]["limit_order_create2"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_66 in Exclude<keyof I["operations"][number]["limit_order_create2"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_67 in Exclude<keyof I["operations"][number]["limit_order_create2"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_68 in Exclude<keyof I["operations"][number]["limit_order_create2"], keyof import("./limit_order_create2.js").limit_order_create2>]: never; }) | undefined; - claim_account?: ({ - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_69 in Exclude<keyof I["operations"][number]["claim_account"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_70 in Exclude<keyof I["operations"][number]["claim_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_71 in Exclude<keyof I["operations"][number]["claim_account"]["extensions"][number], "void_t">]: never; })[] & { [K_72 in Exclude<keyof I["operations"][number]["claim_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_73 in Exclude<keyof I["operations"][number]["claim_account"], keyof import("./claim_account.js").claim_account>]: never; }) | undefined; - create_claimed_account?: ({ - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_74 in Exclude<keyof I["operations"][number]["create_claimed_account"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_75 in Exclude<keyof I["operations"][number]["create_claimed_account"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_76 in Exclude<keyof I["operations"][number]["create_claimed_account"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_77 in Exclude<keyof I["operations"][number]["create_claimed_account"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_78 in Exclude<keyof I["operations"][number]["create_claimed_account"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_79 in Exclude<keyof I["operations"][number]["create_claimed_account"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_80 in Exclude<keyof I["operations"][number]["create_claimed_account"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_81 in Exclude<keyof I["operations"][number]["create_claimed_account"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_82 in Exclude<keyof I["operations"][number]["create_claimed_account"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_83 in Exclude<keyof I["operations"][number]["create_claimed_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_84 in Exclude<keyof I["operations"][number]["create_claimed_account"]["extensions"][number], "void_t">]: never; })[] & { [K_85 in Exclude<keyof I["operations"][number]["create_claimed_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_86 in Exclude<keyof I["operations"][number]["create_claimed_account"], keyof import("./create_claimed_account.js").create_claimed_account>]: never; }) | undefined; - request_account_recovery?: ({ - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_87 in Exclude<keyof I["operations"][number]["request_account_recovery"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_88 in Exclude<keyof I["operations"][number]["request_account_recovery"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_89 in Exclude<keyof I["operations"][number]["request_account_recovery"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_90 in Exclude<keyof I["operations"][number]["request_account_recovery"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_91 in Exclude<keyof I["operations"][number]["request_account_recovery"]["extensions"][number], "void_t">]: never; })[] & { [K_92 in Exclude<keyof I["operations"][number]["request_account_recovery"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_93 in Exclude<keyof I["operations"][number]["request_account_recovery"], keyof import("./request_account_recovery.js").request_account_recovery>]: never; }) | undefined; - recover_account?: ({ - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_94 in Exclude<keyof I["operations"][number]["recover_account"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_95 in Exclude<keyof I["operations"][number]["recover_account"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_96 in Exclude<keyof I["operations"][number]["recover_account"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_97 in Exclude<keyof I["operations"][number]["recover_account"]["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_98 in Exclude<keyof I["operations"][number]["recover_account"]["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_99 in Exclude<keyof I["operations"][number]["recover_account"]["recent_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_100 in Exclude<keyof I["operations"][number]["recover_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_101 in Exclude<keyof I["operations"][number]["recover_account"]["extensions"][number], "void_t">]: never; })[] & { [K_102 in Exclude<keyof I["operations"][number]["recover_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_103 in Exclude<keyof I["operations"][number]["recover_account"], keyof import("./recover_account.js").recover_account>]: never; }) | undefined; - change_recovery_account?: ({ - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_104 in Exclude<keyof I["operations"][number]["change_recovery_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_105 in Exclude<keyof I["operations"][number]["change_recovery_account"]["extensions"][number], "void_t">]: never; })[] & { [K_106 in Exclude<keyof I["operations"][number]["change_recovery_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_107 in Exclude<keyof I["operations"][number]["change_recovery_account"], keyof import("./change_recovery_account.js").change_recovery_account>]: never; }) | undefined; - escrow_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_108 in Exclude<keyof I["operations"][number]["escrow_transfer"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_109 in Exclude<keyof I["operations"][number]["escrow_transfer"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_110 in Exclude<keyof I["operations"][number]["escrow_transfer"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_111 in Exclude<keyof I["operations"][number]["escrow_transfer"], keyof import("./escrow_transfer.js").escrow_transfer>]: never; }) | undefined; - escrow_dispute?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K_112 in Exclude<keyof I["operations"][number]["escrow_dispute"], keyof import("./escrow_dispute.js").escrow_dispute>]: never; }) | undefined; - escrow_release?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_113 in Exclude<keyof I["operations"][number]["escrow_release"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_114 in Exclude<keyof I["operations"][number]["escrow_release"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_115 in Exclude<keyof I["operations"][number]["escrow_release"], keyof import("./escrow_release.js").escrow_release>]: never; }) | undefined; - pow2?: ({ - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_116 in Exclude<keyof I["operations"][number]["pow2"]["work"]["pow2"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_117 in Exclude<keyof I["operations"][number]["pow2"]["work"]["pow2"], keyof import("./pow2.js").pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_118 in Exclude<keyof I["operations"][number]["pow2"]["work"]["equihash_pow"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_119 in Exclude<keyof I["operations"][number]["pow2"]["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_120 in Exclude<keyof I["operations"][number]["pow2"]["work"]["equihash_pow"]["proof"], keyof import("./pow2.js").equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_121 in Exclude<keyof I["operations"][number]["pow2"]["work"]["equihash_pow"], keyof import("./pow2.js").equihash_pow>]: never; }) | undefined; - } & { [K_122 in Exclude<keyof I["operations"][number]["pow2"]["work"], keyof import("./pow2.js").pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_123 in Exclude<keyof I["operations"][number]["pow2"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_124 in Exclude<keyof I["operations"][number]["pow2"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_125 in Exclude<keyof I["operations"][number]["pow2"], keyof import("./pow2.js").pow2>]: never; }) | undefined; - escrow_approve?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K_126 in Exclude<keyof I["operations"][number]["escrow_approve"], keyof import("./escrow_approve.js").escrow_approve>]: never; }) | undefined; - transfer_to_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_127 in Exclude<keyof I["operations"][number]["transfer_to_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_128 in Exclude<keyof I["operations"][number]["transfer_to_savings"], keyof import("./transfer_to_savings.js").transfer_to_savings>]: never; }) | undefined; - transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_129 in Exclude<keyof I["operations"][number]["transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_130 in Exclude<keyof I["operations"][number]["transfer_from_savings"], keyof import("./transfer_from_savings.js").transfer_from_savings>]: never; }) | undefined; - cancel_transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K_131 in Exclude<keyof I["operations"][number]["cancel_transfer_from_savings"], keyof import("./cancel_transfer_from_savings.js").cancel_transfer_from_savings>]: never; }) | undefined; - decline_voting_rights?: ({ - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K_132 in Exclude<keyof I["operations"][number]["decline_voting_rights"], keyof import("./decline_voting_rights.js").decline_voting_rights>]: never; }) | undefined; - claim_reward_balance?: ({ - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_133 in Exclude<keyof I["operations"][number]["claim_reward_balance"]["reward_hive"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_134 in Exclude<keyof I["operations"][number]["claim_reward_balance"]["reward_hbd"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_135 in Exclude<keyof I["operations"][number]["claim_reward_balance"]["reward_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_136 in Exclude<keyof I["operations"][number]["claim_reward_balance"], keyof import("./claim_reward_balance.js").claim_reward_balance>]: never; }) | undefined; - delegate_vesting_shares?: ({ - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_137 in Exclude<keyof I["operations"][number]["delegate_vesting_shares"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_138 in Exclude<keyof I["operations"][number]["delegate_vesting_shares"], keyof import("./delegate_vesting_shares.js").delegate_vesting_shares>]: never; }) | undefined; - account_create_with_delegation?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_139 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_140 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_141 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_142 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_143 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_144 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_145 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_146 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_147 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_148 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_149 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_150 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_151 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["extensions"][number], "void_t">]: never; })[] & { [K_152 in Exclude<keyof I["operations"][number]["account_create_with_delegation"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_153 in Exclude<keyof I["operations"][number]["account_create_with_delegation"], keyof import("./account_create_with_delegation.js").account_create_with_delegation>]: never; }) | undefined; - witness_set_properties?: ({ - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K_154 in Exclude<keyof I["operations"][number]["witness_set_properties"]["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_155 in Exclude<keyof I["operations"][number]["witness_set_properties"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_156 in Exclude<keyof I["operations"][number]["witness_set_properties"]["extensions"][number], "void_t">]: never; })[] & { [K_157 in Exclude<keyof I["operations"][number]["witness_set_properties"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_158 in Exclude<keyof I["operations"][number]["witness_set_properties"], keyof import("./witness_set_properties.js").witness_set_properties>]: never; }) | undefined; - account_update2?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_159 in Exclude<keyof I["operations"][number]["account_update2"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_160 in Exclude<keyof I["operations"][number]["account_update2"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_161 in Exclude<keyof I["operations"][number]["account_update2"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_162 in Exclude<keyof I["operations"][number]["account_update2"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_163 in Exclude<keyof I["operations"][number]["account_update2"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_164 in Exclude<keyof I["operations"][number]["account_update2"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_165 in Exclude<keyof I["operations"][number]["account_update2"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_166 in Exclude<keyof I["operations"][number]["account_update2"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_167 in Exclude<keyof I["operations"][number]["account_update2"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_168 in Exclude<keyof I["operations"][number]["account_update2"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_169 in Exclude<keyof I["operations"][number]["account_update2"]["extensions"][number], "void_t">]: never; })[] & { [K_170 in Exclude<keyof I["operations"][number]["account_update2"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_171 in Exclude<keyof I["operations"][number]["account_update2"], keyof import("./account_update2.js").account_update2>]: never; }) | undefined; - create_proposal?: ({ - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_172 in Exclude<keyof I["operations"][number]["create_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_173 in Exclude<keyof I["operations"][number]["create_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_174 in Exclude<keyof I["operations"][number]["create_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_175 in Exclude<keyof I["operations"][number]["create_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_176 in Exclude<keyof I["operations"][number]["create_proposal"], keyof import("./create_proposal.js").create_proposal>]: never; }) | undefined; - update_proposal_votes?: ({ - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_177 in Exclude<keyof I["operations"][number]["update_proposal_votes"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_178 in Exclude<keyof I["operations"][number]["update_proposal_votes"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_179 in Exclude<keyof I["operations"][number]["update_proposal_votes"]["extensions"][number], "void_t">]: never; })[] & { [K_180 in Exclude<keyof I["operations"][number]["update_proposal_votes"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_181 in Exclude<keyof I["operations"][number]["update_proposal_votes"], keyof import("./update_proposal_votes.js").update_proposal_votes>]: never; }) | undefined; - remove_proposal?: ({ - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_182 in Exclude<keyof I["operations"][number]["remove_proposal"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_183 in Exclude<keyof I["operations"][number]["remove_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_184 in Exclude<keyof I["operations"][number]["remove_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_185 in Exclude<keyof I["operations"][number]["remove_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_186 in Exclude<keyof I["operations"][number]["remove_proposal"], keyof import("./remove_proposal.js").remove_proposal>]: never; }) | undefined; - update_proposal?: ({ - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_187 in Exclude<keyof I["operations"][number]["update_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_188 in Exclude<keyof I["operations"][number]["update_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_189 in Exclude<keyof I["operations"][number]["update_proposal"]["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_190 in Exclude<keyof I["operations"][number]["update_proposal"]["extensions"][number], keyof import("./update_proposal.js").update_proposal_extension>]: never; })[] & { [K_191 in Exclude<keyof I["operations"][number]["update_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_192 in Exclude<keyof I["operations"][number]["update_proposal"], keyof import("./update_proposal.js").update_proposal>]: never; }) | undefined; - collateralized_convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_193 in Exclude<keyof I["operations"][number]["collateralized_convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_194 in Exclude<keyof I["operations"][number]["collateralized_convert"], keyof import("./collateralized_convert.js").collateralized_convert>]: never; }) | undefined; - recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_195 in Exclude<keyof I["operations"][number]["recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_196 in Exclude<keyof I["operations"][number]["recurrent_transfer"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_197 in Exclude<keyof I["operations"][number]["recurrent_transfer"]["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_198 in Exclude<keyof I["operations"][number]["recurrent_transfer"]["extensions"][number], keyof import("./recurrent_transfer.js").recurrent_transfer_extension>]: never; })[] & { [K_199 in Exclude<keyof I["operations"][number]["recurrent_transfer"]["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_200 in Exclude<keyof I["operations"][number]["recurrent_transfer"], keyof import("./recurrent_transfer.js").recurrent_transfer>]: never; }) | undefined; - fill_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_201 in Exclude<keyof I["operations"][number]["fill_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_202 in Exclude<keyof I["operations"][number]["fill_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_203 in Exclude<keyof I["operations"][number]["fill_convert_request"], keyof import("./fill_convert_request.js").fill_convert_request>]: never; }) | undefined; - author_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_204 in Exclude<keyof I["operations"][number]["author_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_205 in Exclude<keyof I["operations"][number]["author_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_206 in Exclude<keyof I["operations"][number]["author_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_207 in Exclude<keyof I["operations"][number]["author_reward"]["curators_vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_208 in Exclude<keyof I["operations"][number]["author_reward"], keyof import("./author_reward.js").author_reward>]: never; }) | undefined; - curation_reward?: ({ - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_209 in Exclude<keyof I["operations"][number]["curation_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_210 in Exclude<keyof I["operations"][number]["curation_reward"], keyof import("./curation_reward.js").curation_reward>]: never; }) | undefined; - comment_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_211 in Exclude<keyof I["operations"][number]["comment_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_212 in Exclude<keyof I["operations"][number]["comment_reward"]["total_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_213 in Exclude<keyof I["operations"][number]["comment_reward"]["curator_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_214 in Exclude<keyof I["operations"][number]["comment_reward"]["beneficiary_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_215 in Exclude<keyof I["operations"][number]["comment_reward"], keyof import("./comment_reward.js").comment_reward>]: never; }) | undefined; - liquidity_reward?: ({ - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_216 in Exclude<keyof I["operations"][number]["liquidity_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_217 in Exclude<keyof I["operations"][number]["liquidity_reward"], keyof import("./liquidity_reward.js").liquidity_reward>]: never; }) | undefined; - interest?: ({ - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_218 in Exclude<keyof I["operations"][number]["interest"]["interest"], keyof import("./asset.js").asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_219 in Exclude<keyof I["operations"][number]["interest"], keyof import("./interest.js").interest>]: never; }) | undefined; - fill_vesting_withdraw?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_220 in Exclude<keyof I["operations"][number]["fill_vesting_withdraw"]["withdrawn"], keyof import("./asset.js").asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_221 in Exclude<keyof I["operations"][number]["fill_vesting_withdraw"]["deposited"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_222 in Exclude<keyof I["operations"][number]["fill_vesting_withdraw"], keyof import("./fill_vesting_withdraw.js").fill_vesting_withdraw>]: never; }) | undefined; - fill_order?: ({ - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_223 in Exclude<keyof I["operations"][number]["fill_order"]["current_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_224 in Exclude<keyof I["operations"][number]["fill_order"]["open_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_225 in Exclude<keyof I["operations"][number]["fill_order"], keyof import("./fill_order.js").fill_order>]: never; }) | undefined; - shutdown_witness?: ({ - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K_226 in Exclude<keyof I["operations"][number]["shutdown_witness"], "owner">]: never; }) | undefined; - fill_transfer_from_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_227 in Exclude<keyof I["operations"][number]["fill_transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_228 in Exclude<keyof I["operations"][number]["fill_transfer_from_savings"], keyof import("./fill_transfer_from_savings.js").fill_transfer_from_savings>]: never; }) | undefined; - hardfork?: ({ - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K_229 in Exclude<keyof I["operations"][number]["hardfork"], "hardfork_id">]: never; }) | undefined; - comment_payout_update?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_230 in Exclude<keyof I["operations"][number]["comment_payout_update"], keyof import("./comment_payout_update.js").comment_payout_update>]: never; }) | undefined; - return_vesting_delegation?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_231 in Exclude<keyof I["operations"][number]["return_vesting_delegation"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_232 in Exclude<keyof I["operations"][number]["return_vesting_delegation"], keyof import("./return_vesting_delegation.js").return_vesting_delegation>]: never; }) | undefined; - comment_benefactor_reward?: ({ - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_233 in Exclude<keyof I["operations"][number]["comment_benefactor_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_234 in Exclude<keyof I["operations"][number]["comment_benefactor_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_235 in Exclude<keyof I["operations"][number]["comment_benefactor_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_236 in Exclude<keyof I["operations"][number]["comment_benefactor_reward"], keyof import("./comment_benefactor_reward.js").comment_benefactor_reward>]: never; }) | undefined; - producer_reward?: ({ - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_237 in Exclude<keyof I["operations"][number]["producer_reward"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_238 in Exclude<keyof I["operations"][number]["producer_reward"], keyof import("./producer_reward.js").producer_reward>]: never; }) | undefined; - clear_null_account_balance?: ({ - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_239 in Exclude<keyof I["operations"][number]["clear_null_account_balance"]["total_cleared"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_240 in Exclude<keyof I["operations"][number]["clear_null_account_balance"]["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_241 in Exclude<keyof I["operations"][number]["clear_null_account_balance"], "total_cleared">]: never; }) | undefined; - proposal_pay?: ({ - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_242 in Exclude<keyof I["operations"][number]["proposal_pay"]["payment"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_243 in Exclude<keyof I["operations"][number]["proposal_pay"], keyof import("./proposal_pay.js").proposal_pay>]: never; }) | undefined; - dhf_funding?: ({ - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_244 in Exclude<keyof I["operations"][number]["dhf_funding"]["additional_funds"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_245 in Exclude<keyof I["operations"][number]["dhf_funding"], keyof import("./dhf_funding.js").dhf_funding>]: never; }) | undefined; - hardfork_hive?: ({ - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K_246 in Exclude<keyof I["operations"][number]["hardfork_hive"]["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_247 in Exclude<keyof I["operations"][number]["hardfork_hive"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_248 in Exclude<keyof I["operations"][number]["hardfork_hive"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_249 in Exclude<keyof I["operations"][number]["hardfork_hive"]["vests_converted"], keyof import("./asset.js").asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_250 in Exclude<keyof I["operations"][number]["hardfork_hive"]["total_hive_from_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_251 in Exclude<keyof I["operations"][number]["hardfork_hive"], keyof import("./hardfork_hive.js").hardfork_hive>]: never; }) | undefined; - hardfork_hive_restore?: ({ - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_252 in Exclude<keyof I["operations"][number]["hardfork_hive_restore"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_253 in Exclude<keyof I["operations"][number]["hardfork_hive_restore"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_254 in Exclude<keyof I["operations"][number]["hardfork_hive_restore"], keyof import("./hardfork_hive_restore.js").hardfork_hive_restore>]: never; }) | undefined; - delayed_voting?: ({ - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K_255 in Exclude<keyof I["operations"][number]["delayed_voting"], keyof import("./delayed_voting.js").delayed_voting>]: never; }) | undefined; - consolidate_treasury_balance?: ({ - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_256 in Exclude<keyof I["operations"][number]["consolidate_treasury_balance"]["total_moved"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_257 in Exclude<keyof I["operations"][number]["consolidate_treasury_balance"]["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_258 in Exclude<keyof I["operations"][number]["consolidate_treasury_balance"], "total_moved">]: never; }) | undefined; - effective_comment_vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_259 in Exclude<keyof I["operations"][number]["effective_comment_vote"]["pending_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_260 in Exclude<keyof I["operations"][number]["effective_comment_vote"], keyof import("./effective_comment_vote.js").effective_comment_vote>]: never; }) | undefined; - ineffective_delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_261 in Exclude<keyof I["operations"][number]["ineffective_delete_comment"], keyof import("./ineffective_delete_comment.js").ineffective_delete_comment>]: never; }) | undefined; - dhf_conversion?: ({ - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_262 in Exclude<keyof I["operations"][number]["dhf_conversion"]["hive_amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_263 in Exclude<keyof I["operations"][number]["dhf_conversion"]["hbd_amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_264 in Exclude<keyof I["operations"][number]["dhf_conversion"], keyof import("./dhf_conversion.js").dhf_conversion>]: never; }) | undefined; - expired_account_notification?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_265 in Exclude<keyof I["operations"][number]["expired_account_notification"], "account">]: never; }) | undefined; - changed_recovery_account?: ({ - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K_266 in Exclude<keyof I["operations"][number]["changed_recovery_account"], keyof import("./changed_recovery_account.js").changed_recovery_account>]: never; }) | undefined; - transfer_to_vesting_completed?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_267 in Exclude<keyof I["operations"][number]["transfer_to_vesting_completed"]["hive_vested"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_268 in Exclude<keyof I["operations"][number]["transfer_to_vesting_completed"]["vesting_shares_received"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_269 in Exclude<keyof I["operations"][number]["transfer_to_vesting_completed"], keyof import("./transfer_to_vesting_completed.js").transfer_to_vesting_completed>]: never; }) | undefined; - pow_reward?: ({ - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_270 in Exclude<keyof I["operations"][number]["pow_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_271 in Exclude<keyof I["operations"][number]["pow_reward"], keyof import("./pow_reward.js").pow_reward>]: never; }) | undefined; - vesting_shares_split?: ({ - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_272 in Exclude<keyof I["operations"][number]["vesting_shares_split"]["vesting_shares_before_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_273 in Exclude<keyof I["operations"][number]["vesting_shares_split"]["vesting_shares_after_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_274 in Exclude<keyof I["operations"][number]["vesting_shares_split"], keyof import("./vesting_shares_split.js").vesting_shares_split>]: never; }) | undefined; - account_created?: ({ - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_275 in Exclude<keyof I["operations"][number]["account_created"]["initial_vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_276 in Exclude<keyof I["operations"][number]["account_created"]["initial_delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_277 in Exclude<keyof I["operations"][number]["account_created"], keyof import("./account_created.js").account_created>]: never; }) | undefined; - fill_collateralized_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_278 in Exclude<keyof I["operations"][number]["fill_collateralized_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_279 in Exclude<keyof I["operations"][number]["fill_collateralized_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_280 in Exclude<keyof I["operations"][number]["fill_collateralized_convert_request"]["excess_collateral"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_281 in Exclude<keyof I["operations"][number]["fill_collateralized_convert_request"], keyof import("./fill_collateralized_convert_request.js").fill_collateralized_convert_request>]: never; }) | undefined; - system_warning?: ({ - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K_282 in Exclude<keyof I["operations"][number]["system_warning"], "message">]: never; }) | undefined; - fill_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_283 in Exclude<keyof I["operations"][number]["fill_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_284 in Exclude<keyof I["operations"][number]["fill_recurrent_transfer"], keyof import("./fill_recurrent_transfer.js").fill_recurrent_transfer>]: never; }) | undefined; - failed_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_285 in Exclude<keyof I["operations"][number]["failed_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_286 in Exclude<keyof I["operations"][number]["failed_recurrent_transfer"], keyof import("./failed_recurrent_transfer.js").failed_recurrent_transfer>]: never; }) | undefined; - limit_order_cancelled?: ({ - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_287 in Exclude<keyof I["operations"][number]["limit_order_cancelled"]["amount_back"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_288 in Exclude<keyof I["operations"][number]["limit_order_cancelled"], keyof import("./limit_order_cancelled.js").limit_order_cancelled>]: never; }) | undefined; - producer_missed?: ({ - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K_289 in Exclude<keyof I["operations"][number]["producer_missed"], "producer">]: never; }) | undefined; - proposal_fee?: ({ - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_290 in Exclude<keyof I["operations"][number]["proposal_fee"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_291 in Exclude<keyof I["operations"][number]["proposal_fee"], keyof import("./proposal_fee.js").proposal_fee>]: never; }) | undefined; - collateralized_convert_immediate_conversion?: ({ - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_292 in Exclude<keyof I["operations"][number]["collateralized_convert_immediate_conversion"]["hbd_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_293 in Exclude<keyof I["operations"][number]["collateralized_convert_immediate_conversion"], keyof import("./collateralized_convert_immediate_conversion.js").collateralized_convert_immediate_conversion>]: never; }) | undefined; - escrow_approved?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_294 in Exclude<keyof I["operations"][number]["escrow_approved"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_295 in Exclude<keyof I["operations"][number]["escrow_approved"], keyof import("./escrow_approved.js").escrow_approved>]: never; }) | undefined; - escrow_rejected?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_296 in Exclude<keyof I["operations"][number]["escrow_rejected"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_297 in Exclude<keyof I["operations"][number]["escrow_rejected"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_298 in Exclude<keyof I["operations"][number]["escrow_rejected"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_299 in Exclude<keyof I["operations"][number]["escrow_rejected"], keyof import("./escrow_rejected.js").escrow_rejected>]: never; }) | undefined; - proxy_cleared?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_300 in Exclude<keyof I["operations"][number]["proxy_cleared"], keyof import("./proxy_cleared.js").proxy_cleared>]: never; }) | undefined; - declined_voting_rights?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_301 in Exclude<keyof I["operations"][number]["declined_voting_rights"], "account">]: never; }) | undefined; - } & { [K_302 in Exclude<keyof I["operations"][number], keyof operation>]: never; })[] & { [K_303 in Exclude<keyof I["operations"], keyof { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_304 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_305 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_306 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - signatures?: (string[] & string[] & { [K_307 in Exclude<keyof I["signatures"], keyof string[]>]: never; }) | undefined; - } & { [K_308 in Exclude<keyof I, keyof transaction>]: never; }>(base?: I | undefined): transaction; - fromPartial<I_1 extends { - ref_block_num?: number | undefined; - ref_block_prefix?: number | undefined; - expiration?: string | undefined; - operations?: { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - signatures?: string[] | undefined; - } & { - ref_block_num?: number | undefined; - ref_block_prefix?: number | undefined; - expiration?: string | undefined; - operations?: ({ - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[] & ({ - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - } & { - vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K_309 in Exclude<keyof I_1["operations"][number]["vote"], keyof import("./vote.js").vote>]: never; }) | undefined; - comment?: ({ - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } & { [K_310 in Exclude<keyof I_1["operations"][number]["comment"], keyof import("./comment.js").comment>]: never; }) | undefined; - transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_311 in Exclude<keyof I_1["operations"][number]["transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_312 in Exclude<keyof I_1["operations"][number]["transfer"], keyof import("./transfer.js").transfer>]: never; }) | undefined; - transfer_to_vesting?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_313 in Exclude<keyof I_1["operations"][number]["transfer_to_vesting"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_314 in Exclude<keyof I_1["operations"][number]["transfer_to_vesting"], keyof import("./transfer_to_vesting.js").transfer_to_vesting>]: never; }) | undefined; - withdraw_vesting?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_315 in Exclude<keyof I_1["operations"][number]["withdraw_vesting"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_316 in Exclude<keyof I_1["operations"][number]["withdraw_vesting"], keyof import("./withdraw_vesting.js").withdraw_vesting>]: never; }) | undefined; - limit_order_create?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_317 in Exclude<keyof I_1["operations"][number]["limit_order_create"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - min_to_receive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_318 in Exclude<keyof I_1["operations"][number]["limit_order_create"]["min_to_receive"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } & { [K_319 in Exclude<keyof I_1["operations"][number]["limit_order_create"], keyof import("./limit_order_create.js").limit_order_create>]: never; }) | undefined; - limit_order_cancel?: ({ - owner?: string | undefined; - orderid?: number | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - } & { [K_320 in Exclude<keyof I_1["operations"][number]["limit_order_cancel"], keyof import("./limit_order_cancel.js").limit_order_cancel>]: never; }) | undefined; - feed_publish?: ({ - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } & { - publisher?: string | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_321 in Exclude<keyof I_1["operations"][number]["feed_publish"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_322 in Exclude<keyof I_1["operations"][number]["feed_publish"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_323 in Exclude<keyof I_1["operations"][number]["feed_publish"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - } & { [K_324 in Exclude<keyof I_1["operations"][number]["feed_publish"], keyof import("./feed_publish.js").feed_publish>]: never; }) | undefined; - convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_325 in Exclude<keyof I_1["operations"][number]["convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_326 in Exclude<keyof I_1["operations"][number]["convert"], keyof import("./convert.js").convert>]: never; }) | undefined; - account_create?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_327 in Exclude<keyof I_1["operations"][number]["account_create"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_328 in Exclude<keyof I_1["operations"][number]["account_create"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_329 in Exclude<keyof I_1["operations"][number]["account_create"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_330 in Exclude<keyof I_1["operations"][number]["account_create"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_331 in Exclude<keyof I_1["operations"][number]["account_create"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_332 in Exclude<keyof I_1["operations"][number]["account_create"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_333 in Exclude<keyof I_1["operations"][number]["account_create"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_334 in Exclude<keyof I_1["operations"][number]["account_create"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_335 in Exclude<keyof I_1["operations"][number]["account_create"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_336 in Exclude<keyof I_1["operations"][number]["account_create"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_337 in Exclude<keyof I_1["operations"][number]["account_create"], keyof import("./account_create.js").account_create>]: never; }) | undefined; - account_update?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_338 in Exclude<keyof I_1["operations"][number]["account_update"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_339 in Exclude<keyof I_1["operations"][number]["account_update"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_340 in Exclude<keyof I_1["operations"][number]["account_update"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_341 in Exclude<keyof I_1["operations"][number]["account_update"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_342 in Exclude<keyof I_1["operations"][number]["account_update"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_343 in Exclude<keyof I_1["operations"][number]["account_update"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_344 in Exclude<keyof I_1["operations"][number]["account_update"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_345 in Exclude<keyof I_1["operations"][number]["account_update"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_346 in Exclude<keyof I_1["operations"][number]["account_update"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } & { [K_347 in Exclude<keyof I_1["operations"][number]["account_update"], keyof import("./account_update.js").account_update>]: never; }) | undefined; - witness_update?: ({ - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_348 in Exclude<keyof I_1["operations"][number]["witness_update"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_349 in Exclude<keyof I_1["operations"][number]["witness_update"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_350 in Exclude<keyof I_1["operations"][number]["witness_update"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_351 in Exclude<keyof I_1["operations"][number]["witness_update"], keyof import("./witness_update.js").witness_update>]: never; }) | undefined; - account_witness_vote?: ({ - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } & { [K_352 in Exclude<keyof I_1["operations"][number]["account_witness_vote"], keyof import("./account_witness_vote.js").account_witness_vote>]: never; }) | undefined; - account_witness_proxy?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_353 in Exclude<keyof I_1["operations"][number]["account_witness_proxy"], keyof import("./account_witness_proxy.js").account_witness_proxy>]: never; }) | undefined; - pow?: ({ - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: ({ - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } & { [K_354 in Exclude<keyof I_1["operations"][number]["pow"]["work"], keyof import("./pow.js").pow_work>]: never; }) | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_355 in Exclude<keyof I_1["operations"][number]["pow"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_356 in Exclude<keyof I_1["operations"][number]["pow"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_357 in Exclude<keyof I_1["operations"][number]["pow"], keyof import("./pow.js").pow>]: never; }) | undefined; - custom?: ({ - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_358 in Exclude<keyof I_1["operations"][number]["custom"]["required_auths"], keyof string[]>]: never; }) | undefined; - id?: number | undefined; - data?: string | undefined; - } & { [K_359 in Exclude<keyof I_1["operations"][number]["custom"], keyof import("./custom.js").custom>]: never; }) | undefined; - witness_block_approve?: ({ - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K_360 in Exclude<keyof I_1["operations"][number]["witness_block_approve"], keyof import("./witness_block_approve.js").witness_block_approve>]: never; }) | undefined; - delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_361 in Exclude<keyof I_1["operations"][number]["delete_comment"], keyof import("./delete_comment.js").delete_comment>]: never; }) | undefined; - custom_json?: ({ - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } & { - required_auths?: (string[] & string[] & { [K_362 in Exclude<keyof I_1["operations"][number]["custom_json"]["required_auths"], keyof string[]>]: never; }) | undefined; - required_posting_auths?: (string[] & string[] & { [K_363 in Exclude<keyof I_1["operations"][number]["custom_json"]["required_posting_auths"], keyof string[]>]: never; }) | undefined; - id?: string | undefined; - json?: string | undefined; - } & { [K_364 in Exclude<keyof I_1["operations"][number]["custom_json"], keyof import("./custom_json.js").custom_json>]: never; }) | undefined; - comment_options?: ({ - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_365 in Exclude<keyof I_1["operations"][number]["comment_options"]["max_accepted_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] & ({ - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - } & { - comment_payout_beneficiaries?: ({ - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } & { - beneficiaries?: ({ - account?: string | undefined; - weight?: number | undefined; - }[] & ({ - account?: string | undefined; - weight?: number | undefined; - } & { - account?: string | undefined; - weight?: number | undefined; - } & { [K_366 in Exclude<keyof I_1["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"][number], keyof import("./comment_options.js").beneficiary_route_type>]: never; })[] & { [K_367 in Exclude<keyof I_1["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"]["beneficiaries"], keyof { - account?: string | undefined; - weight?: number | undefined; - }[]>]: never; }) | undefined; - } & { [K_368 in Exclude<keyof I_1["operations"][number]["comment_options"]["extensions"][number]["comment_payout_beneficiaries"], "beneficiaries">]: never; }) | undefined; - } & { [K_369 in Exclude<keyof I_1["operations"][number]["comment_options"]["extensions"][number], "comment_payout_beneficiaries">]: never; })[] & { [K_370 in Exclude<keyof I_1["operations"][number]["comment_options"]["extensions"], keyof { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_371 in Exclude<keyof I_1["operations"][number]["comment_options"], keyof import("./comment_options.js").comment_options>]: never; }) | undefined; - set_withdraw_vesting_route?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } & { [K_372 in Exclude<keyof I_1["operations"][number]["set_withdraw_vesting_route"], keyof import("./set_withdraw_vesting_route.js").set_withdraw_vesting_route>]: never; }) | undefined; - limit_order_create2?: ({ - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } & { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_373 in Exclude<keyof I_1["operations"][number]["limit_order_create2"]["amount_to_sell"], keyof import("./asset.js").asset>]: never; }) | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: ({ - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - base?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_374 in Exclude<keyof I_1["operations"][number]["limit_order_create2"]["exchange_rate"]["base"], keyof import("./asset.js").asset>]: never; }) | undefined; - quote?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_375 in Exclude<keyof I_1["operations"][number]["limit_order_create2"]["exchange_rate"]["quote"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_376 in Exclude<keyof I_1["operations"][number]["limit_order_create2"]["exchange_rate"], keyof import("./price.js").price>]: never; }) | undefined; - expiration?: string | undefined; - } & { [K_377 in Exclude<keyof I_1["operations"][number]["limit_order_create2"], keyof import("./limit_order_create2.js").limit_order_create2>]: never; }) | undefined; - claim_account?: ({ - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_378 in Exclude<keyof I_1["operations"][number]["claim_account"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_379 in Exclude<keyof I_1["operations"][number]["claim_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_380 in Exclude<keyof I_1["operations"][number]["claim_account"]["extensions"][number], "void_t">]: never; })[] & { [K_381 in Exclude<keyof I_1["operations"][number]["claim_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_382 in Exclude<keyof I_1["operations"][number]["claim_account"], keyof import("./claim_account.js").claim_account>]: never; }) | undefined; - create_claimed_account?: ({ - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_383 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_384 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_385 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_386 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_387 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_388 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_389 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_390 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_391 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_392 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_393 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["extensions"][number], "void_t">]: never; })[] & { [K_394 in Exclude<keyof I_1["operations"][number]["create_claimed_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_395 in Exclude<keyof I_1["operations"][number]["create_claimed_account"], keyof import("./create_claimed_account.js").create_claimed_account>]: never; }) | undefined; - request_account_recovery?: ({ - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_396 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_397 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_398 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_399 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_400 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["extensions"][number], "void_t">]: never; })[] & { [K_401 in Exclude<keyof I_1["operations"][number]["request_account_recovery"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_402 in Exclude<keyof I_1["operations"][number]["request_account_recovery"], keyof import("./request_account_recovery.js").request_account_recovery>]: never; }) | undefined; - recover_account?: ({ - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_403 in Exclude<keyof I_1["operations"][number]["recover_account"]["new_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_404 in Exclude<keyof I_1["operations"][number]["recover_account"]["new_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_405 in Exclude<keyof I_1["operations"][number]["recover_account"]["new_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - recent_owner_authority?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_406 in Exclude<keyof I_1["operations"][number]["recover_account"]["recent_owner_authority"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_407 in Exclude<keyof I_1["operations"][number]["recover_account"]["recent_owner_authority"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_408 in Exclude<keyof I_1["operations"][number]["recover_account"]["recent_owner_authority"], keyof import("./authority.js").authority>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_409 in Exclude<keyof I_1["operations"][number]["recover_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_410 in Exclude<keyof I_1["operations"][number]["recover_account"]["extensions"][number], "void_t">]: never; })[] & { [K_411 in Exclude<keyof I_1["operations"][number]["recover_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_412 in Exclude<keyof I_1["operations"][number]["recover_account"], keyof import("./recover_account.js").recover_account>]: never; }) | undefined; - change_recovery_account?: ({ - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_413 in Exclude<keyof I_1["operations"][number]["change_recovery_account"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_414 in Exclude<keyof I_1["operations"][number]["change_recovery_account"]["extensions"][number], "void_t">]: never; })[] & { [K_415 in Exclude<keyof I_1["operations"][number]["change_recovery_account"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_416 in Exclude<keyof I_1["operations"][number]["change_recovery_account"], keyof import("./change_recovery_account.js").change_recovery_account>]: never; }) | undefined; - escrow_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_417 in Exclude<keyof I_1["operations"][number]["escrow_transfer"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_418 in Exclude<keyof I_1["operations"][number]["escrow_transfer"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_419 in Exclude<keyof I_1["operations"][number]["escrow_transfer"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } & { [K_420 in Exclude<keyof I_1["operations"][number]["escrow_transfer"], keyof import("./escrow_transfer.js").escrow_transfer>]: never; }) | undefined; - escrow_dispute?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } & { [K_421 in Exclude<keyof I_1["operations"][number]["escrow_dispute"], keyof import("./escrow_dispute.js").escrow_dispute>]: never; }) | undefined; - escrow_release?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_422 in Exclude<keyof I_1["operations"][number]["escrow_release"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_423 in Exclude<keyof I_1["operations"][number]["escrow_release"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_424 in Exclude<keyof I_1["operations"][number]["escrow_release"], keyof import("./escrow_release.js").escrow_release>]: never; }) | undefined; - pow2?: ({ - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } & { - work?: ({ - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } & { - pow2?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_425 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["pow2"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - pow_summary?: number | undefined; - } & { [K_426 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["pow2"], keyof import("./pow2.js").pow2_pow>]: never; }) | undefined; - equihash_pow?: ({ - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { - input?: ({ - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } & { [K_427 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["equihash_pow"]["input"], keyof import("./pow2.js").pow2_input>]: never; }) | undefined; - proof?: ({ - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } & { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: (number[] & number[] & { [K_428 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["equihash_pow"]["proof"]["inputs"], keyof number[]>]: never; }) | undefined; - } & { [K_429 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["equihash_pow"]["proof"], keyof import("./pow2.js").equihash_proof>]: never; }) | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } & { [K_430 in Exclude<keyof I_1["operations"][number]["pow2"]["work"]["equihash_pow"], keyof import("./pow2.js").equihash_pow>]: never; }) | undefined; - } & { [K_431 in Exclude<keyof I_1["operations"][number]["pow2"]["work"], keyof import("./pow2.js").pow2_work>]: never; }) | undefined; - new_owner_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_432 in Exclude<keyof I_1["operations"][number]["pow2"]["props"]["account_creation_fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_433 in Exclude<keyof I_1["operations"][number]["pow2"]["props"], keyof import("./legacy_chain_properties.js").legacy_chain_properties>]: never; }) | undefined; - } & { [K_434 in Exclude<keyof I_1["operations"][number]["pow2"], keyof import("./pow2.js").pow2>]: never; }) | undefined; - escrow_approve?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } & { [K_435 in Exclude<keyof I_1["operations"][number]["escrow_approve"], keyof import("./escrow_approve.js").escrow_approve>]: never; }) | undefined; - transfer_to_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_436 in Exclude<keyof I_1["operations"][number]["transfer_to_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_437 in Exclude<keyof I_1["operations"][number]["transfer_to_savings"], keyof import("./transfer_to_savings.js").transfer_to_savings>]: never; }) | undefined; - transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_438 in Exclude<keyof I_1["operations"][number]["transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_439 in Exclude<keyof I_1["operations"][number]["transfer_from_savings"], keyof import("./transfer_from_savings.js").transfer_from_savings>]: never; }) | undefined; - cancel_transfer_from_savings?: ({ - from_account?: string | undefined; - request_id?: number | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - } & { [K_440 in Exclude<keyof I_1["operations"][number]["cancel_transfer_from_savings"], keyof import("./cancel_transfer_from_savings.js").cancel_transfer_from_savings>]: never; }) | undefined; - decline_voting_rights?: ({ - account?: string | undefined; - decline?: boolean | undefined; - } & { - account?: string | undefined; - decline?: boolean | undefined; - } & { [K_441 in Exclude<keyof I_1["operations"][number]["decline_voting_rights"], keyof import("./decline_voting_rights.js").decline_voting_rights>]: never; }) | undefined; - claim_reward_balance?: ({ - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - reward_hive?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_442 in Exclude<keyof I_1["operations"][number]["claim_reward_balance"]["reward_hive"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_hbd?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_443 in Exclude<keyof I_1["operations"][number]["claim_reward_balance"]["reward_hbd"], keyof import("./asset.js").asset>]: never; }) | undefined; - reward_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_444 in Exclude<keyof I_1["operations"][number]["claim_reward_balance"]["reward_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_445 in Exclude<keyof I_1["operations"][number]["claim_reward_balance"], keyof import("./claim_reward_balance.js").claim_reward_balance>]: never; }) | undefined; - delegate_vesting_shares?: ({ - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_446 in Exclude<keyof I_1["operations"][number]["delegate_vesting_shares"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_447 in Exclude<keyof I_1["operations"][number]["delegate_vesting_shares"], keyof import("./delegate_vesting_shares.js").delegate_vesting_shares>]: never; }) | undefined; - account_create_with_delegation?: ({ - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_448 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_449 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_450 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_451 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_452 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_453 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_454 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_455 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_456 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_457 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_458 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_459 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_460 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["extensions"][number], "void_t">]: never; })[] & { [K_461 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_462 in Exclude<keyof I_1["operations"][number]["account_create_with_delegation"], keyof import("./account_create_with_delegation.js").account_create_with_delegation>]: never; }) | undefined; - witness_set_properties?: ({ - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K_463 in Exclude<keyof I_1["operations"][number]["witness_set_properties"]["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_464 in Exclude<keyof I_1["operations"][number]["witness_set_properties"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_465 in Exclude<keyof I_1["operations"][number]["witness_set_properties"]["extensions"][number], "void_t">]: never; })[] & { [K_466 in Exclude<keyof I_1["operations"][number]["witness_set_properties"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_467 in Exclude<keyof I_1["operations"][number]["witness_set_properties"], keyof import("./witness_set_properties.js").witness_set_properties>]: never; }) | undefined; - account_update2?: ({ - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - account?: string | undefined; - owner?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_468 in Exclude<keyof I_1["operations"][number]["account_update2"]["owner"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_469 in Exclude<keyof I_1["operations"][number]["account_update2"]["owner"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_470 in Exclude<keyof I_1["operations"][number]["account_update2"]["owner"], keyof import("./authority.js").authority>]: never; }) | undefined; - active?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_471 in Exclude<keyof I_1["operations"][number]["account_update2"]["active"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_472 in Exclude<keyof I_1["operations"][number]["account_update2"]["active"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_473 in Exclude<keyof I_1["operations"][number]["account_update2"]["active"], keyof import("./authority.js").authority>]: never; }) | undefined; - posting?: ({ - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } & { - weight_threshold?: number | undefined; - account_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_474 in Exclude<keyof I_1["operations"][number]["account_update2"]["posting"]["account_auths"], string | number>]: never; }) | undefined; - key_auths?: ({ - [x: string]: number | undefined; - } & { - [x: string]: number | undefined; - } & { [K_475 in Exclude<keyof I_1["operations"][number]["account_update2"]["posting"]["key_auths"], string | number>]: never; }) | undefined; - } & { [K_476 in Exclude<keyof I_1["operations"][number]["account_update2"]["posting"], keyof import("./authority.js").authority>]: never; }) | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_477 in Exclude<keyof I_1["operations"][number]["account_update2"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_478 in Exclude<keyof I_1["operations"][number]["account_update2"]["extensions"][number], "void_t">]: never; })[] & { [K_479 in Exclude<keyof I_1["operations"][number]["account_update2"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_480 in Exclude<keyof I_1["operations"][number]["account_update2"], keyof import("./account_update2.js").account_update2>]: never; }) | undefined; - create_proposal?: ({ - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_481 in Exclude<keyof I_1["operations"][number]["create_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_482 in Exclude<keyof I_1["operations"][number]["create_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_483 in Exclude<keyof I_1["operations"][number]["create_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_484 in Exclude<keyof I_1["operations"][number]["create_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_485 in Exclude<keyof I_1["operations"][number]["create_proposal"], keyof import("./create_proposal.js").create_proposal>]: never; }) | undefined; - update_proposal_votes?: ({ - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_486 in Exclude<keyof I_1["operations"][number]["update_proposal_votes"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_487 in Exclude<keyof I_1["operations"][number]["update_proposal_votes"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_488 in Exclude<keyof I_1["operations"][number]["update_proposal_votes"]["extensions"][number], "void_t">]: never; })[] & { [K_489 in Exclude<keyof I_1["operations"][number]["update_proposal_votes"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_490 in Exclude<keyof I_1["operations"][number]["update_proposal_votes"], keyof import("./update_proposal_votes.js").update_proposal_votes>]: never; }) | undefined; - remove_proposal?: ({ - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - proposal_owner?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_491 in Exclude<keyof I_1["operations"][number]["remove_proposal"]["proposal_ids"], keyof string[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_492 in Exclude<keyof I_1["operations"][number]["remove_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_493 in Exclude<keyof I_1["operations"][number]["remove_proposal"]["extensions"][number], "void_t">]: never; })[] & { [K_494 in Exclude<keyof I_1["operations"][number]["remove_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_495 in Exclude<keyof I_1["operations"][number]["remove_proposal"], keyof import("./remove_proposal.js").remove_proposal>]: never; }) | undefined; - update_proposal?: ({ - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_496 in Exclude<keyof I_1["operations"][number]["update_proposal"]["daily_pay"], keyof import("./asset.js").asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_497 in Exclude<keyof I_1["operations"][number]["update_proposal"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_498 in Exclude<keyof I_1["operations"][number]["update_proposal"]["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_499 in Exclude<keyof I_1["operations"][number]["update_proposal"]["extensions"][number], keyof import("./update_proposal.js").update_proposal_extension>]: never; })[] & { [K_500 in Exclude<keyof I_1["operations"][number]["update_proposal"]["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_501 in Exclude<keyof I_1["operations"][number]["update_proposal"], keyof import("./update_proposal.js").update_proposal>]: never; }) | undefined; - collateralized_convert?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_502 in Exclude<keyof I_1["operations"][number]["collateralized_convert"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_503 in Exclude<keyof I_1["operations"][number]["collateralized_convert"], keyof import("./collateralized_convert.js").collateralized_convert>]: never; }) | undefined; - recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_504 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_505 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"]["extensions"][number]["void_t"], never>]: never; }) | undefined; - recurrent_transfer_pair_id?: ({ - pair_id?: number | undefined; - } & { - pair_id?: number | undefined; - } & { [K_506 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"]["extensions"][number]["recurrent_transfer_pair_id"], "pair_id">]: never; }) | undefined; - } & { [K_507 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"]["extensions"][number], keyof import("./recurrent_transfer.js").recurrent_transfer_extension>]: never; })[] & { [K_508 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"]["extensions"], keyof { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_509 in Exclude<keyof I_1["operations"][number]["recurrent_transfer"], keyof import("./recurrent_transfer.js").recurrent_transfer>]: never; }) | undefined; - fill_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_510 in Exclude<keyof I_1["operations"][number]["fill_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_511 in Exclude<keyof I_1["operations"][number]["fill_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_512 in Exclude<keyof I_1["operations"][number]["fill_convert_request"], keyof import("./fill_convert_request.js").fill_convert_request>]: never; }) | undefined; - author_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_513 in Exclude<keyof I_1["operations"][number]["author_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_514 in Exclude<keyof I_1["operations"][number]["author_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_515 in Exclude<keyof I_1["operations"][number]["author_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - curators_vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_516 in Exclude<keyof I_1["operations"][number]["author_reward"]["curators_vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_517 in Exclude<keyof I_1["operations"][number]["author_reward"], keyof import("./author_reward.js").author_reward>]: never; }) | undefined; - curation_reward?: ({ - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - curator?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_518 in Exclude<keyof I_1["operations"][number]["curation_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_519 in Exclude<keyof I_1["operations"][number]["curation_reward"], keyof import("./curation_reward.js").curation_reward>]: never; }) | undefined; - comment_reward?: ({ - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_520 in Exclude<keyof I_1["operations"][number]["comment_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - author_rewards?: string | undefined; - total_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_521 in Exclude<keyof I_1["operations"][number]["comment_reward"]["total_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - curator_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_522 in Exclude<keyof I_1["operations"][number]["comment_reward"]["curator_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - beneficiary_payout_value?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_523 in Exclude<keyof I_1["operations"][number]["comment_reward"]["beneficiary_payout_value"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_524 in Exclude<keyof I_1["operations"][number]["comment_reward"], keyof import("./comment_reward.js").comment_reward>]: never; }) | undefined; - liquidity_reward?: ({ - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_525 in Exclude<keyof I_1["operations"][number]["liquidity_reward"]["payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_526 in Exclude<keyof I_1["operations"][number]["liquidity_reward"], keyof import("./liquidity_reward.js").liquidity_reward>]: never; }) | undefined; - interest?: ({ - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { - owner?: string | undefined; - interest?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_527 in Exclude<keyof I_1["operations"][number]["interest"]["interest"], keyof import("./asset.js").asset>]: never; }) | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } & { [K_528 in Exclude<keyof I_1["operations"][number]["interest"], keyof import("./interest.js").interest>]: never; }) | undefined; - fill_vesting_withdraw?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_529 in Exclude<keyof I_1["operations"][number]["fill_vesting_withdraw"]["withdrawn"], keyof import("./asset.js").asset>]: never; }) | undefined; - deposited?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_530 in Exclude<keyof I_1["operations"][number]["fill_vesting_withdraw"]["deposited"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_531 in Exclude<keyof I_1["operations"][number]["fill_vesting_withdraw"], keyof import("./fill_vesting_withdraw.js").fill_vesting_withdraw>]: never; }) | undefined; - fill_order?: ({ - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_532 in Exclude<keyof I_1["operations"][number]["fill_order"]["current_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_533 in Exclude<keyof I_1["operations"][number]["fill_order"]["open_pays"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_534 in Exclude<keyof I_1["operations"][number]["fill_order"], keyof import("./fill_order.js").fill_order>]: never; }) | undefined; - shutdown_witness?: ({ - owner?: string | undefined; - } & { - owner?: string | undefined; - } & { [K_535 in Exclude<keyof I_1["operations"][number]["shutdown_witness"], "owner">]: never; }) | undefined; - fill_transfer_from_savings?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_536 in Exclude<keyof I_1["operations"][number]["fill_transfer_from_savings"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } & { [K_537 in Exclude<keyof I_1["operations"][number]["fill_transfer_from_savings"], keyof import("./fill_transfer_from_savings.js").fill_transfer_from_savings>]: never; }) | undefined; - hardfork?: ({ - hardfork_id?: number | undefined; - } & { - hardfork_id?: number | undefined; - } & { [K_538 in Exclude<keyof I_1["operations"][number]["hardfork"], "hardfork_id">]: never; }) | undefined; - comment_payout_update?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_539 in Exclude<keyof I_1["operations"][number]["comment_payout_update"], keyof import("./comment_payout_update.js").comment_payout_update>]: never; }) | undefined; - return_vesting_delegation?: ({ - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_540 in Exclude<keyof I_1["operations"][number]["return_vesting_delegation"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_541 in Exclude<keyof I_1["operations"][number]["return_vesting_delegation"], keyof import("./return_vesting_delegation.js").return_vesting_delegation>]: never; }) | undefined; - comment_benefactor_reward?: ({ - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_542 in Exclude<keyof I_1["operations"][number]["comment_benefactor_reward"]["hbd_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_543 in Exclude<keyof I_1["operations"][number]["comment_benefactor_reward"]["hive_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_544 in Exclude<keyof I_1["operations"][number]["comment_benefactor_reward"]["vesting_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - payout_must_be_claimed?: boolean | undefined; - } & { [K_545 in Exclude<keyof I_1["operations"][number]["comment_benefactor_reward"], keyof import("./comment_benefactor_reward.js").comment_benefactor_reward>]: never; }) | undefined; - producer_reward?: ({ - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - producer?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_546 in Exclude<keyof I_1["operations"][number]["producer_reward"]["vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_547 in Exclude<keyof I_1["operations"][number]["producer_reward"], keyof import("./producer_reward.js").producer_reward>]: never; }) | undefined; - clear_null_account_balance?: ({ - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_cleared?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_548 in Exclude<keyof I_1["operations"][number]["clear_null_account_balance"]["total_cleared"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_549 in Exclude<keyof I_1["operations"][number]["clear_null_account_balance"]["total_cleared"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_550 in Exclude<keyof I_1["operations"][number]["clear_null_account_balance"], "total_cleared">]: never; }) | undefined; - proposal_pay?: ({ - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_551 in Exclude<keyof I_1["operations"][number]["proposal_pay"]["payment"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_552 in Exclude<keyof I_1["operations"][number]["proposal_pay"], keyof import("./proposal_pay.js").proposal_pay>]: never; }) | undefined; - dhf_funding?: ({ - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - additional_funds?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_553 in Exclude<keyof I_1["operations"][number]["dhf_funding"]["additional_funds"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_554 in Exclude<keyof I_1["operations"][number]["dhf_funding"], keyof import("./dhf_funding.js").dhf_funding>]: never; }) | undefined; - hardfork_hive?: ({ - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: (string[] & string[] & { [K_555 in Exclude<keyof I_1["operations"][number]["hardfork_hive"]["other_affected_accounts"], keyof string[]>]: never; }) | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_556 in Exclude<keyof I_1["operations"][number]["hardfork_hive"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_557 in Exclude<keyof I_1["operations"][number]["hardfork_hive"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - vests_converted?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_558 in Exclude<keyof I_1["operations"][number]["hardfork_hive"]["vests_converted"], keyof import("./asset.js").asset>]: never; }) | undefined; - total_hive_from_vests?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_559 in Exclude<keyof I_1["operations"][number]["hardfork_hive"]["total_hive_from_vests"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_560 in Exclude<keyof I_1["operations"][number]["hardfork_hive"], keyof import("./hardfork_hive.js").hardfork_hive>]: never; }) | undefined; - hardfork_hive_restore?: ({ - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_561 in Exclude<keyof I_1["operations"][number]["hardfork_hive_restore"]["hbd_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_transferred?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_562 in Exclude<keyof I_1["operations"][number]["hardfork_hive_restore"]["hive_transferred"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_563 in Exclude<keyof I_1["operations"][number]["hardfork_hive_restore"], keyof import("./hardfork_hive_restore.js").hardfork_hive_restore>]: never; }) | undefined; - delayed_voting?: ({ - voter?: string | undefined; - votes?: string | undefined; - } & { - voter?: string | undefined; - votes?: string | undefined; - } & { [K_564 in Exclude<keyof I_1["operations"][number]["delayed_voting"], keyof import("./delayed_voting.js").delayed_voting>]: never; }) | undefined; - consolidate_treasury_balance?: ({ - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } & { - total_moved?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] & ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_565 in Exclude<keyof I_1["operations"][number]["consolidate_treasury_balance"]["total_moved"][number], keyof import("./asset.js").asset>]: never; })[] & { [K_566 in Exclude<keyof I_1["operations"][number]["consolidate_treasury_balance"]["total_moved"], keyof { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[]>]: never; }) | undefined; - } & { [K_567 in Exclude<keyof I_1["operations"][number]["consolidate_treasury_balance"], "total_moved">]: never; }) | undefined; - effective_comment_vote?: ({ - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_568 in Exclude<keyof I_1["operations"][number]["effective_comment_vote"]["pending_payout"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_569 in Exclude<keyof I_1["operations"][number]["effective_comment_vote"], keyof import("./effective_comment_vote.js").effective_comment_vote>]: never; }) | undefined; - ineffective_delete_comment?: ({ - author?: string | undefined; - permlink?: string | undefined; - } & { - author?: string | undefined; - permlink?: string | undefined; - } & { [K_570 in Exclude<keyof I_1["operations"][number]["ineffective_delete_comment"], keyof import("./ineffective_delete_comment.js").ineffective_delete_comment>]: never; }) | undefined; - dhf_conversion?: ({ - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - treasury?: string | undefined; - hive_amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_571 in Exclude<keyof I_1["operations"][number]["dhf_conversion"]["hive_amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - hbd_amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_572 in Exclude<keyof I_1["operations"][number]["dhf_conversion"]["hbd_amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_573 in Exclude<keyof I_1["operations"][number]["dhf_conversion"], keyof import("./dhf_conversion.js").dhf_conversion>]: never; }) | undefined; - expired_account_notification?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_574 in Exclude<keyof I_1["operations"][number]["expired_account_notification"], "account">]: never; }) | undefined; - changed_recovery_account?: ({ - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } & { [K_575 in Exclude<keyof I_1["operations"][number]["changed_recovery_account"], keyof import("./changed_recovery_account.js").changed_recovery_account>]: never; }) | undefined; - transfer_to_vesting_completed?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_576 in Exclude<keyof I_1["operations"][number]["transfer_to_vesting_completed"]["hive_vested"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_577 in Exclude<keyof I_1["operations"][number]["transfer_to_vesting_completed"]["vesting_shares_received"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_578 in Exclude<keyof I_1["operations"][number]["transfer_to_vesting_completed"], keyof import("./transfer_to_vesting_completed.js").transfer_to_vesting_completed>]: never; }) | undefined; - pow_reward?: ({ - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - worker?: string | undefined; - reward?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_579 in Exclude<keyof I_1["operations"][number]["pow_reward"]["reward"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_580 in Exclude<keyof I_1["operations"][number]["pow_reward"], keyof import("./pow_reward.js").pow_reward>]: never; }) | undefined; - vesting_shares_split?: ({ - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_581 in Exclude<keyof I_1["operations"][number]["vesting_shares_split"]["vesting_shares_before_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_582 in Exclude<keyof I_1["operations"][number]["vesting_shares_split"]["vesting_shares_after_split"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_583 in Exclude<keyof I_1["operations"][number]["vesting_shares_split"], keyof import("./vesting_shares_split.js").vesting_shares_split>]: never; }) | undefined; - account_created?: ({ - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_584 in Exclude<keyof I_1["operations"][number]["account_created"]["initial_vesting_shares"], keyof import("./asset.js").asset>]: never; }) | undefined; - initial_delegation?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_585 in Exclude<keyof I_1["operations"][number]["account_created"]["initial_delegation"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_586 in Exclude<keyof I_1["operations"][number]["account_created"], keyof import("./account_created.js").account_created>]: never; }) | undefined; - fill_collateralized_convert_request?: ({ - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_587 in Exclude<keyof I_1["operations"][number]["fill_collateralized_convert_request"]["amount_in"], keyof import("./asset.js").asset>]: never; }) | undefined; - amount_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_588 in Exclude<keyof I_1["operations"][number]["fill_collateralized_convert_request"]["amount_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - excess_collateral?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_589 in Exclude<keyof I_1["operations"][number]["fill_collateralized_convert_request"]["excess_collateral"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_590 in Exclude<keyof I_1["operations"][number]["fill_collateralized_convert_request"], keyof import("./fill_collateralized_convert_request.js").fill_collateralized_convert_request>]: never; }) | undefined; - system_warning?: ({ - message?: string | undefined; - } & { - message?: string | undefined; - } & { [K_591 in Exclude<keyof I_1["operations"][number]["system_warning"], "message">]: never; }) | undefined; - fill_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_592 in Exclude<keyof I_1["operations"][number]["fill_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } & { [K_593 in Exclude<keyof I_1["operations"][number]["fill_recurrent_transfer"], keyof import("./fill_recurrent_transfer.js").fill_recurrent_transfer>]: never; }) | undefined; - failed_recurrent_transfer?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_594 in Exclude<keyof I_1["operations"][number]["failed_recurrent_transfer"]["amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } & { [K_595 in Exclude<keyof I_1["operations"][number]["failed_recurrent_transfer"], keyof import("./failed_recurrent_transfer.js").failed_recurrent_transfer>]: never; }) | undefined; - limit_order_cancelled?: ({ - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_596 in Exclude<keyof I_1["operations"][number]["limit_order_cancelled"]["amount_back"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_597 in Exclude<keyof I_1["operations"][number]["limit_order_cancelled"], keyof import("./limit_order_cancelled.js").limit_order_cancelled>]: never; }) | undefined; - producer_missed?: ({ - producer?: string | undefined; - } & { - producer?: string | undefined; - } & { [K_598 in Exclude<keyof I_1["operations"][number]["producer_missed"], "producer">]: never; }) | undefined; - proposal_fee?: ({ - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_599 in Exclude<keyof I_1["operations"][number]["proposal_fee"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_600 in Exclude<keyof I_1["operations"][number]["proposal_fee"], keyof import("./proposal_fee.js").proposal_fee>]: never; }) | undefined; - collateralized_convert_immediate_conversion?: ({ - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_601 in Exclude<keyof I_1["operations"][number]["collateralized_convert_immediate_conversion"]["hbd_out"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_602 in Exclude<keyof I_1["operations"][number]["collateralized_convert_immediate_conversion"], keyof import("./collateralized_convert_immediate_conversion.js").collateralized_convert_immediate_conversion>]: never; }) | undefined; - escrow_approved?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_603 in Exclude<keyof I_1["operations"][number]["escrow_approved"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_604 in Exclude<keyof I_1["operations"][number]["escrow_approved"], keyof import("./escrow_approved.js").escrow_approved>]: never; }) | undefined; - escrow_rejected?: ({ - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_605 in Exclude<keyof I_1["operations"][number]["escrow_rejected"]["hbd_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - hive_amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_606 in Exclude<keyof I_1["operations"][number]["escrow_rejected"]["hive_amount"], keyof import("./asset.js").asset>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_607 in Exclude<keyof I_1["operations"][number]["escrow_rejected"]["fee"], keyof import("./asset.js").asset>]: never; }) | undefined; - } & { [K_608 in Exclude<keyof I_1["operations"][number]["escrow_rejected"], keyof import("./escrow_rejected.js").escrow_rejected>]: never; }) | undefined; - proxy_cleared?: ({ - account?: string | undefined; - proxy?: string | undefined; - } & { - account?: string | undefined; - proxy?: string | undefined; - } & { [K_609 in Exclude<keyof I_1["operations"][number]["proxy_cleared"], keyof import("./proxy_cleared.js").proxy_cleared>]: never; }) | undefined; - declined_voting_rights?: ({ - account?: string | undefined; - } & { - account?: string | undefined; - } & { [K_610 in Exclude<keyof I_1["operations"][number]["declined_voting_rights"], "account">]: never; }) | undefined; - } & { [K_611 in Exclude<keyof I_1["operations"][number], keyof operation>]: never; })[] & { [K_612 in Exclude<keyof I_1["operations"], keyof { - vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } | undefined; - comment?: { - parent_author?: string | undefined; - parent_permlink?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - title?: string | undefined; - body?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_to_vesting?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - withdraw_vesting?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - limit_order_create?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - min_to_receive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - expiration?: string | undefined; - } | undefined; - limit_order_cancel?: { - owner?: string | undefined; - orderid?: number | undefined; - } | undefined; - feed_publish?: { - publisher?: string | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - } | undefined; - convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - account_update?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - } | undefined; - witness_update?: { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_witness_vote?: { - account?: string | undefined; - witness?: string | undefined; - approve?: boolean | undefined; - } | undefined; - account_witness_proxy?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - pow?: { - worker_account?: string | undefined; - block_id?: string | undefined; - nonce?: string | undefined; - work?: { - worker?: string | undefined; - input?: string | undefined; - signature?: string | undefined; - work?: string | undefined; - } | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - custom?: { - required_auths?: string[] | undefined; - id?: number | undefined; - data?: string | undefined; - } | undefined; - witness_block_approve?: { - witness?: string | undefined; - block_id?: string | undefined; - } | undefined; - delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - custom_json?: { - required_auths?: string[] | undefined; - required_posting_auths?: string[] | undefined; - id?: string | undefined; - json?: string | undefined; - } | undefined; - comment_options?: { - author?: string | undefined; - permlink?: string | undefined; - max_accepted_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - percent_hbd?: number | undefined; - allow_votes?: boolean | undefined; - allow_curation_rewards?: boolean | undefined; - extensions?: { - comment_payout_beneficiaries?: { - beneficiaries?: { - account?: string | undefined; - weight?: number | undefined; - }[] | undefined; - } | undefined; - }[] | undefined; - } | undefined; - set_withdraw_vesting_route?: { - from_account?: string | undefined; - to_account?: string | undefined; - percent?: number | undefined; - auto_vest?: boolean | undefined; - } | undefined; - limit_order_create2?: { - owner?: string | undefined; - orderid?: number | undefined; - amount_to_sell?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fill_or_kill?: boolean | undefined; - exchange_rate?: { - base?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - quote?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expiration?: string | undefined; - } | undefined; - claim_account?: { - creator?: string | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_claimed_account?: { - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - request_account_recovery?: { - recovery_account?: string | undefined; - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - recover_account?: { - account_to_recover?: string | undefined; - new_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - recent_owner_authority?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - change_recovery_account?: { - account_to_recover?: string | undefined; - new_recovery_account?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - escrow_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - ratification_deadline?: string | undefined; - escrow_expiration?: string | undefined; - json_meta?: string | undefined; - } | undefined; - escrow_dispute?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - } | undefined; - escrow_release?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - receiver?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow2?: { - work?: { - pow2?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - pow_summary?: number | undefined; - } | undefined; - equihash_pow?: { - input?: { - worker_account?: string | undefined; - prev_block?: string | undefined; - nonce?: string | undefined; - } | undefined; - proof?: { - n?: number | undefined; - k?: number | undefined; - seed?: string | undefined; - inputs?: number[] | undefined; - } | undefined; - prev_block?: string | undefined; - pow_summary?: number | undefined; - } | undefined; - } | undefined; - new_owner_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - } | undefined; - escrow_approve?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - who?: string | undefined; - escrow_id?: number | undefined; - approve?: boolean | undefined; - } | undefined; - transfer_to_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } | undefined; - cancel_transfer_from_savings?: { - from_account?: string | undefined; - request_id?: number | undefined; - } | undefined; - decline_voting_rights?: { - account?: string | undefined; - decline?: boolean | undefined; - } | undefined; - claim_reward_balance?: { - account?: string | undefined; - reward_hive?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_hbd?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - reward_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delegate_vesting_shares?: { - delegator?: string | undefined; - delegatee?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_create_with_delegation?: { - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - creator?: string | undefined; - new_account_name?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - witness_set_properties?: { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - account_update2?: { - account?: string | undefined; - owner?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - active?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - posting?: { - weight_threshold?: number | undefined; - account_auths?: { - [x: string]: number | undefined; - } | undefined; - key_auths?: { - [x: string]: number | undefined; - } | undefined; - } | undefined; - memo_key?: string | undefined; - json_metadata?: string | undefined; - posting_json_metadata?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - create_proposal?: { - creator?: string | undefined; - receiver?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal_votes?: { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - remove_proposal?: { - proposal_owner?: string | undefined; - proposal_ids?: string[] | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } | undefined; - update_proposal?: { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } | undefined; - collateralized_convert?: { - owner?: string | undefined; - requestid?: number | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - recurrence?: number | undefined; - executions?: number | undefined; - extensions?: { - void_t?: {} | undefined; - recurrent_transfer_pair_id?: { - pair_id?: number | undefined; - } | undefined; - }[] | undefined; - } | undefined; - fill_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - author_reward?: { - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curators_vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - curation_reward?: { - curator?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author?: string | undefined; - permlink?: string | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - comment_reward?: { - author?: string | undefined; - permlink?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - author_rewards?: string | undefined; - total_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - curator_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - beneficiary_payout_value?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - liquidity_reward?: { - owner?: string | undefined; - payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - interest?: { - owner?: string | undefined; - interest?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - is_saved_into_hbd_balance?: boolean | undefined; - } | undefined; - fill_vesting_withdraw?: { - from_account?: string | undefined; - to_account?: string | undefined; - withdrawn?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - deposited?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_order?: { - current_owner?: string | undefined; - current_orderid?: number | undefined; - current_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - open_owner?: string | undefined; - open_orderid?: number | undefined; - open_pays?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - shutdown_witness?: { - owner?: string | undefined; - } | undefined; - fill_transfer_from_savings?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - request_id?: number | undefined; - memo?: string | undefined; - } | undefined; - hardfork?: { - hardfork_id?: number | undefined; - } | undefined; - comment_payout_update?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - return_vesting_delegation?: { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - comment_benefactor_reward?: { - benefactor?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - hbd_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - payout_must_be_claimed?: boolean | undefined; - } | undefined; - producer_reward?: { - producer?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - clear_null_account_balance?: { - total_cleared?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - proposal_pay?: { - proposal_id?: number | undefined; - receiver?: string | undefined; - payer?: string | undefined; - payment?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - dhf_funding?: { - treasury?: string | undefined; - additional_funds?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive?: { - account?: string | undefined; - treasury?: string | undefined; - other_affected_accounts?: string[] | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vests_converted?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - total_hive_from_vests?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - hardfork_hive_restore?: { - account?: string | undefined; - treasury?: string | undefined; - hbd_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_transferred?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - delayed_voting?: { - voter?: string | undefined; - votes?: string | undefined; - } | undefined; - consolidate_treasury_balance?: { - total_moved?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - }[] | undefined; - } | undefined; - effective_comment_vote?: { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: string | undefined; - rshares?: string | undefined; - total_vote_weight?: string | undefined; - pending_payout?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - ineffective_delete_comment?: { - author?: string | undefined; - permlink?: string | undefined; - } | undefined; - dhf_conversion?: { - treasury?: string | undefined; - hive_amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hbd_amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - expired_account_notification?: { - account?: string | undefined; - } | undefined; - changed_recovery_account?: { - account?: string | undefined; - old_recovery_account?: string | undefined; - new_recovery_account?: string | undefined; - } | undefined; - transfer_to_vesting_completed?: { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - pow_reward?: { - worker?: string | undefined; - reward?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - vesting_shares_split?: { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - account_created?: { - new_account_name?: string | undefined; - creator?: string | undefined; - initial_vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - initial_delegation?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - fill_collateralized_convert_request?: { - owner?: string | undefined; - requestid?: number | undefined; - amount_in?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - amount_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - excess_collateral?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - system_warning?: { - message?: string | undefined; - } | undefined; - fill_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - remaining_executions?: number | undefined; - } | undefined; - failed_recurrent_transfer?: { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - consecutive_failures?: number | undefined; - remaining_executions?: number | undefined; - deleted?: boolean | undefined; - } | undefined; - limit_order_cancelled?: { - seller?: string | undefined; - orderid?: number | undefined; - amount_back?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - producer_missed?: { - producer?: string | undefined; - } | undefined; - proposal_fee?: { - creator?: string | undefined; - treasury?: string | undefined; - proposal_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - collateralized_convert_immediate_conversion?: { - owner?: string | undefined; - requestid?: number | undefined; - hbd_out?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_approved?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - escrow_rejected?: { - from_account?: string | undefined; - to_account?: string | undefined; - agent?: string | undefined; - escrow_id?: number | undefined; - hbd_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - hive_amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } | undefined; - proxy_cleared?: { - account?: string | undefined; - proxy?: string | undefined; - } | undefined; - declined_voting_rights?: { - account?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_613 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_614 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_615 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - signatures?: (string[] & string[] & { [K_616 in Exclude<keyof I_1["signatures"], keyof string[]>]: never; }) | undefined; - } & { [K_617 in Exclude<keyof I_1, keyof transaction>]: never; }>(object: I_1): transaction; + create<I extends Exact<DeepPartial<transaction>, I>>(base?: I): transaction; + fromPartial<I extends Exact<DeepPartial<transaction>, I>>(object: I): transaction; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transaction.js b/ts/protobuf_patterns/proto/transaction.js index 687299c8695709f5e98a71c741a5b34818d3dbe5..729c0c6399ec6e6d62473a479e253810fbc2a2e6 100644 --- a/ts/protobuf_patterns/proto/transaction.js +++ b/ts/protobuf_patterns/proto/transaction.js @@ -11,19 +11,18 @@ export const transaction = { ref_block_num: isSet(object.ref_block_num) ? globalThis.Number(object.ref_block_num) : 0, ref_block_prefix: isSet(object.ref_block_prefix) ? globalThis.Number(object.ref_block_prefix) : 0, expiration: isSet(object.expiration) ? globalThis.String(object.expiration) : "", - operations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.operations) + operations: globalThis.Array.isArray(object?.operations) ? object.operations.map((e) => operation.fromJSON(e)) : [], - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], - signatures: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.signatures) + signatures: globalThis.Array.isArray(object?.signatures) ? object.signatures.map((e) => globalThis.String(e)) : [], }; }, toJSON(message) { - var _a, _b, _c; const obj = {}; if (message.ref_block_num !== undefined) { obj.ref_block_num = Math.round(message.ref_block_num); @@ -34,29 +33,28 @@ export const transaction = { if (message.expiration !== undefined) { obj.expiration = message.expiration; } - if ((_a = message.operations) === null || _a === void 0 ? void 0 : _a.length) { + if (message.operations?.length) { obj.operations = message.operations.map((e) => operation.toJSON(e)); } - if ((_b = message.extensions) === null || _b === void 0 ? void 0 : _b.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } - if ((_c = message.signatures) === null || _c === void 0 ? void 0 : _c.length) { + if (message.signatures?.length) { obj.signatures = message.signatures; } return obj; }, create(base) { - return transaction.fromPartial(base !== null && base !== void 0 ? base : {}); + return transaction.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e, _f; const message = createBasetransaction(); - message.ref_block_num = (_a = object.ref_block_num) !== null && _a !== void 0 ? _a : 0; - message.ref_block_prefix = (_b = object.ref_block_prefix) !== null && _b !== void 0 ? _b : 0; - message.expiration = (_c = object.expiration) !== null && _c !== void 0 ? _c : ""; - message.operations = ((_d = object.operations) === null || _d === void 0 ? void 0 : _d.map((e) => operation.fromPartial(e))) || []; - message.extensions = ((_e = object.extensions) === null || _e === void 0 ? void 0 : _e.map((e) => future_extensions.fromPartial(e))) || []; - message.signatures = ((_f = object.signatures) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || []; + message.ref_block_num = object.ref_block_num ?? 0; + message.ref_block_prefix = object.ref_block_prefix ?? 0; + message.expiration = object.expiration ?? ""; + message.operations = object.operations?.map((e) => operation.fromPartial(e)) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; + message.signatures = object.signatures?.map((e) => e) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/transfer.d.ts b/ts/protobuf_patterns/proto/transfer.d.ts index ed0567494eb94f084b2208a556ef6b2eed6a1263..d7cefb74e490858587d0d2a8a075ee4f58cf641e 100644 --- a/ts/protobuf_patterns/proto/transfer.d.ts +++ b/ts/protobuf_patterns/proto/transfer.d.ts @@ -22,52 +22,8 @@ export interface transfer { export declare const transfer: { fromJSON(object: any): transfer; toJSON(message: transfer): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_1 in Exclude<keyof I, keyof transfer>]: never; }>(base?: I | undefined): transfer; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof transfer>]: never; }>(object: I_1): transfer; + create<I extends Exact<DeepPartial<transfer>, I>>(base?: I): transfer; + fromPartial<I extends Exact<DeepPartial<transfer>, I>>(object: I): transfer; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transfer.js b/ts/protobuf_patterns/proto/transfer.js index 08d28883ec03cab042ee3310b3a0849a94fe10e0..830b20ef94caf003bd8428c54053b27e95d1f2d3 100644 --- a/ts/protobuf_patterns/proto/transfer.js +++ b/ts/protobuf_patterns/proto/transfer.js @@ -30,17 +30,16 @@ export const transfer = { return obj; }, create(base) { - return transfer.fromPartial(base !== null && base !== void 0 ? base : {}); + return transfer.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasetransfer(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_c = object.memo) !== null && _c !== void 0 ? _c : ""; + message.memo = object.memo ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/transfer_from_savings.d.ts b/ts/protobuf_patterns/proto/transfer_from_savings.d.ts index e5bd2c90012cb9afd6a98370ad9824997b850e80..4e0edb30faba82bae32c8f73d04ed5c3fc5392a1 100644 --- a/ts/protobuf_patterns/proto/transfer_from_savings.d.ts +++ b/ts/protobuf_patterns/proto/transfer_from_savings.d.ts @@ -20,56 +20,8 @@ export interface transfer_from_savings { export declare const transfer_from_savings: { fromJSON(object: any): transfer_from_savings; toJSON(message: transfer_from_savings): unknown; - create<I extends { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_1 in Exclude<keyof I, keyof transfer_from_savings>]: never; }>(base?: I | undefined): transfer_from_savings; - fromPartial<I_1 extends { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - request_id?: number | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof transfer_from_savings>]: never; }>(object: I_1): transfer_from_savings; + create<I extends Exact<DeepPartial<transfer_from_savings>, I>>(base?: I): transfer_from_savings; + fromPartial<I extends Exact<DeepPartial<transfer_from_savings>, I>>(object: I): transfer_from_savings; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transfer_from_savings.js b/ts/protobuf_patterns/proto/transfer_from_savings.js index 00500a95847f2ffb9c7e042fad47e9b6a277bb6d..3acbe79f38976af682286636d90bf4f6eaa4336f 100644 --- a/ts/protobuf_patterns/proto/transfer_from_savings.js +++ b/ts/protobuf_patterns/proto/transfer_from_savings.js @@ -34,18 +34,17 @@ export const transfer_from_savings = { return obj; }, create(base) { - return transfer_from_savings.fromPartial(base !== null && base !== void 0 ? base : {}); + return transfer_from_savings.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasetransfer_from_savings(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.request_id = (_b = object.request_id) !== null && _b !== void 0 ? _b : 0; - message.to_account = (_c = object.to_account) !== null && _c !== void 0 ? _c : ""; + message.from_account = object.from_account ?? ""; + message.request_id = object.request_id ?? 0; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_d = object.memo) !== null && _d !== void 0 ? _d : ""; + message.memo = object.memo ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/transfer_to_savings.d.ts b/ts/protobuf_patterns/proto/transfer_to_savings.d.ts index 19b1ddc3755771b2c686ef5f6fc1fb3c6d32cad1..893e36aba2ec11374c3ef5a9a251dca15943eab6 100644 --- a/ts/protobuf_patterns/proto/transfer_to_savings.d.ts +++ b/ts/protobuf_patterns/proto/transfer_to_savings.d.ts @@ -26,52 +26,8 @@ export interface transfer_to_savings { export declare const transfer_to_savings: { fromJSON(object: any): transfer_to_savings; toJSON(message: transfer_to_savings): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_1 in Exclude<keyof I, keyof transfer_to_savings>]: never; }>(base?: I | undefined): transfer_to_savings; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - memo?: string | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - memo?: string | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof transfer_to_savings>]: never; }>(object: I_1): transfer_to_savings; + create<I extends Exact<DeepPartial<transfer_to_savings>, I>>(base?: I): transfer_to_savings; + fromPartial<I extends Exact<DeepPartial<transfer_to_savings>, I>>(object: I): transfer_to_savings; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transfer_to_savings.js b/ts/protobuf_patterns/proto/transfer_to_savings.js index 103b19edc232da55fb1cec7067f795f97fd77c1d..54300abcce69e31470ade38ffdd6559301de0eb7 100644 --- a/ts/protobuf_patterns/proto/transfer_to_savings.js +++ b/ts/protobuf_patterns/proto/transfer_to_savings.js @@ -30,17 +30,16 @@ export const transfer_to_savings = { return obj; }, create(base) { - return transfer_to_savings.fromPartial(base !== null && base !== void 0 ? base : {}); + return transfer_to_savings.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasetransfer_to_savings(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; - message.memo = (_c = object.memo) !== null && _c !== void 0 ? _c : ""; + message.memo = object.memo ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/transfer_to_vesting.d.ts b/ts/protobuf_patterns/proto/transfer_to_vesting.d.ts index 7305c078e8aa02b44eef72c7e884557fb0454e35..72f4faefc0d2ebd503c6d1785b793bd3b3d0bcfe 100644 --- a/ts/protobuf_patterns/proto/transfer_to_vesting.d.ts +++ b/ts/protobuf_patterns/proto/transfer_to_vesting.d.ts @@ -22,48 +22,8 @@ export interface transfer_to_vesting { export declare const transfer_to_vesting: { fromJSON(object: any): transfer_to_vesting; toJSON(message: transfer_to_vesting): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["amount"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof transfer_to_vesting>]: never; }>(base?: I | undefined): transfer_to_vesting; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - amount?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["amount"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof transfer_to_vesting>]: never; }>(object: I_1): transfer_to_vesting; + create<I extends Exact<DeepPartial<transfer_to_vesting>, I>>(base?: I): transfer_to_vesting; + fromPartial<I extends Exact<DeepPartial<transfer_to_vesting>, I>>(object: I): transfer_to_vesting; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transfer_to_vesting.js b/ts/protobuf_patterns/proto/transfer_to_vesting.js index c1e5ed82603ed4fd82671bddc88c90bb75c2b5f7..5a4af6e30fe80a45844fdd20ac4fd57ddd094fe5 100644 --- a/ts/protobuf_patterns/proto/transfer_to_vesting.js +++ b/ts/protobuf_patterns/proto/transfer_to_vesting.js @@ -26,13 +26,12 @@ export const transfer_to_vesting = { return obj; }, create(base) { - return transfer_to_vesting.fromPartial(base !== null && base !== void 0 ? base : {}); + return transfer_to_vesting.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasetransfer_to_vesting(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.amount = (object.amount !== undefined && object.amount !== null) ? asset.fromPartial(object.amount) : undefined; diff --git a/ts/protobuf_patterns/proto/transfer_to_vesting_completed.d.ts b/ts/protobuf_patterns/proto/transfer_to_vesting_completed.d.ts index 153c577c83d0faedce94336db5872b59e8a1ae2b..8553306e21ae696bd9f517a1d552eb8438ec0e67 100644 --- a/ts/protobuf_patterns/proto/transfer_to_vesting_completed.d.ts +++ b/ts/protobuf_patterns/proto/transfer_to_vesting_completed.d.ts @@ -20,76 +20,8 @@ export interface transfer_to_vesting_completed { export declare const transfer_to_vesting_completed: { fromJSON(object: any): transfer_to_vesting_completed; toJSON(message: transfer_to_vesting_completed): unknown; - create<I extends { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["hive_vested"], keyof asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["vesting_shares_received"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof transfer_to_vesting_completed>]: never; }>(base?: I | undefined): transfer_to_vesting_completed; - fromPartial<I_1 extends { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_received?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - from_account?: string | undefined; - to_account?: string | undefined; - hive_vested?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["hive_vested"], keyof asset>]: never; }) | undefined; - vesting_shares_received?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["vesting_shares_received"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof transfer_to_vesting_completed>]: never; }>(object: I_1): transfer_to_vesting_completed; + create<I extends Exact<DeepPartial<transfer_to_vesting_completed>, I>>(base?: I): transfer_to_vesting_completed; + fromPartial<I extends Exact<DeepPartial<transfer_to_vesting_completed>, I>>(object: I): transfer_to_vesting_completed; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/transfer_to_vesting_completed.js b/ts/protobuf_patterns/proto/transfer_to_vesting_completed.js index ab2d33df62a9d8cbd059f8ccfeab409f0fa7e18c..d9dc0f0b540e9052b57b4c445d0898556cfd83c1 100644 --- a/ts/protobuf_patterns/proto/transfer_to_vesting_completed.js +++ b/ts/protobuf_patterns/proto/transfer_to_vesting_completed.js @@ -32,13 +32,12 @@ export const transfer_to_vesting_completed = { return obj; }, create(base) { - return transfer_to_vesting_completed.fromPartial(base !== null && base !== void 0 ? base : {}); + return transfer_to_vesting_completed.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasetransfer_to_vesting_completed(); - message.from_account = (_a = object.from_account) !== null && _a !== void 0 ? _a : ""; - message.to_account = (_b = object.to_account) !== null && _b !== void 0 ? _b : ""; + message.from_account = object.from_account ?? ""; + message.to_account = object.to_account ?? ""; message.hive_vested = (object.hive_vested !== undefined && object.hive_vested !== null) ? asset.fromPartial(object.hive_vested) : undefined; diff --git a/ts/protobuf_patterns/proto/update_proposal.d.ts b/ts/protobuf_patterns/proto/update_proposal.d.ts index 0150fcfe39752084e5c42353e8dcef2199cac3d7..bcbd9749f7e1ce3b4083d871137cf304096371d1 100644 --- a/ts/protobuf_patterns/proto/update_proposal.d.ts +++ b/ts/protobuf_patterns/proto/update_proposal.d.ts @@ -32,158 +32,20 @@ export interface update_proposal { export declare const update_proposal_end_date: { fromJSON(object: any): update_proposal_end_date; toJSON(message: update_proposal_end_date): unknown; - create<I extends { - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K in Exclude<keyof I, "end_date">]: never; }>(base?: I | undefined): update_proposal_end_date; - fromPartial<I_1 extends { - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, "end_date">]: never; }>(object: I_1): update_proposal_end_date; + create<I extends Exact<DeepPartial<update_proposal_end_date>, I>>(base?: I): update_proposal_end_date; + fromPartial<I extends Exact<DeepPartial<update_proposal_end_date>, I>>(object: I): update_proposal_end_date; }; export declare const update_proposal_extension: { fromJSON(object: any): update_proposal_extension; toJSON(message: update_proposal_extension): unknown; - create<I extends { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K in Exclude<keyof I["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_1 in Exclude<keyof I["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof update_proposal_extension>]: never; }>(base?: I | undefined): update_proposal_extension; - fromPartial<I_1 extends { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_3 in Exclude<keyof I_1["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof update_proposal_extension>]: never; }>(object: I_1): update_proposal_extension; + create<I extends Exact<DeepPartial<update_proposal_extension>, I>>(base?: I): update_proposal_extension; + fromPartial<I extends Exact<DeepPartial<update_proposal_extension>, I>>(object: I): update_proposal_extension; }; export declare const update_proposal: { fromJSON(object: any): update_proposal; toJSON(message: update_proposal): unknown; - create<I extends { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["daily_pay"], keyof asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I["extensions"][number], keyof update_proposal_extension>]: never; })[] & { [K_4 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I, keyof update_proposal>]: never; }>(base?: I | undefined): update_proposal; - fromPartial<I_1 extends { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] | undefined; - } & { - proposal_id?: string | undefined; - creator?: string | undefined; - daily_pay?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["daily_pay"], keyof asset>]: never; }) | undefined; - subject?: string | undefined; - permlink?: string | undefined; - extensions?: ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[] & ({ - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - } & { - void_t?: ({} & {} & { [K_7 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - update_proposal_end_date?: ({ - end_date?: string | undefined; - } & { - end_date?: string | undefined; - } & { [K_8 in Exclude<keyof I_1["extensions"][number]["update_proposal_end_date"], "end_date">]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1["extensions"][number], keyof update_proposal_extension>]: never; })[] & { [K_10 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - update_proposal_end_date?: { - end_date?: string | undefined; - } | undefined; - }[]>]: never; }) | undefined; - } & { [K_11 in Exclude<keyof I_1, keyof update_proposal>]: never; }>(object: I_1): update_proposal; + create<I extends Exact<DeepPartial<update_proposal>, I>>(base?: I): update_proposal; + fromPartial<I extends Exact<DeepPartial<update_proposal>, I>>(object: I): update_proposal; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/update_proposal.js b/ts/protobuf_patterns/proto/update_proposal.js index 77d3f6dfba1e2c0e115871a9b3a485b99c15ae81..67adba7a5dc05489a61bdc88c73edacd049755eb 100644 --- a/ts/protobuf_patterns/proto/update_proposal.js +++ b/ts/protobuf_patterns/proto/update_proposal.js @@ -17,12 +17,11 @@ export const update_proposal_end_date = { return obj; }, create(base) { - return update_proposal_end_date.fromPartial(base !== null && base !== void 0 ? base : {}); + return update_proposal_end_date.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBaseupdate_proposal_end_date(); - message.end_date = (_a = object.end_date) !== null && _a !== void 0 ? _a : ""; + message.end_date = object.end_date ?? ""; return message; }, }; @@ -49,7 +48,7 @@ export const update_proposal_extension = { return obj; }, create(base) { - return update_proposal_extension.fromPartial(base !== null && base !== void 0 ? base : {}); + return update_proposal_extension.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseupdate_proposal_extension(); @@ -74,13 +73,12 @@ export const update_proposal = { daily_pay: isSet(object.daily_pay) ? asset.fromJSON(object.daily_pay) : undefined, subject: isSet(object.subject) ? globalThis.String(object.subject) : "", permlink: isSet(object.permlink) ? globalThis.String(object.permlink) : "", - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => update_proposal_extension.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.proposal_id !== undefined) { obj.proposal_id = message.proposal_id; @@ -97,25 +95,24 @@ export const update_proposal = { if (message.permlink !== undefined) { obj.permlink = message.permlink; } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => update_proposal_extension.toJSON(e)); } return obj; }, create(base) { - return update_proposal.fromPartial(base !== null && base !== void 0 ? base : {}); + return update_proposal.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d, _e; const message = createBaseupdate_proposal(); - message.proposal_id = (_a = object.proposal_id) !== null && _a !== void 0 ? _a : "0"; - message.creator = (_b = object.creator) !== null && _b !== void 0 ? _b : ""; + message.proposal_id = object.proposal_id ?? "0"; + message.creator = object.creator ?? ""; message.daily_pay = (object.daily_pay !== undefined && object.daily_pay !== null) ? asset.fromPartial(object.daily_pay) : undefined; - message.subject = (_c = object.subject) !== null && _c !== void 0 ? _c : ""; - message.permlink = (_d = object.permlink) !== null && _d !== void 0 ? _d : ""; - message.extensions = ((_e = object.extensions) === null || _e === void 0 ? void 0 : _e.map((e) => update_proposal_extension.fromPartial(e))) || []; + message.subject = object.subject ?? ""; + message.permlink = object.permlink ?? ""; + message.extensions = object.extensions?.map((e) => update_proposal_extension.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/update_proposal_votes.d.ts b/ts/protobuf_patterns/proto/update_proposal_votes.d.ts index 81067d29a0b50d3abb920f4b1bd2b45b8871f3c9..cae3a1f7e9a5345aecd8e36af91c8506a56078a1 100644 --- a/ts/protobuf_patterns/proto/update_proposal_votes.d.ts +++ b/ts/protobuf_patterns/proto/update_proposal_votes.d.ts @@ -30,48 +30,8 @@ export interface update_proposal_votes { export declare const update_proposal_votes: { fromJSON(object: any): update_proposal_votes; toJSON(message: update_proposal_votes): unknown; - create<I extends { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K in Exclude<keyof I["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_3 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof update_proposal_votes>]: never; }>(base?: I | undefined): update_proposal_votes; - fromPartial<I_1 extends { - voter?: string | undefined; - proposal_ids?: string[] | undefined; - approve?: boolean | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - voter?: string | undefined; - proposal_ids?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["proposal_ids"], keyof string[]>]: never; }) | undefined; - approve?: boolean | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof update_proposal_votes>]: never; }>(object: I_1): update_proposal_votes; + create<I extends Exact<DeepPartial<update_proposal_votes>, I>>(base?: I): update_proposal_votes; + fromPartial<I extends Exact<DeepPartial<update_proposal_votes>, I>>(object: I): update_proposal_votes; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/update_proposal_votes.js b/ts/protobuf_patterns/proto/update_proposal_votes.js index 858c2f0d6b5dfb6c35623df5b803c26f822235b2..cd1e1e904df60510c48aa362c714413d4d4551b5 100644 --- a/ts/protobuf_patterns/proto/update_proposal_votes.js +++ b/ts/protobuf_patterns/proto/update_proposal_votes.js @@ -8,42 +8,40 @@ export const update_proposal_votes = { fromJSON(object) { return { voter: isSet(object.voter) ? globalThis.String(object.voter) : "", - proposal_ids: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.proposal_ids) + proposal_ids: globalThis.Array.isArray(object?.proposal_ids) ? object.proposal_ids.map((e) => globalThis.String(e)) : [], approve: isSet(object.approve) ? globalThis.Boolean(object.approve) : false, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a, _b; const obj = {}; if (message.voter !== undefined) { obj.voter = message.voter; } - if ((_a = message.proposal_ids) === null || _a === void 0 ? void 0 : _a.length) { + if (message.proposal_ids?.length) { obj.proposal_ids = message.proposal_ids; } if (message.approve !== undefined) { obj.approve = message.approve; } - if ((_b = message.extensions) === null || _b === void 0 ? void 0 : _b.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return update_proposal_votes.fromPartial(base !== null && base !== void 0 ? base : {}); + return update_proposal_votes.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBaseupdate_proposal_votes(); - message.voter = (_a = object.voter) !== null && _a !== void 0 ? _a : ""; - message.proposal_ids = ((_b = object.proposal_ids) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || []; - message.approve = (_c = object.approve) !== null && _c !== void 0 ? _c : false; - message.extensions = ((_d = object.extensions) === null || _d === void 0 ? void 0 : _d.map((e) => future_extensions.fromPartial(e))) || []; + message.voter = object.voter ?? ""; + message.proposal_ids = object.proposal_ids?.map((e) => e) || []; + message.approve = object.approve ?? false; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; diff --git a/ts/protobuf_patterns/proto/vesting_shares_split.d.ts b/ts/protobuf_patterns/proto/vesting_shares_split.d.ts index 19fb9e0d7bcf7c7b991fd17747084623a67d8770..0cb92b3eadd6cbfeb35b91ba1d2c0ca2cd93e9e3 100644 --- a/ts/protobuf_patterns/proto/vesting_shares_split.d.ts +++ b/ts/protobuf_patterns/proto/vesting_shares_split.d.ts @@ -17,72 +17,8 @@ export interface vesting_shares_split { export declare const vesting_shares_split: { fromJSON(object: any): vesting_shares_split; toJSON(message: vesting_shares_split): unknown; - create<I extends { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["vesting_shares_before_split"], keyof asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_1 in Exclude<keyof I["vesting_shares_after_split"], keyof asset>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I, keyof vesting_shares_split>]: never; }>(base?: I | undefined): vesting_shares_split; - fromPartial<I_1 extends { - owner?: string | undefined; - vesting_shares_before_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - vesting_shares_after_split?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - vesting_shares_before_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_3 in Exclude<keyof I_1["vesting_shares_before_split"], keyof asset>]: never; }) | undefined; - vesting_shares_after_split?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["vesting_shares_after_split"], keyof asset>]: never; }) | undefined; - } & { [K_5 in Exclude<keyof I_1, keyof vesting_shares_split>]: never; }>(object: I_1): vesting_shares_split; + create<I extends Exact<DeepPartial<vesting_shares_split>, I>>(base?: I): vesting_shares_split; + fromPartial<I extends Exact<DeepPartial<vesting_shares_split>, I>>(object: I): vesting_shares_split; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/vesting_shares_split.js b/ts/protobuf_patterns/proto/vesting_shares_split.js index 1bd1d085b050037cf123dbe2bfdc489b3701cf54..6cfdc8ff13cdf3f0e27bdd90069843582edbf188 100644 --- a/ts/protobuf_patterns/proto/vesting_shares_split.js +++ b/ts/protobuf_patterns/proto/vesting_shares_split.js @@ -30,12 +30,11 @@ export const vesting_shares_split = { return obj; }, create(base) { - return vesting_shares_split.fromPartial(base !== null && base !== void 0 ? base : {}); + return vesting_shares_split.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasevesting_shares_split(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; + message.owner = object.owner ?? ""; message.vesting_shares_before_split = (object.vesting_shares_before_split !== undefined && object.vesting_shares_before_split !== null) ? asset.fromPartial(object.vesting_shares_before_split) diff --git a/ts/protobuf_patterns/proto/vote.d.ts b/ts/protobuf_patterns/proto/vote.d.ts index 6f656fdb014a8938791b8985ee2a2faf16fea548..7014bbbbae7bf2b2b87ff94d7749fb6ce67d9b4d 100644 --- a/ts/protobuf_patterns/proto/vote.d.ts +++ b/ts/protobuf_patterns/proto/vote.d.ts @@ -54,28 +54,8 @@ export interface vote { export declare const vote: { fromJSON(object: any): vote; toJSON(message: vote): unknown; - create<I extends { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K in Exclude<keyof I, keyof vote>]: never; }>(base?: I | undefined): vote; - fromPartial<I_1 extends { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { - voter?: string | undefined; - author?: string | undefined; - permlink?: string | undefined; - weight?: number | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof vote>]: never; }>(object: I_1): vote; + create<I extends Exact<DeepPartial<vote>, I>>(base?: I): vote; + fromPartial<I extends Exact<DeepPartial<vote>, I>>(object: I): vote; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/vote.js b/ts/protobuf_patterns/proto/vote.js index 83a404e0f96ce995dbdd5f45d0a3cb272a9e4b4a..bcb74338adc7924334a4c6fea6a4ee117026fdd4 100644 --- a/ts/protobuf_patterns/proto/vote.js +++ b/ts/protobuf_patterns/proto/vote.js @@ -29,15 +29,14 @@ export const vote = { return obj; }, create(base) { - return vote.fromPartial(base !== null && base !== void 0 ? base : {}); + return vote.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c, _d; const message = createBasevote(); - message.voter = (_a = object.voter) !== null && _a !== void 0 ? _a : ""; - message.author = (_b = object.author) !== null && _b !== void 0 ? _b : ""; - message.permlink = (_c = object.permlink) !== null && _c !== void 0 ? _c : ""; - message.weight = (_d = object.weight) !== null && _d !== void 0 ? _d : 0; + message.voter = object.voter ?? ""; + message.author = object.author ?? ""; + message.permlink = object.permlink ?? ""; + message.weight = object.weight ?? 0; return message; }, }; diff --git a/ts/protobuf_patterns/proto/withdraw_vesting.d.ts b/ts/protobuf_patterns/proto/withdraw_vesting.d.ts index cc49e6e63d82ff5eb33145ce6f185f58a5ddffa4..4bfb7ce7f816c14813ab372ff0c09949b378f7e8 100644 --- a/ts/protobuf_patterns/proto/withdraw_vesting.d.ts +++ b/ts/protobuf_patterns/proto/withdraw_vesting.d.ts @@ -23,44 +23,8 @@ export interface withdraw_vesting { export declare const withdraw_vesting: { fromJSON(object: any): withdraw_vesting; toJSON(message: withdraw_vesting): unknown; - create<I extends { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_1 in Exclude<keyof I, keyof withdraw_vesting>]: never; }>(base?: I | undefined): withdraw_vesting; - fromPartial<I_1 extends { - account?: string | undefined; - vesting_shares?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - account?: string | undefined; - vesting_shares?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I_1["vesting_shares"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I_1, keyof withdraw_vesting>]: never; }>(object: I_1): withdraw_vesting; + create<I extends Exact<DeepPartial<withdraw_vesting>, I>>(base?: I): withdraw_vesting; + fromPartial<I extends Exact<DeepPartial<withdraw_vesting>, I>>(object: I): withdraw_vesting; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/withdraw_vesting.js b/ts/protobuf_patterns/proto/withdraw_vesting.js index cfd7ca77ba0801cab9edf7d406944d7514774c6c..2e1ff207226fc9e9406104a003047f9faa52c397 100644 --- a/ts/protobuf_patterns/proto/withdraw_vesting.js +++ b/ts/protobuf_patterns/proto/withdraw_vesting.js @@ -22,12 +22,11 @@ export const withdraw_vesting = { return obj; }, create(base) { - return withdraw_vesting.fromPartial(base !== null && base !== void 0 ? base : {}); + return withdraw_vesting.fromPartial(base ?? {}); }, fromPartial(object) { - var _a; const message = createBasewithdraw_vesting(); - message.account = (_a = object.account) !== null && _a !== void 0 ? _a : ""; + message.account = object.account ?? ""; message.vesting_shares = (object.vesting_shares !== undefined && object.vesting_shares !== null) ? asset.fromPartial(object.vesting_shares) : undefined; diff --git a/ts/protobuf_patterns/proto/witness_block_approve.d.ts b/ts/protobuf_patterns/proto/witness_block_approve.d.ts index 8e69d315a7a67612d8abbf39593304d960eda081..807bf40206bb013900069b6cf3f692ed40121b4e 100644 --- a/ts/protobuf_patterns/proto/witness_block_approve.d.ts +++ b/ts/protobuf_patterns/proto/witness_block_approve.d.ts @@ -15,20 +15,8 @@ export interface witness_block_approve { export declare const witness_block_approve: { fromJSON(object: any): witness_block_approve; toJSON(message: witness_block_approve): unknown; - create<I extends { - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K in Exclude<keyof I, keyof witness_block_approve>]: never; }>(base?: I | undefined): witness_block_approve; - fromPartial<I_1 extends { - witness?: string | undefined; - block_id?: string | undefined; - } & { - witness?: string | undefined; - block_id?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof witness_block_approve>]: never; }>(object: I_1): witness_block_approve; + create<I extends Exact<DeepPartial<witness_block_approve>, I>>(base?: I): witness_block_approve; + fromPartial<I extends Exact<DeepPartial<witness_block_approve>, I>>(object: I): witness_block_approve; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/witness_block_approve.js b/ts/protobuf_patterns/proto/witness_block_approve.js index 0ab99f74a7046d4e38087f1ae80379028beb3e64..e1b3c6b4bc3d7372972343ea104299fca184aacd 100644 --- a/ts/protobuf_patterns/proto/witness_block_approve.js +++ b/ts/protobuf_patterns/proto/witness_block_approve.js @@ -21,13 +21,12 @@ export const witness_block_approve = { return obj; }, create(base) { - return witness_block_approve.fromPartial(base !== null && base !== void 0 ? base : {}); + return witness_block_approve.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasewitness_block_approve(); - message.witness = (_a = object.witness) !== null && _a !== void 0 ? _a : ""; - message.block_id = (_b = object.block_id) !== null && _b !== void 0 ? _b : ""; + message.witness = object.witness ?? ""; + message.block_id = object.block_id ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/witness_set_properties.d.ts b/ts/protobuf_patterns/proto/witness_set_properties.d.ts index d79d74582af9d0d4da2074d0bf81f33e218654cf..fd8a3219dffaa167153ee436eb116a6fc195fa57 100644 --- a/ts/protobuf_patterns/proto/witness_set_properties.d.ts +++ b/ts/protobuf_patterns/proto/witness_set_properties.d.ts @@ -29,74 +29,14 @@ export interface witness_set_properties_PropsEntry { export declare const witness_set_properties: { fromJSON(object: any): witness_set_properties; toJSON(message: witness_set_properties): unknown; - create<I extends { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K in Exclude<keyof I["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_1 in Exclude<keyof I["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_2 in Exclude<keyof I["extensions"][number], "void_t">]: never; })[] & { [K_3 in Exclude<keyof I["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_4 in Exclude<keyof I, keyof witness_set_properties>]: never; }>(base?: I | undefined): witness_set_properties; - fromPartial<I_1 extends { - owner?: string | undefined; - props?: { - [x: string]: string | undefined; - } | undefined; - extensions?: { - void_t?: {} | undefined; - }[] | undefined; - } & { - owner?: string | undefined; - props?: ({ - [x: string]: string | undefined; - } & { - [x: string]: string | undefined; - } & { [K_5 in Exclude<keyof I_1["props"], string | number>]: never; }) | undefined; - extensions?: ({ - void_t?: {} | undefined; - }[] & ({ - void_t?: {} | undefined; - } & { - void_t?: ({} & {} & { [K_6 in Exclude<keyof I_1["extensions"][number]["void_t"], never>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1["extensions"][number], "void_t">]: never; })[] & { [K_8 in Exclude<keyof I_1["extensions"], keyof { - void_t?: {} | undefined; - }[]>]: never; }) | undefined; - } & { [K_9 in Exclude<keyof I_1, keyof witness_set_properties>]: never; }>(object: I_1): witness_set_properties; + create<I extends Exact<DeepPartial<witness_set_properties>, I>>(base?: I): witness_set_properties; + fromPartial<I extends Exact<DeepPartial<witness_set_properties>, I>>(object: I): witness_set_properties; }; export declare const witness_set_properties_PropsEntry: { fromJSON(object: any): witness_set_properties_PropsEntry; toJSON(message: witness_set_properties_PropsEntry): unknown; - create<I extends { - key?: string | undefined; - value?: string | undefined; - } & { - key?: string | undefined; - value?: string | undefined; - } & { [K in Exclude<keyof I, keyof witness_set_properties_PropsEntry>]: never; }>(base?: I | undefined): witness_set_properties_PropsEntry; - fromPartial<I_1 extends { - key?: string | undefined; - value?: string | undefined; - } & { - key?: string | undefined; - value?: string | undefined; - } & { [K_1 in Exclude<keyof I_1, keyof witness_set_properties_PropsEntry>]: never; }>(object: I_1): witness_set_properties_PropsEntry; + create<I extends Exact<DeepPartial<witness_set_properties_PropsEntry>, I>>(base?: I): witness_set_properties_PropsEntry; + fromPartial<I extends Exact<DeepPartial<witness_set_properties_PropsEntry>, I>>(object: I): witness_set_properties_PropsEntry; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/witness_set_properties.js b/ts/protobuf_patterns/proto/witness_set_properties.js index 78a4981972fe18c109c6fb1fa7899b4fb0be43ad..9cdbb18a007ce3cf776d7e2b1d0a7c7d0d9f80e3 100644 --- a/ts/protobuf_patterns/proto/witness_set_properties.js +++ b/ts/protobuf_patterns/proto/witness_set_properties.js @@ -14,13 +14,12 @@ export const witness_set_properties = { return acc; }, {}) : {}, - extensions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.extensions) + extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => future_extensions.fromJSON(e)) : [], }; }, toJSON(message) { - var _a; const obj = {}; if (message.owner !== undefined) { obj.owner = message.owner; @@ -34,25 +33,24 @@ export const witness_set_properties = { }); } } - if ((_a = message.extensions) === null || _a === void 0 ? void 0 : _a.length) { + if (message.extensions?.length) { obj.extensions = message.extensions.map((e) => future_extensions.toJSON(e)); } return obj; }, create(base) { - return witness_set_properties.fromPartial(base !== null && base !== void 0 ? base : {}); + return witness_set_properties.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasewitness_set_properties(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.props = Object.entries((_b = object.props) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => { + message.owner = object.owner ?? ""; + message.props = Object.entries(object.props ?? {}).reduce((acc, [key, value]) => { if (value !== undefined) { acc[key] = globalThis.String(value); } return acc; }, {}); - message.extensions = ((_c = object.extensions) === null || _c === void 0 ? void 0 : _c.map((e) => future_extensions.fromPartial(e))) || []; + message.extensions = object.extensions?.map((e) => future_extensions.fromPartial(e)) || []; return message; }, }; @@ -77,13 +75,12 @@ export const witness_set_properties_PropsEntry = { return obj; }, create(base) { - return witness_set_properties_PropsEntry.fromPartial(base !== null && base !== void 0 ? base : {}); + return witness_set_properties_PropsEntry.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b; const message = createBasewitness_set_properties_PropsEntry(); - message.key = (_a = object.key) !== null && _a !== void 0 ? _a : ""; - message.value = (_b = object.value) !== null && _b !== void 0 ? _b : ""; + message.key = object.key ?? ""; + message.value = object.value ?? ""; return message; }, }; diff --git a/ts/protobuf_patterns/proto/witness_update.d.ts b/ts/protobuf_patterns/proto/witness_update.d.ts index e80268f111955a300197550437892160dc67100b..2af6c3c2b3b39b391680ffc85c4dae55ead564f8 100644 --- a/ts/protobuf_patterns/proto/witness_update.d.ts +++ b/ts/protobuf_patterns/proto/witness_update.d.ts @@ -28,112 +28,8 @@ export interface witness_update { export declare const witness_update: { fromJSON(object: any): witness_update; toJSON(message: witness_update): unknown; - create<I extends { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K in Exclude<keyof I["props"]["account_creation_fee"], keyof asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_1 in Exclude<keyof I["props"], keyof legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_2 in Exclude<keyof I["fee"], keyof asset>]: never; }) | undefined; - } & { [K_3 in Exclude<keyof I, keyof witness_update>]: never; }>(base?: I | undefined): witness_update; - fromPartial<I_1 extends { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: { - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } | undefined; - fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - } & { - owner?: string | undefined; - url?: string | undefined; - block_signing_key?: string | undefined; - props?: ({ - account_creation_fee?: { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { - account_creation_fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_4 in Exclude<keyof I_1["props"]["account_creation_fee"], keyof asset>]: never; }) | undefined; - maximum_block_size?: number | undefined; - hbd_interest_rate?: number | undefined; - } & { [K_5 in Exclude<keyof I_1["props"], keyof legacy_chain_properties>]: never; }) | undefined; - fee?: ({ - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { - amount?: string | undefined; - precision?: number | undefined; - nai?: string | undefined; - } & { [K_6 in Exclude<keyof I_1["fee"], keyof asset>]: never; }) | undefined; - } & { [K_7 in Exclude<keyof I_1, keyof witness_update>]: never; }>(object: I_1): witness_update; + create<I extends Exact<DeepPartial<witness_update>, I>>(base?: I): witness_update; + fromPartial<I extends Exact<DeepPartial<witness_update>, I>>(object: I): witness_update; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { diff --git a/ts/protobuf_patterns/proto/witness_update.js b/ts/protobuf_patterns/proto/witness_update.js index 37be87f97eaec0705da3f137a74402baf4c9ff9f..631fa3d7e82c2827b246e5f41ea662d2aa6c7274 100644 --- a/ts/protobuf_patterns/proto/witness_update.js +++ b/ts/protobuf_patterns/proto/witness_update.js @@ -35,14 +35,13 @@ export const witness_update = { return obj; }, create(base) { - return witness_update.fromPartial(base !== null && base !== void 0 ? base : {}); + return witness_update.fromPartial(base ?? {}); }, fromPartial(object) { - var _a, _b, _c; const message = createBasewitness_update(); - message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : ""; - message.url = (_b = object.url) !== null && _b !== void 0 ? _b : ""; - message.block_signing_key = (_c = object.block_signing_key) !== null && _c !== void 0 ? _c : ""; + message.owner = object.owner ?? ""; + message.url = object.url ?? ""; + message.block_signing_key = object.block_signing_key ?? ""; message.props = (object.props !== undefined && object.props !== null) ? legacy_chain_properties.fromPartial(object.props) : undefined; diff --git a/ts/rollup.config.js b/ts/rollup.config.js index 46f1ab45795bd2eb1e8c4636de788fb09c6dc1e9..93a964112efd73f2b84c6e87fcabe1ba990009c3 100644 --- a/ts/rollup.config.js +++ b/ts/rollup.config.js @@ -2,59 +2,87 @@ import dts from 'rollup-plugin-dts'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import replace from '@rollup/plugin-replace'; -import alias from '@rollup/plugin-alias'; import terser from '@rollup/plugin-terser'; +import copy from 'rollup-plugin-copy'; -const commonConfiguration = packEntire => ([ +export default [ { - input: `wasm/dist/lib/index.js`, + input: 'wasm/lib/build_wasm/wax.web.js', output: { format: 'es', - name: 'wax', - file: `wasm/dist/bundle/index${packEntire ? '-full' : ''}.js` + file: 'wasm/dist/bundle/wax.web.js' }, plugins: [ - alias({ - entries: packEntire ? [ - { find: '@hiveio/beekeeper', replacement: "@hiveio/beekeeper/web" } - ] : [] + replace({ + delimiters: ['', ''], + values: { + 'wax.web.wasm': 'wax.common.wasm', + // Remove unused `process` from code to prevent bundlers to include polyfills when not required + 'process': null, + 'process.versions': null, + 'process.versions.node': null + }, + preventAssignment: true + }), + terser({ + format: { + inline_script: false, + comments: false, + max_line_len: 100 + } + }) + ] + }, + { + input: 'wasm/lib/build_wasm/wax.node.js', + output: { + format: 'es', + file: 'wasm/dist/bundle/wax.node.js' + }, + plugins: [ + copy({ + targets: [{ src: ['wasm/lib/build_wasm/wax.common.wasm'], dest: 'wasm/dist/bundle' }] }), replace({ delimiters: ['', ''], values: { - // Generated Emscripten WASM code contains fs, which is not actually used by our code, so remove it to prevent client bundler errors: - 'fs.readFileSync(filename,binary?undefined:"utf8")': null, - 'fs.readFile(filename,binary?undefined:"utf8",(err,data)=>{if(err)onerror(err);else onload(binary?data.buffer:data)})': null, - 'fs.readSync(fd,buf)': '0', // fallback - readSync returns the number of bytesRead - // Instead of fs we need crypto module in Node.js environment later for SSL initRandomDevice code - ensure proper module is imported: - 'var fs=require("fs")': 'var node_crypto=await import("crypto")', - 'require("crypto")': 'node_crypto', - // 'module' dependency is redundant in our environment - use 'await import' instead: - 'const{createRequire:createRequire}=await import("module");': '', - 'var require=createRequire(import.meta.url);': '', - 'createRequire(import.meta.url);': '', - 'var nodePath=require("path")': 'var nodePath=await import("path")', - // new URL("./") throws - use import.meta.url instead: - 'require("url").fileURLToPath(new URL("./",import.meta.url))': 'import.meta.url', + 'wax.node.wasm': 'wax.common.wasm' + }, + preventAssignment: true + }), + terser({ + format: { + inline_script: false, + comments: false, + max_line_len: 100 + } + }) + ] + }, + // Generate .JS bundles for each environment + { + input: 'wasm/dist/lib/detailed/index.js', + output: { + format: 'es', + file: 'wasm/dist/bundle/detailed/index.js' + }, + plugins: [ + replace({ + delimiters: ['', ''], + values: { + // Make sure we do not include `process` in the code: + 'process': null, + 'process.env': null, + 'process.env.REFLECT_METADATA_USE_MAP_POLYFILL': null, // Bundled dependency - reflect-metadata - uses this - we do not need it // Hardcode package name and version for later use in the code: 'process.env.npm_package_name': `"${process.env.npm_package_name}"`, - 'process.env.npm_package_version': `"${process.env.npm_package_version}"`, - // WASM requires process.argv[1] argument to be set. We can mock it in web browser environment: - 'process.argv': '(typeof process=="object"&&typeof process.argv=="object"?process.argv:["",""])', - // Keeping process.env in the code will cause errors in the browser environment - remove it: - 'process.env': null + 'process.env.npm_package_version': `"${process.env.npm_package_version}"` }, preventAssignment: true }), - nodeResolve({ + nodeResolve({ // This will bundle all of our not crucial sub-dependencies, like class-validator and class-transformer preferBuiltins: false, - browser: true, - modulePaths: [ - 'wasm/dist/lib' - ], - resolveOnly: packEntire ? [] : [ - 'build_wasm' - ] + browser: false }), commonjs(), terser({ @@ -65,18 +93,77 @@ const commonConfiguration = packEntire => ([ } }) ] - }, { + }, + { + input: 'wasm/dist/lib/index.js', + output: { + format: 'es', + file: 'wasm/dist/bundle/web.js' + }, + external: [ + './wax.web.js', + './detailed/index.js' + ], + plugins: [ + replace({ + delimiters: ['', ''], + values: { + 'wasm/lib/wax_module.js': './wax.web.js' + }, + preventAssignment: true + }) + ] + }, + { + input: 'wasm/dist/lib/index.js', + output: { + format: 'es', + file: 'wasm/dist/bundle/node.js' + }, + external: [ + './wax.node.js', + './detailed/index.js' + ], + plugins: [ + replace({ + delimiters: ['', ''], + values: { + 'wasm/lib/wax_module.js': './wax.node.js' + }, + preventAssignment: true + }) + ] + }, + { + input: 'wasm/dist/lib/vite.js', + output: { + format: 'es', + file: 'wasm/dist/bundle/vite.js' + }, + external: [ + './wax.web.js', + './detailed/index.js', + './wax.common.wasm?url' + ], + plugins: [ + replace({ + delimiters: ['', ''], + values: { + 'wasm/lib/wax_module.js': './wax.web.js', + 'wax.common.wasm?url': './wax.common.wasm?url' + }, + preventAssignment: true + }) + ] + }, + // Type declarations are common for all environments + { input: `wasm/dist/lib/index.d.ts`, output: [ - { file: `wasm/dist/bundle/index${packEntire ? '-full' : ''}.d.ts`, format: "es" } + { file: `wasm/dist/bundle/index.d.ts`, format: "es" } ], plugins: [ dts() ] } -]); - -export default [ - ...commonConfiguration(false), - ...commonConfiguration(true) ]; diff --git a/ts/tsconfig.json b/ts/tsconfig.json index f54ef72c7250be97030e1576f243d77e2066f8ad..0b7bcb9d5a5b23b19c59f4506e4756beb3b4ebda 100644 --- a/ts/tsconfig.json +++ b/ts/tsconfig.json @@ -4,7 +4,10 @@ "rootDir": "./wasm/lib", "baseUrl": ".", "outDir": "./wasm/dist/lib", - "paths": {} + "paths": { + // Dummy path to satisfy the TypeScript compiler + "wax.common.wasm?url": [ "./wasm/lib/build_wasm/wax.node" ] + } }, "include": [ "./wasm/lib" diff --git a/ts/wasm/__tests__/assets/data.encryption-operations.ts b/ts/wasm/__tests__/assets/data.encryption-operations.ts index 1ba03aae75c90eff8f938aa7e083d348e58f6a75..0fec627c3698b7b8844f89d816fb66c005f7b905 100644 --- a/ts/wasm/__tests__/assets/data.encryption-operations.ts +++ b/ts/wasm/__tests__/assets/data.encryption-operations.ts @@ -1,4 +1,5 @@ -import { createHiveChain, IEncryptingTransaction, transaction } from '../../dist/bundle/index-full'; +import type { IEncryptingTransaction, transaction } from '../../dist/bundle'; +import { createHiveChain } from '../../dist/bundle/node.js'; import { TPublicKey } from '@hiveio/beekeeper'; import "./globals.js"; import type { IWaxGlobals } from './globals.js'; diff --git a/ts/wasm/__tests__/assets/globals.ts b/ts/wasm/__tests__/assets/globals.ts index 997c682e35842c148bac4ead472b6d829563d4de..a73abf4a4eb81948b5dba81d5f1ba6f2d4f20dd5 100644 --- a/ts/wasm/__tests__/assets/globals.ts +++ b/ts/wasm/__tests__/assets/globals.ts @@ -4,9 +4,9 @@ // Also when testing in Web environment, we would have to import only fully-bundled packages here as we lack any import resolution in the browser except explicitly defined importmap // for imports defined in functions "createWaxTestFor" and "createWasmTestFor" import type { IBeekeeperInstance } from "@hiveio/beekeeper/web"; -import type Wax from "../../dist/bundle/index-full.js"; -import type { IWaxBaseInterface, IHiveChainInterface, IWaxOptionsChain } from "../../dist/bundle/index-full.js"; -import type { MainModule, proto_protocol as proto_protocolT, protocol as protocolT } from "../../dist/lib/build_wasm/wax.common.js"; +import type Wax from "../../dist/bundle"; +import type { IWaxBaseInterface, IHiveChainInterface, IWaxOptionsChain } from "../../dist/bundle"; +import type { MainModule, proto_protocol as proto_protocolT, protocol as protocolT } from "../../lib/build_wasm/wax.web.js"; // Declare global types type TMainModuleFn = () => Promise<MainModule>; @@ -40,11 +40,11 @@ declare global { // We are also using function expressions here to be able to extract the function names in the jest-helpers globalThis.createWaxTestFor = async function createWaxTestFor(env: TEnvType, outputPath: string, config?: IWaxOptionsChain) { - const locWax = env === "web" ? "../../dist/bundle/index-full.js" : "../../dist/bundle/index.js"; + const locWax = env === "web" ? "../../dist/bundle/web.js" : "../../dist/bundle/node.js"; const locBeekeeper = env === "web" ? "@hiveio/beekeeper/web" : "@hiveio/beekeeper/node"; // Import required libraries env-dependent - const wax = await import(locWax) as typeof import("../../dist/bundle/index-full.js"); + const wax = await import(locWax) as typeof import("../../dist/bundle"); const beekeeper = await import(locBeekeeper) as typeof import("@hiveio/beekeeper/web"); try { @@ -80,9 +80,9 @@ globalThis.createWaxTestFor = async function createWaxTestFor(env: TEnvType, out }; // Use function as we later extract the function name in the jest-helpers -globalThis.createWasmTestFor = async function createWasmTestFor(_env: TEnvType) { +globalThis.createWasmTestFor = async function createWasmTestFor(env: TEnvType) { // Import required libraries env-dependent - const wasm = await import("../../dist/lib/build_wasm/wax.common.js"); + const wasm = env === "web" ? await import("../../dist/bundle/wax.web.js") : await import("../../dist/bundle/wax.node.js"); // Initialize data const provider = await (wasm as unknown as { default: TMainModuleFn }).default(); diff --git a/ts/wasm/__tests__/assets/jest-helper.ts b/ts/wasm/__tests__/assets/jest-helper.ts index 756e911c4dedaa6e6cc8c051a5f46f6f63d024f3..0fe403f6e602c5c59c8911d747943d1b32e182ae 100644 --- a/ts/wasm/__tests__/assets/jest-helper.ts +++ b/ts/wasm/__tests__/assets/jest-helper.ts @@ -2,7 +2,7 @@ import { TestInfo, ConsoleMessage, Page, test as base, expect } from '@playwrigh import "./globals"; import type { IWaxGlobals, IWasmGlobals } from './globals'; -import { IWaxOptionsChain } from '../../dist/bundle/index-full'; +import type { IWaxOptionsChain } from '../../dist/bundle'; import fs from 'fs'; diff --git a/ts/wasm/__tests__/assets/mock/data/steem.ts b/ts/wasm/__tests__/assets/mock/data/steem.ts index 08a2bf9a4086fe9d76e03db3c5dece8054332d04..5cd296a57b891a2ae302757ab3b53abe32e4daab 100644 --- a/ts/wasm/__tests__/assets/mock/data/steem.ts +++ b/ts/wasm/__tests__/assets/mock/data/steem.ts @@ -1,4 +1,4 @@ -import type { ApiAccount } from '../../../../dist/bundle/index-full'; +import type { ApiAccount } from '../../../../dist/bundle'; export default { id: 1, diff --git a/ts/wasm/__tests__/assets/mock/data/sunnyvo.ts b/ts/wasm/__tests__/assets/mock/data/sunnyvo.ts index 6fca9a5b39e43b98397258c9aaa4525395b94e27..7ebfc8e47cb062ef1043f8f8871ae6b2ca7d290b 100644 --- a/ts/wasm/__tests__/assets/mock/data/sunnyvo.ts +++ b/ts/wasm/__tests__/assets/mock/data/sunnyvo.ts @@ -1,4 +1,4 @@ -import type { ApiAccount } from '../../../../dist/bundle/index-full'; +import type { ApiAccount } from '../../../../dist/bundle'; export default { id: 1, diff --git a/ts/wasm/__tests__/assets/proxy-mock-server.ts b/ts/wasm/__tests__/assets/proxy-mock-server.ts index bcb37f310236552b031e419f548c72f3152d0e0f..9da4306520922576616aac970d5ed2ccfb5a1ea2 100644 --- a/ts/wasm/__tests__/assets/proxy-mock-server.ts +++ b/ts/wasm/__tests__/assets/proxy-mock-server.ts @@ -35,8 +35,13 @@ export const createServer = async (mockInstance: AProxyMockResolver, target: str let server: Server; - await new Promise<void>(resolve => { - server = app.listen(port, resolve) + await new Promise<void>((resolve, reject) => { + server = app.listen(port, (error?: Error) => { + if(error != undefined) + reject(error); + else + resolve(); + }) }); return () => new Promise<void>((resolve, reject) => { diff --git a/ts/wasm/__tests__/assets/test.html b/ts/wasm/__tests__/assets/test.html index 67c08914a22d1c16e34249d5d6ede9408f257f3d..e8c5424a95cbd2823cbcddd81478bf15a95b4619 100644 --- a/ts/wasm/__tests__/assets/test.html +++ b/ts/wasm/__tests__/assets/test.html @@ -9,8 +9,10 @@ <script type="importmap"> { "imports": { - "../../dist/lib/build_wasm/wax.common.js": "/wasm/dist/lib/build_wasm/wax.common.js", - "../../dist/bundle/index-full.js": "/wasm/dist/bundle/index-full.js", + "../../dist/bundle/wax.web.js": "/wasm/dist/bundle/wax.web.js", + "../../dist/bundle/web.js": "/wasm/dist/bundle/web.js", + "./detailed/index.js": "/wasm/dist/bundle/detailed/index.js", + "./wax.web.js": "/wasm/dist/bundle/wax.web.js", "@hiveio/beekeeper/web": "/node_modules/@hiveio/beekeeper/dist/bundle/web.js" } } diff --git a/ts/wasm/__tests__/detailed/custom_chain_online_tx.ts b/ts/wasm/__tests__/detailed/custom_chain_online_tx.ts index 6b644ec0df791bb9ffab62ae09d56e4c115f2fc7..bae3afa8305a295515f7b88bf36708bac19dd586 100644 --- a/ts/wasm/__tests__/detailed/custom_chain_online_tx.ts +++ b/ts/wasm/__tests__/detailed/custom_chain_online_tx.ts @@ -2,9 +2,9 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; import { protoVoteOp } from "../assets/data.proto-protocol"; -import { IWaxOptionsChain, WaxPrivateKeyLeakDetectedException } from '../../dist/bundle/index-full'; +import type { IWaxOptionsChain, WaxPrivateKeyLeakDetectedException } from '../../dist/bundle'; -import { IOnlineTransaction, operation, transfer } from '../../dist/bundle/index-full'; +import type { IOnlineTransaction, operation, transfer } from '../../dist/bundle'; test.describe('Wax chain tests to cover Online Transaction flow', () => { const txSecurityLeakBody = async ({ beekeeper, wax }, mirrornetSkeletonKey: string, config: IWaxOptionsChain, directBroadcast: boolean) => { diff --git a/ts/wasm/__tests__/detailed/encrypted_operations.ts b/ts/wasm/__tests__/detailed/encrypted_operations.ts index 59cf4379fd7243a46e1dfef67d7e9511761bae6f..eb040116b641c6f4520dd95eeea3aaf26a29841b 100644 --- a/ts/wasm/__tests__/detailed/encrypted_operations.ts +++ b/ts/wasm/__tests__/detailed/encrypted_operations.ts @@ -2,7 +2,7 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; -import { IEncryptingTransaction } from '../../dist/bundle/index-full'; +import type { IEncryptingTransaction } from '../../dist/bundle'; import { utilFunctionTest, diff --git a/ts/wasm/__tests__/detailed/formatters.ts b/ts/wasm/__tests__/detailed/formatters.ts index fdea7d19b3ea2305c2de71db4fb5707e9b18cab2..2e5ec8abf2cd3f0016b4d3ea0f16faf80eddbb3c 100644 --- a/ts/wasm/__tests__/detailed/formatters.ts +++ b/ts/wasm/__tests__/detailed/formatters.ts @@ -3,7 +3,8 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; import { initminerAccountApi, naiAsset, serialization_sensitive_transaction, serialization_sensitive_transaction_proto, transfer_operation, vote_operation, serializedWitnessSetProperties, realSerializedWitnessSetProperties } from "../assets/data.protocol"; -import { ECommunityOperationActions, EFollowActions, IFormatFunctionArguments, ResourceCreditsOperationData, WaxFormattable, operation } from '../../dist/lib'; +import type { IFormatFunctionArguments, ResourceCreditsOperationData, operation } from '../../dist/bundle/index'; +import { ECommunityOperationActions, EFollowActions, WaxFormattable } from '../../dist/bundle/node'; test.describe('Wax object interface formatters tests', () => { test('Should traverse from bottom to top of the object using default formatters from hive chain interface', async({}, testInfo) => { diff --git a/ts/wasm/__tests__/detailed/healthchecks.ts b/ts/wasm/__tests__/detailed/healthchecks.ts index f809cebdf4e9ea17a6aaefeff5ef799df2e81fcb..9eab12af7eee313c7635b2ede15ee3de844f58b8 100644 --- a/ts/wasm/__tests__/detailed/healthchecks.ts +++ b/ts/wasm/__tests__/detailed/healthchecks.ts @@ -1,7 +1,7 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; -import { TScoredEndpoint } from '../../dist/bundle/index-full'; +import type { TScoredEndpoint } from '../../dist/bundle'; test.describe('Wax object interface chain tests', () => { test('Should be able to create endpoint healthchecker', async ({ waxTest }) => { diff --git a/ts/wasm/__tests__/detailed/hive_base.ts b/ts/wasm/__tests__/detailed/hive_base.ts index 84b2ca5562d81256ba23f185c7d59fac3e6421ff..69d6498ca2da59d0e19f739c24e2ef6e96784643 100644 --- a/ts/wasm/__tests__/detailed/hive_base.ts +++ b/ts/wasm/__tests__/detailed/hive_base.ts @@ -5,7 +5,7 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; import { protoVoteOp } from "../assets/data.proto-protocol"; import { naiAsset, transaction, vote_operation } from "../assets/data.protocol"; -import { ApiTransaction } from '../../dist/bundle/index-full'; +import type { ApiTransaction } from '../../dist/bundle'; test.describe('Wax object interface foundation tests', () => { diff --git a/ts/wasm/__tests__/detailed/non_encrypted_operations.ts b/ts/wasm/__tests__/detailed/non_encrypted_operations.ts index a8dab2a103dcebee5344f28a966d2210bc38f964..ca6996db027ee8d7ccf3b2bc0cd56496891bbbf2 100644 --- a/ts/wasm/__tests__/detailed/non_encrypted_operations.ts +++ b/ts/wasm/__tests__/detailed/non_encrypted_operations.ts @@ -2,7 +2,7 @@ import { expect } from '@playwright/test'; import { test } from '../assets/jest-helper'; -import { IEncryptingTransaction } from '../../dist/bundle/index-full'; +import type { IEncryptingTransaction } from '../../dist/bundle'; import { accountCreateOp, diff --git a/ts/wasm/__tests__/detailed/protocol_benchmarks.ts b/ts/wasm/__tests__/detailed/protocol_benchmarks.ts index 2961c99692d4c4e647ce6ec571ef67e6502ff110..4994c93d1b8d52c4b77e7d21204572c28118863c 100644 --- a/ts/wasm/__tests__/detailed/protocol_benchmarks.ts +++ b/ts/wasm/__tests__/detailed/protocol_benchmarks.ts @@ -2,11 +2,12 @@ import fs from 'node:fs'; import path, { dirname } from 'node:path'; import { fileURLToPath } from 'node:url'; -import WaxModule, { protocol } from '../../dist/lib/wax_module.js'; +import WaxModule, { protocol } from '../../lib/build_wasm/wax.node.js'; import { test } from '../assets/jest-helper'; import { numToHighLow, specificBenchmarkTransaction, vote_operation } from "../assets/data.protocol"; -import { createHiveChain, IHiveChainInterface } from '../../dist/bundle/index-full'; -import { MainModule } from '../../dist/lib/wax_module.js'; +import type { IHiveChainInterface } from '../../dist/bundle'; +import { createHiveChain } from '../../dist/bundle/node.js'; +import type { MainModule } from '../../lib/build_wasm/wax.node.js'; interface IBenchmarkData { functionName: string; @@ -24,10 +25,10 @@ let chain!: IHiveChainInterface; let transaction!: string; const __dirname = dirname(fileURLToPath(import.meta.url)); -const statBundle = fs.statSync(path.resolve(__dirname, '../bundle/index-full.js')); +const statBundle = fs.statSync(path.resolve(__dirname, '../../dist/bundle/wax.common.wasm')); const collectedBenchmarkData: (IBenchmarkData | string)[] = [ - `index-full.js file size: ${statBundle.size} bytes` + `WASM file size: ${statBundle.size} bytes` ]; const utilFunctionTest = (functionName: string, totalCallsCount: number, functionToTest: () => number): void => { @@ -55,7 +56,7 @@ const utilFunctionTest = (functionName: string, totalCallsCount: number, functio test.describe('WASM Protocol benchmarks', () => { test.beforeAll(async () => { - provider = await WaxModule(); + provider = await (WaxModule as unknown as () => Promise<MainModule>)(); protocol = new provider.protocol(); chain = await createHiveChain(); diff --git a/ts/wasm/__tests__/detailed/regression_hive_operations.ts b/ts/wasm/__tests__/detailed/regression_hive_operations.ts index 9b59e92da61a070adb6201502c5ddb98ba70b092..423e53218f040cecd156cfc5d2d6c494e991d2a7 100644 --- a/ts/wasm/__tests__/detailed/regression_hive_operations.ts +++ b/ts/wasm/__tests__/detailed/regression_hive_operations.ts @@ -1,6 +1,6 @@ import { test } from "../assets/jest-helper"; import { expect } from "@playwright/test"; -import { +import type { account_create, account_create_with_delegation, account_update, @@ -49,7 +49,7 @@ import { witness_block_approve, witness_set_properties, witness_update -} from "../../dist/bundle/index-full"; +} from "../../dist/bundle"; test.describe('Wax transaction hive operations regression tests', () => { test('Vote opeartion Test', async ({ waxTest }) => { diff --git a/ts/wasm/build_wasm_wax.sh b/ts/wasm/build_wasm_wax.sh index 8229d70a34463d9e0fdb5309e81f6a0a6aa7eb5d..3308c4ea0efcf9587509578d67068bc38633cbb5 100755 --- a/ts/wasm/build_wasm_wax.sh +++ b/ts/wasm/build_wasm_wax.sh @@ -45,10 +45,9 @@ else cmake --install "${BUILD_DIR}" --component wax_config_ts --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" - cmake --install "${BUILD_DIR}" --component wax_wasm_common_runtime --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" - cmake --install "${BUILD_DIR}" --component wax_wasm_common_dts --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" - - cmake --install "${BUILD_DIR}" --component wax_wasm_common_runtime --prefix "${EXECUTION_PATH}/ts/wasm/dist/lib/build_wasm" - cmake --install "${BUILD_DIR}" --component wax_wasm_common_dts --prefix "${EXECUTION_PATH}/ts/wasm/dist/lib/build_wasm" + cmake --install "${BUILD_DIR}" --component wax_wasm_node_runtime --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" + cmake --install "${BUILD_DIR}" --component wax_wasm_node_dts --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" + cmake --install "${BUILD_DIR}" --component wax_wasm_web_runtime --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" + cmake --install "${BUILD_DIR}" --component wax_wasm_web_dts --prefix "${EXECUTION_PATH}/ts/wasm/lib/build_wasm" fi diff --git a/ts/wasm/configs/tsconfig.base.json b/ts/wasm/configs/tsconfig.base.json index 2c9089224e8848fd12bb5a9cd7ee42d81d93a2a6..78d0da714b3a0e52d4142feed4b658038210a1cf 100644 --- a/ts/wasm/configs/tsconfig.base.json +++ b/ts/wasm/configs/tsconfig.base.json @@ -34,12 +34,12 @@ "allowJs": false, - "target": "ES2017", + "target": "ES2020", "lib": [ - "ES2017", + "ES2020", "DOM" ], - "module": "ES6", + "module": "ES2020", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/ts/wasm/configs/tsconfig.tests.json b/ts/wasm/configs/tsconfig.tests.json index d1ad64dbf3814cad3c1475d752920541e66d44f0..4e87884ac8f990345fd547d27b3f98c723d7e725 100644 --- a/ts/wasm/configs/tsconfig.tests.json +++ b/ts/wasm/configs/tsconfig.tests.json @@ -4,13 +4,15 @@ "rootDir": "../__tests__", "baseUrl": ".", "outDir": "../dist", - "paths": {}, + "paths": { + "wasm/build_wasm/*": ["../lib/build_wasm/*"] + }, "target": "ES2022", "lib": [ "ES2022", "DOM" ], - "module": "ES2022", + "module": "ES2022" }, "include": [ "../__tests__" diff --git a/ts/wasm/lib/detailed/api/network_broadcast_api/broadcast_transaction.ts b/ts/wasm/lib/detailed/api/network_broadcast_api/broadcast_transaction.ts index 325dac06d7835d6f8652a612a57e23e7b6f7661e..d282a24ad07c0eb5582f3d8e2a64626d3ed302fb 100644 --- a/ts/wasm/lib/detailed/api/network_broadcast_api/broadcast_transaction.ts +++ b/ts/wasm/lib/detailed/api/network_broadcast_api/broadcast_transaction.ts @@ -1,10 +1,10 @@ import { Type } from "class-transformer" import { IsNumber, ValidateNested } from "class-validator" -import type { ITransaction } from "../../../interfaces"; +import type { ITransaction } from "../../interfaces"; import { ApiTransaction } from "../types/transaction.js"; -import { WaxError } from "../../../errors.js"; +import { WaxError } from "../../errors.js"; export class BroadcastTransactionRequest { public constructor(trx?: ITransaction) { diff --git a/ts/wasm/lib/detailed/api/types/transaction.ts b/ts/wasm/lib/detailed/api/types/transaction.ts index 4da6f0975e09bfce6508c5a38b4a6a4f5939158a..017380c7719a333d364321781bdc4e4690aa6c91 100644 --- a/ts/wasm/lib/detailed/api/types/transaction.ts +++ b/ts/wasm/lib/detailed/api/types/transaction.ts @@ -1,4 +1,4 @@ -import { type ITransaction } from "../../../interfaces.js"; +import { type ITransaction } from "../../interfaces.js"; import { Type, plainToInstance } from "class-transformer"; import { Min, Max, IsDateString, IsInt, IsObject, IsString, ValidateNested } from "class-validator"; diff --git a/ts/wasm/lib/detailed/base.ts b/ts/wasm/lib/detailed/base.ts index 3f14fbb35b9a2097a50c976dcfb6c7a02019d816..17112d6f44885d3ed92d9304968316ab5bd2f099 100644 --- a/ts/wasm/lib/detailed/base.ts +++ b/ts/wasm/lib/detailed/base.ts @@ -1,24 +1,17 @@ -import type { IWaxBaseInterface, IWaxOptions } from "../interfaces.js"; +import type { IWaxBaseInterface, IWaxOptions } from "./index.js"; -import { WaxBaseApi } from "./base_api.js"; -import MainModuleFunction from "../wax_module.js"; import { safeAsyncWasmCall } from "./util/wasm_errors.js"; +import { WaxBaseApi } from "./base_api.js"; +import type waxmodule from "../wax_module.js"; +import type { IOptionalModuleArgs } from "../wax_module.js"; export const DEFAULT_WAX_OPTIONS: IWaxOptions = { chainId: "beeab0de00000000000000000000000000000000000000000000000000000000" }; -/** - * Creates a Wax Hive base instance - * - * @param {?Partial<IWaxOptions>} options wax options - * - * @returns {Promise<IWaxBaseInterface>} Wax Hive Base API Instance - * - * @throws {WaxError} on any Wax API-related error - */ -export const createWaxFoundation = async(options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => { - const waxProvider = await safeAsyncWasmCall(() => MainModuleFunction()); +// We have to keep wasmFn as any because createWaxFoundation is exported and will require wasmFn to have a type of module, we do not want to expose +export const createWaxFoundation = async(wasmFn: typeof waxmodule, ModuleExt: IOptionalModuleArgs = {}, options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => { + const waxProvider = await safeAsyncWasmCall(() => wasmFn(ModuleExt)); const apiOptions: IWaxOptions = { ...DEFAULT_WAX_OPTIONS, ...options }; diff --git a/ts/wasm/lib/detailed/base_api.ts b/ts/wasm/lib/detailed/base_api.ts index e3f9044a9a509a893dac9bae9a9fe4a12aea4b0c..7b0bdd207c4b21296eb61f0e5f4d4a721c1e026f 100644 --- a/ts/wasm/lib/detailed/base_api.ts +++ b/ts/wasm/lib/detailed/base_api.ts @@ -1,14 +1,14 @@ import type { IBeekeeperUnlockedWallet, TPublicKey } from "@hiveio/beekeeper"; -import type { IBinaryViewArrayNode, IBinaryViewNode, IBinaryViewOutputData, IBrainKeyData, IHiveAssetData, IManabarData, IPrivateKeyData, ITransaction, IWaxBaseInterface, TBlockHash, THexString, TNaiAssetConvertible, TNaiAssetSource, TTimestamp } from "../interfaces"; +import type { IBinaryViewArrayNode, IBinaryViewNode, IBinaryViewOutputData, IBrainKeyData, IHiveAssetData, IManabarData, IPrivateKeyData, ITransaction, IWaxBaseInterface, TBlockHash, THexString, TNaiAssetConvertible, TNaiAssetSource, TTimestamp } from "./interfaces"; import type { binary_data_node, json_price, MainModule, proto_protocol, protocol, result, VectorBinaryDataNode, VectorString, witness_set_properties_data, wax_authorities, IChainConfig } from "../wax_module"; import type { ApiOperation, NaiAsset } from "./api"; import { ApiTransaction } from "./api"; import type { TAccountName } from "./hive_apps_operations"; -import { operation, transaction } from "../protocol"; +import { operation, transaction } from "./protocol"; -import { WaxError, WaxPrivateKeyLeakDetectedException } from '../errors.js'; +import { WaxError, WaxPrivateKeyLeakDetectedException } from './errors.js'; import { safeWasmCall, TWaxStdExceptionData } from "./util/wasm_errors.js"; import { JSON_stringify_operation, JSON_stringify_transaction, matchesHiveProtocolType } from "./util/proto_type_utils"; import { Transaction } from "./transaction.js"; diff --git a/ts/wasm/lib/detailed/chain.ts b/ts/wasm/lib/detailed/chain.ts index 661b1e25e5dc8754de3531ef9c10f3b660eb7cd3..7b5a4d279aa6dee56afad6573fae057982c5e96d 100644 --- a/ts/wasm/lib/detailed/chain.ts +++ b/ts/wasm/lib/detailed/chain.ts @@ -1,8 +1,9 @@ -import type { IHiveChainInterface, IWaxOptionsChain } from "../interfaces.js"; +import { type IWaxOptionsChain, type IHiveChainInterface } from "./index.js"; -import { HiveChainApi } from "./chain_api.js"; import { safeAsyncWasmCall } from "./util/wasm_errors.js"; -import MainModuleFunction from "../wax_module.js"; +import { HiveChainApi } from "./chain_api.js"; +import type waxmodule from "../wax_module.js"; +import type { IOptionalModuleArgs } from "../wax_module.js"; import { DEFAULT_WAX_OPTIONS } from "./base.js"; export const DEFAULT_WAX_OPTIONS_CHAIN: IWaxOptionsChain = { @@ -11,17 +12,9 @@ export const DEFAULT_WAX_OPTIONS_CHAIN: IWaxOptionsChain = { restApiEndpoint: "https://api.syncad.com" } -/** - * Creates a Wax Hive chain instance - * - * @param {?Partial<IWaxOptionsChain>} options wax options - * - * @returns {Promise<IHiveChainInterface>} Wax Hive chain API Instance - * - * @throws {WaxError} on any Wax API-related error - */ -export const createHiveChain = async(options: Partial<IWaxOptionsChain> = {}): Promise<IHiveChainInterface> => { - const waxProvider = await safeAsyncWasmCall(() => MainModuleFunction()); +// We have to keep wasmFn as any because createHiveChain is exported and will require wasmFn to have a type of module, we do not want to expose +export const createHiveChain = async(wasmFn: typeof waxmodule, ModuleExt: IOptionalModuleArgs = {}, options: Partial<IWaxOptionsChain> = {}): Promise<IHiveChainInterface> => { + const waxProvider = await safeAsyncWasmCall(() => wasmFn(ModuleExt)); const apiOptions: IWaxOptionsChain = { ...DEFAULT_WAX_OPTIONS_CHAIN, ...options }; diff --git a/ts/wasm/lib/detailed/chain_api.ts b/ts/wasm/lib/detailed/chain_api.ts index b614dcbe474536bc9523ffa551a2eb0a6c01d6ef..7bfe218ea3e3b0ef54cb07d6b9da517dfca44c79 100644 --- a/ts/wasm/lib/detailed/chain_api.ts +++ b/ts/wasm/lib/detailed/chain_api.ts @@ -1,9 +1,9 @@ import type { IBeekeeperUnlockedWallet } from "@hiveio/beekeeper"; -import type { IHiveChainInterface, IManabarData, ITransaction, IOnlineTransaction, TTimestamp, TPublicKey, TWaxExtended, TBlockHash, TWaxRestExtended, TDeepWaxApiRequestPartial } from "../interfaces"; +import type { IHiveChainInterface, IManabarData, ITransaction, IOnlineTransaction, TTimestamp, TPublicKey, TWaxExtended, TBlockHash, TWaxRestExtended, TDeepWaxApiRequestPartial } from "./interfaces"; import type { MainModule, MapStringUInt16, wax_authority, wax_authorities } from "../wax_module"; import { ApiAuthority, BroadcastTransactionRequest, type ApiAccount, type ApiManabar, type ApiTransaction, type RcAccount } from "./api"; -import { WaxError } from "../errors.js"; +import { WaxError } from "./errors.js"; import { safeWasmCall } from './util/wasm_errors.js'; import { ONE_HUNDRED_PERCENT, WaxBaseApi } from "./base_api.js"; import { HiveApiTypes, HiveRestApiTypes } from "./chain_api_data.js"; diff --git a/ts/wasm/lib/detailed/complex_operations/account_update.ts b/ts/wasm/lib/detailed/complex_operations/account_update.ts index ab3c26948f5cfbdabd1e3326738f44a0f175664d..9b6f16074cce81031116818ef7f51d2f1a655436 100644 --- a/ts/wasm/lib/detailed/complex_operations/account_update.ts +++ b/ts/wasm/lib/detailed/complex_operations/account_update.ts @@ -1,10 +1,10 @@ -import { operation } from "../../protocol.js"; +import { operation } from "../protocol.js"; import type { TAccountName } from "../hive_apps_operations/index.js"; import { OperationBase, IOperationSink } from "../operation_base.js"; -import type { IHiveChainInterface } from "../../interfaces.js"; +import type { IHiveChainInterface } from "../interfaces.js"; import { HiveAccountCategory } from "./role_classes/categories/hive_authority/index.js"; import { RoleCategoryBase } from "./role_classes/role_category_base.js"; -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; // Here are all of the role categories. They are automatically parsed. Add new categories here const AuthorityRoleCategories = [ diff --git a/ts/wasm/lib/detailed/complex_operations/comment.ts b/ts/wasm/lib/detailed/complex_operations/comment.ts index f310a4646d8ee41cba6aed0fd45317402a47d765..05fba77b75c6696990dc71727d52e060564ca00e 100644 --- a/ts/wasm/lib/detailed/complex_operations/comment.ts +++ b/ts/wasm/lib/detailed/complex_operations/comment.ts @@ -1,7 +1,7 @@ import type { TAccountName } from "../hive_apps_operations/factory"; -import { operation, comment, asset } from "../../protocol.js"; +import { operation, comment, asset } from "../protocol.js"; import { beneficiary_route_type, comment_options, type comment_payout_beneficiaries } from "../../proto/comment_options.js"; -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; import { OperationBase, IOperationSink } from "../operation_base.js"; import Long from "long"; import { EAssetName, type WaxBaseApi } from '../base_api.js'; diff --git a/ts/wasm/lib/detailed/complex_operations/recurrent_transfer.ts b/ts/wasm/lib/detailed/complex_operations/recurrent_transfer.ts index 6646ff5aa6cd835d35f47f3099ab88ad360cfa71..c2a7546357c91c11bc60217241f7c99657cdea80 100644 --- a/ts/wasm/lib/detailed/complex_operations/recurrent_transfer.ts +++ b/ts/wasm/lib/detailed/complex_operations/recurrent_transfer.ts @@ -1,8 +1,8 @@ import type { TAccountName } from "../hive_apps_operations/index.js"; -import type { asset, operation } from "../../protocol.js"; +import type { asset, operation } from "../protocol.js"; import { recurrent_transfer } from "../../proto/recurrent_transfer.js"; import { OperationBase, type IOperationSink } from "../operation_base.js"; -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; import { EAssetName, type WaxBaseApi } from "../base_api.js"; export interface IRecurrentTransferBaseData { diff --git a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_authority_definition.ts b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_authority_definition.ts index ae91e27e2bd83ac83f226e2590448147ed2503ea..8bb0940ef33421ce628c5d317936e963e2294311 100644 --- a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_authority_definition.ts +++ b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_authority_definition.ts @@ -1,7 +1,7 @@ import type { TPublicKey } from "@hiveio/beekeeper"; -import { authority } from "../../../../../protocol.js"; +import { authority } from "../../../../protocol.js"; import { TAccountName } from "../../../../hive_apps_operations/index.js"; -import { WaxError } from "../../../../../errors.js"; +import { WaxError } from "../../../../errors.js"; import { LevelBase } from "../../level_base.js"; export class HiveRoleAuthorityDefinition<TRole extends string> extends LevelBase<TRole> { diff --git a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_memo_key.ts b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_memo_key.ts index 65b706e138788ce167771e7c403fc6b5503b3b03..b325a6195f23cb676bef3688c34835e6a40f1786 100644 --- a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_memo_key.ts +++ b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/hive_role_memo_key.ts @@ -1,5 +1,5 @@ import type { TPublicKey } from "@hiveio/beekeeper"; -import { WaxError } from "../../../../../errors.js"; +import { WaxError } from "../../../../errors.js"; import { LevelBase } from "../../level_base.js"; export class HiveRoleMemoKeyDefinition extends LevelBase<"memo"> { diff --git a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/index.ts b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/index.ts index 24fbcd355ea0774a9ae45d46b6c3b20f17c79a04..65a26099acd1d08559f404af24acb6e0386b9249 100644 --- a/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/index.ts +++ b/ts/wasm/lib/detailed/complex_operations/role_classes/categories/hive_authority/index.ts @@ -1,10 +1,10 @@ -import { IHiveChainInterface } from "../../../../../interfaces.js"; -import { authority, operation } from "../../../../../protocol.js"; +import { IHiveChainInterface } from "../../../../interfaces.js"; +import { authority, operation } from "../../../../protocol.js"; import { TAccountName } from "../../../../hive_apps_operations/factory.js"; import { IOperationSink } from "../../../../operation_base.js"; import { RoleCategoryBase } from "../../role_category_base.js"; import { account_update2 } from '../../../../../proto/account_update2.js'; -import { WaxError } from "../../../../../errors.js"; +import { WaxError } from "../../../../errors.js"; import { HiveRoleAuthorityDefinition } from "./hive_role_authority_definition.js"; import { HiveRoleMemoKeyDefinition } from "./hive_role_memo_key.js"; diff --git a/ts/wasm/lib/detailed/complex_operations/role_classes/role_category_base.ts b/ts/wasm/lib/detailed/complex_operations/role_classes/role_category_base.ts index b0121a758a48e2218688719e923a45b659d78b11..39f4c60bd424c6700236ca97f0499b8789b08bbe 100644 --- a/ts/wasm/lib/detailed/complex_operations/role_classes/role_category_base.ts +++ b/ts/wasm/lib/detailed/complex_operations/role_classes/role_category_base.ts @@ -1,5 +1,5 @@ -import { IHiveChainInterface } from "../../../interfaces.js"; -import { operation } from "../../../protocol.js"; +import { IHiveChainInterface } from "../../interfaces.js"; +import { operation } from "../../protocol.js"; import { TAccountName } from "../../hive_apps_operations/index.js"; import { IOperationSink } from "../../operation_base.js"; import { LevelBase } from "./level_base.js"; diff --git a/ts/wasm/lib/detailed/complex_operations/update_proposal.ts b/ts/wasm/lib/detailed/complex_operations/update_proposal.ts index 3cf2aa3e7879e62a5f5e5c4c598fb2101f7163db..368b48c6a638543c4d910f3e6f4dc8bd841ca4b4 100644 --- a/ts/wasm/lib/detailed/complex_operations/update_proposal.ts +++ b/ts/wasm/lib/detailed/complex_operations/update_proposal.ts @@ -1,4 +1,4 @@ -import { asset, operation } from "../../protocol.js"; +import { asset, operation } from "../protocol.js"; import type { TAccountName } from "../hive_apps_operations/index.js"; import { update_proposal } from "../../proto/update_proposal.js"; import { OperationBase, IOperationSink } from "../operation_base.js"; diff --git a/ts/wasm/lib/detailed/complex_operations/witness_set_properties.ts b/ts/wasm/lib/detailed/complex_operations/witness_set_properties.ts index aa4cc786e83a8862d0916fe581713de1636b1d68..80d17ecd8cac08f5b353ed527706512d8d0fd83f 100644 --- a/ts/wasm/lib/detailed/complex_operations/witness_set_properties.ts +++ b/ts/wasm/lib/detailed/complex_operations/witness_set_properties.ts @@ -1,4 +1,4 @@ -import { asset, operation, witness_set_properties } from "../../protocol.js"; +import { asset, operation, witness_set_properties } from "../protocol.js"; import { OperationBase, IOperationSink } from "../operation_base.js"; import { type witness_set_properties_data } from "../../wax_module.js"; import { type TPublicKey } from "@hiveio/beekeeper"; diff --git a/ts/wasm/lib/detailed/encryption_visitor.ts b/ts/wasm/lib/detailed/encryption_visitor.ts index dab8dbbc472e7ad050d68258b0a4d5973c34e810..38c10771d590d886f94c553c7d903183d3fff7d9 100644 --- a/ts/wasm/lib/detailed/encryption_visitor.ts +++ b/ts/wasm/lib/detailed/encryption_visitor.ts @@ -1,5 +1,5 @@ -import { comment, custom_json, recurrent_transfer, transfer, transfer_from_savings, transfer_to_savings } from "../protocol.js"; -import { OperationVisitor } from "../visitor.js"; +import { comment, custom_json, recurrent_transfer, transfer, transfer_from_savings, transfer_to_savings } from "./protocol.js"; +import { OperationVisitor } from "./visitor.js"; export type TEncryptFn = (data: string) => string; diff --git a/ts/wasm/lib/errors.ts b/ts/wasm/lib/detailed/errors.ts similarity index 91% rename from ts/wasm/lib/errors.ts rename to ts/wasm/lib/detailed/errors.ts index 9987464f83c043e8405a43a17c8755425cbca8ab..b60757084a50fba16d3e78c67e803b20f816adf1 100644 --- a/ts/wasm/lib/errors.ts +++ b/ts/wasm/lib/detailed/errors.ts @@ -1,4 +1,4 @@ -import { TAccountName } from "./detailed"; +import type { TAccountName } from "./hive_apps_operations/index.js"; export class WaxError extends Error {} diff --git a/ts/wasm/lib/detailed/formatters/default_formatters.ts b/ts/wasm/lib/detailed/formatters/default_formatters.ts index 8c2c62e2296c1c81d346015bb8d026d0b7ec6d29..45c439754a8dfff79c13a807d8a6495e9eec2c61 100644 --- a/ts/wasm/lib/detailed/formatters/default_formatters.ts +++ b/ts/wasm/lib/detailed/formatters/default_formatters.ts @@ -1,7 +1,7 @@ import type { ApiTransaction, NaiAsset } from "../api"; import type { DeepReadonly, IFormatFunctionArguments, IWaxCustomFormatter, IWaxFormatterOptions } from "./types"; -import type { IWaxBaseInterface } from "../../interfaces"; -import type { custom_json, transaction, witness_set_properties } from "../../protocol"; +import type { IWaxBaseInterface } from "../interfaces"; +import type { custom_json, transaction, witness_set_properties } from "../protocol.js"; import { WaxFormattable } from "../decorators/formatters"; import { CommunityOperationData, ECommunityOperationActions, EFollowActions, EFollowOperationActions, FollowOperationData, ReblogOperationData, ResourceCreditsOperationData } from "../hive_apps_operations"; diff --git a/ts/wasm/lib/detailed/formatters/types.ts b/ts/wasm/lib/detailed/formatters/types.ts index 554064f4f86bd2f29d96b314edc987e1528a96f0..2f8d98725e6dc7e5377aa82e31df5d6e359e8a23 100644 --- a/ts/wasm/lib/detailed/formatters/types.ts +++ b/ts/wasm/lib/detailed/formatters/types.ts @@ -1,7 +1,7 @@ -import type { IWaxBaseInterface } from "../../interfaces"; +import type { IWaxBaseInterface } from "../interfaces"; import type { WaxFormattable } from "../decorators/formatters"; import type Long from "long"; -import type { ITransaction } from "../../interfaces"; +import type { ITransaction } from "../interfaces"; export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; diff --git a/ts/wasm/lib/detailed/formatters/waxify.ts b/ts/wasm/lib/detailed/formatters/waxify.ts index 79e93c44abe2c1476dd1b9d50d4d5f54aa159730..601d9138d2f31c9696b4e478cb49e070fa25d42e 100644 --- a/ts/wasm/lib/detailed/formatters/waxify.ts +++ b/ts/wasm/lib/detailed/formatters/waxify.ts @@ -1,5 +1,5 @@ import type { TWaxCustomFormatterConstructor, IWaxFormatterOptions, TFormatFunction, IWaxExtendableFormatter, DeepPartial } from "./types"; -import type { IWaxBaseInterface } from "../../interfaces"; +import type { IWaxBaseInterface } from "../interfaces"; import { WaxFormatterBase } from "./base"; import { DefaultFormatters } from "./default_formatters"; diff --git a/ts/wasm/lib/detailed/healthchecker/errors.ts b/ts/wasm/lib/detailed/healthchecker/errors.ts index 49dfd7d441b94a1938e381c505f95b39f9e60fd7..2b1abcb835264b344b31f7efc609e728e773569b 100644 --- a/ts/wasm/lib/detailed/healthchecker/errors.ts +++ b/ts/wasm/lib/detailed/healthchecker/errors.ts @@ -1,4 +1,4 @@ -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; import { IDetailedResponseData, type IRequestOptions } from "../util/request_helper.js"; import { IHiveEndpoint } from "./endpoint.js"; diff --git a/ts/wasm/lib/detailed/healthchecker/healthchecker.ts b/ts/wasm/lib/detailed/healthchecker/healthchecker.ts index 58af4d910da8bbae7c3e85de9fb3b0c0f7c3f334..a647bce4411511ea7efd8c4e0f3fa4ccbf3ea837 100644 --- a/ts/wasm/lib/detailed/healthchecker/healthchecker.ts +++ b/ts/wasm/lib/detailed/healthchecker/healthchecker.ts @@ -1,5 +1,5 @@ import EventEmitter from "events"; -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; import { WaxHealthCheckerError, WaxHealthCheckerValidatorFailedError } from "./errors.js"; import { TRestChainCaller, type TRequestInterceptor, type TResponseInterceptor } from "../util/api_caller.js"; import { HiveEndpoint, type IHiveEndpointDataBase, type IHiveEndpoint, type INewUpDownEvent, type THiveEndpointData, type TErrorReason } from "./endpoint.js"; diff --git a/ts/wasm/lib/detailed/hive_apps_operations/factory.ts b/ts/wasm/lib/detailed/hive_apps_operations/factory.ts index dc79c52a088eda68a7703c206e34f60cad552313..0f5bcd3e782f5d9d6b75b2f6fc39db6c6bb07690 100644 --- a/ts/wasm/lib/detailed/hive_apps_operations/factory.ts +++ b/ts/wasm/lib/detailed/hive_apps_operations/factory.ts @@ -1,7 +1,7 @@ -import { WaxError } from '../../errors.js'; +import { WaxError } from '../errors.js'; import Long from 'long'; import { OperationBase, type IOperationSink } from '../operation_base.js'; -import { type operation } from '../../protocol.js'; +import { type operation } from '../protocol.js'; export type TAccountName = string; diff --git a/ts/wasm/lib/detailed/hive_apps_operations/follow.ts b/ts/wasm/lib/detailed/hive_apps_operations/follow.ts index da9ac933764f5710110784c5aed4b5918192135b..0082ae399f30cc11373d0fe86946b0a7e06dde65 100644 --- a/ts/wasm/lib/detailed/hive_apps_operations/follow.ts +++ b/ts/wasm/lib/detailed/hive_apps_operations/follow.ts @@ -1,5 +1,5 @@ import { HiveAppsOperation, TAccountName } from './factory.js'; -import { WaxError } from '../../errors.js'; +import { WaxError } from '../errors.js'; export class ReblogOperationData { public constructor( diff --git a/ts/wasm/lib/detailed/index.ts b/ts/wasm/lib/detailed/index.ts index c567c7fc2b2bf16bbd2e7de279d80bcb14ccf358..d9d8db0dee172c708c36f9e4d09e554b1bcf8db0 100644 --- a/ts/wasm/lib/detailed/index.ts +++ b/ts/wasm/lib/detailed/index.ts @@ -1,5 +1,5 @@ -export { createWaxFoundation } from "./base.js"; -export { createHiveChain } from "./chain.js"; +import "reflect-metadata"; + export { EAssetName } from "./base_api.js"; export { EManabarType } from './chain_api.js'; export * from './api/index.js'; @@ -11,3 +11,14 @@ export * from './healthchecker/index.js'; export * from "./encryption_visitor.js"; export { IOperationSink, OperationBase } from './operation_base.js'; export { TTransactionRequiredAuthorities } from './transaction.js'; + +export { DEFAULT_WAX_OPTIONS_CHAIN, createHiveChain } from "./chain.js"; +export { DEFAULT_WAX_OPTIONS, createWaxFoundation } from "./base.js"; + +export * from './interfaces.js'; + +// Protobuf definitions +export * from './protocol.js'; +export * from "./visitor.js"; + +export * from "./errors.js"; diff --git a/ts/wasm/lib/interfaces.ts b/ts/wasm/lib/detailed/interfaces.ts similarity index 98% rename from ts/wasm/lib/interfaces.ts rename to ts/wasm/lib/detailed/interfaces.ts index c9992a865ccc08bc3dd326ed890ec0d11338e9ac..3b6b7a9e1f8353996548e2b9f2d973602ef22ce7 100644 --- a/ts/wasm/lib/interfaces.ts +++ b/ts/wasm/lib/detailed/interfaces.ts @@ -4,17 +4,17 @@ export type { TPublicKey } from "@hiveio/beekeeper"; // @ts-expect-error ts(6133) Type WaxError is used in JSDoc import type { WaxError } from "./errors"; import type { operation, transaction } from "./protocol"; -import type { EManabarType } from "./detailed/chain_api"; -import type { HiveApiTypes, HiveRestApiTypes } from "./detailed/chain_api_data"; -import type { IWaxExtendableFormatter } from "./detailed/formatters/types"; -import type { ApiOperation, ApiTransaction, NaiAsset } from "./detailed"; -import type { EAssetName } from "./detailed/base_api"; -import type { TTransactionRequiredAuthorities } from './detailed'; +import type { EManabarType } from "./chain_api"; +import type { HiveApiTypes, HiveRestApiTypes } from "./chain_api_data"; +import type { IWaxExtendableFormatter } from "./formatters/types"; +import type { ApiOperation, ApiTransaction, NaiAsset } from "."; +import type { EAssetName } from "./base_api"; +import type { TTransactionRequiredAuthorities } from '.'; import type Long from "long"; -import type { OperationBase } from "./detailed/operation_base"; -import type { BlogPostOperation, AccountAuthorityUpdateOperation, ReplyOperation, DefineRecurrentTransferOperation, RecurrentTransferRemovalOperation, UpdateProposalOperation, WitnessSetPropertiesOperation } from "./detailed/complex_operations"; -import type { ResourceCreditsOperation, CommunityOperation, FollowOperation, TAccountName } from './detailed/hive_apps_operations'; -import type { IChainConfig } from "./wax_module"; +import type { OperationBase } from "./operation_base"; +import type { BlogPostOperation, AccountAuthorityUpdateOperation, ReplyOperation, DefineRecurrentTransferOperation, RecurrentTransferRemovalOperation, UpdateProposalOperation, WitnessSetPropertiesOperation } from "./complex_operations"; +import type { ResourceCreditsOperation, CommunityOperation, FollowOperation, TAccountName } from './hive_apps_operations'; +import type { IChainConfig } from "../wax_module"; export type TNaiAssetConvertible = number | string | BigInt | Long; diff --git a/ts/wasm/lib/detailed/online_transaction.ts b/ts/wasm/lib/detailed/online_transaction.ts index 600d3ebe9a2c42559434439547beb8382b1ce46b..8d8cb4969c0989314483c340ad46b48eccb996fe 100644 --- a/ts/wasm/lib/detailed/online_transaction.ts +++ b/ts/wasm/lib/detailed/online_transaction.ts @@ -2,11 +2,11 @@ import { DEFAULT_WAX_OPTIONS } from "./base"; import { HiveChainApi, TChainReferenceData } from "./chain_api"; import { OperationBase } from "./operation_base"; import { Transaction } from "./transaction"; -import type { authority, account_create, account_create_with_delegation, comment, create_claimed_account, recurrent_transfer, transfer, transfer_from_savings, transfer_to_savings, account_update2, account_update } from "../protocol"; -import { OperationVisitor } from "../visitor"; +import type { authority, account_create, account_create_with_delegation, comment, create_claimed_account, recurrent_transfer, transfer, transfer_from_savings, transfer_to_savings, account_update2, account_update } from "./protocol"; +import { OperationVisitor } from "./visitor"; -import { IOnlineTransaction, TTimestamp } from "../interfaces"; -import { operation } from "../protocol"; +import { IOnlineTransaction, TTimestamp } from "./interfaces"; +import { operation } from "./protocol"; import { TAccountName } from "./hive_apps_operations"; type TAuthorityHolder = { diff --git a/ts/wasm/lib/detailed/operation_base.ts b/ts/wasm/lib/detailed/operation_base.ts index f4e75f98ab669514e6eac33f8897bf4b2b0d3370..b172b7c99d53311977548c7a5bc9fe517101b54b 100644 --- a/ts/wasm/lib/detailed/operation_base.ts +++ b/ts/wasm/lib/detailed/operation_base.ts @@ -1,5 +1,5 @@ -import { operation } from '../protocol'; -import type { IWaxBaseInterface } from '../interfaces'; +import { operation } from './protocol'; +import type { IWaxBaseInterface } from './interfaces'; export interface IOperationSink { api: IWaxBaseInterface; diff --git a/ts/wasm/lib/detailed/protocol.ts b/ts/wasm/lib/detailed/protocol.ts new file mode 100644 index 0000000000000000000000000000000000000000..bd5705235824e8edbd5dcac3f65117600c8f0753 --- /dev/null +++ b/ts/wasm/lib/detailed/protocol.ts @@ -0,0 +1,104 @@ +// Exports only the protobuf definitions + +// Transaction and general-operation types +export { transaction } from "../proto/transaction.js"; +export { operation } from "../proto/operation.js"; + +// Other types +export { asset } from "../proto/asset.js"; +export { authority } from "../proto/authority.js"; +export { future_extensions, void_t } from "../proto/future_extensions.js"; +export { legacy_chain_properties } from "../proto/legacy_chain_properties.js"; +export { price } from "../proto/price.js"; + +// Operations +export { account_create_with_delegation } from "../proto/account_create_with_delegation.js"; +export { account_create } from "../proto/account_create.js"; +export { account_created } from "../proto/account_created.js"; +export { account_update } from "../proto/account_update.js"; +export { account_update2 } from "../proto/account_update2.js"; +export { account_witness_proxy } from "../proto/account_witness_proxy.js"; +export { account_witness_vote } from "../proto/account_witness_vote.js"; +export { author_reward } from "../proto/author_reward.js"; +export { cancel_transfer_from_savings } from "../proto/cancel_transfer_from_savings.js"; +export { change_recovery_account } from "../proto/change_recovery_account.js"; +export { changed_recovery_account } from "../proto/changed_recovery_account.js"; +export { claim_account } from "../proto/claim_account.js"; +export { claim_reward_balance } from "../proto/claim_reward_balance.js"; +export { clear_null_account_balance } from "../proto/clear_null_account_balance.js"; +export { collateralized_convert_immediate_conversion } from "../proto/collateralized_convert_immediate_conversion.js"; +export { collateralized_convert } from "../proto/collateralized_convert.js"; +export { comment_benefactor_reward } from "../proto/comment_benefactor_reward.js"; +export { comment_options, beneficiary_route_type, comment_options_extension, comment_payout_beneficiaries } from "../proto/comment_options.js"; +export { comment_payout_update } from "../proto/comment_payout_update.js"; +export { comment_reward } from "../proto/comment_reward.js"; +export { comment } from "../proto/comment.js"; +export { consolidate_treasury_balance } from "../proto/consolidate_treasury_balance.js"; +export { convert } from "../proto/convert.js"; +export { create_claimed_account } from "../proto/create_claimed_account.js"; +export { create_proposal } from "../proto/create_proposal.js"; +export { curation_reward } from "../proto/curation_reward.js"; +export { custom_json } from "../proto/custom_json.js"; +export { custom } from "../proto/custom.js"; +export { decline_voting_rights } from "../proto/decline_voting_rights.js"; +export { declined_voting_rights } from "../proto/declined_voting_rights.js"; +export { delayed_voting } from "../proto/delayed_voting.js"; +export { delegate_vesting_shares } from "../proto/delegate_vesting_shares.js"; +export { delete_comment } from "../proto/delete_comment.js"; +export { dhf_conversion } from "../proto/dhf_conversion.js"; +export { dhf_funding } from "../proto/dhf_funding.js"; +export { effective_comment_vote } from "../proto/effective_comment_vote.js"; +export { escrow_approve } from "../proto/escrow_approve.js"; +export { escrow_approved } from "../proto/escrow_approved.js"; +export { escrow_dispute } from "../proto/escrow_dispute.js"; +export { escrow_rejected } from "../proto/escrow_rejected.js"; +export { escrow_release } from "../proto/escrow_release.js"; +export { escrow_transfer } from "../proto/escrow_transfer.js"; +export { expired_account_notification } from "../proto/expired_account_notification.js"; +export { failed_recurrent_transfer } from "../proto/failed_recurrent_transfer.js"; +export { feed_publish } from "../proto/feed_publish.js"; +export { fill_collateralized_convert_request } from "../proto/fill_collateralized_convert_request.js"; +export { fill_convert_request } from "../proto/fill_convert_request.js"; +export { fill_order } from "../proto/fill_order.js"; +export { fill_recurrent_transfer } from "../proto/fill_recurrent_transfer.js"; +export { fill_transfer_from_savings } from "../proto/fill_transfer_from_savings.js"; +export { fill_vesting_withdraw } from "../proto/fill_vesting_withdraw.js"; +export { hardfork_hive_restore } from "../proto/hardfork_hive_restore.js"; +export { hardfork_hive } from "../proto/hardfork_hive.js"; +export { hardfork } from "../proto/hardfork.js"; +export { ineffective_delete_comment } from "../proto/ineffective_delete_comment.js"; +export { interest } from "../proto/interest.js"; +export { limit_order_cancel } from "../proto/limit_order_cancel.js"; +export { limit_order_cancelled } from "../proto/limit_order_cancelled.js"; +export { limit_order_create } from "../proto/limit_order_create.js"; +export { limit_order_create2 } from "../proto/limit_order_create2.js"; +export { liquidity_reward } from "../proto/liquidity_reward.js"; +export { pow_reward } from "../proto/pow_reward.js"; +export { pow, pow_work } from "../proto/pow.js"; +export { pow2, pow2_work, equihash_pow, pow2_pow } from "../proto/pow2.js"; +export { producer_missed } from "../proto/producer_missed.js"; +export { producer_reward } from "../proto/producer_reward.js"; +export { proposal_fee } from "../proto/proposal_fee.js"; +export { proposal_pay } from "../proto/proposal_pay.js"; +export { proxy_cleared } from "../proto/proxy_cleared.js"; +export { recover_account } from "../proto/recover_account.js"; +export { recurrent_transfer, recurrent_transfer_extension, recurrent_transfer_pair_id } from "../proto/recurrent_transfer.js"; +export { remove_proposal } from "../proto/remove_proposal.js"; +export { request_account_recovery } from "../proto/request_account_recovery.js"; +export { return_vesting_delegation } from "../proto/return_vesting_delegation.js"; +export { set_withdraw_vesting_route } from "../proto/set_withdraw_vesting_route.js"; +export { shutdown_witness } from "../proto/shutdown_witness.js"; +export { system_warning } from "../proto/system_warning.js"; +export { transfer_from_savings } from "../proto/transfer_from_savings.js"; +export { transfer_to_savings } from "../proto/transfer_to_savings.js"; +export { transfer_to_vesting_completed } from "../proto/transfer_to_vesting_completed.js"; +export { transfer_to_vesting } from "../proto/transfer_to_vesting.js"; +export { transfer } from "../proto/transfer.js"; +export { update_proposal_votes } from "../proto/update_proposal_votes.js"; +export { update_proposal, update_proposal_extension, update_proposal_end_date } from "../proto/update_proposal.js"; +export { vesting_shares_split } from "../proto/vesting_shares_split.js"; +export { vote } from "../proto/vote.js"; +export { withdraw_vesting } from "../proto/withdraw_vesting.js"; +export { witness_block_approve } from "../proto/witness_block_approve.js"; +export { witness_set_properties } from "../proto/witness_set_properties.js"; +export { witness_update } from "../proto/witness_update.js"; diff --git a/ts/wasm/lib/detailed/transaction.ts b/ts/wasm/lib/detailed/transaction.ts index 86152d8b3866f29b152a6b50d422c35f67606a75..ddee1d4510f1a653726806abd8a71f2ffa8e7b0b 100644 --- a/ts/wasm/lib/detailed/transaction.ts +++ b/ts/wasm/lib/detailed/transaction.ts @@ -1,12 +1,12 @@ import type { IBeekeeperUnlockedWallet, TPublicKey } from "@hiveio/beekeeper"; -import type { IBinaryViewNode, IBinaryViewOutputData, IEncryptingTransaction, ITransaction, TBlockHash, THexString, TTimestamp, TTransactionId } from "../interfaces"; +import type { IBinaryViewNode, IBinaryViewOutputData, IEncryptingTransaction, ITransaction, TBlockHash, THexString, TTimestamp, TTransactionId } from "./interfaces"; -import { authority, transaction, type operation } from "../protocol.js"; +import { authority, transaction, type operation } from "./protocol.js"; import { WaxBaseApi } from "./base_api.js"; import { calculateExpiration } from "./util/expiration_parser.js"; import { OperationBase } from "./operation_base"; import { EEncryptionType, EncryptionVisitor } from "./encryption_visitor.js"; -import { WaxError } from "../errors.js"; +import { WaxError } from "./errors.js"; import type { ApiTransaction } from "./api"; import { safeWasmCall } from "./util/wasm_errors"; import type { TAccountName } from "./hive_apps_operations"; diff --git a/ts/wasm/lib/detailed/util/api_caller.ts b/ts/wasm/lib/detailed/util/api_caller.ts index e12bc06ecdf5382cc4b4e34ffbb350e0e3d4baa1..2146ea720c1fd5b06299b119edbce1266e83594d 100644 --- a/ts/wasm/lib/detailed/util/api_caller.ts +++ b/ts/wasm/lib/detailed/util/api_caller.ts @@ -1,7 +1,7 @@ import { plainToInstance } from "class-transformer"; import { validateOrReject } from "class-validator"; -import { WaxChainApiError } from "../../../lib/errors"; -import { type TWaxApiRequest } from "../../../lib/interfaces"; +import { WaxChainApiError } from "../errors"; +import { type TWaxApiRequest } from "../interfaces"; import { extractBracedStrings } from "../rest-api/utils.js"; import { objectToQueryString } from "./query_string.js"; import { type IDetailedResponseData, type IRequestOptions, RequestHelper } from "./request_helper.js"; diff --git a/ts/wasm/lib/detailed/util/asset_util.ts b/ts/wasm/lib/detailed/util/asset_util.ts index 0bf5e83753e7f8f0a59d95fd61ddca80f051c289..85b9646690ca3709b556d9c061c2eab7db108a0d 100644 --- a/ts/wasm/lib/detailed/util/asset_util.ts +++ b/ts/wasm/lib/detailed/util/asset_util.ts @@ -1,4 +1,4 @@ -import { type TNaiAssetSource } from "../../interfaces.js"; +import { type TNaiAssetSource } from "../interfaces.js"; export const isNaiAsset = (asset: TNaiAssetSource): boolean => { diff --git a/ts/wasm/lib/detailed/util/expiration_parser.ts b/ts/wasm/lib/detailed/util/expiration_parser.ts index 40f0f886adac51d8355bf5de90b79062041972ee..0d3923e1bebdd4039a2c9eef793ce5d829343fb2 100644 --- a/ts/wasm/lib/detailed/util/expiration_parser.ts +++ b/ts/wasm/lib/detailed/util/expiration_parser.ts @@ -1,4 +1,4 @@ -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; export const dateFromString = (dateTimeString: string): Date => { if (dateTimeString.endsWith('Z')) diff --git a/ts/wasm/lib/detailed/util/iterate.ts b/ts/wasm/lib/detailed/util/iterate.ts index 9ff62f9f46f63665aa6f64b5452b1053b815c8fa..3e0061557205b7101b5aab403b0b5753ad3078a3 100644 --- a/ts/wasm/lib/detailed/util/iterate.ts +++ b/ts/wasm/lib/detailed/util/iterate.ts @@ -1,4 +1,4 @@ -import { type DeepPartial } from '../../proto/claim_reward_balance'; +import { type DeepPartial } from '../formatters/types.js'; export const iterate = <T extends Record<string, any>>(source: DeepPartial<T>, target: T): DeepPartial<T> => { if (typeof target !== "object") @@ -17,7 +17,7 @@ export const iterate = <T extends Record<string, any>>(source: DeepPartial<T>, t if (source[itKey] === undefined) source[itKey] = {} as any; - iterate(source[itKey] as object, target[itKey]); + iterate(source[itKey] as any, target[itKey]); } } diff --git a/ts/wasm/lib/detailed/util/proto_type_utils.ts b/ts/wasm/lib/detailed/util/proto_type_utils.ts index 3a2edc057bdb05dd439c3435131dc661bcaa0d67..ad2728fbe4b8f5c89c4a7d2ea1b592746066ab54 100644 --- a/ts/wasm/lib/detailed/util/proto_type_utils.ts +++ b/ts/wasm/lib/detailed/util/proto_type_utils.ts @@ -1,4 +1,4 @@ -import { operation, transaction } from "../../protocol"; +import { operation, transaction } from "../protocol"; import type { ApiOperation, ApiTransaction } from "../api"; /** diff --git a/ts/wasm/lib/detailed/util/wasm_errors.ts b/ts/wasm/lib/detailed/util/wasm_errors.ts index a2a01078096064d3254cf0563a99fdd99cc75c6f..43ae0421cba85d5be0f4e43f191770af61bfffe0 100644 --- a/ts/wasm/lib/detailed/util/wasm_errors.ts +++ b/ts/wasm/lib/detailed/util/wasm_errors.ts @@ -1,4 +1,4 @@ -import { WaxError } from "../../errors.js"; +import { WaxError } from "../errors.js"; export type TWaxStdExceptionData = { msg: string; @@ -10,7 +10,7 @@ export type TCustomExceptionHandlerFunction = (error: TWaxStdExceptionData) => v const handleWaxStdException = (e: any, customExceptionHandler?: TCustomExceptionHandlerFunction): void => { /// unfortunately we can't use instanceof FinalExceptionClass here (probably because of Playwright's context isolation) - if(e instanceof Object && "message" in e) { + if(typeof e === "object" && e && "message" in e) { const eObject: {message: string} = e as {message: string}; /// Warning: toString() is necessary here, because otherwise string methods do not work const msg = eObject.message.toString(); @@ -28,7 +28,12 @@ const handleWaxStdException = (e: any, customExceptionHandler?: TCustomException customExceptionHandler(waxStdExceptionData); - throw new WaxError(`Error during Wasm call: ${msg}`); + const error = new WaxError(`Error during Wasm call: ${msg}`); + + if ("stack" in e) + throw Object.assign(error, { stack: e.stack }); + + throw error; } } @@ -48,7 +53,13 @@ export const safeWasmCall = <T extends () => any>(fn: T, customExceptionHandler? } catch (e) { handleWaxStdException(e, customExceptionHandler); //console.log("Non-typed Error during Wasm call...", e); - throw new WaxError(`Non-typed Error during Wasm call: ${e}`); // it should be inside handleWaxStdException but compiler complains about missing retval + + const error = new WaxError(`Non-typed Error during Wasm call: ${e}`); + + if (typeof e === "object" && e && "stack" in e) + throw Object.assign(error, { stack: e.stack }); + + throw error; // it should be inside handleWaxStdException but compiler complains about missing retval } }; @@ -58,6 +69,12 @@ export const safeAsyncWasmCall = async <T extends () => any>(fn: T, customExcept } catch (e) { handleWaxStdException(e, customExceptionHandler); //console.log("Non-typed Error during Wasm call...", e); - throw new WaxError(`Non-typed Error during Wasm call: ${e}`); // it should be inside handleWaxStdException but compiler complains about missing retval + + const error = new WaxError(`Non-typed Error during Wasm call: ${e}`); + + if (typeof e === "object" && e && "stack" in e) + throw Object.assign(error, { stack: e.stack }); + + throw error; // it should be inside handleWaxStdException but compiler complains about missing retval } }; diff --git a/ts/wasm/lib/visitor.ts b/ts/wasm/lib/detailed/visitor.ts similarity index 100% rename from ts/wasm/lib/visitor.ts rename to ts/wasm/lib/detailed/visitor.ts diff --git a/ts/wasm/lib/index.ts b/ts/wasm/lib/index.ts index 8f0bfb9a78ddc6f4b9e948814f034bae93718145..c7244510d644fabb0f0518e7b9ffc6101464e6af 100644 --- a/ts/wasm/lib/index.ts +++ b/ts/wasm/lib/index.ts @@ -1,12 +1,32 @@ -import "reflect-metadata"; +export * from "./detailed/index.js"; -// Protobuf definitions -export * from './protocol.js'; +import { createHiveChain as constructHiveChainWithWasm, createWaxFoundation as constructWaxFoundationWithWasm, type IWaxOptions, type IWaxOptionsChain, type IHiveChainInterface, type IWaxBaseInterface } from "./detailed/index.js"; -// Helper definitions -export * from './visitor.js'; +// During bundle - this module will be replaced with the actual wasm module based on your environment +import MainModuleFunction from "wasm/lib/wax_module.js"; -export * from "./detailed/index.js"; +/** + * Creates a Wax Hive chain instance + * + * @param {?Partial<IWaxOptionsChain>} options wax options + * + * @returns {Promise<IHiveChainInterface>} Wax Hive chain API Instance + * + * @throws {WaxError} on any Wax API-related error + */ +export const createHiveChain = (options: Partial<IWaxOptionsChain> = {}): Promise<IHiveChainInterface> => { + return constructHiveChainWithWasm(MainModuleFunction, {}, options); +}; -export * from "./interfaces.js"; -export * from "./errors.js"; +/** + * Creates a Wax Hive base instance + * + * @param {?Partial<IWaxOptions>} options wax options + * + * @returns {Promise<IWaxBaseInterface>} Wax Hive Base API Instance + * + * @throws {WaxError} on any Wax API-related error + */ +export const createWaxFoundation = (options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => { + return constructWaxFoundationWithWasm(MainModuleFunction, {}, options); +}; diff --git a/ts/wasm/lib/protocol.ts b/ts/wasm/lib/protocol.ts deleted file mode 100644 index 55d9253765703cd57b7d9654465f6556c80a5bea..0000000000000000000000000000000000000000 --- a/ts/wasm/lib/protocol.ts +++ /dev/null @@ -1,104 +0,0 @@ -// Exports only the protobuf definitions - -// Transaction and general-operation types -export { transaction } from "./proto/transaction.js"; -export { operation } from "./proto/operation.js"; - -// Other types -export { asset } from "./proto/asset.js"; -export { authority } from "./proto/authority.js"; -export { future_extensions, void_t } from "./proto/future_extensions.js"; -export { legacy_chain_properties } from "./proto/legacy_chain_properties.js"; -export { price } from "./proto/price.js"; - -// Operations -export { account_create_with_delegation } from "./proto/account_create_with_delegation.js"; -export { account_create } from "./proto/account_create.js"; -export { account_created } from "./proto/account_created.js"; -export { account_update } from "./proto/account_update.js"; -export { account_update2 } from "./proto/account_update2.js"; -export { account_witness_proxy } from "./proto/account_witness_proxy.js"; -export { account_witness_vote } from "./proto/account_witness_vote.js"; -export { author_reward } from "./proto/author_reward.js"; -export { cancel_transfer_from_savings } from "./proto/cancel_transfer_from_savings.js"; -export { change_recovery_account } from "./proto/change_recovery_account.js"; -export { changed_recovery_account } from "./proto/changed_recovery_account.js"; -export { claim_account } from "./proto/claim_account.js"; -export { claim_reward_balance } from "./proto/claim_reward_balance.js"; -export { clear_null_account_balance } from "./proto/clear_null_account_balance.js"; -export { collateralized_convert_immediate_conversion } from "./proto/collateralized_convert_immediate_conversion.js"; -export { collateralized_convert } from "./proto/collateralized_convert.js"; -export { comment_benefactor_reward } from "./proto/comment_benefactor_reward.js"; -export { comment_options, beneficiary_route_type, comment_options_extension, comment_payout_beneficiaries } from "./proto/comment_options.js"; -export { comment_payout_update } from "./proto/comment_payout_update.js"; -export { comment_reward } from "./proto/comment_reward.js"; -export { comment } from "./proto/comment.js"; -export { consolidate_treasury_balance } from "./proto/consolidate_treasury_balance.js"; -export { convert } from "./proto/convert.js"; -export { create_claimed_account } from "./proto/create_claimed_account.js"; -export { create_proposal } from "./proto/create_proposal.js"; -export { curation_reward } from "./proto/curation_reward.js"; -export { custom_json } from "./proto/custom_json.js"; -export { custom } from "./proto/custom.js"; -export { decline_voting_rights } from "./proto/decline_voting_rights.js"; -export { declined_voting_rights } from "./proto/declined_voting_rights.js"; -export { delayed_voting } from "./proto/delayed_voting.js"; -export { delegate_vesting_shares } from "./proto/delegate_vesting_shares.js"; -export { delete_comment } from "./proto/delete_comment.js"; -export { dhf_conversion } from "./proto/dhf_conversion.js"; -export { dhf_funding } from "./proto/dhf_funding.js"; -export { effective_comment_vote } from "./proto/effective_comment_vote.js"; -export { escrow_approve } from "./proto/escrow_approve.js"; -export { escrow_approved } from "./proto/escrow_approved.js"; -export { escrow_dispute } from "./proto/escrow_dispute.js"; -export { escrow_rejected } from "./proto/escrow_rejected.js"; -export { escrow_release } from "./proto/escrow_release.js"; -export { escrow_transfer } from "./proto/escrow_transfer.js"; -export { expired_account_notification } from "./proto/expired_account_notification.js"; -export { failed_recurrent_transfer } from "./proto/failed_recurrent_transfer.js"; -export { feed_publish } from "./proto/feed_publish.js"; -export { fill_collateralized_convert_request } from "./proto/fill_collateralized_convert_request.js"; -export { fill_convert_request } from "./proto/fill_convert_request.js"; -export { fill_order } from "./proto/fill_order.js"; -export { fill_recurrent_transfer } from "./proto/fill_recurrent_transfer.js"; -export { fill_transfer_from_savings } from "./proto/fill_transfer_from_savings.js"; -export { fill_vesting_withdraw } from "./proto/fill_vesting_withdraw.js"; -export { hardfork_hive_restore } from "./proto/hardfork_hive_restore.js"; -export { hardfork_hive } from "./proto/hardfork_hive.js"; -export { hardfork } from "./proto/hardfork.js"; -export { ineffective_delete_comment } from "./proto/ineffective_delete_comment.js"; -export { interest } from "./proto/interest.js"; -export { limit_order_cancel } from "./proto/limit_order_cancel.js"; -export { limit_order_cancelled } from "./proto/limit_order_cancelled.js"; -export { limit_order_create } from "./proto/limit_order_create.js"; -export { limit_order_create2 } from "./proto/limit_order_create2.js"; -export { liquidity_reward } from "./proto/liquidity_reward.js"; -export { pow_reward } from "./proto/pow_reward.js"; -export { pow, pow_work } from "./proto/pow.js"; -export { pow2, pow2_work, equihash_pow, pow2_pow } from "./proto/pow2.js"; -export { producer_missed } from "./proto/producer_missed.js"; -export { producer_reward } from "./proto/producer_reward.js"; -export { proposal_fee } from "./proto/proposal_fee.js"; -export { proposal_pay } from "./proto/proposal_pay.js"; -export { proxy_cleared } from "./proto/proxy_cleared.js"; -export { recover_account } from "./proto/recover_account.js"; -export { recurrent_transfer, recurrent_transfer_extension, recurrent_transfer_pair_id } from "./proto/recurrent_transfer.js"; -export { remove_proposal } from "./proto/remove_proposal.js"; -export { request_account_recovery } from "./proto/request_account_recovery.js"; -export { return_vesting_delegation } from "./proto/return_vesting_delegation.js"; -export { set_withdraw_vesting_route } from "./proto/set_withdraw_vesting_route.js"; -export { shutdown_witness } from "./proto/shutdown_witness.js"; -export { system_warning } from "./proto/system_warning.js"; -export { transfer_from_savings } from "./proto/transfer_from_savings.js"; -export { transfer_to_savings } from "./proto/transfer_to_savings.js"; -export { transfer_to_vesting_completed } from "./proto/transfer_to_vesting_completed.js"; -export { transfer_to_vesting } from "./proto/transfer_to_vesting.js"; -export { transfer } from "./proto/transfer.js"; -export { update_proposal_votes } from "./proto/update_proposal_votes.js"; -export { update_proposal, update_proposal_extension, update_proposal_end_date } from "./proto/update_proposal.js"; -export { vesting_shares_split } from "./proto/vesting_shares_split.js"; -export { vote } from "./proto/vote.js"; -export { withdraw_vesting } from "./proto/withdraw_vesting.js"; -export { witness_block_approve } from "./proto/witness_block_approve.js"; -export { witness_set_properties } from "./proto/witness_set_properties.js"; -export { witness_update } from "./proto/witness_update.js"; diff --git a/ts/wasm/lib/vite.ts b/ts/wasm/lib/vite.ts new file mode 100644 index 0000000000000000000000000000000000000000..b09df129780b00c6a2f8474b90c6ab117a67b7cc --- /dev/null +++ b/ts/wasm/lib/vite.ts @@ -0,0 +1,49 @@ +export * from "./detailed/index.js"; + +import { createHiveChain as constructHiveChainWithWasm, createWaxFoundation as constructWaxFoundationWithWasm, type IWaxOptions, type IWaxOptionsChain, type IHiveChainInterface, type IWaxBaseInterface } from "./detailed/index.js"; + +// During bundle - this module will be replaced with the actual wasm module based on your environment +import MainModuleFunction from "wasm/lib/wax_module.js"; + +const moduleArgs = (async () => { + // Resolve WASM url only for Nuxt client (first condition) or Vite client (second condition) + if ((import.meta as any).client || (!("client" in import.meta) && typeof (import.meta as any).env === "object" && "SSR" in (import.meta as any).env)) { + const resolvedUrl = (await import('wax.common.wasm?url')).default; + + return { + locateFile: (path, scriptDirectory) => { + if (path === "wax.common.wasm") + return resolvedUrl; + return scriptDirectory + path; + } + }; + } else { + return {}; + } +})(); + +/** + * Creates a Wax Hive chain instance + * + * @param {?Partial<IWaxOptionsChain>} options wax options + * + * @returns {Promise<IHiveChainInterface>} Wax Hive chain API Instance + * + * @throws {WaxError} on any Wax API-related error + */ +export const createHiveChain = async(options: Partial<IWaxOptionsChain> = {}): Promise<IHiveChainInterface> => { + return constructHiveChainWithWasm(MainModuleFunction, Object.assign({}, await moduleArgs), options); +}; + +/** + * Creates a Wax Hive base instance + * + * @param {?Partial<IWaxOptions>} options wax options + * + * @returns {Promise<IWaxBaseInterface>} Wax Hive Base API Instance + * + * @throws {WaxError} on any Wax API-related error + */ +export const createWaxFoundation = async(options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => { + return constructWaxFoundationWithWasm(MainModuleFunction, Object.assign({}, await moduleArgs), options); +}; diff --git a/ts/wasm/lib/wax_module.ts b/ts/wasm/lib/wax_module.ts index 52120da3869671f19005cf9d37b50332c9977c3e..508a91fc820f194ae35a3dcd5eefc27f053ad20d 100644 --- a/ts/wasm/lib/wax_module.ts +++ b/ts/wasm/lib/wax_module.ts @@ -1,7 +1,6 @@ -import type { MainModule } from './build_wasm/wax.common.js'; +// During bundle - this module will be replaced with the actual wasm module based on your environment. This file is kept mainly for the purpose of type checking and documentation. -// Parse the main module -import MainModuleFunction from './build_wasm/wax.common.js'; +import type { MainModule } from 'wasm/build_wasm/wax.node.js'; export type { MainModule, @@ -23,12 +22,17 @@ export type { wax_authority, wax_authorities, MapStringUInt16 -} from './build_wasm/wax.common.js'; +} from 'wasm/build_wasm/wax.node.js'; export type { IChainConfig } from "./build_wasm/config.js"; -declare function waxmodule(): Promise<MainModule>; +export interface IOptionalModuleArgs { + wasmBinary?: Buffer; + locateFile?: (path: string, scriptDirectory: string) => string; +} -export default MainModuleFunction as unknown as typeof waxmodule; +declare function waxmodule(ModuleArg?: IOptionalModuleArgs): Promise<MainModule>; + +export default waxmodule; diff --git a/ts/wasm/src/CMakeLists.txt b/ts/wasm/src/CMakeLists.txt index d18f68a87fdb81ab1227ba02b439fc8bb6679d97..0f316440db01335b04be3d5788091e10c747bda9 100644 --- a/ts/wasm/src/CMakeLists.txt +++ b/ts/wasm/src/CMakeLists.txt @@ -34,10 +34,18 @@ add_subdirectory( ${HIVE_ROOT_PATH}/libraries/schema build_schema_minimal ) add_subdirectory( ${HIVE_ROOT_PATH}/libraries/protocol build_protocol_minimal ) # Override common options specific to exception handling for **WHOLE SET OF HIVE SPECIFIC MODULES** -TARGET_COMPILE_OPTIONS( CommonBuildOptions INTERFACE -fwasm-exceptions -Wall ) +TARGET_COMPILE_OPTIONS( CommonBuildOptions INTERFACE -fwasm-exceptions -Wall + -Oz + #-gseparate-dwarf + #-gsplit-dwarf + ) TARGET_LINK_OPTIONS( CommonBuildOptions INTERFACE -fwasm-exceptions + -Oz -sEXPORT_EXCEPTION_HANDLING_HELPERS=1 -sEXCEPTION_STACK_TRACES=1 + -sELIMINATE_DUPLICATE_FUNCTIONS=1 + #-gsource-map + #-gseparate-dwarf ) file(GLOB HEADERS "core/*.hpp") @@ -78,19 +86,29 @@ function( DEFINE_WAX_TARGET_FOR env ) target_link_options( ${exec_wasm_name} PUBLIC -sMODULARIZE=1 - -sSINGLE_FILE=1 + -sSINGLE_FILE=0 -sEXPORT_ES6=1 + -sUSE_ES6_IMPORT_META=1 -sINITIAL_MEMORY=67108864 + --emit-symbol-map # Decreases runtime performance for 50kB decrease in packed .tgz code size # --closure 1 # -Os ) set_target_properties( ${exec_wasm_name} PROPERTIES OUTPUT_NAME "wax.${env}.js" ) + INSTALL( TARGETS ${exec_wasm_name} COMPONENT "${exec_wasm_name}_runtime" RUNTIME DESTINATION . ) + INSTALL( FILES "$<TARGET_FILE_DIR:${exec_wasm_name}>/wax.${env}.wasm" + # WASM binary code is common for both node and web + RENAME "wax.common.wasm" + COMPONENT "${exec_wasm_name}_runtime" + DESTINATION . + ) + # Helper target, just to perform TypeScript wrapper generation ADD_EXECUTABLE( ${exec_ts_gen} ${SOURCES} ) @@ -105,6 +123,8 @@ function( DEFINE_WAX_TARGET_FOR env ) ) endfunction() -DEFINE_WAX_TARGET_FOR(common) +DEFINE_WAX_TARGET_FOR(node) +DEFINE_WAX_TARGET_FOR(web) -target_link_options( wax_wasm_common PUBLIC -sUSE_ES6_IMPORT_META=1 -sENVIRONMENT="web,node" ) +target_link_options( wax_wasm_node PUBLIC -sENVIRONMENT="node" ) +target_link_options( wax_wasm_web PUBLIC -sENVIRONMENT="web,webview,worker" )