From fdf3f87ed6e9633a9d76672e4dda56cc898d66b9 Mon Sep 17 00:00:00 2001 From: Leonardo de Jesus Diz Conde Date: Fri, 29 Sep 2023 16:58:49 -0300 Subject: [PATCH] CU-86a0uwqwy - For neon-dappkit and wcsdk: Folders /dist and /docs shouldn't be commited --- .github/workflows/npm-publish.yml | 8 + .gitignore | 2 + .../CU-86a0uwqwy_2023-09-29-19-56.json | 10 + .../CU-86a0uwqwy_2023-09-29-19-56.json | 10 + .../dist/Neo3EventListener.d.ts | 69 - .../dist/Neo3EventListener.js | 2 - .../neon-dappkit-types/dist/Neo3Invoker.d.ts | 339 ----- .../neon-dappkit-types/dist/Neo3Invoker.js | 2 - .../neon-dappkit-types/dist/Neo3Involker.d.ts | 339 ----- .../neon-dappkit-types/dist/Neo3Involker.js | 2 - .../neon-dappkit-types/dist/Neo3Parser.d.ts | 511 ------- .../neon-dappkit-types/dist/Neo3Parser.js | 40 - .../neon-dappkit-types/dist/Neo3Signer.d.ts | 87 -- .../neon-dappkit-types/dist/Neo3Signer.js | 12 - .../neon-dappkit-types/dist/TypeChecker.d.ts | 15 - .../neon-dappkit-types/dist/TypeChecker.js | 60 - packages/neon-dappkit-types/dist/index.d.ts | 5 - packages/neon-dappkit-types/dist/index.js | 21 - packages/neon-dappkit-types/docs/.nojekyll | 1 - .../docs/assets/highlight.css | 99 -- .../neon-dappkit-types/docs/assets/main.js | 58 - .../neon-dappkit-types/docs/assets/search.js | 1 - .../neon-dappkit-types/docs/assets/style.css | 1279 ----------------- .../docs/enums/SignMessageVersion.html | 81 -- packages/neon-dappkit-types/docs/index.html | 152 -- .../docs/interfaces/AndWitnessCondition.html | 75 - .../interfaces/BooleanWitnessCondition.html | 75 - .../CalledByContractWitnessCondition.html | 75 - .../CalledByEntryWitnessCondition.html | 68 - .../CalledByGroupWitnessCondition.html | 75 - .../interfaces/DecryptFromArrayResult.html | 75 - .../docs/interfaces/EncryptedPayload.html | 89 -- .../interfaces/GroupWitnessCondition.html | 75 - .../docs/interfaces/InvokeResult.html | 133 -- .../docs/interfaces/Neo3ApplicationLog.html | 78 - .../docs/interfaces/Neo3Event.html | 80 -- .../docs/interfaces/Neo3EventListener.html | 153 -- .../docs/interfaces/Neo3EventWithState.html | 89 -- .../docs/interfaces/Neo3Invoker.html | 177 --- .../docs/interfaces/Neo3Parser.html | 620 -------- .../docs/interfaces/Neo3Signer.html | 187 --- .../docs/interfaces/Neo3StackItem.html | 78 - .../docs/interfaces/NotWitnessCondition.html | 75 - .../docs/interfaces/OrWitnessCondition.html | 75 - .../ScriptHashWitnessCondition.html | 75 - .../docs/interfaces/WitnessRule.html | 75 - packages/neon-dappkit-types/docs/modules.html | 187 --- .../docs/types/AnyArgType.html | 119 -- .../docs/types/AnyConfigArgType.html | 119 -- .../neon-dappkit-types/docs/types/Arg.html | 112 -- .../docs/types/ArrayArgType.html | 119 -- .../docs/types/ArrayConfigArgType.html | 119 -- .../docs/types/ArrayResponseArgType.html | 119 -- .../docs/types/BooleanArgType.html | 119 -- .../docs/types/BooleanConfigArgType.html | 117 -- .../docs/types/BufferArgType.html | 119 -- .../docs/types/BuiltTransaction.html | 112 -- .../docs/types/BuiltTransactionWitness.html | 119 -- .../docs/types/ByteArrayArgType.html | 119 -- .../docs/types/ByteArrayConfigArgType.html | 117 -- .../docs/types/ByteStringArgType.html | 119 -- .../docs/types/ContractInvocation.html | 133 -- .../docs/types/ContractInvocationMulti.html | 141 -- .../docs/types/Hash160ArgType.html | 119 -- .../docs/types/Hash160ConfigArgType.html | 119 -- .../docs/types/Hash256ArgType.html | 119 -- .../docs/types/Hash256ConfigArgType.html | 119 -- .../docs/types/IntegerArgType.html | 119 -- .../docs/types/IntegerConfigArgType.html | 117 -- .../docs/types/InteropInterfaceArgType.html | 121 -- .../types/InteropInterfaceConfigArgType.html | 119 -- .../docs/types/MapArgType.html | 119 -- .../docs/types/MapConfigArgType.html | 121 -- .../docs/types/MapResponseArgType.html | 119 -- .../docs/types/Neo3EventListenerCallback.html | 127 -- .../docs/types/ParseConfig.html | 112 -- .../docs/types/PointerArgType.html | 119 -- .../docs/types/PublicKeyArgType.html | 119 -- .../docs/types/PublicKeyConfigArgType.html | 119 -- .../docs/types/RpcResponseStackItem.html | 112 -- .../docs/types/SignMessagePayload.html | 121 -- .../docs/types/SignedMessage.html | 133 -- .../neon-dappkit-types/docs/types/Signer.html | 139 -- .../docs/types/StringArgType.html | 119 -- .../docs/types/StringConfigArgType.html | 119 -- .../docs/types/StructArgType.html | 119 -- .../docs/types/WitnessCondition.html | 112 -- .../docs/variables/ABI_TYPES.html | 204 --- .../docs/variables/HINT_TYPES.html | 211 --- .../docs/variables/INTERNAL_TYPES.html | 135 -- .../docs/variables/TypeChecker.html | 258 ---- .../neon-dappkit/dist/NeonEventListener.d.ts | 29 - .../neon-dappkit/dist/NeonEventListener.js | 183 --- packages/neon-dappkit/dist/NeonInvoker.d.ts | 47 - packages/neon-dappkit/dist/NeonInvoker.js | 255 ---- .../neon-dappkit/dist/NeonInvoker.spec.d.ts | 1 - .../neon-dappkit/dist/NeonInvoker.spec.js | 582 -------- packages/neon-dappkit/dist/NeonParser.d.ts | 3 - packages/neon-dappkit/dist/NeonParser.js | 214 --- .../neon-dappkit/dist/NeonParser.spec.d.ts | 1 - packages/neon-dappkit/dist/NeonParser.spec.js | 945 ------------ packages/neon-dappkit/dist/NeonSigner.d.ts | 20 - packages/neon-dappkit/dist/NeonSigner.js | 186 --- .../neon-dappkit/dist/NeonSigner.spec.d.ts | 1 - packages/neon-dappkit/dist/NeonSigner.spec.js | 134 -- packages/neon-dappkit/dist/index.d.ts | 4 - packages/neon-dappkit/dist/index.js | 20 - packages/neon-dappkit/dist/typeChecker.d.ts | 12 - packages/neon-dappkit/dist/typeChecker.js | 68 - 109 files changed, 30 insertions(+), 14180 deletions(-) create mode 100644 common/changes/@cityofzion/neon-dappkit-types/CU-86a0uwqwy_2023-09-29-19-56.json create mode 100644 common/changes/@cityofzion/neon-dappkit/CU-86a0uwqwy_2023-09-29-19-56.json delete mode 100644 packages/neon-dappkit-types/dist/Neo3EventListener.d.ts delete mode 100644 packages/neon-dappkit-types/dist/Neo3EventListener.js delete mode 100644 packages/neon-dappkit-types/dist/Neo3Invoker.d.ts delete mode 100644 packages/neon-dappkit-types/dist/Neo3Invoker.js delete mode 100644 packages/neon-dappkit-types/dist/Neo3Involker.d.ts delete mode 100644 packages/neon-dappkit-types/dist/Neo3Involker.js delete mode 100644 packages/neon-dappkit-types/dist/Neo3Parser.d.ts delete mode 100644 packages/neon-dappkit-types/dist/Neo3Parser.js delete mode 100644 packages/neon-dappkit-types/dist/Neo3Signer.d.ts delete mode 100644 packages/neon-dappkit-types/dist/Neo3Signer.js delete mode 100644 packages/neon-dappkit-types/dist/TypeChecker.d.ts delete mode 100644 packages/neon-dappkit-types/dist/TypeChecker.js delete mode 100644 packages/neon-dappkit-types/dist/index.d.ts delete mode 100644 packages/neon-dappkit-types/dist/index.js delete mode 100644 packages/neon-dappkit-types/docs/.nojekyll delete mode 100644 packages/neon-dappkit-types/docs/assets/highlight.css delete mode 100644 packages/neon-dappkit-types/docs/assets/main.js delete mode 100644 packages/neon-dappkit-types/docs/assets/search.js delete mode 100644 packages/neon-dappkit-types/docs/assets/style.css delete mode 100644 packages/neon-dappkit-types/docs/enums/SignMessageVersion.html delete mode 100644 packages/neon-dappkit-types/docs/index.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/AndWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/BooleanWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/CalledByContractWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/CalledByEntryWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/CalledByGroupWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/DecryptFromArrayResult.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/EncryptedPayload.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/GroupWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/InvokeResult.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3ApplicationLog.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3Event.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3EventListener.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3EventWithState.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3Invoker.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3Parser.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3Signer.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/Neo3StackItem.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/NotWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/OrWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/ScriptHashWitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/interfaces/WitnessRule.html delete mode 100644 packages/neon-dappkit-types/docs/modules.html delete mode 100644 packages/neon-dappkit-types/docs/types/AnyArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/AnyConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/Arg.html delete mode 100644 packages/neon-dappkit-types/docs/types/ArrayArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/ArrayConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/ArrayResponseArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/BooleanArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/BooleanConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/BufferArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/BuiltTransaction.html delete mode 100644 packages/neon-dappkit-types/docs/types/BuiltTransactionWitness.html delete mode 100644 packages/neon-dappkit-types/docs/types/ByteArrayArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/ByteArrayConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/ByteStringArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/ContractInvocation.html delete mode 100644 packages/neon-dappkit-types/docs/types/ContractInvocationMulti.html delete mode 100644 packages/neon-dappkit-types/docs/types/Hash160ArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/Hash160ConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/Hash256ArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/Hash256ConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/IntegerArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/IntegerConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/InteropInterfaceArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/InteropInterfaceConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/MapArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/MapConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/MapResponseArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/Neo3EventListenerCallback.html delete mode 100644 packages/neon-dappkit-types/docs/types/ParseConfig.html delete mode 100644 packages/neon-dappkit-types/docs/types/PointerArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/PublicKeyArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/PublicKeyConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/RpcResponseStackItem.html delete mode 100644 packages/neon-dappkit-types/docs/types/SignMessagePayload.html delete mode 100644 packages/neon-dappkit-types/docs/types/SignedMessage.html delete mode 100644 packages/neon-dappkit-types/docs/types/Signer.html delete mode 100644 packages/neon-dappkit-types/docs/types/StringArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/StringConfigArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/StructArgType.html delete mode 100644 packages/neon-dappkit-types/docs/types/WitnessCondition.html delete mode 100644 packages/neon-dappkit-types/docs/variables/ABI_TYPES.html delete mode 100644 packages/neon-dappkit-types/docs/variables/HINT_TYPES.html delete mode 100644 packages/neon-dappkit-types/docs/variables/INTERNAL_TYPES.html delete mode 100644 packages/neon-dappkit-types/docs/variables/TypeChecker.html delete mode 100644 packages/neon-dappkit/dist/NeonEventListener.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonEventListener.js delete mode 100644 packages/neon-dappkit/dist/NeonInvoker.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonInvoker.js delete mode 100644 packages/neon-dappkit/dist/NeonInvoker.spec.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonInvoker.spec.js delete mode 100644 packages/neon-dappkit/dist/NeonParser.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonParser.js delete mode 100644 packages/neon-dappkit/dist/NeonParser.spec.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonParser.spec.js delete mode 100644 packages/neon-dappkit/dist/NeonSigner.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonSigner.js delete mode 100644 packages/neon-dappkit/dist/NeonSigner.spec.d.ts delete mode 100644 packages/neon-dappkit/dist/NeonSigner.spec.js delete mode 100644 packages/neon-dappkit/dist/index.d.ts delete mode 100644 packages/neon-dappkit/dist/index.js delete mode 100644 packages/neon-dappkit/dist/typeChecker.d.ts delete mode 100644 packages/neon-dappkit/dist/typeChecker.js diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d86da0b..8580854 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,6 +11,8 @@ jobs: environment: release permissions: contents: write + pages: write + id-token: write steps: - name: Checkout uses: actions/checkout@v3 @@ -36,6 +38,12 @@ jobs: run: rush rebuild - name: Publish Projects run: rush publish --apply --target-branch main --publish --npm-auth-token ${{ secrets.NPM_TOKEN }} --add-commit-details --include-all + - name: Upload Docs on Github Pages + uses: actions/upload-pages-artifact@v2 + with: + path: './packages/neon-dappkit-types/docs' + - name: Deploy Docs GitHub Pages + uses: actions/deploy-pages@v2 - name: Commit and Push package.json version update run: | git add . diff --git a/.gitignore b/.gitignore index 4582be5..567c94f 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,8 @@ bower_components # Compiled binary addons (https://nodejs.org/api/addons.html) build/Release +/packages/*/dist/ +/packages/*/docs/ # Dependency directories node_modules/ diff --git a/common/changes/@cityofzion/neon-dappkit-types/CU-86a0uwqwy_2023-09-29-19-56.json b/common/changes/@cityofzion/neon-dappkit-types/CU-86a0uwqwy_2023-09-29-19-56.json new file mode 100644 index 0000000..5aef43a --- /dev/null +++ b/common/changes/@cityofzion/neon-dappkit-types/CU-86a0uwqwy_2023-09-29-19-56.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@cityofzion/neon-dappkit-types", + "comment": "", + "type": "none" + } + ], + "packageName": "@cityofzion/neon-dappkit-types" +} \ No newline at end of file diff --git a/common/changes/@cityofzion/neon-dappkit/CU-86a0uwqwy_2023-09-29-19-56.json b/common/changes/@cityofzion/neon-dappkit/CU-86a0uwqwy_2023-09-29-19-56.json new file mode 100644 index 0000000..9e6a565 --- /dev/null +++ b/common/changes/@cityofzion/neon-dappkit/CU-86a0uwqwy_2023-09-29-19-56.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@cityofzion/neon-dappkit", + "comment": "", + "type": "none" + } + ], + "packageName": "@cityofzion/neon-dappkit" +} \ No newline at end of file diff --git a/packages/neon-dappkit-types/dist/Neo3EventListener.d.ts b/packages/neon-dappkit-types/dist/Neo3EventListener.d.ts deleted file mode 100644 index caf14c6..0000000 --- a/packages/neon-dappkit-types/dist/Neo3EventListener.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * An interface that defines the event contract and event name - */ -export interface Neo3Event { - contract: string; - eventname: string; -} -/** - * An interface that defines the event contract, event name and the state of the event - */ -export interface Neo3EventWithState extends Neo3Event { - state: Neo3StackItem; -} -/** - * The event listener callback - */ -export type Neo3EventListenerCallback = (event: Neo3EventWithState) => void; -/** - * An interface that defines the stack item format - */ -export interface Neo3StackItem { - type: string; - value?: string | boolean | number | Neo3StackItem[]; -} -/** - * An interface that defines the application log format - */ -export interface Neo3ApplicationLog { - txid: string; - executions: { - trigger: string; - vmstate: string; - gasconsumed: string; - stack?: Neo3StackItem[]; - notifications: Neo3EventWithState[]; - }[]; -} -/** - * The entry point of the library - */ -export interface Neo3EventListener { - /** - * Adds an event listener for the specified contract and event name - * @param contract - * @param eventname - * @param callback - */ - addEventListener(contract: string, eventname: string, callback: Neo3EventListenerCallback): void; - /** - * Removes an event listener for the specified contract and event name - * @param contract - * @param eventname - * @param callback - */ - removeEventListener(contract: string, eventname: string, callback: Neo3EventListenerCallback): void; - /** - * Waits for the transaction to be completed and returns the application log - * @param txId id od the transaction - */ - waitForApplicationLog(txId: string): Promise; - /** - * Checks if the transaction was completed successfully - * Throws an error if the transaction failed - * @param txResult the Neo3ApplicationLog object - * @param eventToCheck the Neo3Event object to check if it is present in the application log - * @param confirmStackTrue if true, checks if the stack contains true as the first element - */ - confirmTransaction(txResult: Neo3ApplicationLog, eventToCheck?: Neo3Event | undefined, confirmStackTrue?: boolean | undefined): void; -} diff --git a/packages/neon-dappkit-types/dist/Neo3EventListener.js b/packages/neon-dappkit-types/dist/Neo3EventListener.js deleted file mode 100644 index c8ad2e5..0000000 --- a/packages/neon-dappkit-types/dist/Neo3EventListener.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/neon-dappkit-types/dist/Neo3Invoker.d.ts b/packages/neon-dappkit-types/dist/Neo3Invoker.d.ts deleted file mode 100644 index 89d2151..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Invoker.d.ts +++ /dev/null @@ -1,339 +0,0 @@ -export interface BooleanWitnessCondition { - type: 'Boolean'; - expression: boolean; -} -export interface NotWitnessCondition { - type: 'Not'; - expression: WitnessCondition; -} -export interface AndWitnessCondition { - type: 'And'; - expressions: WitnessCondition[]; -} -export interface OrWitnessCondition { - type: 'Or'; - expressions: WitnessCondition[]; -} -export interface ScriptHashWitnessCondition { - type: 'ScriptHash'; - hash: string; -} -export interface GroupWitnessCondition { - type: 'Group'; - group: string; -} -export interface CalledByEntryWitnessCondition { - type: 'CalledByEntry'; -} -export interface CalledByContractWitnessCondition { - type: 'CalledByContract'; - hash: string; -} -export interface CalledByGroupWitnessCondition { - type: 'CalledByGroup'; - group: string; -} -export type WitnessCondition = BooleanWitnessCondition | AndWitnessCondition | NotWitnessCondition | OrWitnessCondition | ScriptHashWitnessCondition | GroupWitnessCondition | CalledByEntryWitnessCondition | CalledByContractWitnessCondition | CalledByGroupWitnessCondition; -export interface WitnessRule { - action: string; - condition: WitnessCondition; -} -/** - * A simple interface that defines the signing options, which privileges the user needs to give for the SmartContract. - * Usually the default signer is enough: `{ scopes: WitnessScope.CalledByEntry }` - * But you may need additional authorization, for instance, allow the SmartContract to invoke another specific contract: - * - * ``` - * { - * scopes: WitnessScope.CustomContracts, - * allowedContracts: ['0xf970f4ccecd765b63732b821775dc38c25d74f23'] - * } - * ``` - * - */ -export type Signer = { - /** - * The level of permission the invocation needs - */ - scopes: string | number; - /** - * An optional scriptHash to be used to sign, if no account is provided the user selected account will be used - */ - account?: string; - /** - * When the scopes is `WitnessScope.CustomContracts`, you need to specify which contracts are allowed - */ - allowedContracts?: string[]; - /** - * When the scopes is `WitnessScope.CustomGroups`, you need to specify which groups are allowed - */ - allowedGroups?: string[]; - rules?: WitnessRule[]; -}; -export type AnyArgType = { - type: 'Any'; - value: any; -}; -export type StringArgType = { - type: 'String'; - value: string; -}; -export type BooleanArgType = { - type: 'Boolean'; - value: boolean; -}; -export type PublicKeyArgType = { - type: 'PublicKey'; - value: string; -}; -export type Hash160ArgType = { - type: 'Hash160'; - value: string; -}; -export type Hash256ArgType = { - type: 'Hash256'; - value: string; -}; -export type IntegerArgType = { - type: 'Integer'; - value: string; -}; -export type ArrayArgType = { - type: 'Array'; - value: Arg[]; -}; -export type MapArgType = { - type: 'Map'; - value: { - key: Arg; - value: Arg; - }[]; -}; -export type ByteArrayArgType = { - type: 'ByteArray'; - value: string; -}; -export type Arg = AnyArgType | StringArgType | BooleanArgType | PublicKeyArgType | Hash160ArgType | Hash256ArgType | IntegerArgType | ArrayArgType | MapArgType | ByteArrayArgType; -/** - * A simple interface that defines the invocation options - */ -export type ContractInvocation = { - /** - * The SmartContract ScriptHash - */ - scriptHash: string; - /** - * The SmartContract's method name - */ - operation: string; - /** - * The parameters to be sent to the method - */ - args?: Arg[]; - /** - * When requesting multiple invocations, you can set `abortOnFail` to true on some invocations so the VM will abort the rest of the calls if this invocation returns `false` - */ - abortOnFail?: boolean; -}; -/** - * A simple interface that defines the MultiInvoke options - */ -export type ContractInvocationMulti = { - /** - * the signing options - */ - signers?: Signer[]; - /** - * The array of invocations - */ - invocations: ContractInvocation[]; - /** - * an optional fee to be added to the calculated system fee - */ - extraSystemFee?: number; - /** - * for the cases you need to calculate the system fee by yourself - */ - systemFeeOverride?: number; - /** - * an optional fee to be added to the calculated network fee - */ - extraNetworkFee?: number; - /** - * for the cases you need to calculate the network fee by yourself - */ - networkFeeOverride?: number; -}; -export type BuiltTransactionWitness = { - invocation: string; - verification: string; -}; -export type BuiltTransaction = ContractInvocationMulti & { - hash?: string; - size: number; - version: number; - nonce: number; - networkFee: string; - systemFee: string; - validUntilBlock: number; - script: string; - witnesses: BuiltTransactionWitness[]; -}; -export type ArrayResponseArgType = { - type: 'Array'; - value: RpcResponseStackItem[]; -}; -export type MapResponseArgType = { - type: 'Map'; - value: { - key: RpcResponseStackItem; - value: RpcResponseStackItem; - }[]; -}; -export type ByteStringArgType = { - type: 'ByteString'; - value: string; -}; -export type InteropInterfaceArgType = { - type: 'InteropInterface'; - interface: string; - id: string; -}; -export type PointerArgType = { - type: 'Pointer'; - value: string; -}; -export type BufferArgType = { - type: 'Buffer'; - value: string; -}; -export type StructArgType = { - type: 'Struct'; - value: RpcResponseStackItem[]; -}; -export type RpcResponseStackItem = AnyArgType | BooleanArgType | IntegerArgType | ArrayResponseArgType | MapResponseArgType | ByteStringArgType | InteropInterfaceArgType | PointerArgType | BufferArgType | StructArgType; -/** - * Result from calling invokescript or invokefunction. - */ -export interface InvokeResult { - /** The script that is sent for execution on the blockchain as a base64 string. */ - script: string; - /** State of VM on exit. HALT means a successful exit while FAULT means exit with error. */ - state: 'HALT' | 'FAULT'; - /** Amount of gas consumed up to the point of stopping in the VM. If state is FAULT, this value is not representative of the amount of gas it will consume if it somehow succeeds on the blockchain. - * This is a decimal value. - */ - gasconsumed: string; - /** A human-readable string clarifying the exception that occurred. Only available when state is "FAULT". */ - exception: string | null; - stack: T[]; - /** A ready to send transaction that wraps the script. - * Only available when signers are provided and the sender's private key is open in the RPC node. - * Formatted in base64-encoding. - */ - tx?: string; - /** This properties comes when the invoke result is a iterator. You need to call the traverseIterator method to get the real result */ - session?: string; -} -/** - * The entry point for the SmartContract invocation - */ -export interface Neo3Invoker { - /** - * Sends an 'invokeFunction' request to the Wallet and it will communicate with the blockchain. It will consume gas and persist data to the blockchain. - * - * ``` - * const invocations: ContractInvocation[] = [ - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'getStream', - * abortOnFail: true, // if 'getStream' returns false the next invocation will not be made - * args: [ - * { type: 'Integer', value: 17 } - * ] - * }, - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'transfer', - * args: [ - * { type: 'Address', value: senderAddress }, - * { type: 'Address', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' }, - * { type: 'Integer', value: 100000000 }, - * { type: 'Array', value: [] } - * ] - * } - * ] - * - * const signer: Signer[] = [ - * { - * scopes: WitnessScope.Global - * } - * ] - * - * const formattedRequest: ContractInvocationMulti = { - * signer, - * invocations - * } - * const resp = await invokeFunction(formattedRequest) - * ``` - * - * @param params the contract invocation options - * @return the call result promise. It might only contain the transactionId, another call to the blockchain might be necessary to check the result. - */ - invokeFunction: (cimOrBt: ContractInvocationMulti | BuiltTransaction) => Promise; - /** - * Sends a `testInvoke` request to the Wallet and it will communicate with the blockchain. - * It will not consume any gas but it will also not persist any data, this is often used to retrieve SmartContract information or check how much gas an invocation will cost. - * Also, the wallet might choose to not ask the user authorization for test invocations making them easy to use. - * - * ``` - * const signers: Signer[] = [ - * { - * scopes: WitnessScope.None - * } - * ] - * - * const invocations: ContractInvocation[] = [ - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'getStream', - * abortOnFail: true, // if 'getStream' returns false the next invocation will not be made - * args: [ - * { type: 'Integer', value: 17 } - * ], - * }, - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'balanceOf', - * args: [ - * { type: 'Address', value: senderAddress } - * ] - * } - * ] - * - * const formattedRequest: ContractInvocationMulti = { - * signers, - * invocations - * } - * const resp = await testInvoke(formattedRequest) - * ``` - * - * @param params the contract invocation options - * @return the call result promise - */ - testInvoke: (cim: ContractInvocationMulti | BuiltTransaction) => Promise; - /** - * Call the method traverseiterator on the rpc. This method is used to get the result of an iterator. - * The result is the first count of data traversed in the Iterator, and follow-up requests will continue traversing from count + 1 - * @param sessionId the session id of the iterator - * @param iteratorId the iterator id - * @param count the number of items to retrieve - * @return the call result promise - */ - traverseIterator: (sessionId: string, iteratorId: string, count: number) => Promise; - /** - * This method is used to sign a transaction and return the ready to send transaction. This can be used to allow signing by different wallets. - * @param cim a ContractInvocationMulti or a BuiltTransaction - */ - signTransaction: (cim: ContractInvocationMulti | BuiltTransaction) => Promise; -} diff --git a/packages/neon-dappkit-types/dist/Neo3Invoker.js b/packages/neon-dappkit-types/dist/Neo3Invoker.js deleted file mode 100644 index c8ad2e5..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Invoker.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/neon-dappkit-types/dist/Neo3Involker.d.ts b/packages/neon-dappkit-types/dist/Neo3Involker.d.ts deleted file mode 100644 index 6a75a58..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Involker.d.ts +++ /dev/null @@ -1,339 +0,0 @@ -export interface BooleanWitnessCondition { - type: 'Boolean'; - expression: boolean; -} -export interface NotWitnessCondition { - type: 'Not'; - expression: WitnessCondition; -} -export interface AndWitnessCondition { - type: 'And'; - expressions: WitnessCondition[]; -} -export interface OrWitnessCondition { - type: 'Or'; - expressions: WitnessCondition[]; -} -export interface ScriptHashWitnessCondition { - type: 'ScriptHash'; - hash: string; -} -export interface GroupWitnessCondition { - type: 'Group'; - group: string; -} -export interface CalledByEntryWitnessCondition { - type: 'CalledByEntry'; -} -export interface CalledByContractWitnessCondition { - type: 'CalledByContract'; - hash: string; -} -export interface CalledByGroupWitnessCondition { - type: 'CalledByGroup'; - group: string; -} -export type WitnessCondition = BooleanWitnessCondition | AndWitnessCondition | NotWitnessCondition | OrWitnessCondition | ScriptHashWitnessCondition | GroupWitnessCondition | CalledByEntryWitnessCondition | CalledByContractWitnessCondition | CalledByGroupWitnessCondition; -export interface WitnessRule { - action: string; - condition: WitnessCondition; -} -/** - * A simple interface that defines the signing options, which privileges the user needs to give for the SmartContract. - * Usually the default signer is enough: `{ scopes: WitnessScope.CalledByEntry }` - * But you may need additional authorization, for instance, allow the SmartContract to invoke another specific contract: - * - * ``` - * { - * scopes: WitnessScope.CustomContracts, - * allowedContracts: ['0xf970f4ccecd765b63732b821775dc38c25d74f23'] - * } - * ``` - * - */ -export type Signer = { - /** - * The level of permission the invocation needs - */ - scopes: string | number; - /** - * An optional scriptHash to be used to sign, if no account is provided the user selected account will be used - */ - account?: string; - /** - * When the scopes is `WitnessScope.CustomContracts`, you need to specify which contracts are allowed - */ - allowedContracts?: string[]; - /** - * When the scopes is `WitnessScope.CustomGroups`, you need to specify which groups are allowed - */ - allowedGroups?: string[]; - rules?: WitnessRule[]; -}; -export type AnyArgType = { - type: 'Any'; - value: any; -}; -export type StringArgType = { - type: 'String'; - value: string; -}; -export type BooleanArgType = { - type: 'Boolean'; - value: boolean; -}; -export type PublicKeyArgType = { - type: 'PublicKey'; - value: string; -}; -export type Hash160ArgType = { - type: 'Hash160'; - value: string; -}; -export type Hash256ArgType = { - type: 'Hash256'; - value: string; -}; -export type IntegerArgType = { - type: 'Integer'; - value: string; -}; -export type ArrayArgType = { - type: 'Array'; - value: Arg[]; -}; -export type MapArgType = { - type: 'Map'; - value: { - key: Arg; - value: Arg; - }[]; -}; -export type ByteArrayArgType = { - type: 'ByteArray'; - value: string; -}; -export type Arg = AnyArgType | StringArgType | BooleanArgType | PublicKeyArgType | Hash160ArgType | Hash256ArgType | IntegerArgType | ArrayArgType | MapArgType | ByteArrayArgType; -/** - * A simple interface that defines the invocation options - */ -export type ContractInvocation = { - /** - * The SmartContract ScriptHash - */ - scriptHash: string; - /** - * The SmartContract's method name - */ - operation: string; - /** - * The parameters to be sent to the method - */ - args?: Arg[]; - /** - * When requesting multiple invocations, you can set `abortOnFail` to true on some invocations so the VM will abort the rest of the calls if this invocation returns `false` - */ - abortOnFail?: boolean; -}; -/** - * A simple interface that defines the MultiInvoke options - */ -export type ContractInvocationMulti = { - /** - * the signing options - */ - signers?: Signer[]; - /** - * The array of invocations - */ - invocations: ContractInvocation[]; - /** - * an optional fee to be added to the calculated system fee - */ - extraSystemFee?: number; - /** - * for the cases you need to calculate the system fee by yourself - */ - systemFeeOverride?: number; - /** - * an optional fee to be added to the calculated network fee - */ - extraNetworkFee?: number; - /** - * for the cases you need to calculate the network fee by yourself - */ - networkFeeOverride?: number; -}; -export type Witness = { - invocation: string; - verification: string; -}; -export type BuiltTransaction = { - hash?: string; - size: number; - version: number; - nonce: number; - sysfee: string; - netfee: string; - validuntilblock: number; - script: string; - witnesses: Witness[]; -} & ContractInvocationMulti; -export type ArrayResponseArgType = { - type: 'Array'; - value: RpcResponseStackItem[]; -}; -export type MapResponseArgType = { - type: 'Map'; - value: { - key: RpcResponseStackItem; - value: RpcResponseStackItem; - }[]; -}; -export type ByteStringArgType = { - type: 'ByteString'; - value: string; -}; -export type InteropInterfaceArgType = { - type: 'InteropInterface'; - interface: string; - id: string; -}; -export type PointerArgType = { - type: 'Pointer'; - value: string; -}; -export type BufferArgType = { - type: 'Buffer'; - value: string; -}; -export type StructArgType = { - type: 'Struct'; - value: RpcResponseStackItem[]; -}; -export type RpcResponseStackItem = AnyArgType | BooleanArgType | IntegerArgType | ArrayResponseArgType | MapResponseArgType | ByteStringArgType | InteropInterfaceArgType | PointerArgType | BufferArgType | StructArgType; -/** - * Result from calling invokescript or invokefunction. - */ -export interface InvokeResult { - /** The script that is sent for execution on the blockchain as a base64 string. */ - script: string; - /** State of VM on exit. HALT means a successful exit while FAULT means exit with error. */ - state: 'HALT' | 'FAULT'; - /** Amount of gas consumed up to the point of stopping in the VM. If state is FAULT, this value is not representative of the amount of gas it will consume if it somehow succeeds on the blockchain. - * This is a decimal value. - */ - gasconsumed: string; - /** A human-readable string clarifying the exception that occurred. Only available when state is "FAULT". */ - exception: string | null; - stack: T[]; - /** A ready to send transaction that wraps the script. - * Only available when signers are provided and the sender's private key is open in the RPC node. - * Formatted in base64-encoding. - */ - tx?: string; - /** This properties comes when the invoke result is a iterator. You need to call the traverseIterator method to get the real result */ - session?: string; -} -/** - * The entry point for the SmartContract invocation - */ -export interface Neo3Invoker { - /** - * Sends an 'invokeFunction' request to the Wallet and it will communicate with the blockchain. It will consume gas and persist data to the blockchain. - * - * ``` - * const invocations: ContractInvocation[] = [ - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'getStream', - * abortOnFail: true, // if 'getStream' returns false the next invocation will not be made - * args: [ - * { type: 'Integer', value: 17 } - * ] - * }, - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'transfer', - * args: [ - * { type: 'Address', value: senderAddress }, - * { type: 'Address', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' }, - * { type: 'Integer', value: 100000000 }, - * { type: 'Array', value: [] } - * ] - * } - * ] - * - * const signer: Signer[] = [ - * { - * scopes: WitnessScope.Global - * } - * ] - * - * const formattedRequest: ContractInvocationMulti = { - * signer, - * invocations - * } - * const resp = await invokeFunction(formattedRequest) - * ``` - * - * @param params the contract invocation options - * @return the call result promise. It might only contain the transactionId, another call to the blockchain might be necessary to check the result. - */ - invokeFunction: (cim: ContractInvocationMulti | BuiltTransaction) => Promise; - /** - * Sends a `testInvoke` request to the Wallet and it will communicate with the blockchain. - * It will not consume any gas but it will also not persist any data, this is often used to retrieve SmartContract information or check how much gas an invocation will cost. - * Also, the wallet might choose to not ask the user authorization for test invocations making them easy to use. - * - * ``` - * const signers: Signer[] = [ - * { - * scopes: WitnessScope.None - * } - * ] - * - * const invocations: ContractInvocation[] = [ - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'getStream', - * abortOnFail: true, // if 'getStream' returns false the next invocation will not be made - * args: [ - * { type: 'Integer', value: 17 } - * ], - * }, - * { - * scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a', - * operation: 'balanceOf', - * args: [ - * { type: 'Address', value: senderAddress } - * ] - * } - * ] - * - * const formattedRequest: ContractInvocationMulti = { - * signers, - * invocations - * } - * const resp = await testInvoke(formattedRequest) - * ``` - * - * @param params the contract invocation options - * @return the call result promise - */ - testInvoke: (cim: ContractInvocationMulti) => Promise; - /** - * Call the method traverseiterator on the rpc. This method is used to get the result of an iterator. - * The result is the first count of data traversed in the Iterator, and follow-up requests will continue traversing from count + 1 - * @param sessionId the session id of the iterator - * @param iteratorId the iterator id - * @param count the number of items to retrieve - * @return the call result promise - */ - traverseIterator: (sessionId: string, iteratorId: string, count: number) => Promise; - /** - * This method is used to sign a transaction and return the ready to send transaction. This can be used to allow signing by different wallets. - * @param cim a ContractInvocationMulti or a BuiltTransaction - */ - signTransaction: (cim: ContractInvocationMulti | BuiltTransaction) => Promise; -} diff --git a/packages/neon-dappkit-types/dist/Neo3Involker.js b/packages/neon-dappkit-types/dist/Neo3Involker.js deleted file mode 100644 index c8ad2e5..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Involker.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/neon-dappkit-types/dist/Neo3Parser.d.ts b/packages/neon-dappkit-types/dist/Neo3Parser.d.ts deleted file mode 100644 index 0e72d2b..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Parser.d.ts +++ /dev/null @@ -1,511 +0,0 @@ -import { Arg, RpcResponseStackItem } from './Neo3Invoker'; -export interface Neo3Parser { - /** - * Converts an ArrayBuffer to an ASCII string. - * @param buf - * - * @example - * const encoder = new TextEncoder() - * const arrayBuffer = encoder.encode('unit test') - * console.log(Neo3Parser.abToStr(arrayBuffer)) - * // unit test - */ - abToStr: (buf: ArrayBuffer | ArrayLike) => string; - /** - * Converts an ASCII string into an arrayBuffer. - * @param str - * - * @example - * const arrayBuffer = Neo3Parser.strToAb('unit test') - * console.log(arrayBuffer) - * // Uint8Array(9) [117, 110, 105, 116, 32, 116, 101, 115, 116] - */ - strToAb: (str: string) => Uint8Array; - /** - * Converts a hexstring into an arrayBuffer. - * @param str - * - * @example - * const arrayBuffer = Neo3Parser.hexToAb('756e69742074657374') - * console.log(arrayBuffer) - * // Uint8Array(9) [117, 110, 105, 116, 32, 116, 101, 115, 116] - */ - hexToAb: (str: string) => Uint8Array; - /** - * Converts an arraybuffer to hexstring. - * @param arr - * - * @example - * const encoder = new TextEncoder() - * const arrayBuffer = encoder.encode('unit test') - * console.log(Neo3Parser.abToHex(arrayBuffer)) - * // 756e69742074657374 - */ - abToHex: (arr: ArrayBuffer | ArrayLike) => string; - /** - * Converts an ascii string to hexstring. - * @param str - * - * @example - * const hexString = Neo3Parser.strToHex('unit test') - * console.log(hexString) - * // 756e69742074657374 - */ - strToHex: (str: string) => string; - /** - * Converts a hexstring to ascii string. - * @param hexstring - * - * @example - * const str = Neo3Parser.hexToStr('756e69742074657374') - * console.log(str) - * // unit test - */ - hexToStr: (hexstring: string) => string; - /** - * convert an integer to big endian hex and add leading zeros. - * @param num - * - * @example - * const hexString = Neo3Parser.intToHex(512) - * console.log(hexString) - * // 0200 - */ - intToHex: (num: number) => string; - /** - * Converts a number to a big endian hexstring of a suitable size, optionally little endian - * @param num - a positive integer. - * @param size - the required size in bytes, eg 1 for Uint8, 2 for Uint16. Defaults to 1. - * @param littleEndian - encode the hex in little endian form - * - * @example - * console.log(Neo3Parser.numToHex(513)) - * // 01 - * - * console.log(Neo3Parser.numToHex(513, 2)) - * // 0201 - * - * console.log(Neo3Parser.numToHex(513, 2, true)) - * // 0102 - */ - numToHex: (num: number, size?: number, littleEndian?: boolean) => string; - /** - * Converts a number to a variable length Int. Used for array length header - * @param num - * - * @example - * console.log(Neo3Parser.numToVarInt(16)) - * // 10 - * - * console.log(Neo3Parser.numToVarInt(512)) - * // fd0002 - * - * console.log(Neo3Parser.numToVarInt(65535)) - * // fdffff - * - * console.log(Neo3Parser.numToVarInt(4294967295)) - * // feffffffff - * - * console.log(Neo3Parser.numToVarInt(4294967296)) - * // ff0000000001000000 - */ - numToVarInt: (num: number) => string; - /** - * Converts a hex string to a base64 string. - * @param input - * - * @example - * const base64String = Neo3Parser.hexToBase64('756e69742074657374') - * console.log(base64String) - * // dW5pdCB0ZXN0 - */ - hexToBase64: (input: string) => string; - /** - * Converts a base64 string to hex - * @param input - * - * @example - * const hexString = Neo3Parser.base64ToHex('dW5pdCB0ZXN0') - * console.log(base64String) - * // 756e69742074657374 - */ - base64ToHex: (input: string) => string; - /** - * Converts an utf8 string to a base64 string. - * @param input - * - * @example - * const base64String = Neo3Parser.utf8ToBase64('unit test') - * console.log(base64String) - * // dW5pdCB0ZXN0 - */ - utf8ToBase64: (input: string) => string; - /** - * Converts an ascii string to a base64 string. - * @param input - * - * @example - * const base64String = Neo3Parser.asciiToBase64('unit test') - * console.log(base64String) - * // dW5pdCB0ZXN0 - */ - asciiToBase64: (input: string) => string; - /** - * Converts a base64 string to utf8. - * @param input - * - * @example - * const utf8String = Neo3Parser.base64ToUtf8('VVRGLTggU3RyaW5nIMOhw6PDoMOn') - * console.log(utf8String) - * // UTF-8 String áãàç - */ - base64ToUtf8: (input: string) => string; - /** - * Converts an account input such Address, PublicKey or ScriptHash to an ScriptHash. - * @param input - * - * @example - * const scriptHash = Neo3Parser.accountInputToScripthash('NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs') - * console.log(scriptHash) - * // a5de523ae9d99be784a536e9412b7a3cbe049e1a - * - * @example - * const scriptHash = Neo3Parser.accountInputToScripthash('03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c') - * console.log(scriptHash) - * // a5de523ae9d99be784a536e9412b7a3cbe049e1a - */ - accountInputToScripthash: (input: string) => string; - /** - * Converts a string to base64 - * @param input The string to convert - * - * @example - * const base64String = Neo3Parser.strToBase64('unit test') - * console.log(base64String) - * // dW5pdCB0ZXN0 - */ - strToBase64: (input: string) => string; - /** - * Converts an account input such Address, PublicKey or ScriptHash to an Address. - * @param input - * - * @example - * const address = Neo3Parser.accountInputToAddress('a5de523ae9d99be784a536e9412b7a3cbe049e1a') - * console.log(address) - * // NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs - * - * @example - * const address = Neo3Parser.accountInputToAddress('03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c') - * console.log(address) - * // NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs - */ - accountInputToAddress: (input: string) => string; - /** - * Reverses a HEX string, treating 2 chars as a byte. - * @param input - * - * @example - * const reversedHexString = Neo3Parser.reverseHex('abcdef') - * console.log(reversedHexString) - * // efcdab - */ - reverseHex: (input: string) => string; - /** - * Formats the response from the RPC server to an easier to use format for dapp developers - * @param input The response from the RPC server - * - * @example - * const stringResponse = { - * type: 'ByteString', - * value: 'dW5pdCB0ZXN0' - * } - * const parsed = Neo3Parser.parseRpcResponse(stringResponse) - * console.log(parsed) - * // unit test - * - * @example - * const scriptHashResponse = { - * type: 'ByteString', - * value: 'YUeato/VwsBLJU84LYTd8vXGfO0=' - * } - * const parsed = Neo3Parser.parseRpcResponse(scriptHashResponse, { type: 'Hash160' }) - * console.log(parsed) - * // 0xed7cc6f5f2dd842d384f254bc0c2d58fb69a4761 - * - * @example - * const byteArrayResponse = { - * type: 'ByteString', - * value: 'dW5pdCB0ZXN0' - * } - * const parsed = Neo3Parser.parseRpcResponse(bytesResponse, { type: 'ByteArray' }) - * console.log(parsed) - * // 756e69742074657374 - * - * @example - * const integerResponse = { - * type: 'Integer', - * value: '18' - * } - * const parsed = Neo3Parser.parseRpcResponse(integerResponse) - * console.log(parsed) - * // 18 - * - * @example - * const arrayResponse = { - * type: 'Array', - * value: [ - * { - * type: 'Integer', - * value: '10', - * }, - * { - * type: 'Integer', - * value: '20', - * }, - * { - * type: 'Integer', - * value: '30', - * }, - * ] - * } - * const parsed = Neo3Parser.parseRpcResponse(arrayResponse, { type: 'Array', generic: { type: 'Integer' } }) - * console.log(parsed) - * // [10, 20, 30] - * - * @example - * const mapResponse = { - * type: 'Map', - * value: [ - * { - * key: { - * type: 'ByteString', - * value: 'dW5pdA==' - * }, - * value: { - * type: 'ByteString', - * value: 'dGVzdA==' - * }, - * { - * key: { - * type: 'ByteString', - * value: 'bmVvMw==' - * }, - * value: { - * type: 'ByteString', - * value: 'cGFyc2Vy' - * }, - * ] - * } - * const parsed = Neo3Parser.parseRpcResponse(mapResponse, { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'String' } }) - * console.log(parsed) - * // { unit: 'test', neo3: 'parser' } - */ - parseRpcResponse: (field: RpcResponseStackItem, parseConfig?: ParseConfig) => any; - /** - * Formats the argument that will be sent to the RPC server - * @param arg the argument that will be formatted - * @param parseConfig how to format the argument - * - * @example - * const formattedNumber = Neo3Parser.formatRpcArgument(123) - * console.log(formattedNumber) - * // { type: 'Integer', value: '123' } - * - * @example - * const formattedBoolean = Neo3Parser.formatRpcArgument(true) - * console.log(formattedBoolean) - * // { type: 'Boolean', value: true } - * - * @example - * const formattedString = Neo3Parser.formatRpcArgument('unit test') - * console.log(formmatedString) - * // { type: 'String', value: 'unit test' } - * - * @example - * const formattedByteArray = Neo3Parser.formatRpcArgument('756e69742074657374') - * console.log(formattedByteArray) - * // { type: 'ByteArray', value: '756e69742074657374' } - * - * @example - * const formattedHash160 = Neo3Parser.formatRpcArgument('0xd2a4cff31913016155e38e474a2c06d08be276cf', { type: 'Hash160' }) - * console.log(formattedHash160) - * // { type: 'Hash160', value: 'd2a4cff31913016155e38e474a2c06d08be276cf' } - * - * @example - * const formattedArray = Neo3Parser.formatRpcArgument([1, 2, 3], { type: 'Array', generic: { type: 'Integer' } }) - * console.log(formattedArray) - * // { type: 'Array', value: [{ type: 'Integer', value: '1' }, { type: 'Integer', value: '2' }, { type: 'Integer', value: '3' }] } - * - * @example - * const formattedMap = Neo3Parser.formatRpcArgument({ unit: 'test', neo3: 'parser' }, { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'String' } }) - * console.log(formattedMap) - * // { type: 'Map', value: [{ key: { type: 'String', value: 'unit' }, value: { type: 'String', value: 'test' } }, { key: { type: 'String', value: 'neo3' }, value: { type: 'String', value: 'parser' } }] } - */ - formatRpcArgument: (arg: any, parseConfig?: ParseConfig) => Arg; -} -export type AnyConfigArgType = { - type: 'Any'; - union?: ParseConfig[]; -}; -export type StringConfigArgType = { - type: 'String'; - hint?: string; -}; -export type BooleanConfigArgType = { - type: 'Boolean'; -}; -export type ByteArrayConfigArgType = { - type: 'ByteArray'; -}; -export type PublicKeyConfigArgType = { - type: 'PublicKey'; - hint?: string; -}; -export type Hash160ConfigArgType = { - type: 'Hash160'; - hint?: string; -}; -export type Hash256ConfigArgType = { - type: 'Hash256'; - hint?: string; -}; -export type IntegerConfigArgType = { - type: 'Integer'; -}; -export type ArrayConfigArgType = { - type: 'Array'; - generic?: ParseConfig; -}; -export type MapConfigArgType = { - type: 'Map'; - genericKey?: ParseConfig; - genericItem?: ParseConfig; -}; -export type InteropInterfaceConfigArgType = { - type: 'InteropInterface'; - hint?: string; -}; -export type ParseConfig = AnyConfigArgType | StringConfigArgType | BooleanConfigArgType | ByteArrayConfigArgType | PublicKeyConfigArgType | Hash160ConfigArgType | Hash256ConfigArgType | IntegerConfigArgType | ArrayConfigArgType | MapConfigArgType | InteropInterfaceConfigArgType; -export declare const INTERNAL_TYPES: { - ARRAY: string; - BYTESTRING: string; - BUFFER: string; - INTEGER: string; - INTEROPINTERFACE: string; - BOOLEAN: string; - MAP: string; - NULL: string; - POINTER: string; - STRUCT: string; -}; -export declare const ABI_TYPES: { - ANY: { - name: string; - }; - SIGNATURE: { - name: string; - internal: string; - }; - BOOLEAN: { - name: string; - internal: string; - }; - INTEGER: { - name: string; - internal: string; - }; - HASH160: { - name: string; - internal: string; - }; - HASH256: { - name: string; - internal: string; - }; - BYTEARRAY: { - name: string; - internal: string; - }; - PUBLICKEY: { - name: string; - internal: string; - }; - STRING: { - name: string; - internal: string; - }; - ARRAY: { - name: string; - internal: string; - }; - MAP: { - name: string; - internal: string; - }; - INTEROPINTERFACE: { - name: string; - internal: string; - }; - VOID: { - name: string; - internal: string; - }; -}; -export declare const HINT_TYPES: { - ADDRESS: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - PUBLICKEY: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - SCRIPTHASH: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - SCRIPTHASHLITTLEENDING: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - BLOCKHASH: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - TRANSACTIONID: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - STORAGECONTEXT: { - name: string; - abi: { - name: string; - internal: string; - }; - }; - ITERATOR: { - name: string; - abi: { - name: string; - internal: string; - }; - }; -}; diff --git a/packages/neon-dappkit-types/dist/Neo3Parser.js b/packages/neon-dappkit-types/dist/Neo3Parser.js deleted file mode 100644 index 65cdcc0..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Parser.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HINT_TYPES = exports.ABI_TYPES = exports.INTERNAL_TYPES = void 0; -exports.INTERNAL_TYPES = { - ARRAY: 'Array', - BYTESTRING: 'ByteString', - BUFFER: 'Buffer', - INTEGER: 'Integer', - INTEROPINTERFACE: 'InteropInterface', - BOOLEAN: 'Boolean', - MAP: 'Map', - NULL: 'Null', - POINTER: 'Pointer', - STRUCT: 'Struct', -}; -exports.ABI_TYPES = { - ANY: { name: 'Any' }, - SIGNATURE: { name: 'Signature', internal: exports.INTERNAL_TYPES.BYTESTRING }, - BOOLEAN: { name: 'Boolean', internal: exports.INTERNAL_TYPES.BOOLEAN }, - INTEGER: { name: 'Integer', internal: exports.INTERNAL_TYPES.INTEGER }, - HASH160: { name: 'Hash160', internal: exports.INTERNAL_TYPES.BYTESTRING }, - HASH256: { name: 'Hash256', internal: exports.INTERNAL_TYPES.BYTESTRING }, - BYTEARRAY: { name: 'ByteArray', internal: exports.INTERNAL_TYPES.BYTESTRING }, - PUBLICKEY: { name: 'PublicKey', internal: exports.INTERNAL_TYPES.BYTESTRING }, - STRING: { name: 'String', internal: exports.INTERNAL_TYPES.BYTESTRING }, - ARRAY: { name: 'Array', internal: exports.INTERNAL_TYPES.ARRAY }, - MAP: { name: 'Map', internal: exports.INTERNAL_TYPES.MAP }, - INTEROPINTERFACE: { name: 'InteropInterface', internal: exports.INTERNAL_TYPES.INTEROPINTERFACE }, - VOID: { name: 'Void', internal: exports.INTERNAL_TYPES.NULL }, -}; -exports.HINT_TYPES = { - ADDRESS: { name: 'Address', abi: exports.ABI_TYPES.STRING }, - PUBLICKEY: { name: 'PublicKey', abi: exports.ABI_TYPES.PUBLICKEY }, - SCRIPTHASH: { name: 'ScriptHash', abi: exports.ABI_TYPES.HASH160 }, - SCRIPTHASHLITTLEENDING: { name: 'ScriptHashLittleEndian', abi: exports.ABI_TYPES.HASH160 }, - BLOCKHASH: { name: 'BlockHash', abi: exports.ABI_TYPES.HASH256 }, - TRANSACTIONID: { name: 'TransactionId', abi: exports.ABI_TYPES.HASH256 }, - STORAGECONTEXT: { name: 'StorageContext', abi: exports.ABI_TYPES.INTEROPINTERFACE }, - ITERATOR: { name: 'Iterator', abi: exports.ABI_TYPES.INTEROPINTERFACE }, -}; diff --git a/packages/neon-dappkit-types/dist/Neo3Signer.d.ts b/packages/neon-dappkit-types/dist/Neo3Signer.d.ts deleted file mode 100644 index c88011c..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Signer.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * A version enum that indicates how a message should be signed - */ -export declare enum SignMessageVersion { - CLASSIC = 1, - DEFAULT = 2, - WITHOUT_SALT = 3 -} -/** - * A simple type that defines the SignMessage payload, where Version.LEGACY is deprecated and Version.DEFAULT is NeoFS compatible and uses SALT, and Version.WITHOUT_SALT is NeoFS compatible and does not use SALT - */ -export type SignMessagePayload = { - message: string; - version?: SignMessageVersion; -}; -/** - * A simple type that defines the Signed Message format - */ -export type SignedMessage = { - /** - * signer's public key - */ - publicKey: string; - /** - * encrypted message - */ - data: string; - /** - * salt used to encrypt - */ - salt?: string; - /** - * message hex - */ - messageHex: string; -}; -export interface EncryptedPayload { - randomVector: string; - cipherText: string; - dataTag: string; - ephemPublicKey: string; -} -export interface DecryptFromArrayResult { - message: string; - keyIndex: number; -} -/** - * A simple interface that defines the Signing and Verifying methods - */ -export interface Neo3Signer { - /** - * Signs a message - * @param params the params to send the request - * @return the signed message object - */ - signMessage(params: SignMessagePayload): Promise; - /** - * Checks if the signedMessage is true - * @param params an object that represents a signed message - * @return true if the signedMessage is acknowledged by the account - */ - verifyMessage(params: SignedMessage): Promise; - /** - * returns the address of the account, not as safe as using signMessage and getting the publicKey - */ - getAccountAddress(): string | null; - /** - * Encrypts a message using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve - * @param message message to be encrypted - * @param publicKeys a list of public keys to encrypt the message with - * @returns an array with the same lenght as the array of public keys, each element is an EncryptedPayload - */ - encrypt(message: string, publicKeys: string[]): Promise; - /** - * Decrypts a message encrypted using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve - * @param payload an object that was encrypted with the public key corresponding to the account - * @returns the decrypted message - */ - decrypt(payload: EncryptedPayload): Promise; - /** - * Tries to find the first payload that can be decrypted from an array of objects that were encrypted using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve - * @param payloads an array of objects that were encrypted with the public keys - * @returns an object with the decrypted message of the first payload that could be decrypted and the index indicating which encrypted message from the array was decrypt - * @throws an error if none of the public keys used to encrypt correspond to the account - */ - decryptFromArray(payloads: EncryptedPayload[]): Promise; -} diff --git a/packages/neon-dappkit-types/dist/Neo3Signer.js b/packages/neon-dappkit-types/dist/Neo3Signer.js deleted file mode 100644 index 3b691d6..0000000 --- a/packages/neon-dappkit-types/dist/Neo3Signer.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SignMessageVersion = void 0; -/** - * A version enum that indicates how a message should be signed - */ -var SignMessageVersion; -(function (SignMessageVersion) { - SignMessageVersion[SignMessageVersion["CLASSIC"] = 1] = "CLASSIC"; - SignMessageVersion[SignMessageVersion["DEFAULT"] = 2] = "DEFAULT"; - SignMessageVersion[SignMessageVersion["WITHOUT_SALT"] = 3] = "WITHOUT_SALT"; -})(SignMessageVersion = exports.SignMessageVersion || (exports.SignMessageVersion = {})); diff --git a/packages/neon-dappkit-types/dist/TypeChecker.d.ts b/packages/neon-dappkit-types/dist/TypeChecker.d.ts deleted file mode 100644 index cfc1b4b..0000000 --- a/packages/neon-dappkit-types/dist/TypeChecker.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { AnyArgType, BooleanArgType, IntegerArgType, ArrayResponseArgType, MapResponseArgType, ByteStringArgType, InteropInterfaceArgType, PointerArgType, BufferArgType, StructArgType, RpcResponseStackItem } from './Neo3Invoker'; -declare const TypeChecker: { - isStackTypeAny(item: any): item is AnyArgType; - isStackTypeBoolean(item: any): item is BooleanArgType; - isStackTypeInteger(item: any): item is IntegerArgType; - isStackTypeArray(item: any): item is ArrayResponseArgType; - isStackTypeMap(item: any): item is MapResponseArgType; - isStackTypeByteString(item: any): item is ByteStringArgType; - isStackTypeInteropInterface(item: any): item is InteropInterfaceArgType; - isStackTypePointer(item: any): item is PointerArgType; - isStackTypeBuffer(item: any): item is BufferArgType; - isStackTypeStruct(item: any): item is StructArgType; - isRpcResponseStackItem(item: any): item is RpcResponseStackItem; -}; -export { TypeChecker }; diff --git a/packages/neon-dappkit-types/dist/TypeChecker.js b/packages/neon-dappkit-types/dist/TypeChecker.js deleted file mode 100644 index de7bc0b..0000000 --- a/packages/neon-dappkit-types/dist/TypeChecker.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeChecker = void 0; -const TypeChecker = { - isStackTypeAny(item) { - return typeof item === 'object' && item.type === 'Any'; - }, - isStackTypeBoolean(item) { - return typeof item === 'object' && item.type === 'Boolean' && typeof item.value === 'boolean'; - }, - isStackTypeInteger(item) { - return typeof item === 'object' && item.type === 'Integer' && typeof item.value === 'string'; - }, - isStackTypeArray(item) { - return (typeof item === 'object' && - item.type === 'Array' && - Array.isArray(item.value) && - item.value.every((i) => TypeChecker.isRpcResponseStackItem(i))); - }, - isStackTypeMap(item) { - return (typeof item === 'object' && - item.type === 'Map' && - Array.isArray(item.value) && - item.value.every((i) => TypeChecker.isRpcResponseStackItem(i.key) && TypeChecker.isRpcResponseStackItem(i.value))); - }, - isStackTypeByteString(item) { - return typeof item === 'object' && item.type === 'ByteString' && typeof item.value === 'string'; - }, - isStackTypeInteropInterface(item) { - return (typeof item === 'object' && - item.type === 'InteropInterface' && - typeof item.interface === 'string' && - typeof item.id === 'string'); - }, - isStackTypePointer(item) { - return typeof item === 'object' && item.type === 'Pointer' && typeof item.value === 'string'; - }, - isStackTypeBuffer(item) { - return typeof item === 'object' && item.type === 'Buffer' && typeof item.value === 'string'; - }, - isStackTypeStruct(item) { - return (typeof item === 'object' && - item.type === 'Struct' && - Array.isArray(item.value) && - item.value.every((i) => TypeChecker.isRpcResponseStackItem(i))); - }, - isRpcResponseStackItem(item) { - return (TypeChecker.isStackTypeAny(item) || - TypeChecker.isStackTypeBoolean(item) || - TypeChecker.isStackTypeInteger(item) || - TypeChecker.isStackTypeArray(item) || - TypeChecker.isStackTypeMap(item) || - TypeChecker.isStackTypeByteString(item) || - TypeChecker.isStackTypeInteropInterface(item) || - TypeChecker.isStackTypePointer(item) || - TypeChecker.isStackTypeBuffer(item) || - TypeChecker.isStackTypeStruct(item)); - }, -}; -exports.TypeChecker = TypeChecker; diff --git a/packages/neon-dappkit-types/dist/index.d.ts b/packages/neon-dappkit-types/dist/index.d.ts deleted file mode 100644 index fcbd930..0000000 --- a/packages/neon-dappkit-types/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './Neo3EventListener'; -export * from './Neo3Invoker'; -export * from './Neo3Parser'; -export * from './Neo3Signer'; -export * from './TypeChecker'; diff --git a/packages/neon-dappkit-types/dist/index.js b/packages/neon-dappkit-types/dist/index.js deleted file mode 100644 index 4ba1924..0000000 --- a/packages/neon-dappkit-types/dist/index.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./Neo3EventListener"), exports); -__exportStar(require("./Neo3Invoker"), exports); -__exportStar(require("./Neo3Parser"), exports); -__exportStar(require("./Neo3Signer"), exports); -__exportStar(require("./TypeChecker"), exports); diff --git a/packages/neon-dappkit-types/docs/.nojekyll b/packages/neon-dappkit-types/docs/.nojekyll deleted file mode 100644 index e2ac661..0000000 --- a/packages/neon-dappkit-types/docs/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/assets/highlight.css b/packages/neon-dappkit-types/docs/assets/highlight.css deleted file mode 100644 index 8e4e670..0000000 --- a/packages/neon-dappkit-types/docs/assets/highlight.css +++ /dev/null @@ -1,99 +0,0 @@ -:root { - --light-hl-0: #795E26; - --dark-hl-0: #DCDCAA; - --light-hl-1: #000000; - --dark-hl-1: #D4D4D4; - --light-hl-2: #A31515; - --dark-hl-2: #CE9178; - --light-hl-3: #AF00DB; - --dark-hl-3: #C586C0; - --light-hl-4: #001080; - --dark-hl-4: #9CDCFE; - --light-hl-5: #0000FF; - --dark-hl-5: #569CD6; - --light-hl-6: #0070C1; - --dark-hl-6: #4FC1FF; - --light-hl-7: #098658; - --dark-hl-7: #B5CEA8; - --light-hl-8: #267F99; - --dark-hl-8: #4EC9B0; - --light-hl-9: #008000; - --dark-hl-9: #6A9955; - --light-hl-10: #000000; - --dark-hl-10: #C8C8C8; - --light-code-background: #FFFFFF; - --dark-code-background: #1E1E1E; -} - -@media (prefers-color-scheme: light) { :root { - --hl-0: var(--light-hl-0); - --hl-1: var(--light-hl-1); - --hl-2: var(--light-hl-2); - --hl-3: var(--light-hl-3); - --hl-4: var(--light-hl-4); - --hl-5: var(--light-hl-5); - --hl-6: var(--light-hl-6); - --hl-7: var(--light-hl-7); - --hl-8: var(--light-hl-8); - --hl-9: var(--light-hl-9); - --hl-10: var(--light-hl-10); - --code-background: var(--light-code-background); -} } - -@media (prefers-color-scheme: dark) { :root { - --hl-0: var(--dark-hl-0); - --hl-1: var(--dark-hl-1); - --hl-2: var(--dark-hl-2); - --hl-3: var(--dark-hl-3); - --hl-4: var(--dark-hl-4); - --hl-5: var(--dark-hl-5); - --hl-6: var(--dark-hl-6); - --hl-7: var(--dark-hl-7); - --hl-8: var(--dark-hl-8); - --hl-9: var(--dark-hl-9); - --hl-10: var(--dark-hl-10); - --code-background: var(--dark-code-background); -} } - -:root[data-theme='light'] { - --hl-0: var(--light-hl-0); - --hl-1: var(--light-hl-1); - --hl-2: var(--light-hl-2); - --hl-3: var(--light-hl-3); - --hl-4: var(--light-hl-4); - --hl-5: var(--light-hl-5); - --hl-6: var(--light-hl-6); - --hl-7: var(--light-hl-7); - --hl-8: var(--light-hl-8); - --hl-9: var(--light-hl-9); - --hl-10: var(--light-hl-10); - --code-background: var(--light-code-background); -} - -:root[data-theme='dark'] { - --hl-0: var(--dark-hl-0); - --hl-1: var(--dark-hl-1); - --hl-2: var(--dark-hl-2); - --hl-3: var(--dark-hl-3); - --hl-4: var(--dark-hl-4); - --hl-5: var(--dark-hl-5); - --hl-6: var(--dark-hl-6); - --hl-7: var(--dark-hl-7); - --hl-8: var(--dark-hl-8); - --hl-9: var(--dark-hl-9); - --hl-10: var(--dark-hl-10); - --code-background: var(--dark-code-background); -} - -.hl-0 { color: var(--hl-0); } -.hl-1 { color: var(--hl-1); } -.hl-2 { color: var(--hl-2); } -.hl-3 { color: var(--hl-3); } -.hl-4 { color: var(--hl-4); } -.hl-5 { color: var(--hl-5); } -.hl-6 { color: var(--hl-6); } -.hl-7 { color: var(--hl-7); } -.hl-8 { color: var(--hl-8); } -.hl-9 { color: var(--hl-9); } -.hl-10 { color: var(--hl-10); } -pre, code { background: var(--code-background); } diff --git a/packages/neon-dappkit-types/docs/assets/main.js b/packages/neon-dappkit-types/docs/assets/main.js deleted file mode 100644 index f7c8366..0000000 --- a/packages/neon-dappkit-types/docs/assets/main.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -"use strict";(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function B(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){le.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureFocusedElementVisible(){this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null);let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}};var I=class{constructor(e){this.el=e.el,this.app=e.app}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends I{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{He(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?pe(e,-1):s.key==="ArrowDown"?pe(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ae(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function He(t,e,n,r){if(Ae(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${fe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function pe(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function fe(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",j="mouseup",Z={x:0,y:0},ge=!1,se=!1,Be=!1,A=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",ye="touchmove",j="touchend");document.addEventListener(F,t=>{se=!0,A=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(se&&!A){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);A=Math.sqrt(n*n+r*r)>10}});document.addEventListener(j,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends I{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(j,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(j,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){A||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!A&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends I{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends I{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();B(X,".menu-highlight");B(K,"a[data-toggle]");B(te,".tsd-index-accordion");B(ee,".tsd-filter-item input[type=checkbox]");var we=document.getElementById("theme");we&&be(we);var je=new Y;Object.defineProperty(window,"app",{value:je});})(); -/*! Bundled license information: - -lunr/lunr.js: - (** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 - * Copyright (C) 2020 Oliver Nightingale - * @license MIT - *) - (*! - * lunr.utils - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Set - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.tokenizer - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Pipeline - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Vector - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.stemmer - * Copyright (C) 2020 Oliver Nightingale - * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt - *) - (*! - * lunr.stopWordFilter - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.trimmer - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.TokenSet - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Index - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Builder - * Copyright (C) 2020 Oliver Nightingale - *) -*/ diff --git a/packages/neon-dappkit-types/docs/assets/search.js b/packages/neon-dappkit-types/docs/assets/search.js deleted file mode 100644 index cc3f924..0000000 --- a/packages/neon-dappkit-types/docs/assets/search.js +++ /dev/null @@ -1 +0,0 @@ -window.searchData = JSON.parse("{\"kinds\":{\"8\":\"Enumeration\",\"16\":\"Enumeration Member\",\"32\":\"Variable\",\"256\":\"Interface\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\"},\"rows\":[{\"kind\":256,\"name\":\"Neo3Event\",\"url\":\"interfaces/Neo3Event.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"contract\",\"url\":\"interfaces/Neo3Event.html#contract\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Event\"},{\"kind\":1024,\"name\":\"eventname\",\"url\":\"interfaces/Neo3Event.html#eventname\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Event\"},{\"kind\":256,\"name\":\"Neo3EventWithState\",\"url\":\"interfaces/Neo3EventWithState.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"state\",\"url\":\"interfaces/Neo3EventWithState.html#state\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3EventWithState\"},{\"kind\":1024,\"name\":\"contract\",\"url\":\"interfaces/Neo3EventWithState.html#contract\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"Neo3EventWithState\"},{\"kind\":1024,\"name\":\"eventname\",\"url\":\"interfaces/Neo3EventWithState.html#eventname\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"Neo3EventWithState\"},{\"kind\":4194304,\"name\":\"Neo3EventListenerCallback\",\"url\":\"types/Neo3EventListenerCallback.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Neo3EventListenerCallback.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Neo3EventListenerCallback\"},{\"kind\":256,\"name\":\"Neo3StackItem\",\"url\":\"interfaces/Neo3StackItem.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/Neo3StackItem.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3StackItem\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"interfaces/Neo3StackItem.html#value\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3StackItem\"},{\"kind\":256,\"name\":\"Neo3ApplicationLog\",\"url\":\"interfaces/Neo3ApplicationLog.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"txid\",\"url\":\"interfaces/Neo3ApplicationLog.html#txid\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3ApplicationLog\"},{\"kind\":1024,\"name\":\"executions\",\"url\":\"interfaces/Neo3ApplicationLog.html#executions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3ApplicationLog\"},{\"kind\":256,\"name\":\"Neo3EventListener\",\"url\":\"interfaces/Neo3EventListener.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":2048,\"name\":\"addEventListener\",\"url\":\"interfaces/Neo3EventListener.html#addEventListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3EventListener\"},{\"kind\":2048,\"name\":\"removeEventListener\",\"url\":\"interfaces/Neo3EventListener.html#removeEventListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3EventListener\"},{\"kind\":2048,\"name\":\"waitForApplicationLog\",\"url\":\"interfaces/Neo3EventListener.html#waitForApplicationLog\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3EventListener\"},{\"kind\":2048,\"name\":\"confirmTransaction\",\"url\":\"interfaces/Neo3EventListener.html#confirmTransaction\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3EventListener\"},{\"kind\":256,\"name\":\"BooleanWitnessCondition\",\"url\":\"interfaces/BooleanWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/BooleanWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"BooleanWitnessCondition\"},{\"kind\":1024,\"name\":\"expression\",\"url\":\"interfaces/BooleanWitnessCondition.html#expression\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"BooleanWitnessCondition\"},{\"kind\":256,\"name\":\"NotWitnessCondition\",\"url\":\"interfaces/NotWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/NotWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"NotWitnessCondition\"},{\"kind\":1024,\"name\":\"expression\",\"url\":\"interfaces/NotWitnessCondition.html#expression\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"NotWitnessCondition\"},{\"kind\":256,\"name\":\"AndWitnessCondition\",\"url\":\"interfaces/AndWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/AndWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"AndWitnessCondition\"},{\"kind\":1024,\"name\":\"expressions\",\"url\":\"interfaces/AndWitnessCondition.html#expressions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"AndWitnessCondition\"},{\"kind\":256,\"name\":\"OrWitnessCondition\",\"url\":\"interfaces/OrWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/OrWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"OrWitnessCondition\"},{\"kind\":1024,\"name\":\"expressions\",\"url\":\"interfaces/OrWitnessCondition.html#expressions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"OrWitnessCondition\"},{\"kind\":256,\"name\":\"ScriptHashWitnessCondition\",\"url\":\"interfaces/ScriptHashWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/ScriptHashWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ScriptHashWitnessCondition\"},{\"kind\":1024,\"name\":\"hash\",\"url\":\"interfaces/ScriptHashWitnessCondition.html#hash\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ScriptHashWitnessCondition\"},{\"kind\":256,\"name\":\"GroupWitnessCondition\",\"url\":\"interfaces/GroupWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/GroupWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"GroupWitnessCondition\"},{\"kind\":1024,\"name\":\"group\",\"url\":\"interfaces/GroupWitnessCondition.html#group\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"GroupWitnessCondition\"},{\"kind\":256,\"name\":\"CalledByEntryWitnessCondition\",\"url\":\"interfaces/CalledByEntryWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/CalledByEntryWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CalledByEntryWitnessCondition\"},{\"kind\":256,\"name\":\"CalledByContractWitnessCondition\",\"url\":\"interfaces/CalledByContractWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/CalledByContractWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CalledByContractWitnessCondition\"},{\"kind\":1024,\"name\":\"hash\",\"url\":\"interfaces/CalledByContractWitnessCondition.html#hash\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CalledByContractWitnessCondition\"},{\"kind\":256,\"name\":\"CalledByGroupWitnessCondition\",\"url\":\"interfaces/CalledByGroupWitnessCondition.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/CalledByGroupWitnessCondition.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CalledByGroupWitnessCondition\"},{\"kind\":1024,\"name\":\"group\",\"url\":\"interfaces/CalledByGroupWitnessCondition.html#group\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CalledByGroupWitnessCondition\"},{\"kind\":4194304,\"name\":\"WitnessCondition\",\"url\":\"types/WitnessCondition.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":256,\"name\":\"WitnessRule\",\"url\":\"interfaces/WitnessRule.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"action\",\"url\":\"interfaces/WitnessRule.html#action\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"WitnessRule\"},{\"kind\":1024,\"name\":\"condition\",\"url\":\"interfaces/WitnessRule.html#condition\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"WitnessRule\"},{\"kind\":4194304,\"name\":\"Signer\",\"url\":\"types/Signer.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Signer.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Signer\"},{\"kind\":1024,\"name\":\"scopes\",\"url\":\"types/Signer.html#__type.scopes\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Signer.__type\"},{\"kind\":1024,\"name\":\"account\",\"url\":\"types/Signer.html#__type.account\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Signer.__type\"},{\"kind\":1024,\"name\":\"allowedContracts\",\"url\":\"types/Signer.html#__type.allowedContracts\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Signer.__type\"},{\"kind\":1024,\"name\":\"allowedGroups\",\"url\":\"types/Signer.html#__type.allowedGroups\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Signer.__type\"},{\"kind\":1024,\"name\":\"rules\",\"url\":\"types/Signer.html#__type.rules\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Signer.__type\"},{\"kind\":4194304,\"name\":\"AnyArgType\",\"url\":\"types/AnyArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/AnyArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"AnyArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/AnyArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"AnyArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/AnyArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"AnyArgType.__type\"},{\"kind\":4194304,\"name\":\"StringArgType\",\"url\":\"types/StringArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/StringArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"StringArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/StringArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StringArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/StringArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StringArgType.__type\"},{\"kind\":4194304,\"name\":\"BooleanArgType\",\"url\":\"types/BooleanArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/BooleanArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"BooleanArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/BooleanArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BooleanArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/BooleanArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BooleanArgType.__type\"},{\"kind\":4194304,\"name\":\"PublicKeyArgType\",\"url\":\"types/PublicKeyArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/PublicKeyArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"PublicKeyArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/PublicKeyArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PublicKeyArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/PublicKeyArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PublicKeyArgType.__type\"},{\"kind\":4194304,\"name\":\"Hash160ArgType\",\"url\":\"types/Hash160ArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Hash160ArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Hash160ArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/Hash160ArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash160ArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/Hash160ArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash160ArgType.__type\"},{\"kind\":4194304,\"name\":\"Hash256ArgType\",\"url\":\"types/Hash256ArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Hash256ArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Hash256ArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/Hash256ArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash256ArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/Hash256ArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash256ArgType.__type\"},{\"kind\":4194304,\"name\":\"IntegerArgType\",\"url\":\"types/IntegerArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/IntegerArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"IntegerArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/IntegerArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"IntegerArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/IntegerArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"IntegerArgType.__type\"},{\"kind\":4194304,\"name\":\"ArrayArgType\",\"url\":\"types/ArrayArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ArrayArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ArrayArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ArrayArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/ArrayArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayArgType.__type\"},{\"kind\":4194304,\"name\":\"MapArgType\",\"url\":\"types/MapArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/MapArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"MapArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/MapArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/MapArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapArgType.__type\"},{\"kind\":4194304,\"name\":\"ByteArrayArgType\",\"url\":\"types/ByteArrayArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ByteArrayArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ByteArrayArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ByteArrayArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ByteArrayArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/ByteArrayArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ByteArrayArgType.__type\"},{\"kind\":4194304,\"name\":\"Arg\",\"url\":\"types/Arg.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":4194304,\"name\":\"ContractInvocation\",\"url\":\"types/ContractInvocation.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ContractInvocation.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ContractInvocation\"},{\"kind\":1024,\"name\":\"scriptHash\",\"url\":\"types/ContractInvocation.html#__type.scriptHash\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocation.__type\"},{\"kind\":1024,\"name\":\"operation\",\"url\":\"types/ContractInvocation.html#__type.operation\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocation.__type\"},{\"kind\":1024,\"name\":\"args\",\"url\":\"types/ContractInvocation.html#__type.args\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocation.__type\"},{\"kind\":1024,\"name\":\"abortOnFail\",\"url\":\"types/ContractInvocation.html#__type.abortOnFail\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocation.__type\"},{\"kind\":4194304,\"name\":\"ContractInvocationMulti\",\"url\":\"types/ContractInvocationMulti.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ContractInvocationMulti.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ContractInvocationMulti\"},{\"kind\":1024,\"name\":\"signers\",\"url\":\"types/ContractInvocationMulti.html#__type.signers\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":1024,\"name\":\"invocations\",\"url\":\"types/ContractInvocationMulti.html#__type.invocations\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":1024,\"name\":\"extraSystemFee\",\"url\":\"types/ContractInvocationMulti.html#__type.extraSystemFee\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":1024,\"name\":\"systemFeeOverride\",\"url\":\"types/ContractInvocationMulti.html#__type.systemFeeOverride\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":1024,\"name\":\"extraNetworkFee\",\"url\":\"types/ContractInvocationMulti.html#__type.extraNetworkFee\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":1024,\"name\":\"networkFeeOverride\",\"url\":\"types/ContractInvocationMulti.html#__type.networkFeeOverride\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContractInvocationMulti.__type\"},{\"kind\":4194304,\"name\":\"BuiltTransactionWitness\",\"url\":\"types/BuiltTransactionWitness.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/BuiltTransactionWitness.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"BuiltTransactionWitness\"},{\"kind\":1024,\"name\":\"invocation\",\"url\":\"types/BuiltTransactionWitness.html#__type.invocation\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BuiltTransactionWitness.__type\"},{\"kind\":1024,\"name\":\"verification\",\"url\":\"types/BuiltTransactionWitness.html#__type.verification\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BuiltTransactionWitness.__type\"},{\"kind\":4194304,\"name\":\"BuiltTransaction\",\"url\":\"types/BuiltTransaction.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":4194304,\"name\":\"ArrayResponseArgType\",\"url\":\"types/ArrayResponseArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ArrayResponseArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ArrayResponseArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ArrayResponseArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayResponseArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/ArrayResponseArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayResponseArgType.__type\"},{\"kind\":4194304,\"name\":\"MapResponseArgType\",\"url\":\"types/MapResponseArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/MapResponseArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"MapResponseArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/MapResponseArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapResponseArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/MapResponseArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapResponseArgType.__type\"},{\"kind\":4194304,\"name\":\"ByteStringArgType\",\"url\":\"types/ByteStringArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ByteStringArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ByteStringArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ByteStringArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ByteStringArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/ByteStringArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ByteStringArgType.__type\"},{\"kind\":4194304,\"name\":\"InteropInterfaceArgType\",\"url\":\"types/InteropInterfaceArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/InteropInterfaceArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"InteropInterfaceArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/InteropInterfaceArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"InteropInterfaceArgType.__type\"},{\"kind\":1024,\"name\":\"interface\",\"url\":\"types/InteropInterfaceArgType.html#__type.interface\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"InteropInterfaceArgType.__type\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"types/InteropInterfaceArgType.html#__type.id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"InteropInterfaceArgType.__type\"},{\"kind\":4194304,\"name\":\"PointerArgType\",\"url\":\"types/PointerArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/PointerArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"PointerArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/PointerArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PointerArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/PointerArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PointerArgType.__type\"},{\"kind\":4194304,\"name\":\"BufferArgType\",\"url\":\"types/BufferArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/BufferArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"BufferArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/BufferArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BufferArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/BufferArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BufferArgType.__type\"},{\"kind\":4194304,\"name\":\"StructArgType\",\"url\":\"types/StructArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/StructArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"StructArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/StructArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StructArgType.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/StructArgType.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StructArgType.__type\"},{\"kind\":4194304,\"name\":\"RpcResponseStackItem\",\"url\":\"types/RpcResponseStackItem.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":256,\"name\":\"InvokeResult\",\"url\":\"interfaces/InvokeResult.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"script\",\"url\":\"interfaces/InvokeResult.html#script\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"state\",\"url\":\"interfaces/InvokeResult.html#state\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"gasconsumed\",\"url\":\"interfaces/InvokeResult.html#gasconsumed\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"exception\",\"url\":\"interfaces/InvokeResult.html#exception\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"stack\",\"url\":\"interfaces/InvokeResult.html#stack\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"tx\",\"url\":\"interfaces/InvokeResult.html#tx\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":1024,\"name\":\"session\",\"url\":\"interfaces/InvokeResult.html#session\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"InvokeResult\"},{\"kind\":256,\"name\":\"Neo3Invoker\",\"url\":\"interfaces/Neo3Invoker.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"invokeFunction\",\"url\":\"interfaces/Neo3Invoker.html#invokeFunction\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Invoker\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Invoker.html#invokeFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Invoker.invokeFunction\"},{\"kind\":1024,\"name\":\"testInvoke\",\"url\":\"interfaces/Neo3Invoker.html#testInvoke\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Invoker\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Invoker.html#testInvoke.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Invoker.testInvoke\"},{\"kind\":1024,\"name\":\"traverseIterator\",\"url\":\"interfaces/Neo3Invoker.html#traverseIterator\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Invoker\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Invoker.html#traverseIterator.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Invoker.traverseIterator\"},{\"kind\":1024,\"name\":\"signTransaction\",\"url\":\"interfaces/Neo3Invoker.html#signTransaction\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Invoker\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Invoker.html#signTransaction.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Invoker.signTransaction\"},{\"kind\":256,\"name\":\"Neo3Parser\",\"url\":\"interfaces/Neo3Parser.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"abToStr\",\"url\":\"interfaces/Neo3Parser.html#abToStr\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#abToStr.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.abToStr\"},{\"kind\":1024,\"name\":\"strToAb\",\"url\":\"interfaces/Neo3Parser.html#strToAb\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#strToAb.__type-32\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.strToAb\"},{\"kind\":1024,\"name\":\"hexToAb\",\"url\":\"interfaces/Neo3Parser.html#hexToAb\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#hexToAb.__type-16\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.hexToAb\"},{\"kind\":1024,\"name\":\"abToHex\",\"url\":\"interfaces/Neo3Parser.html#abToHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#abToHex.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.abToHex\"},{\"kind\":1024,\"name\":\"strToHex\",\"url\":\"interfaces/Neo3Parser.html#strToHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#strToHex.__type-36\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.strToHex\"},{\"kind\":1024,\"name\":\"hexToStr\",\"url\":\"interfaces/Neo3Parser.html#hexToStr\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#hexToStr.__type-20\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.hexToStr\"},{\"kind\":1024,\"name\":\"intToHex\",\"url\":\"interfaces/Neo3Parser.html#intToHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#intToHex.__type-22\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.intToHex\"},{\"kind\":1024,\"name\":\"numToHex\",\"url\":\"interfaces/Neo3Parser.html#numToHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#numToHex.__type-24\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.numToHex\"},{\"kind\":1024,\"name\":\"numToVarInt\",\"url\":\"interfaces/Neo3Parser.html#numToVarInt\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#numToVarInt.__type-26\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.numToVarInt\"},{\"kind\":1024,\"name\":\"hexToBase64\",\"url\":\"interfaces/Neo3Parser.html#hexToBase64\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#hexToBase64.__type-18\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.hexToBase64\"},{\"kind\":1024,\"name\":\"base64ToHex\",\"url\":\"interfaces/Neo3Parser.html#base64ToHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#base64ToHex.__type-10\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.base64ToHex\"},{\"kind\":1024,\"name\":\"utf8ToBase64\",\"url\":\"interfaces/Neo3Parser.html#utf8ToBase64\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#utf8ToBase64.__type-38\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.utf8ToBase64\"},{\"kind\":1024,\"name\":\"asciiToBase64\",\"url\":\"interfaces/Neo3Parser.html#asciiToBase64\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#asciiToBase64.__type-8\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.asciiToBase64\"},{\"kind\":1024,\"name\":\"base64ToUtf8\",\"url\":\"interfaces/Neo3Parser.html#base64ToUtf8\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#base64ToUtf8.__type-12\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.base64ToUtf8\"},{\"kind\":1024,\"name\":\"accountInputToScripthash\",\"url\":\"interfaces/Neo3Parser.html#accountInputToScripthash\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#accountInputToScripthash.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.accountInputToScripthash\"},{\"kind\":1024,\"name\":\"strToBase64\",\"url\":\"interfaces/Neo3Parser.html#strToBase64\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#strToBase64.__type-34\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.strToBase64\"},{\"kind\":1024,\"name\":\"accountInputToAddress\",\"url\":\"interfaces/Neo3Parser.html#accountInputToAddress\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#accountInputToAddress.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.accountInputToAddress\"},{\"kind\":1024,\"name\":\"reverseHex\",\"url\":\"interfaces/Neo3Parser.html#reverseHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#reverseHex.__type-30\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.reverseHex\"},{\"kind\":1024,\"name\":\"parseRpcResponse\",\"url\":\"interfaces/Neo3Parser.html#parseRpcResponse\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#parseRpcResponse.__type-28\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.parseRpcResponse\"},{\"kind\":1024,\"name\":\"formatRpcArgument\",\"url\":\"interfaces/Neo3Parser.html#formatRpcArgument\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Neo3Parser\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/Neo3Parser.html#formatRpcArgument.__type-14\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"Neo3Parser.formatRpcArgument\"},{\"kind\":4194304,\"name\":\"AnyConfigArgType\",\"url\":\"types/AnyConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/AnyConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"AnyConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/AnyConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"AnyConfigArgType.__type\"},{\"kind\":1024,\"name\":\"union\",\"url\":\"types/AnyConfigArgType.html#__type.union\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"AnyConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"StringConfigArgType\",\"url\":\"types/StringConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/StringConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"StringConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/StringConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StringConfigArgType.__type\"},{\"kind\":1024,\"name\":\"hint\",\"url\":\"types/StringConfigArgType.html#__type.hint\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StringConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"BooleanConfigArgType\",\"url\":\"types/BooleanConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/BooleanConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"BooleanConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/BooleanConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"BooleanConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"ByteArrayConfigArgType\",\"url\":\"types/ByteArrayConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ByteArrayConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ByteArrayConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ByteArrayConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ByteArrayConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"PublicKeyConfigArgType\",\"url\":\"types/PublicKeyConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/PublicKeyConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"PublicKeyConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/PublicKeyConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PublicKeyConfigArgType.__type\"},{\"kind\":1024,\"name\":\"hint\",\"url\":\"types/PublicKeyConfigArgType.html#__type.hint\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"PublicKeyConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"Hash160ConfigArgType\",\"url\":\"types/Hash160ConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Hash160ConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Hash160ConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/Hash160ConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash160ConfigArgType.__type\"},{\"kind\":1024,\"name\":\"hint\",\"url\":\"types/Hash160ConfigArgType.html#__type.hint\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash160ConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"Hash256ConfigArgType\",\"url\":\"types/Hash256ConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/Hash256ConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Hash256ConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/Hash256ConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash256ConfigArgType.__type\"},{\"kind\":1024,\"name\":\"hint\",\"url\":\"types/Hash256ConfigArgType.html#__type.hint\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Hash256ConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"IntegerConfigArgType\",\"url\":\"types/IntegerConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/IntegerConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"IntegerConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/IntegerConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"IntegerConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"ArrayConfigArgType\",\"url\":\"types/ArrayConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ArrayConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ArrayConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/ArrayConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayConfigArgType.__type\"},{\"kind\":1024,\"name\":\"generic\",\"url\":\"types/ArrayConfigArgType.html#__type.generic\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ArrayConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"MapConfigArgType\",\"url\":\"types/MapConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/MapConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"MapConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/MapConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapConfigArgType.__type\"},{\"kind\":1024,\"name\":\"genericKey\",\"url\":\"types/MapConfigArgType.html#__type.genericKey\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapConfigArgType.__type\"},{\"kind\":1024,\"name\":\"genericItem\",\"url\":\"types/MapConfigArgType.html#__type.genericItem\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"MapConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"InteropInterfaceConfigArgType\",\"url\":\"types/InteropInterfaceConfigArgType.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/InteropInterfaceConfigArgType.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"InteropInterfaceConfigArgType\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/InteropInterfaceConfigArgType.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"InteropInterfaceConfigArgType.__type\"},{\"kind\":1024,\"name\":\"hint\",\"url\":\"types/InteropInterfaceConfigArgType.html#__type.hint\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"InteropInterfaceConfigArgType.__type\"},{\"kind\":4194304,\"name\":\"ParseConfig\",\"url\":\"types/ParseConfig.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":32,\"name\":\"INTERNAL_TYPES\",\"url\":\"variables/INTERNAL_TYPES.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/INTERNAL_TYPES.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-variable\",\"parent\":\"INTERNAL_TYPES\"},{\"kind\":1024,\"name\":\"ARRAY\",\"url\":\"variables/INTERNAL_TYPES.html#__type.ARRAY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"BYTESTRING\",\"url\":\"variables/INTERNAL_TYPES.html#__type.BYTESTRING\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"BUFFER\",\"url\":\"variables/INTERNAL_TYPES.html#__type.BUFFER\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"INTEGER\",\"url\":\"variables/INTERNAL_TYPES.html#__type.INTEGER\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"INTEROPINTERFACE\",\"url\":\"variables/INTERNAL_TYPES.html#__type.INTEROPINTERFACE\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"BOOLEAN\",\"url\":\"variables/INTERNAL_TYPES.html#__type.BOOLEAN\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"MAP\",\"url\":\"variables/INTERNAL_TYPES.html#__type.MAP\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"NULL\",\"url\":\"variables/INTERNAL_TYPES.html#__type.NULL\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"POINTER\",\"url\":\"variables/INTERNAL_TYPES.html#__type.POINTER\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":1024,\"name\":\"STRUCT\",\"url\":\"variables/INTERNAL_TYPES.html#__type.STRUCT\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"INTERNAL_TYPES.__type\"},{\"kind\":32,\"name\":\"ABI_TYPES\",\"url\":\"variables/ABI_TYPES.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-variable\",\"parent\":\"ABI_TYPES\"},{\"kind\":1024,\"name\":\"ANY\",\"url\":\"variables/ABI_TYPES.html#__type.ANY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.ANY.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.ANY\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.ANY.__type-1.name\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.ANY.__type\"},{\"kind\":1024,\"name\":\"SIGNATURE\",\"url\":\"variables/ABI_TYPES.html#__type.SIGNATURE\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.SIGNATURE.__type-11\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.SIGNATURE\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.SIGNATURE.__type-11.name-10\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.SIGNATURE.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.SIGNATURE.__type-11.internal-9\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.SIGNATURE.__type\"},{\"kind\":1024,\"name\":\"BOOLEAN\",\"url\":\"variables/ABI_TYPES.html#__type.BOOLEAN\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.BOOLEAN.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.BOOLEAN\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.BOOLEAN.__type-3.name-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.BOOLEAN.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.BOOLEAN.__type-3.internal-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.BOOLEAN.__type\"},{\"kind\":1024,\"name\":\"INTEGER\",\"url\":\"variables/ABI_TYPES.html#__type.INTEGER\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.INTEGER.__type-7\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.INTEGER\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.INTEGER.__type-7.name-6\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.INTEGER.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.INTEGER.__type-7.internal-5\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.INTEGER.__type\"},{\"kind\":1024,\"name\":\"HASH160\",\"url\":\"variables/ABI_TYPES.html#__type.HASH160\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.HASH160.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.HASH160\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.HASH160.__type-5.name-4\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.HASH160.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.HASH160.__type-5.internal-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.HASH160.__type\"},{\"kind\":1024,\"name\":\"HASH256\",\"url\":\"variables/ABI_TYPES.html#__type.HASH256\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.HASH256.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.HASH256\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.HASH256.__type-6.name-5\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.HASH256.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.HASH256.__type-6.internal-4\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.HASH256.__type\"},{\"kind\":1024,\"name\":\"BYTEARRAY\",\"url\":\"variables/ABI_TYPES.html#__type.BYTEARRAY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.BYTEARRAY.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.BYTEARRAY\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.BYTEARRAY.__type-4.name-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.BYTEARRAY.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.BYTEARRAY.__type-4.internal-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.BYTEARRAY.__type\"},{\"kind\":1024,\"name\":\"PUBLICKEY\",\"url\":\"variables/ABI_TYPES.html#__type.PUBLICKEY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.PUBLICKEY.__type-10\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.PUBLICKEY\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.PUBLICKEY.__type-10.name-9\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.PUBLICKEY.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.PUBLICKEY.__type-10.internal-8\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.PUBLICKEY.__type\"},{\"kind\":1024,\"name\":\"STRING\",\"url\":\"variables/ABI_TYPES.html#__type.STRING\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.STRING.__type-12\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.STRING\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.STRING.__type-12.name-11\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.STRING.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.STRING.__type-12.internal-10\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.STRING.__type\"},{\"kind\":1024,\"name\":\"ARRAY\",\"url\":\"variables/ABI_TYPES.html#__type.ARRAY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.ARRAY.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.ARRAY\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.ARRAY.__type-2.name-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.ARRAY.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.ARRAY.__type-2.internal\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.ARRAY.__type\"},{\"kind\":1024,\"name\":\"MAP\",\"url\":\"variables/ABI_TYPES.html#__type.MAP\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.MAP.__type-9\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.MAP\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.MAP.__type-9.name-8\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.MAP.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.MAP.__type-9.internal-7\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.MAP.__type\"},{\"kind\":1024,\"name\":\"INTEROPINTERFACE\",\"url\":\"variables/ABI_TYPES.html#__type.INTEROPINTERFACE\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.INTEROPINTERFACE.__type-8\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.INTEROPINTERFACE\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.INTEROPINTERFACE.__type-8.name-7\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.INTEROPINTERFACE.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.INTEROPINTERFACE.__type-8.internal-6\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.INTEROPINTERFACE.__type\"},{\"kind\":1024,\"name\":\"VOID\",\"url\":\"variables/ABI_TYPES.html#__type.VOID\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/ABI_TYPES.html#__type.VOID.__type-13\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"ABI_TYPES.__type.VOID\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/ABI_TYPES.html#__type.VOID.__type-13.name-12\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.VOID.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/ABI_TYPES.html#__type.VOID.__type-13.internal-11\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ABI_TYPES.__type.VOID.__type\"},{\"kind\":32,\"name\":\"HINT_TYPES\",\"url\":\"variables/HINT_TYPES.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-variable\",\"parent\":\"HINT_TYPES\"},{\"kind\":1024,\"name\":\"ADDRESS\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.ADDRESS\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1.name-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ADDRESS.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1.abi\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ADDRESS.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1.abi.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.ADDRESS.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1.abi.__type-2.name\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ADDRESS.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.ADDRESS.__type-1.abi.__type-2.internal\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ADDRESS.__type.abi.__type\"},{\"kind\":1024,\"name\":\"PUBLICKEY\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7.name-7\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7.abi-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7.abi-3.__type-8\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7.abi-3.__type-8.name-6\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.PUBLICKEY.__type-7.abi-3.__type-8.internal-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.PUBLICKEY.__type.abi.__type\"},{\"kind\":1024,\"name\":\"SCRIPTHASH\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9.name-9\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9.abi-4\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9.abi-4.__type-10\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9.abi-4.__type-10.name-8\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASH.__type-9.abi-4.__type-10.internal-4\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASH.__type.abi.__type\"},{\"kind\":1024,\"name\":\"SCRIPTHASHLITTLEENDING\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11.name-11\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11.abi-5\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11.abi-5.__type-12\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11.abi-5.__type-12.name-10\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.SCRIPTHASHLITTLEENDING.__type-11.abi-5.__type-12.internal-5\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.SCRIPTHASHLITTLEENDING.__type.abi.__type\"},{\"kind\":1024,\"name\":\"BLOCKHASH\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3.name-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3.abi-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3.abi-1.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3.abi-1.__type-4.name-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.BLOCKHASH.__type-3.abi-1.__type-4.internal-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.BLOCKHASH.__type.abi.__type\"},{\"kind\":1024,\"name\":\"TRANSACTIONID\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15.name-15\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15.abi-7\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15.abi-7.__type-16\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15.abi-7.__type-16.name-14\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.TRANSACTIONID.__type-15.abi-7.__type-16.internal-7\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.TRANSACTIONID.__type.abi.__type\"},{\"kind\":1024,\"name\":\"STORAGECONTEXT\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13.name-13\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13.abi-6\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13.abi-6.__type-14\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13.abi-6.__type-14.name-12\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.STORAGECONTEXT.__type-13.abi-6.__type-14.internal-6\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.STORAGECONTEXT.__type.abi.__type\"},{\"kind\":1024,\"name\":\"ITERATOR\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.ITERATOR\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5.name-5\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ITERATOR.__type\"},{\"kind\":1024,\"name\":\"abi\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5.abi-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ITERATOR.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5.abi-2.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"HINT_TYPES.__type.ITERATOR.__type.abi\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5.abi-2.__type-6.name-4\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ITERATOR.__type.abi.__type\"},{\"kind\":1024,\"name\":\"internal\",\"url\":\"variables/HINT_TYPES.html#__type.ITERATOR.__type-5.abi-2.__type-6.internal-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"HINT_TYPES.__type.ITERATOR.__type.abi.__type\"},{\"kind\":8,\"name\":\"SignMessageVersion\",\"url\":\"enums/SignMessageVersion.html\",\"classes\":\"tsd-kind-enum\"},{\"kind\":16,\"name\":\"CLASSIC\",\"url\":\"enums/SignMessageVersion.html#CLASSIC\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"SignMessageVersion\"},{\"kind\":16,\"name\":\"DEFAULT\",\"url\":\"enums/SignMessageVersion.html#DEFAULT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"SignMessageVersion\"},{\"kind\":16,\"name\":\"WITHOUT_SALT\",\"url\":\"enums/SignMessageVersion.html#WITHOUT_SALT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"SignMessageVersion\"},{\"kind\":4194304,\"name\":\"SignMessagePayload\",\"url\":\"types/SignMessagePayload.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/SignMessagePayload.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"SignMessagePayload\"},{\"kind\":1024,\"name\":\"message\",\"url\":\"types/SignMessagePayload.html#__type.message\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignMessagePayload.__type\"},{\"kind\":1024,\"name\":\"version\",\"url\":\"types/SignMessagePayload.html#__type.version\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignMessagePayload.__type\"},{\"kind\":4194304,\"name\":\"SignedMessage\",\"url\":\"types/SignedMessage.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/SignedMessage.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"SignedMessage\"},{\"kind\":1024,\"name\":\"publicKey\",\"url\":\"types/SignedMessage.html#__type.publicKey\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignedMessage.__type\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"types/SignedMessage.html#__type.data\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignedMessage.__type\"},{\"kind\":1024,\"name\":\"salt\",\"url\":\"types/SignedMessage.html#__type.salt\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignedMessage.__type\"},{\"kind\":1024,\"name\":\"messageHex\",\"url\":\"types/SignedMessage.html#__type.messageHex\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"SignedMessage.__type\"},{\"kind\":256,\"name\":\"EncryptedPayload\",\"url\":\"interfaces/EncryptedPayload.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"randomVector\",\"url\":\"interfaces/EncryptedPayload.html#randomVector\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"EncryptedPayload\"},{\"kind\":1024,\"name\":\"cipherText\",\"url\":\"interfaces/EncryptedPayload.html#cipherText\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"EncryptedPayload\"},{\"kind\":1024,\"name\":\"dataTag\",\"url\":\"interfaces/EncryptedPayload.html#dataTag\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"EncryptedPayload\"},{\"kind\":1024,\"name\":\"ephemPublicKey\",\"url\":\"interfaces/EncryptedPayload.html#ephemPublicKey\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"EncryptedPayload\"},{\"kind\":256,\"name\":\"DecryptFromArrayResult\",\"url\":\"interfaces/DecryptFromArrayResult.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"message\",\"url\":\"interfaces/DecryptFromArrayResult.html#message\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DecryptFromArrayResult\"},{\"kind\":1024,\"name\":\"keyIndex\",\"url\":\"interfaces/DecryptFromArrayResult.html#keyIndex\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DecryptFromArrayResult\"},{\"kind\":256,\"name\":\"Neo3Signer\",\"url\":\"interfaces/Neo3Signer.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":2048,\"name\":\"signMessage\",\"url\":\"interfaces/Neo3Signer.html#signMessage\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":2048,\"name\":\"verifyMessage\",\"url\":\"interfaces/Neo3Signer.html#verifyMessage\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":2048,\"name\":\"getAccountAddress\",\"url\":\"interfaces/Neo3Signer.html#getAccountAddress\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":2048,\"name\":\"encrypt\",\"url\":\"interfaces/Neo3Signer.html#encrypt\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":2048,\"name\":\"decrypt\",\"url\":\"interfaces/Neo3Signer.html#decrypt\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":2048,\"name\":\"decryptFromArray\",\"url\":\"interfaces/Neo3Signer.html#decryptFromArray\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"Neo3Signer\"},{\"kind\":32,\"name\":\"TypeChecker\",\"url\":\"variables/TypeChecker.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"variables/TypeChecker.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-variable\",\"parent\":\"TypeChecker\"},{\"kind\":2048,\"name\":\"isStackTypeAny\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeAny\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeBoolean\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeBoolean\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeInteger\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeInteger\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeArray\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeArray\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeMap\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeMap\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeByteString\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeByteString\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeInteropInterface\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeInteropInterface\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypePointer\",\"url\":\"variables/TypeChecker.html#__type.isStackTypePointer\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeBuffer\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isStackTypeStruct\",\"url\":\"variables/TypeChecker.html#__type.isStackTypeStruct\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"},{\"kind\":2048,\"name\":\"isRpcResponseStackItem\",\"url\":\"variables/TypeChecker.html#__type.isRpcResponseStackItem\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"TypeChecker.__type\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,56.204]],[\"comment/0\",[]],[\"name/1\",[1,51.096]],[\"comment/1\",[]],[\"name/2\",[2,51.096]],[\"comment/2\",[]],[\"name/3\",[3,56.204]],[\"comment/3\",[]],[\"name/4\",[4,51.096]],[\"comment/4\",[]],[\"name/5\",[1,51.096]],[\"comment/5\",[]],[\"name/6\",[2,51.096]],[\"comment/6\",[]],[\"name/7\",[5,56.204]],[\"comment/7\",[]],[\"name/8\",[6,14.987]],[\"comment/8\",[]],[\"name/9\",[7,56.204]],[\"comment/9\",[]],[\"name/10\",[8,23.752]],[\"comment/10\",[]],[\"name/11\",[9,31.637]],[\"comment/11\",[]],[\"name/12\",[10,56.204]],[\"comment/12\",[]],[\"name/13\",[11,56.204]],[\"comment/13\",[]],[\"name/14\",[12,56.204]],[\"comment/14\",[]],[\"name/15\",[13,56.204]],[\"comment/15\",[]],[\"name/16\",[14,56.204]],[\"comment/16\",[]],[\"name/17\",[15,56.204]],[\"comment/17\",[]],[\"name/18\",[16,56.204]],[\"comment/18\",[]],[\"name/19\",[17,56.204]],[\"comment/19\",[]],[\"name/20\",[18,56.204]],[\"comment/20\",[]],[\"name/21\",[8,23.752]],[\"comment/21\",[]],[\"name/22\",[19,51.096]],[\"comment/22\",[]],[\"name/23\",[20,56.204]],[\"comment/23\",[]],[\"name/24\",[8,23.752]],[\"comment/24\",[]],[\"name/25\",[19,51.096]],[\"comment/25\",[]],[\"name/26\",[21,56.204]],[\"comment/26\",[]],[\"name/27\",[8,23.752]],[\"comment/27\",[]],[\"name/28\",[22,51.096]],[\"comment/28\",[]],[\"name/29\",[23,56.204]],[\"comment/29\",[]],[\"name/30\",[8,23.752]],[\"comment/30\",[]],[\"name/31\",[22,51.096]],[\"comment/31\",[]],[\"name/32\",[24,56.204]],[\"comment/32\",[]],[\"name/33\",[8,23.752]],[\"comment/33\",[]],[\"name/34\",[25,51.096]],[\"comment/34\",[]],[\"name/35\",[26,56.204]],[\"comment/35\",[]],[\"name/36\",[8,23.752]],[\"comment/36\",[]],[\"name/37\",[27,51.096]],[\"comment/37\",[]],[\"name/38\",[28,56.204]],[\"comment/38\",[]],[\"name/39\",[8,23.752]],[\"comment/39\",[]],[\"name/40\",[29,56.204]],[\"comment/40\",[]],[\"name/41\",[8,23.752]],[\"comment/41\",[]],[\"name/42\",[25,51.096]],[\"comment/42\",[]],[\"name/43\",[30,56.204]],[\"comment/43\",[]],[\"name/44\",[8,23.752]],[\"comment/44\",[]],[\"name/45\",[27,51.096]],[\"comment/45\",[]],[\"name/46\",[31,56.204]],[\"comment/46\",[]],[\"name/47\",[32,56.204]],[\"comment/47\",[]],[\"name/48\",[33,56.204]],[\"comment/48\",[]],[\"name/49\",[34,56.204]],[\"comment/49\",[]],[\"name/50\",[35,56.204]],[\"comment/50\",[]],[\"name/51\",[6,14.987]],[\"comment/51\",[]],[\"name/52\",[36,56.204]],[\"comment/52\",[]],[\"name/53\",[37,56.204]],[\"comment/53\",[]],[\"name/54\",[38,56.204]],[\"comment/54\",[]],[\"name/55\",[39,56.204]],[\"comment/55\",[]],[\"name/56\",[40,56.204]],[\"comment/56\",[]],[\"name/57\",[41,56.204]],[\"comment/57\",[]],[\"name/58\",[6,14.987]],[\"comment/58\",[]],[\"name/59\",[8,23.752]],[\"comment/59\",[]],[\"name/60\",[9,31.637]],[\"comment/60\",[]],[\"name/61\",[42,56.204]],[\"comment/61\",[]],[\"name/62\",[6,14.987]],[\"comment/62\",[]],[\"name/63\",[8,23.752]],[\"comment/63\",[]],[\"name/64\",[9,31.637]],[\"comment/64\",[]],[\"name/65\",[43,56.204]],[\"comment/65\",[]],[\"name/66\",[6,14.987]],[\"comment/66\",[]],[\"name/67\",[8,23.752]],[\"comment/67\",[]],[\"name/68\",[9,31.637]],[\"comment/68\",[]],[\"name/69\",[44,56.204]],[\"comment/69\",[]],[\"name/70\",[6,14.987]],[\"comment/70\",[]],[\"name/71\",[8,23.752]],[\"comment/71\",[]],[\"name/72\",[9,31.637]],[\"comment/72\",[]],[\"name/73\",[45,56.204]],[\"comment/73\",[]],[\"name/74\",[6,14.987]],[\"comment/74\",[]],[\"name/75\",[8,23.752]],[\"comment/75\",[]],[\"name/76\",[9,31.637]],[\"comment/76\",[]],[\"name/77\",[46,56.204]],[\"comment/77\",[]],[\"name/78\",[6,14.987]],[\"comment/78\",[]],[\"name/79\",[8,23.752]],[\"comment/79\",[]],[\"name/80\",[9,31.637]],[\"comment/80\",[]],[\"name/81\",[47,56.204]],[\"comment/81\",[]],[\"name/82\",[6,14.987]],[\"comment/82\",[]],[\"name/83\",[8,23.752]],[\"comment/83\",[]],[\"name/84\",[9,31.637]],[\"comment/84\",[]],[\"name/85\",[48,56.204]],[\"comment/85\",[]],[\"name/86\",[6,14.987]],[\"comment/86\",[]],[\"name/87\",[8,23.752]],[\"comment/87\",[]],[\"name/88\",[9,31.637]],[\"comment/88\",[]],[\"name/89\",[49,56.204]],[\"comment/89\",[]],[\"name/90\",[6,14.987]],[\"comment/90\",[]],[\"name/91\",[8,23.752]],[\"comment/91\",[]],[\"name/92\",[9,31.637]],[\"comment/92\",[]],[\"name/93\",[50,56.204]],[\"comment/93\",[]],[\"name/94\",[6,14.987]],[\"comment/94\",[]],[\"name/95\",[8,23.752]],[\"comment/95\",[]],[\"name/96\",[9,31.637]],[\"comment/96\",[]],[\"name/97\",[51,56.204]],[\"comment/97\",[]],[\"name/98\",[52,56.204]],[\"comment/98\",[]],[\"name/99\",[6,14.987]],[\"comment/99\",[]],[\"name/100\",[53,51.096]],[\"comment/100\",[]],[\"name/101\",[54,56.204]],[\"comment/101\",[]],[\"name/102\",[55,56.204]],[\"comment/102\",[]],[\"name/103\",[56,56.204]],[\"comment/103\",[]],[\"name/104\",[57,56.204]],[\"comment/104\",[]],[\"name/105\",[6,14.987]],[\"comment/105\",[]],[\"name/106\",[58,56.204]],[\"comment/106\",[]],[\"name/107\",[59,56.204]],[\"comment/107\",[]],[\"name/108\",[60,56.204]],[\"comment/108\",[]],[\"name/109\",[61,56.204]],[\"comment/109\",[]],[\"name/110\",[62,56.204]],[\"comment/110\",[]],[\"name/111\",[63,56.204]],[\"comment/111\",[]],[\"name/112\",[64,56.204]],[\"comment/112\",[]],[\"name/113\",[6,14.987]],[\"comment/113\",[]],[\"name/114\",[65,56.204]],[\"comment/114\",[]],[\"name/115\",[66,56.204]],[\"comment/115\",[]],[\"name/116\",[67,56.204]],[\"comment/116\",[]],[\"name/117\",[68,56.204]],[\"comment/117\",[]],[\"name/118\",[6,14.987]],[\"comment/118\",[]],[\"name/119\",[8,23.752]],[\"comment/119\",[]],[\"name/120\",[9,31.637]],[\"comment/120\",[]],[\"name/121\",[69,56.204]],[\"comment/121\",[]],[\"name/122\",[6,14.987]],[\"comment/122\",[]],[\"name/123\",[8,23.752]],[\"comment/123\",[]],[\"name/124\",[9,31.637]],[\"comment/124\",[]],[\"name/125\",[70,56.204]],[\"comment/125\",[]],[\"name/126\",[6,14.987]],[\"comment/126\",[]],[\"name/127\",[8,23.752]],[\"comment/127\",[]],[\"name/128\",[9,31.637]],[\"comment/128\",[]],[\"name/129\",[71,56.204]],[\"comment/129\",[]],[\"name/130\",[6,14.987]],[\"comment/130\",[]],[\"name/131\",[8,23.752]],[\"comment/131\",[]],[\"name/132\",[72,56.204]],[\"comment/132\",[]],[\"name/133\",[73,56.204]],[\"comment/133\",[]],[\"name/134\",[74,56.204]],[\"comment/134\",[]],[\"name/135\",[6,14.987]],[\"comment/135\",[]],[\"name/136\",[8,23.752]],[\"comment/136\",[]],[\"name/137\",[9,31.637]],[\"comment/137\",[]],[\"name/138\",[75,56.204]],[\"comment/138\",[]],[\"name/139\",[6,14.987]],[\"comment/139\",[]],[\"name/140\",[8,23.752]],[\"comment/140\",[]],[\"name/141\",[9,31.637]],[\"comment/141\",[]],[\"name/142\",[76,56.204]],[\"comment/142\",[]],[\"name/143\",[6,14.987]],[\"comment/143\",[]],[\"name/144\",[8,23.752]],[\"comment/144\",[]],[\"name/145\",[9,31.637]],[\"comment/145\",[]],[\"name/146\",[77,56.204]],[\"comment/146\",[]],[\"name/147\",[78,56.204]],[\"comment/147\",[]],[\"name/148\",[79,56.204]],[\"comment/148\",[]],[\"name/149\",[4,51.096]],[\"comment/149\",[]],[\"name/150\",[80,56.204]],[\"comment/150\",[]],[\"name/151\",[81,56.204]],[\"comment/151\",[]],[\"name/152\",[82,56.204]],[\"comment/152\",[]],[\"name/153\",[83,56.204]],[\"comment/153\",[]],[\"name/154\",[84,56.204]],[\"comment/154\",[]],[\"name/155\",[85,56.204]],[\"comment/155\",[]],[\"name/156\",[86,56.204]],[\"comment/156\",[]],[\"name/157\",[6,14.987]],[\"comment/157\",[]],[\"name/158\",[87,56.204]],[\"comment/158\",[]],[\"name/159\",[6,14.987]],[\"comment/159\",[]],[\"name/160\",[88,56.204]],[\"comment/160\",[]],[\"name/161\",[6,14.987]],[\"comment/161\",[]],[\"name/162\",[89,56.204]],[\"comment/162\",[]],[\"name/163\",[6,14.987]],[\"comment/163\",[]],[\"name/164\",[90,56.204]],[\"comment/164\",[]],[\"name/165\",[91,56.204]],[\"comment/165\",[]],[\"name/166\",[6,14.987]],[\"comment/166\",[]],[\"name/167\",[92,56.204]],[\"comment/167\",[]],[\"name/168\",[6,14.987]],[\"comment/168\",[]],[\"name/169\",[93,56.204]],[\"comment/169\",[]],[\"name/170\",[6,14.987]],[\"comment/170\",[]],[\"name/171\",[94,56.204]],[\"comment/171\",[]],[\"name/172\",[6,14.987]],[\"comment/172\",[]],[\"name/173\",[95,56.204]],[\"comment/173\",[]],[\"name/174\",[6,14.987]],[\"comment/174\",[]],[\"name/175\",[96,56.204]],[\"comment/175\",[]],[\"name/176\",[6,14.987]],[\"comment/176\",[]],[\"name/177\",[97,56.204]],[\"comment/177\",[]],[\"name/178\",[6,14.987]],[\"comment/178\",[]],[\"name/179\",[98,56.204]],[\"comment/179\",[]],[\"name/180\",[6,14.987]],[\"comment/180\",[]],[\"name/181\",[99,56.204]],[\"comment/181\",[]],[\"name/182\",[6,14.987]],[\"comment/182\",[]],[\"name/183\",[100,56.204]],[\"comment/183\",[]],[\"name/184\",[6,14.987]],[\"comment/184\",[]],[\"name/185\",[101,56.204]],[\"comment/185\",[]],[\"name/186\",[6,14.987]],[\"comment/186\",[]],[\"name/187\",[102,56.204]],[\"comment/187\",[]],[\"name/188\",[6,14.987]],[\"comment/188\",[]],[\"name/189\",[103,56.204]],[\"comment/189\",[]],[\"name/190\",[6,14.987]],[\"comment/190\",[]],[\"name/191\",[104,56.204]],[\"comment/191\",[]],[\"name/192\",[6,14.987]],[\"comment/192\",[]],[\"name/193\",[105,56.204]],[\"comment/193\",[]],[\"name/194\",[6,14.987]],[\"comment/194\",[]],[\"name/195\",[106,56.204]],[\"comment/195\",[]],[\"name/196\",[6,14.987]],[\"comment/196\",[]],[\"name/197\",[107,56.204]],[\"comment/197\",[]],[\"name/198\",[6,14.987]],[\"comment/198\",[]],[\"name/199\",[108,56.204]],[\"comment/199\",[]],[\"name/200\",[6,14.987]],[\"comment/200\",[]],[\"name/201\",[109,56.204]],[\"comment/201\",[]],[\"name/202\",[6,14.987]],[\"comment/202\",[]],[\"name/203\",[110,56.204]],[\"comment/203\",[]],[\"name/204\",[6,14.987]],[\"comment/204\",[]],[\"name/205\",[111,56.204]],[\"comment/205\",[]],[\"name/206\",[6,14.987]],[\"comment/206\",[]],[\"name/207\",[8,23.752]],[\"comment/207\",[]],[\"name/208\",[112,56.204]],[\"comment/208\",[]],[\"name/209\",[113,56.204]],[\"comment/209\",[]],[\"name/210\",[6,14.987]],[\"comment/210\",[]],[\"name/211\",[8,23.752]],[\"comment/211\",[]],[\"name/212\",[114,43.211]],[\"comment/212\",[]],[\"name/213\",[115,56.204]],[\"comment/213\",[]],[\"name/214\",[6,14.987]],[\"comment/214\",[]],[\"name/215\",[8,23.752]],[\"comment/215\",[]],[\"name/216\",[116,56.204]],[\"comment/216\",[]],[\"name/217\",[6,14.987]],[\"comment/217\",[]],[\"name/218\",[8,23.752]],[\"comment/218\",[]],[\"name/219\",[117,56.204]],[\"comment/219\",[]],[\"name/220\",[6,14.987]],[\"comment/220\",[]],[\"name/221\",[8,23.752]],[\"comment/221\",[]],[\"name/222\",[114,43.211]],[\"comment/222\",[]],[\"name/223\",[118,56.204]],[\"comment/223\",[]],[\"name/224\",[6,14.987]],[\"comment/224\",[]],[\"name/225\",[8,23.752]],[\"comment/225\",[]],[\"name/226\",[114,43.211]],[\"comment/226\",[]],[\"name/227\",[119,56.204]],[\"comment/227\",[]],[\"name/228\",[6,14.987]],[\"comment/228\",[]],[\"name/229\",[8,23.752]],[\"comment/229\",[]],[\"name/230\",[114,43.211]],[\"comment/230\",[]],[\"name/231\",[120,56.204]],[\"comment/231\",[]],[\"name/232\",[6,14.987]],[\"comment/232\",[]],[\"name/233\",[8,23.752]],[\"comment/233\",[]],[\"name/234\",[121,56.204]],[\"comment/234\",[]],[\"name/235\",[6,14.987]],[\"comment/235\",[]],[\"name/236\",[8,23.752]],[\"comment/236\",[]],[\"name/237\",[122,56.204]],[\"comment/237\",[]],[\"name/238\",[123,56.204]],[\"comment/238\",[]],[\"name/239\",[6,14.987]],[\"comment/239\",[]],[\"name/240\",[8,23.752]],[\"comment/240\",[]],[\"name/241\",[124,56.204]],[\"comment/241\",[]],[\"name/242\",[125,56.204]],[\"comment/242\",[]],[\"name/243\",[126,56.204]],[\"comment/243\",[]],[\"name/244\",[6,14.987]],[\"comment/244\",[]],[\"name/245\",[8,23.752]],[\"comment/245\",[]],[\"name/246\",[114,43.211]],[\"comment/246\",[]],[\"name/247\",[127,56.204]],[\"comment/247\",[]],[\"name/248\",[128,56.204]],[\"comment/248\",[]],[\"name/249\",[6,14.987]],[\"comment/249\",[]],[\"name/250\",[129,51.096]],[\"comment/250\",[]],[\"name/251\",[130,56.204]],[\"comment/251\",[]],[\"name/252\",[131,56.204]],[\"comment/252\",[]],[\"name/253\",[132,51.096]],[\"comment/253\",[]],[\"name/254\",[133,51.096]],[\"comment/254\",[]],[\"name/255\",[134,51.096]],[\"comment/255\",[]],[\"name/256\",[135,51.096]],[\"comment/256\",[]],[\"name/257\",[136,56.204]],[\"comment/257\",[]],[\"name/258\",[137,56.204]],[\"comment/258\",[]],[\"name/259\",[138,56.204]],[\"comment/259\",[]],[\"name/260\",[139,56.204]],[\"comment/260\",[]],[\"name/261\",[6,14.987]],[\"comment/261\",[]],[\"name/262\",[140,56.204]],[\"comment/262\",[]],[\"name/263\",[6,14.987]],[\"comment/263\",[]],[\"name/264\",[141,26.415]],[\"comment/264\",[]],[\"name/265\",[142,56.204]],[\"comment/265\",[]],[\"name/266\",[6,14.987]],[\"comment/266\",[]],[\"name/267\",[141,26.415]],[\"comment/267\",[]],[\"name/268\",[143,30.054]],[\"comment/268\",[]],[\"name/269\",[134,51.096]],[\"comment/269\",[]],[\"name/270\",[6,14.987]],[\"comment/270\",[]],[\"name/271\",[141,26.415]],[\"comment/271\",[]],[\"name/272\",[143,30.054]],[\"comment/272\",[]],[\"name/273\",[132,51.096]],[\"comment/273\",[]],[\"name/274\",[6,14.987]],[\"comment/274\",[]],[\"name/275\",[141,26.415]],[\"comment/275\",[]],[\"name/276\",[143,30.054]],[\"comment/276\",[]],[\"name/277\",[144,56.204]],[\"comment/277\",[]],[\"name/278\",[6,14.987]],[\"comment/278\",[]],[\"name/279\",[141,26.415]],[\"comment/279\",[]],[\"name/280\",[143,30.054]],[\"comment/280\",[]],[\"name/281\",[145,56.204]],[\"comment/281\",[]],[\"name/282\",[6,14.987]],[\"comment/282\",[]],[\"name/283\",[141,26.415]],[\"comment/283\",[]],[\"name/284\",[143,30.054]],[\"comment/284\",[]],[\"name/285\",[146,56.204]],[\"comment/285\",[]],[\"name/286\",[6,14.987]],[\"comment/286\",[]],[\"name/287\",[141,26.415]],[\"comment/287\",[]],[\"name/288\",[143,30.054]],[\"comment/288\",[]],[\"name/289\",[147,47.731]],[\"comment/289\",[]],[\"name/290\",[6,14.987]],[\"comment/290\",[]],[\"name/291\",[141,26.415]],[\"comment/291\",[]],[\"name/292\",[143,30.054]],[\"comment/292\",[]],[\"name/293\",[148,56.204]],[\"comment/293\",[]],[\"name/294\",[6,14.987]],[\"comment/294\",[]],[\"name/295\",[141,26.415]],[\"comment/295\",[]],[\"name/296\",[143,30.054]],[\"comment/296\",[]],[\"name/297\",[129,51.096]],[\"comment/297\",[]],[\"name/298\",[6,14.987]],[\"comment/298\",[]],[\"name/299\",[141,26.415]],[\"comment/299\",[]],[\"name/300\",[143,30.054]],[\"comment/300\",[]],[\"name/301\",[135,51.096]],[\"comment/301\",[]],[\"name/302\",[6,14.987]],[\"comment/302\",[]],[\"name/303\",[141,26.415]],[\"comment/303\",[]],[\"name/304\",[143,30.054]],[\"comment/304\",[]],[\"name/305\",[133,51.096]],[\"comment/305\",[]],[\"name/306\",[6,14.987]],[\"comment/306\",[]],[\"name/307\",[141,26.415]],[\"comment/307\",[]],[\"name/308\",[143,30.054]],[\"comment/308\",[]],[\"name/309\",[149,56.204]],[\"comment/309\",[]],[\"name/310\",[6,14.987]],[\"comment/310\",[]],[\"name/311\",[141,26.415]],[\"comment/311\",[]],[\"name/312\",[143,30.054]],[\"comment/312\",[]],[\"name/313\",[150,56.204]],[\"comment/313\",[]],[\"name/314\",[6,14.987]],[\"comment/314\",[]],[\"name/315\",[151,56.204]],[\"comment/315\",[]],[\"name/316\",[6,14.987]],[\"comment/316\",[]],[\"name/317\",[141,26.415]],[\"comment/317\",[]],[\"name/318\",[152,38.858]],[\"comment/318\",[]],[\"name/319\",[6,14.987]],[\"comment/319\",[]],[\"name/320\",[141,26.415]],[\"comment/320\",[]],[\"name/321\",[143,30.054]],[\"comment/321\",[]],[\"name/322\",[147,47.731]],[\"comment/322\",[]],[\"name/323\",[6,14.987]],[\"comment/323\",[]],[\"name/324\",[141,26.415]],[\"comment/324\",[]],[\"name/325\",[152,38.858]],[\"comment/325\",[]],[\"name/326\",[6,14.987]],[\"comment/326\",[]],[\"name/327\",[141,26.415]],[\"comment/327\",[]],[\"name/328\",[143,30.054]],[\"comment/328\",[]],[\"name/329\",[53,51.096]],[\"comment/329\",[]],[\"name/330\",[6,14.987]],[\"comment/330\",[]],[\"name/331\",[141,26.415]],[\"comment/331\",[]],[\"name/332\",[152,38.858]],[\"comment/332\",[]],[\"name/333\",[6,14.987]],[\"comment/333\",[]],[\"name/334\",[141,26.415]],[\"comment/334\",[]],[\"name/335\",[143,30.054]],[\"comment/335\",[]],[\"name/336\",[153,56.204]],[\"comment/336\",[]],[\"name/337\",[6,14.987]],[\"comment/337\",[]],[\"name/338\",[141,26.415]],[\"comment/338\",[]],[\"name/339\",[152,38.858]],[\"comment/339\",[]],[\"name/340\",[6,14.987]],[\"comment/340\",[]],[\"name/341\",[141,26.415]],[\"comment/341\",[]],[\"name/342\",[143,30.054]],[\"comment/342\",[]],[\"name/343\",[154,56.204]],[\"comment/343\",[]],[\"name/344\",[6,14.987]],[\"comment/344\",[]],[\"name/345\",[141,26.415]],[\"comment/345\",[]],[\"name/346\",[152,38.858]],[\"comment/346\",[]],[\"name/347\",[6,14.987]],[\"comment/347\",[]],[\"name/348\",[141,26.415]],[\"comment/348\",[]],[\"name/349\",[143,30.054]],[\"comment/349\",[]],[\"name/350\",[155,56.204]],[\"comment/350\",[]],[\"name/351\",[6,14.987]],[\"comment/351\",[]],[\"name/352\",[141,26.415]],[\"comment/352\",[]],[\"name/353\",[152,38.858]],[\"comment/353\",[]],[\"name/354\",[6,14.987]],[\"comment/354\",[]],[\"name/355\",[141,26.415]],[\"comment/355\",[]],[\"name/356\",[143,30.054]],[\"comment/356\",[]],[\"name/357\",[156,56.204]],[\"comment/357\",[]],[\"name/358\",[6,14.987]],[\"comment/358\",[]],[\"name/359\",[141,26.415]],[\"comment/359\",[]],[\"name/360\",[152,38.858]],[\"comment/360\",[]],[\"name/361\",[6,14.987]],[\"comment/361\",[]],[\"name/362\",[141,26.415]],[\"comment/362\",[]],[\"name/363\",[143,30.054]],[\"comment/363\",[]],[\"name/364\",[157,56.204]],[\"comment/364\",[]],[\"name/365\",[6,14.987]],[\"comment/365\",[]],[\"name/366\",[141,26.415]],[\"comment/366\",[]],[\"name/367\",[152,38.858]],[\"comment/367\",[]],[\"name/368\",[6,14.987]],[\"comment/368\",[]],[\"name/369\",[141,26.415]],[\"comment/369\",[]],[\"name/370\",[143,30.054]],[\"comment/370\",[]],[\"name/371\",[158,56.204]],[\"comment/371\",[]],[\"name/372\",[159,56.204]],[\"comment/372\",[]],[\"name/373\",[160,56.204]],[\"comment/373\",[]],[\"name/374\",[161,56.204]],[\"comment/374\",[]],[\"name/375\",[162,56.204]],[\"comment/375\",[]],[\"name/376\",[6,14.987]],[\"comment/376\",[]],[\"name/377\",[163,51.096]],[\"comment/377\",[]],[\"name/378\",[164,56.204]],[\"comment/378\",[]],[\"name/379\",[165,56.204]],[\"comment/379\",[]],[\"name/380\",[6,14.987]],[\"comment/380\",[]],[\"name/381\",[147,47.731]],[\"comment/381\",[]],[\"name/382\",[166,56.204]],[\"comment/382\",[]],[\"name/383\",[167,56.204]],[\"comment/383\",[]],[\"name/384\",[168,56.204]],[\"comment/384\",[]],[\"name/385\",[169,56.204]],[\"comment/385\",[]],[\"name/386\",[170,56.204]],[\"comment/386\",[]],[\"name/387\",[171,56.204]],[\"comment/387\",[]],[\"name/388\",[172,56.204]],[\"comment/388\",[]],[\"name/389\",[173,56.204]],[\"comment/389\",[]],[\"name/390\",[174,56.204]],[\"comment/390\",[]],[\"name/391\",[163,51.096]],[\"comment/391\",[]],[\"name/392\",[175,56.204]],[\"comment/392\",[]],[\"name/393\",[176,56.204]],[\"comment/393\",[]],[\"name/394\",[177,56.204]],[\"comment/394\",[]],[\"name/395\",[178,56.204]],[\"comment/395\",[]],[\"name/396\",[179,56.204]],[\"comment/396\",[]],[\"name/397\",[180,56.204]],[\"comment/397\",[]],[\"name/398\",[181,56.204]],[\"comment/398\",[]],[\"name/399\",[182,56.204]],[\"comment/399\",[]],[\"name/400\",[183,56.204]],[\"comment/400\",[]],[\"name/401\",[6,14.987]],[\"comment/401\",[]],[\"name/402\",[184,56.204]],[\"comment/402\",[]],[\"name/403\",[185,56.204]],[\"comment/403\",[]],[\"name/404\",[186,56.204]],[\"comment/404\",[]],[\"name/405\",[187,56.204]],[\"comment/405\",[]],[\"name/406\",[188,56.204]],[\"comment/406\",[]],[\"name/407\",[189,56.204]],[\"comment/407\",[]],[\"name/408\",[190,56.204]],[\"comment/408\",[]],[\"name/409\",[191,56.204]],[\"comment/409\",[]],[\"name/410\",[192,56.204]],[\"comment/410\",[]],[\"name/411\",[193,56.204]],[\"comment/411\",[]],[\"name/412\",[194,56.204]],[\"comment/412\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":6,\"name\":{\"8\":{},\"51\":{},\"58\":{},\"62\":{},\"66\":{},\"70\":{},\"74\":{},\"78\":{},\"82\":{},\"86\":{},\"90\":{},\"94\":{},\"99\":{},\"105\":{},\"113\":{},\"118\":{},\"122\":{},\"126\":{},\"130\":{},\"135\":{},\"139\":{},\"143\":{},\"157\":{},\"159\":{},\"161\":{},\"163\":{},\"166\":{},\"168\":{},\"170\":{},\"172\":{},\"174\":{},\"176\":{},\"178\":{},\"180\":{},\"182\":{},\"184\":{},\"186\":{},\"188\":{},\"190\":{},\"192\":{},\"194\":{},\"196\":{},\"198\":{},\"200\":{},\"202\":{},\"204\":{},\"206\":{},\"210\":{},\"214\":{},\"217\":{},\"220\":{},\"224\":{},\"228\":{},\"232\":{},\"235\":{},\"239\":{},\"244\":{},\"249\":{},\"261\":{},\"263\":{},\"266\":{},\"270\":{},\"274\":{},\"278\":{},\"282\":{},\"286\":{},\"290\":{},\"294\":{},\"298\":{},\"302\":{},\"306\":{},\"310\":{},\"314\":{},\"316\":{},\"319\":{},\"323\":{},\"326\":{},\"330\":{},\"333\":{},\"337\":{},\"340\":{},\"344\":{},\"347\":{},\"351\":{},\"354\":{},\"358\":{},\"361\":{},\"365\":{},\"368\":{},\"376\":{},\"380\":{},\"401\":{}},\"comment\":{}}],[\"abi\",{\"_index\":152,\"name\":{\"318\":{},\"325\":{},\"332\":{},\"339\":{},\"346\":{},\"353\":{},\"360\":{},\"367\":{}},\"comment\":{}}],[\"abi_types\",{\"_index\":139,\"name\":{\"260\":{}},\"comment\":{}}],[\"abortonfail\",{\"_index\":56,\"name\":{\"103\":{}},\"comment\":{}}],[\"abtohex\",{\"_index\":94,\"name\":{\"171\":{}},\"comment\":{}}],[\"abtostr\",{\"_index\":91,\"name\":{\"165\":{}},\"comment\":{}}],[\"account\",{\"_index\":37,\"name\":{\"53\":{}},\"comment\":{}}],[\"accountinputtoaddress\",{\"_index\":107,\"name\":{\"197\":{}},\"comment\":{}}],[\"accountinputtoscripthash\",{\"_index\":105,\"name\":{\"193\":{}},\"comment\":{}}],[\"action\",{\"_index\":33,\"name\":{\"48\":{}},\"comment\":{}}],[\"addeventlistener\",{\"_index\":14,\"name\":{\"16\":{}},\"comment\":{}}],[\"address\",{\"_index\":151,\"name\":{\"315\":{}},\"comment\":{}}],[\"allowedcontracts\",{\"_index\":38,\"name\":{\"54\":{}},\"comment\":{}}],[\"allowedgroups\",{\"_index\":39,\"name\":{\"55\":{}},\"comment\":{}}],[\"andwitnesscondition\",{\"_index\":21,\"name\":{\"26\":{}},\"comment\":{}}],[\"any\",{\"_index\":140,\"name\":{\"262\":{}},\"comment\":{}}],[\"anyargtype\",{\"_index\":41,\"name\":{\"57\":{}},\"comment\":{}}],[\"anyconfigargtype\",{\"_index\":111,\"name\":{\"205\":{}},\"comment\":{}}],[\"arg\",{\"_index\":51,\"name\":{\"97\":{}},\"comment\":{}}],[\"args\",{\"_index\":55,\"name\":{\"102\":{}},\"comment\":{}}],[\"array\",{\"_index\":129,\"name\":{\"250\":{},\"297\":{}},\"comment\":{}}],[\"arrayargtype\",{\"_index\":48,\"name\":{\"85\":{}},\"comment\":{}}],[\"arrayconfigargtype\",{\"_index\":121,\"name\":{\"234\":{}},\"comment\":{}}],[\"arrayresponseargtype\",{\"_index\":68,\"name\":{\"117\":{}},\"comment\":{}}],[\"asciitobase64\",{\"_index\":103,\"name\":{\"189\":{}},\"comment\":{}}],[\"base64tohex\",{\"_index\":101,\"name\":{\"185\":{}},\"comment\":{}}],[\"base64toutf8\",{\"_index\":104,\"name\":{\"191\":{}},\"comment\":{}}],[\"blockhash\",{\"_index\":154,\"name\":{\"343\":{}},\"comment\":{}}],[\"boolean\",{\"_index\":134,\"name\":{\"255\":{},\"269\":{}},\"comment\":{}}],[\"booleanargtype\",{\"_index\":43,\"name\":{\"65\":{}},\"comment\":{}}],[\"booleanconfigargtype\",{\"_index\":115,\"name\":{\"213\":{}},\"comment\":{}}],[\"booleanwitnesscondition\",{\"_index\":18,\"name\":{\"20\":{}},\"comment\":{}}],[\"buffer\",{\"_index\":131,\"name\":{\"252\":{}},\"comment\":{}}],[\"bufferargtype\",{\"_index\":75,\"name\":{\"138\":{}},\"comment\":{}}],[\"builttransaction\",{\"_index\":67,\"name\":{\"116\":{}},\"comment\":{}}],[\"builttransactionwitness\",{\"_index\":64,\"name\":{\"112\":{}},\"comment\":{}}],[\"bytearray\",{\"_index\":146,\"name\":{\"285\":{}},\"comment\":{}}],[\"bytearrayargtype\",{\"_index\":50,\"name\":{\"93\":{}},\"comment\":{}}],[\"bytearrayconfigargtype\",{\"_index\":116,\"name\":{\"216\":{}},\"comment\":{}}],[\"bytestring\",{\"_index\":130,\"name\":{\"251\":{}},\"comment\":{}}],[\"bytestringargtype\",{\"_index\":70,\"name\":{\"125\":{}},\"comment\":{}}],[\"calledbycontractwitnesscondition\",{\"_index\":29,\"name\":{\"40\":{}},\"comment\":{}}],[\"calledbyentrywitnesscondition\",{\"_index\":28,\"name\":{\"38\":{}},\"comment\":{}}],[\"calledbygroupwitnesscondition\",{\"_index\":30,\"name\":{\"43\":{}},\"comment\":{}}],[\"ciphertext\",{\"_index\":171,\"name\":{\"387\":{}},\"comment\":{}}],[\"classic\",{\"_index\":159,\"name\":{\"372\":{}},\"comment\":{}}],[\"condition\",{\"_index\":34,\"name\":{\"49\":{}},\"comment\":{}}],[\"confirmtransaction\",{\"_index\":17,\"name\":{\"19\":{}},\"comment\":{}}],[\"contract\",{\"_index\":1,\"name\":{\"1\":{},\"5\":{}},\"comment\":{}}],[\"contractinvocation\",{\"_index\":52,\"name\":{\"98\":{}},\"comment\":{}}],[\"contractinvocationmulti\",{\"_index\":57,\"name\":{\"104\":{}},\"comment\":{}}],[\"data\",{\"_index\":166,\"name\":{\"382\":{}},\"comment\":{}}],[\"datatag\",{\"_index\":172,\"name\":{\"388\":{}},\"comment\":{}}],[\"decrypt\",{\"_index\":181,\"name\":{\"398\":{}},\"comment\":{}}],[\"decryptfromarray\",{\"_index\":182,\"name\":{\"399\":{}},\"comment\":{}}],[\"decryptfromarrayresult\",{\"_index\":174,\"name\":{\"390\":{}},\"comment\":{}}],[\"default\",{\"_index\":160,\"name\":{\"373\":{}},\"comment\":{}}],[\"encrypt\",{\"_index\":180,\"name\":{\"397\":{}},\"comment\":{}}],[\"encryptedpayload\",{\"_index\":169,\"name\":{\"385\":{}},\"comment\":{}}],[\"ephempublickey\",{\"_index\":173,\"name\":{\"389\":{}},\"comment\":{}}],[\"eventname\",{\"_index\":2,\"name\":{\"2\":{},\"6\":{}},\"comment\":{}}],[\"exception\",{\"_index\":81,\"name\":{\"151\":{}},\"comment\":{}}],[\"executions\",{\"_index\":12,\"name\":{\"14\":{}},\"comment\":{}}],[\"expression\",{\"_index\":19,\"name\":{\"22\":{},\"25\":{}},\"comment\":{}}],[\"expressions\",{\"_index\":22,\"name\":{\"28\":{},\"31\":{}},\"comment\":{}}],[\"extranetworkfee\",{\"_index\":62,\"name\":{\"110\":{}},\"comment\":{}}],[\"extrasystemfee\",{\"_index\":60,\"name\":{\"108\":{}},\"comment\":{}}],[\"formatrpcargument\",{\"_index\":110,\"name\":{\"203\":{}},\"comment\":{}}],[\"gasconsumed\",{\"_index\":80,\"name\":{\"150\":{}},\"comment\":{}}],[\"generic\",{\"_index\":122,\"name\":{\"237\":{}},\"comment\":{}}],[\"genericitem\",{\"_index\":125,\"name\":{\"242\":{}},\"comment\":{}}],[\"generickey\",{\"_index\":124,\"name\":{\"241\":{}},\"comment\":{}}],[\"getaccountaddress\",{\"_index\":179,\"name\":{\"396\":{}},\"comment\":{}}],[\"group\",{\"_index\":27,\"name\":{\"37\":{},\"45\":{}},\"comment\":{}}],[\"groupwitnesscondition\",{\"_index\":26,\"name\":{\"35\":{}},\"comment\":{}}],[\"hash\",{\"_index\":25,\"name\":{\"34\":{},\"42\":{}},\"comment\":{}}],[\"hash160\",{\"_index\":144,\"name\":{\"277\":{}},\"comment\":{}}],[\"hash160argtype\",{\"_index\":45,\"name\":{\"73\":{}},\"comment\":{}}],[\"hash160configargtype\",{\"_index\":118,\"name\":{\"223\":{}},\"comment\":{}}],[\"hash256\",{\"_index\":145,\"name\":{\"281\":{}},\"comment\":{}}],[\"hash256argtype\",{\"_index\":46,\"name\":{\"77\":{}},\"comment\":{}}],[\"hash256configargtype\",{\"_index\":119,\"name\":{\"227\":{}},\"comment\":{}}],[\"hextoab\",{\"_index\":93,\"name\":{\"169\":{}},\"comment\":{}}],[\"hextobase64\",{\"_index\":100,\"name\":{\"183\":{}},\"comment\":{}}],[\"hextostr\",{\"_index\":96,\"name\":{\"175\":{}},\"comment\":{}}],[\"hint\",{\"_index\":114,\"name\":{\"212\":{},\"222\":{},\"226\":{},\"230\":{},\"246\":{}},\"comment\":{}}],[\"hint_types\",{\"_index\":150,\"name\":{\"313\":{}},\"comment\":{}}],[\"id\",{\"_index\":73,\"name\":{\"133\":{}},\"comment\":{}}],[\"integer\",{\"_index\":132,\"name\":{\"253\":{},\"273\":{}},\"comment\":{}}],[\"integerargtype\",{\"_index\":47,\"name\":{\"81\":{}},\"comment\":{}}],[\"integerconfigargtype\",{\"_index\":120,\"name\":{\"231\":{}},\"comment\":{}}],[\"interface\",{\"_index\":72,\"name\":{\"132\":{}},\"comment\":{}}],[\"internal\",{\"_index\":143,\"name\":{\"268\":{},\"272\":{},\"276\":{},\"280\":{},\"284\":{},\"288\":{},\"292\":{},\"296\":{},\"300\":{},\"304\":{},\"308\":{},\"312\":{},\"321\":{},\"328\":{},\"335\":{},\"342\":{},\"349\":{},\"356\":{},\"363\":{},\"370\":{}},\"comment\":{}}],[\"internal_types\",{\"_index\":128,\"name\":{\"248\":{}},\"comment\":{}}],[\"interopinterface\",{\"_index\":133,\"name\":{\"254\":{},\"305\":{}},\"comment\":{}}],[\"interopinterfaceargtype\",{\"_index\":71,\"name\":{\"129\":{}},\"comment\":{}}],[\"interopinterfaceconfigargtype\",{\"_index\":126,\"name\":{\"243\":{}},\"comment\":{}}],[\"inttohex\",{\"_index\":97,\"name\":{\"177\":{}},\"comment\":{}}],[\"invocation\",{\"_index\":65,\"name\":{\"114\":{}},\"comment\":{}}],[\"invocations\",{\"_index\":59,\"name\":{\"107\":{}},\"comment\":{}}],[\"invokefunction\",{\"_index\":86,\"name\":{\"156\":{}},\"comment\":{}}],[\"invokeresult\",{\"_index\":78,\"name\":{\"147\":{}},\"comment\":{}}],[\"isrpcresponsestackitem\",{\"_index\":194,\"name\":{\"412\":{}},\"comment\":{}}],[\"isstacktypeany\",{\"_index\":184,\"name\":{\"402\":{}},\"comment\":{}}],[\"isstacktypearray\",{\"_index\":187,\"name\":{\"405\":{}},\"comment\":{}}],[\"isstacktypeboolean\",{\"_index\":185,\"name\":{\"403\":{}},\"comment\":{}}],[\"isstacktypebuffer\",{\"_index\":192,\"name\":{\"410\":{}},\"comment\":{}}],[\"isstacktypebytestring\",{\"_index\":189,\"name\":{\"407\":{}},\"comment\":{}}],[\"isstacktypeinteger\",{\"_index\":186,\"name\":{\"404\":{}},\"comment\":{}}],[\"isstacktypeinteropinterface\",{\"_index\":190,\"name\":{\"408\":{}},\"comment\":{}}],[\"isstacktypemap\",{\"_index\":188,\"name\":{\"406\":{}},\"comment\":{}}],[\"isstacktypepointer\",{\"_index\":191,\"name\":{\"409\":{}},\"comment\":{}}],[\"isstacktypestruct\",{\"_index\":193,\"name\":{\"411\":{}},\"comment\":{}}],[\"iterator\",{\"_index\":157,\"name\":{\"364\":{}},\"comment\":{}}],[\"keyindex\",{\"_index\":175,\"name\":{\"392\":{}},\"comment\":{}}],[\"map\",{\"_index\":135,\"name\":{\"256\":{},\"301\":{}},\"comment\":{}}],[\"mapargtype\",{\"_index\":49,\"name\":{\"89\":{}},\"comment\":{}}],[\"mapconfigargtype\",{\"_index\":123,\"name\":{\"238\":{}},\"comment\":{}}],[\"mapresponseargtype\",{\"_index\":69,\"name\":{\"121\":{}},\"comment\":{}}],[\"message\",{\"_index\":163,\"name\":{\"377\":{},\"391\":{}},\"comment\":{}}],[\"messagehex\",{\"_index\":168,\"name\":{\"384\":{}},\"comment\":{}}],[\"name\",{\"_index\":141,\"name\":{\"264\":{},\"267\":{},\"271\":{},\"275\":{},\"279\":{},\"283\":{},\"287\":{},\"291\":{},\"295\":{},\"299\":{},\"303\":{},\"307\":{},\"311\":{},\"317\":{},\"320\":{},\"324\":{},\"327\":{},\"331\":{},\"334\":{},\"338\":{},\"341\":{},\"345\":{},\"348\":{},\"352\":{},\"355\":{},\"359\":{},\"362\":{},\"366\":{},\"369\":{}},\"comment\":{}}],[\"neo3applicationlog\",{\"_index\":10,\"name\":{\"12\":{}},\"comment\":{}}],[\"neo3event\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"neo3eventlistener\",{\"_index\":13,\"name\":{\"15\":{}},\"comment\":{}}],[\"neo3eventlistenercallback\",{\"_index\":5,\"name\":{\"7\":{}},\"comment\":{}}],[\"neo3eventwithstate\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"neo3invoker\",{\"_index\":85,\"name\":{\"155\":{}},\"comment\":{}}],[\"neo3parser\",{\"_index\":90,\"name\":{\"164\":{}},\"comment\":{}}],[\"neo3signer\",{\"_index\":176,\"name\":{\"393\":{}},\"comment\":{}}],[\"neo3stackitem\",{\"_index\":7,\"name\":{\"9\":{}},\"comment\":{}}],[\"networkfeeoverride\",{\"_index\":63,\"name\":{\"111\":{}},\"comment\":{}}],[\"notwitnesscondition\",{\"_index\":20,\"name\":{\"23\":{}},\"comment\":{}}],[\"null\",{\"_index\":136,\"name\":{\"257\":{}},\"comment\":{}}],[\"numtohex\",{\"_index\":98,\"name\":{\"179\":{}},\"comment\":{}}],[\"numtovarint\",{\"_index\":99,\"name\":{\"181\":{}},\"comment\":{}}],[\"operation\",{\"_index\":54,\"name\":{\"101\":{}},\"comment\":{}}],[\"orwitnesscondition\",{\"_index\":23,\"name\":{\"29\":{}},\"comment\":{}}],[\"parseconfig\",{\"_index\":127,\"name\":{\"247\":{}},\"comment\":{}}],[\"parserpcresponse\",{\"_index\":109,\"name\":{\"201\":{}},\"comment\":{}}],[\"pointer\",{\"_index\":137,\"name\":{\"258\":{}},\"comment\":{}}],[\"pointerargtype\",{\"_index\":74,\"name\":{\"134\":{}},\"comment\":{}}],[\"publickey\",{\"_index\":147,\"name\":{\"289\":{},\"322\":{},\"381\":{}},\"comment\":{}}],[\"publickeyargtype\",{\"_index\":44,\"name\":{\"69\":{}},\"comment\":{}}],[\"publickeyconfigargtype\",{\"_index\":117,\"name\":{\"219\":{}},\"comment\":{}}],[\"randomvector\",{\"_index\":170,\"name\":{\"386\":{}},\"comment\":{}}],[\"removeeventlistener\",{\"_index\":15,\"name\":{\"17\":{}},\"comment\":{}}],[\"reversehex\",{\"_index\":108,\"name\":{\"199\":{}},\"comment\":{}}],[\"rpcresponsestackitem\",{\"_index\":77,\"name\":{\"146\":{}},\"comment\":{}}],[\"rules\",{\"_index\":40,\"name\":{\"56\":{}},\"comment\":{}}],[\"salt\",{\"_index\":167,\"name\":{\"383\":{}},\"comment\":{}}],[\"scopes\",{\"_index\":36,\"name\":{\"52\":{}},\"comment\":{}}],[\"script\",{\"_index\":79,\"name\":{\"148\":{}},\"comment\":{}}],[\"scripthash\",{\"_index\":53,\"name\":{\"100\":{},\"329\":{}},\"comment\":{}}],[\"scripthashlittleending\",{\"_index\":153,\"name\":{\"336\":{}},\"comment\":{}}],[\"scripthashwitnesscondition\",{\"_index\":24,\"name\":{\"32\":{}},\"comment\":{}}],[\"session\",{\"_index\":84,\"name\":{\"154\":{}},\"comment\":{}}],[\"signature\",{\"_index\":142,\"name\":{\"265\":{}},\"comment\":{}}],[\"signedmessage\",{\"_index\":165,\"name\":{\"379\":{}},\"comment\":{}}],[\"signer\",{\"_index\":35,\"name\":{\"50\":{}},\"comment\":{}}],[\"signers\",{\"_index\":58,\"name\":{\"106\":{}},\"comment\":{}}],[\"signmessage\",{\"_index\":177,\"name\":{\"394\":{}},\"comment\":{}}],[\"signmessagepayload\",{\"_index\":162,\"name\":{\"375\":{}},\"comment\":{}}],[\"signmessageversion\",{\"_index\":158,\"name\":{\"371\":{}},\"comment\":{}}],[\"signtransaction\",{\"_index\":89,\"name\":{\"162\":{}},\"comment\":{}}],[\"stack\",{\"_index\":82,\"name\":{\"152\":{}},\"comment\":{}}],[\"state\",{\"_index\":4,\"name\":{\"4\":{},\"149\":{}},\"comment\":{}}],[\"storagecontext\",{\"_index\":156,\"name\":{\"357\":{}},\"comment\":{}}],[\"string\",{\"_index\":148,\"name\":{\"293\":{}},\"comment\":{}}],[\"stringargtype\",{\"_index\":42,\"name\":{\"61\":{}},\"comment\":{}}],[\"stringconfigargtype\",{\"_index\":113,\"name\":{\"209\":{}},\"comment\":{}}],[\"strtoab\",{\"_index\":92,\"name\":{\"167\":{}},\"comment\":{}}],[\"strtobase64\",{\"_index\":106,\"name\":{\"195\":{}},\"comment\":{}}],[\"strtohex\",{\"_index\":95,\"name\":{\"173\":{}},\"comment\":{}}],[\"struct\",{\"_index\":138,\"name\":{\"259\":{}},\"comment\":{}}],[\"structargtype\",{\"_index\":76,\"name\":{\"142\":{}},\"comment\":{}}],[\"systemfeeoverride\",{\"_index\":61,\"name\":{\"109\":{}},\"comment\":{}}],[\"testinvoke\",{\"_index\":87,\"name\":{\"158\":{}},\"comment\":{}}],[\"transactionid\",{\"_index\":155,\"name\":{\"350\":{}},\"comment\":{}}],[\"traverseiterator\",{\"_index\":88,\"name\":{\"160\":{}},\"comment\":{}}],[\"tx\",{\"_index\":83,\"name\":{\"153\":{}},\"comment\":{}}],[\"txid\",{\"_index\":11,\"name\":{\"13\":{}},\"comment\":{}}],[\"type\",{\"_index\":8,\"name\":{\"10\":{},\"21\":{},\"24\":{},\"27\":{},\"30\":{},\"33\":{},\"36\":{},\"39\":{},\"41\":{},\"44\":{},\"59\":{},\"63\":{},\"67\":{},\"71\":{},\"75\":{},\"79\":{},\"83\":{},\"87\":{},\"91\":{},\"95\":{},\"119\":{},\"123\":{},\"127\":{},\"131\":{},\"136\":{},\"140\":{},\"144\":{},\"207\":{},\"211\":{},\"215\":{},\"218\":{},\"221\":{},\"225\":{},\"229\":{},\"233\":{},\"236\":{},\"240\":{},\"245\":{}},\"comment\":{}}],[\"typechecker\",{\"_index\":183,\"name\":{\"400\":{}},\"comment\":{}}],[\"union\",{\"_index\":112,\"name\":{\"208\":{}},\"comment\":{}}],[\"utf8tobase64\",{\"_index\":102,\"name\":{\"187\":{}},\"comment\":{}}],[\"value\",{\"_index\":9,\"name\":{\"11\":{},\"60\":{},\"64\":{},\"68\":{},\"72\":{},\"76\":{},\"80\":{},\"84\":{},\"88\":{},\"92\":{},\"96\":{},\"120\":{},\"124\":{},\"128\":{},\"137\":{},\"141\":{},\"145\":{}},\"comment\":{}}],[\"verification\",{\"_index\":66,\"name\":{\"115\":{}},\"comment\":{}}],[\"verifymessage\",{\"_index\":178,\"name\":{\"395\":{}},\"comment\":{}}],[\"version\",{\"_index\":164,\"name\":{\"378\":{}},\"comment\":{}}],[\"void\",{\"_index\":149,\"name\":{\"309\":{}},\"comment\":{}}],[\"waitforapplicationlog\",{\"_index\":16,\"name\":{\"18\":{}},\"comment\":{}}],[\"without_salt\",{\"_index\":161,\"name\":{\"374\":{}},\"comment\":{}}],[\"witnesscondition\",{\"_index\":31,\"name\":{\"46\":{}},\"comment\":{}}],[\"witnessrule\",{\"_index\":32,\"name\":{\"47\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/assets/style.css b/packages/neon-dappkit-types/docs/assets/style.css deleted file mode 100644 index 496e66f..0000000 --- a/packages/neon-dappkit-types/docs/assets/style.css +++ /dev/null @@ -1,1279 +0,0 @@ -:root { - /* Light */ - --light-color-background: #f2f4f8; - --light-color-background-secondary: #eff0f1; - --light-color-warning-text: #222; - --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); - --light-color-accent: #c5c7c9; - --light-color-text: #222; - --light-color-text-aside: #707070; - --light-color-link: #4da6ff; - --light-color-ts: #db1373; - --light-color-ts-interface: #139d2c; - --light-color-ts-enum: #9c891a; - --light-color-ts-class: #2484e5; - --light-color-ts-function: #572be7; - --light-color-ts-namespace: #b111c9; - --light-color-ts-private: #707070; - --light-color-ts-variable: #4d68ff; - --light-external-icon: url("data:image/svg+xml;utf8,"); - --light-color-scheme: light; - - /* Dark */ - --dark-color-background: #2b2e33; - --dark-color-background-secondary: #1e2024; - --dark-color-background-warning: #bebe00; - --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); - --dark-color-accent: #9096a2; - --dark-color-text: #f5f5f5; - --dark-color-text-aside: #dddddd; - --dark-color-link: #00aff4; - --dark-color-ts: #ff6492; - --dark-color-ts-interface: #6cff87; - --dark-color-ts-enum: #f4d93e; - --dark-color-ts-class: #61b0ff; - --dark-color-ts-function: #9772ff; - --dark-color-ts-namespace: #e14dff; - --dark-color-ts-private: #e2e2e2; - --dark-color-ts-variable: #4d68ff; - --dark-external-icon: url("data:image/svg+xml;utf8,"); - --dark-color-scheme: dark; -} - -@media (prefers-color-scheme: light) { - :root { - --color-background: var(--light-color-background); - --color-background-secondary: var(--light-color-background-secondary); - --color-background-warning: var(--light-color-background-warning); - --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); - --color-accent: var(--light-color-accent); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); - --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); - --color-ts-variable: var(--light-color-ts-variable); - --external-icon: var(--light-external-icon); - --color-scheme: var(--light-color-scheme); - } -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--dark-color-background); - --color-background-secondary: var(--dark-color-background-secondary); - --color-background-warning: var(--dark-color-background-warning); - --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); - --color-accent: var(--dark-color-accent); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); - --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); - --color-ts-variable: var(--dark-color-ts-variable); - --external-icon: var(--dark-external-icon); - --color-scheme: var(--dark-color-scheme); - } -} - -html { - color-scheme: var(--color-scheme); -} - -body { - margin: 0; -} - -:root[data-theme="light"] { - --color-background: var(--light-color-background); - --color-background-secondary: var(--light-color-background-secondary); - --color-background-warning: var(--light-color-background-warning); - --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); - --color-accent: var(--light-color-accent); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); - --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); - --color-ts-variable: var(--light-color-ts-variable); - --external-icon: var(--light-external-icon); - --color-scheme: var(--light-color-scheme); -} - -:root[data-theme="dark"] { - --color-background: var(--dark-color-background); - --color-background-secondary: var(--dark-color-background-secondary); - --color-background-warning: var(--dark-color-background-warning); - --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); - --color-accent: var(--dark-color-accent); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); - --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); - --color-ts-variable: var(--dark-color-ts-variable); - --external-icon: var(--dark-external-icon); - --color-scheme: var(--dark-color-scheme); -} - -.always-visible, -.always-visible .tsd-signatures { - display: inherit !important; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - line-height: 1.2; -} - -h1 { - font-size: 1.875rem; - margin: 0.67rem 0; -} - -h2 { - font-size: 1.5rem; - margin: 0.83rem 0; -} - -h3 { - font-size: 1.25rem; - margin: 1rem 0; -} - -h4 { - font-size: 1.05rem; - margin: 1.33rem 0; -} - -h5 { - font-size: 1rem; - margin: 1.5rem 0; -} - -h6 { - font-size: 0.875rem; - margin: 2.33rem 0; -} - -.uppercase { - text-transform: uppercase; -} - -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -.container { - max-width: 1600px; - padding: 0 2rem; -} - -@media (min-width: 640px) { - .container { - padding: 0 4rem; - } -} -@media (min-width: 1200px) { - .container { - padding: 0 8rem; - } -} -@media (min-width: 1600px) { - .container { - padding: 0 12rem; - } -} - -/* Footer */ -.tsd-generator { - border-top: 1px solid var(--color-accent); - padding-top: 1rem; - padding-bottom: 1rem; - max-height: 3.5rem; -} - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; -} - -.container-main { - display: flex; - justify-content: space-between; - position: relative; - margin: 0 auto; -} - -.col-4, -.col-8 { - box-sizing: border-box; - float: left; - padding: 2rem 1rem; -} - -.col-4 { - flex: 0 0 25%; -} -.col-8 { - flex: 1 0; - flex-wrap: wrap; - padding-left: 0; -} - -@keyframes fade-in { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; - } - to { - opacity: 0; - } -} -@keyframes fade-in-delayed { - 0% { - opacity: 0; - } - 33% { - opacity: 0; - } - 100% { - opacity: 1; - } -} -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } -} -@keyframes shift-to-left { - from { - transform: translate(0, 0); - } - to { - transform: translate(-25%, 0); - } -} -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; - } - to { - transform: translate(100%, 0); - } -} -body { - background: var(--color-background); - font-family: "Segoe UI", sans-serif; - font-size: 16px; - color: var(--color-text); -} - -a { - color: var(--color-link); - text-decoration: none; -} -a:hover { - text-decoration: underline; -} -a.external[target="_blank"] { - background-image: var(--external-icon); - background-position: top 3px right; - background-repeat: no-repeat; - padding-right: 13px; -} - -code, -pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 0.875rem; - border-radius: 0.8em; -} - -pre { - padding: 10px; - border: 0.1em solid var(--color-accent); -} -pre code { - padding: 0; - font-size: 100%; -} - -blockquote { - margin: 1em 0; - padding-left: 1em; - border-left: 4px solid gray; -} - -.tsd-typography { - line-height: 1.333em; -} -.tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-typography h4, -.tsd-typography .tsd-index-panel h3, -.tsd-index-panel .tsd-typography h3, -.tsd-typography h5, -.tsd-typography h6 { - font-size: 1em; - margin: 0; -} -.tsd-typography h5, -.tsd-typography h6 { - font-weight: normal; -} -.tsd-typography p, -.tsd-typography ul, -.tsd-typography ol { - margin: 1em 0; -} - -@media (max-width: 1024px) { - html .col-content { - float: none; - max-width: 100%; - width: 100%; - padding-top: 3rem; - } - html .col-menu { - position: fixed !important; - overflow-y: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - padding: 1.5rem 1.5rem 0 0; - max-width: 25rem; - visibility: hidden; - background-color: var(--color-background); - transform: translate(100%, 0); - } - html .col-menu > *:last-child { - padding-bottom: 20px; - } - html .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; - } - - .to-has-menu .overlay { - animation: fade-in 0.4s; - } - - .to-has-menu :is(header, footer, .col-content) { - animation: shift-to-left 0.4s; - } - - .to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; - } - - .from-has-menu .overlay { - animation: fade-out 0.4s; - } - - .from-has-menu :is(header, footer, .col-content) { - animation: unshift-to-left 0.4s; - } - - .from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; - } - - .has-menu body { - overflow: hidden; - } - .has-menu .overlay { - visibility: visible; - } - .has-menu :is(header, footer, .col-content) { - transform: translate(-25%, 0); - } - .has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); - display: flex; - flex-direction: column; - gap: 1.5rem; - max-height: 100vh; - padding: 1rem 2rem; - } - .has-menu .tsd-navigation { - max-height: 100%; - } -} - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: var(--color-text-aside); -} -.tsd-breadcrumb a { - color: var(--color-text-aside); - text-decoration: none; -} -.tsd-breadcrumb a:hover { - text-decoration: underline; -} -.tsd-breadcrumb li { - display: inline; -} -.tsd-breadcrumb li:after { - content: " / "; -} - -.tsd-comment-tags { - display: flex; - flex-direction: column; -} -dl.tsd-comment-tag-group { - display: flex; - align-items: center; - overflow: hidden; - margin: 0.5em 0; -} -dl.tsd-comment-tag-group dt { - display: flex; - margin-right: 0.5em; - font-size: 0.875em; - font-weight: normal; -} -dl.tsd-comment-tag-group dd { - margin: 0; -} -code.tsd-tag { - padding: 0.25em 0.4em; - border: 0.1em solid var(--color-accent); - margin-right: 0.25em; - font-size: 70%; -} -h1 code.tsd-tag:first-of-type { - margin-left: 0.25em; -} - -dl.tsd-comment-tag-group dd:before, -dl.tsd-comment-tag-group dd:after { - content: " "; -} -dl.tsd-comment-tag-group dd pre, -dl.tsd-comment-tag-group dd:after { - clear: both; -} -dl.tsd-comment-tag-group p { - margin: 0; -} - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; -} -.tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; -} - -.tsd-filter-visibility h4 { - font-size: 1rem; - padding-top: 0.75rem; - padding-bottom: 0.5rem; - margin: 0; -} -.tsd-filter-item:not(:last-child) { - margin-bottom: 0.5rem; -} -.tsd-filter-input { - display: flex; - width: fit-content; - width: -moz-fit-content; - align-items: center; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - cursor: pointer; -} -.tsd-filter-input input[type="checkbox"] { - cursor: pointer; - position: absolute; - width: 1.5em; - height: 1.5em; - opacity: 0; -} -.tsd-filter-input input[type="checkbox"]:disabled { - pointer-events: none; -} -.tsd-filter-input svg { - cursor: pointer; - width: 1.5em; - height: 1.5em; - margin-right: 0.5em; - border-radius: 0.33em; - /* Leaving this at full opacity breaks event listeners on Firefox. - Don't remove unless you know what you're doing. */ - opacity: 0.99; -} -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); -} -.tsd-checkbox-background { - fill: var(--color-accent); -} -input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { - stroke: var(--color-text); -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { - fill: var(--color-background); - stroke: var(--color-accent); - stroke-width: 0.25rem; -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { - stroke: var(--color-accent); -} - -.tsd-theme-toggle { - padding-top: 0.75rem; -} -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; -} - -.tsd-hierarchy { - list-style: square; - margin: 0; -} -.tsd-hierarchy .target { - font-weight: bold; -} - -.tsd-panel-group.tsd-index-group { - margin-bottom: 0; -} -.tsd-index-panel .tsd-index-list { - list-style: none; - line-height: 1.333em; - margin: 0; - padding: 0.25rem 0 0 0; - overflow: hidden; - display: grid; - grid-template-columns: repeat(3, 1fr); - column-gap: 1rem; - grid-template-rows: auto; -} -@media (max-width: 1024px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(2, 1fr); - } -} -@media (max-width: 768px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(1, 1fr); - } -} -.tsd-index-panel .tsd-index-list li { - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; -} -.tsd-index-panel a, -.tsd-index-panel a.tsd-parent-kind-module { - color: var(--color-ts); -} -.tsd-index-panel a.tsd-parent-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-parent-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-parent-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-module { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-function { - color: var(--color-ts-function); -} -.tsd-index-panel a.tsd-kind-namespace { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-variable { - color: var(--color-ts-variable); -} -.tsd-index-panel a.tsd-is-private { - color: var(--color-ts-private); -} - -.tsd-flag { - display: inline-block; - padding: 0.25em 0.4em; - border-radius: 4px; - color: var(--color-comment-tag-text); - background-color: var(--color-comment-tag); - text-indent: 0; - font-size: 75%; - line-height: 1; - font-weight: normal; -} - -.tsd-anchor { - position: absolute; - top: -100px; -} - -.tsd-member { - position: relative; -} -.tsd-member .tsd-anchor + h3 { - display: flex; - align-items: center; - margin-top: 0; - margin-bottom: 0; - border-bottom: none; -} -.tsd-member [data-tsd-kind] { - color: var(--color-ts); -} -.tsd-member [data-tsd-kind="Interface"] { - color: var(--color-ts-interface); -} -.tsd-member [data-tsd-kind="Enum"] { - color: var(--color-ts-enum); -} -.tsd-member [data-tsd-kind="Class"] { - color: var(--color-ts-class); -} -.tsd-member [data-tsd-kind="Private"] { - color: var(--color-ts-private); -} - -.tsd-navigation a { - display: block; - margin: 0.4rem 0; - border-left: 2px solid transparent; - color: var(--color-text); - text-decoration: none; - transition: border-left-color 0.1s; -} -.tsd-navigation a:hover { - text-decoration: underline; -} -.tsd-navigation ul { - margin: 0; - padding: 0; - list-style: none; -} -.tsd-navigation li { - padding: 0; -} - -.tsd-navigation.primary .tsd-accordion-details > ul { - margin-top: 0.75rem; -} -.tsd-navigation.primary a { - padding: 0.75rem 0.5rem; - margin: 0; -} -.tsd-navigation.primary ul li a { - margin-left: 0.5rem; -} -.tsd-navigation.primary ul li li a { - margin-left: 1.5rem; -} -.tsd-navigation.primary ul li li li a { - margin-left: 2.5rem; -} -.tsd-navigation.primary ul li li li li a { - margin-left: 3.5rem; -} -.tsd-navigation.primary ul li li li li li a { - margin-left: 4.5rem; -} -.tsd-navigation.primary ul li li li li li li a { - margin-left: 5.5rem; -} -.tsd-navigation.primary li.current > a { - border-left: 0.15rem var(--color-text) solid; -} -.tsd-navigation.primary li.selected > a { - font-weight: bold; - border-left: 0.2rem var(--color-text) solid; -} -.tsd-navigation.primary ul li a:hover { - border-left: 0.2rem var(--color-text-aside) solid; -} -.tsd-navigation.primary li.globals + li > span, -.tsd-navigation.primary li.globals + li > a { - padding-top: 20px; -} - -.tsd-navigation.secondary.tsd-navigation--toolbar-hide { - max-height: calc(100vh - 1rem); - top: 0.5rem; -} -.tsd-navigation.secondary > ul { - display: inline; - padding-right: 0.5rem; - transition: opacity 0.2s; -} -.tsd-navigation.secondary ul li a { - padding-left: 0; -} -.tsd-navigation.secondary ul li li a { - padding-left: 1.1rem; -} -.tsd-navigation.secondary ul li li li a { - padding-left: 2.2rem; -} -.tsd-navigation.secondary ul li li li li a { - padding-left: 3.3rem; -} -.tsd-navigation.secondary ul li li li li li a { - padding-left: 4.4rem; -} -.tsd-navigation.secondary ul li li li li li li a { - padding-left: 5.5rem; -} - -#tsd-sidebar-links a { - margin-top: 0; - margin-bottom: 0.5rem; - line-height: 1.25rem; -} -#tsd-sidebar-links a:last-of-type { - margin-bottom: 0; -} - -a.tsd-index-link { - margin: 0.25rem 0; - font-size: 1rem; - line-height: 1.25rem; - display: inline-flex; - align-items: center; -} -.tsd-accordion-summary > h1, -.tsd-accordion-summary > h2, -.tsd-accordion-summary > h3, -.tsd-accordion-summary > h4, -.tsd-accordion-summary > h5 { - display: inline-flex; - align-items: center; - vertical-align: middle; - margin-bottom: 0; - user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.tsd-accordion-summary { - display: block; - cursor: pointer; -} -.tsd-accordion-summary > * { - margin-top: 0; - margin-bottom: 0; - padding-top: 0; - padding-bottom: 0; -} -.tsd-accordion-summary::-webkit-details-marker { - display: none; -} -.tsd-index-accordion .tsd-accordion-summary svg { - margin-right: 0.25rem; -} -.tsd-index-content > :not(:first-child) { - margin-top: 0.75rem; -} -.tsd-index-heading { - margin-top: 1.5rem; - margin-bottom: 0.75rem; -} - -.tsd-kind-icon { - margin-right: 0.5rem; - width: 1.25rem; - height: 1.25rem; - min-width: 1.25rem; - min-height: 1.25rem; -} -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} -.tsd-signature > .tsd-kind-icon { - margin-right: 0.8rem; -} - -@media (min-width: 1025px) { - .col-content { - margin: 2rem auto; - } - - .menu-sticky-wrap { - position: sticky; - height: calc(100vh - 2rem); - top: 4rem; - right: 0; - padding: 0 1.5rem; - padding-top: 1rem; - margin-top: 3rem; - transition: 0.3s ease-in-out; - transition-property: top, padding-top, padding, height; - overflow-y: auto; - } - .col-menu { - border-left: 1px solid var(--color-accent); - } - .col-menu--hide { - top: 1rem; - } - .col-menu .tsd-navigation:not(:last-child) { - padding-bottom: 1.75rem; - } -} - -.tsd-panel { - margin-bottom: 2.5rem; -} -.tsd-panel.tsd-member { - margin-bottom: 4rem; -} -.tsd-panel:empty { - display: none; -} -.tsd-panel > h1, -.tsd-panel > h2, -.tsd-panel > h3 { - margin: 1.5rem -1.5rem 0.75rem -1.5rem; - padding: 0 1.5rem 0.75rem 1.5rem; -} -.tsd-panel > h1.tsd-before-signature, -.tsd-panel > h2.tsd-before-signature, -.tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: none; -} - -.tsd-panel-group { - margin: 4rem 0; -} -.tsd-panel-group.tsd-index-group { - margin: 2rem 0; -} -.tsd-panel-group.tsd-index-group details { - margin: 2rem 0; -} - -#tsd-search { - transition: background-color 0.2s; -} -#tsd-search .title { - position: relative; - z-index: 2; -} -#tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 2.5rem; - height: 100%; -} -#tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: var(--color-text); -} -#tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; -} -#tsd-search .field input, -#tsd-search .title, -#tsd-toolbar-links a { - transition: opacity 0.2s; -} -#tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -#tsd-search .results li { - padding: 0 10px; - background-color: var(--color-background); -} -#tsd-search .results li:nth-child(even) { - background-color: var(--color-background-secondary); -} -#tsd-search .results li.state { - display: none; -} -#tsd-search .results li.current, -#tsd-search .results li:hover { - background-color: var(--color-accent); -} -#tsd-search .results a { - display: block; -} -#tsd-search .results a:before { - top: 10px; -} -#tsd-search .results span.parent { - color: var(--color-text-aside); - font-weight: normal; -} -#tsd-search.has-focus { - background-color: var(--color-accent); -} -#tsd-search.has-focus .field input { - top: 0; - opacity: 1; -} -#tsd-search.has-focus .title, -#tsd-search.has-focus #tsd-toolbar-links a { - z-index: 0; - opacity: 0; -} -#tsd-search.has-focus .results { - visibility: visible; -} -#tsd-search.loading .results li.state.loading { - display: block; -} -#tsd-search.failure .results li.state.failure { - display: block; -} - -#tsd-toolbar-links { - position: absolute; - top: 0; - right: 2rem; - height: 100%; - display: flex; - align-items: center; - justify-content: flex-end; -} -#tsd-toolbar-links a { - margin-left: 1.5rem; -} -#tsd-toolbar-links a:hover { - text-decoration: underline; -} - -.tsd-signature { - margin: 0 0 1rem 0; - padding: 1rem 0.5rem; - border: 1px solid var(--color-accent); - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; - overflow-x: auto; -} - -.tsd-signature-symbol { - color: var(--color-text-aside); - font-weight: normal; -} - -.tsd-signature-type { - font-style: italic; - font-weight: normal; -} - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - list-style-type: none; -} -.tsd-signatures .tsd-signature { - margin: 0; - border-color: var(--color-accent); - border-width: 1px 0; - transition: background-color 0.1s; -} -.tsd-description .tsd-signatures .tsd-signature { - border-width: 1px; -} - -ul.tsd-parameter-list, -ul.tsd-type-parameter-list { - list-style: square; - margin: 0; - padding-left: 20px; -} -ul.tsd-parameter-list > li.tsd-parameter-signature, -ul.tsd-type-parameter-list > li.tsd-parameter-signature { - list-style: none; - margin-left: -20px; -} -ul.tsd-parameter-list h5, -ul.tsd-type-parameter-list h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} -.tsd-sources { - margin-top: 1rem; - font-size: 0.875em; -} -.tsd-sources a { - color: var(--color-text-aside); - text-decoration: underline; -} -.tsd-sources ul { - list-style: none; - padding: 0; -} - -.tsd-page-toolbar { - position: fixed; - z-index: 1; - top: 0; - left: 0; - width: 100%; - color: var(--color-text); - background: var(--color-background-secondary); - border-bottom: 1px var(--color-accent) solid; - transition: transform 0.3s ease-in-out; -} -.tsd-page-toolbar a { - color: var(--color-text); - text-decoration: none; -} -.tsd-page-toolbar a.title { - font-weight: bold; -} -.tsd-page-toolbar a.title:hover { - text-decoration: underline; -} -.tsd-page-toolbar .tsd-toolbar-contents { - display: flex; - justify-content: space-between; - height: 2.5rem; - margin: 0 auto; -} -.tsd-page-toolbar .table-cell { - position: relative; - white-space: nowrap; - line-height: 40px; -} -.tsd-page-toolbar .table-cell:first-child { - width: 100%; -} -.tsd-page-toolbar .tsd-toolbar-icon { - box-sizing: border-box; - line-height: 0; - padding: 12px 0; -} - -.tsd-page-toolbar--hide { - transform: translateY(-100%); -} - -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.8; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-widget:hover { - opacity: 0.9; -} -.tsd-widget.active { - opacity: 1; - background-color: var(--color-accent); -} -.tsd-widget.no-caption { - width: 40px; -} -.tsd-widget.no-caption:before { - margin: 0; -} - -.tsd-widget.options, -.tsd-widget.menu { - display: none; -} -@media (max-width: 1024px) { - .tsd-widget.options, - .tsd-widget.menu { - display: inline-block; - } -} -input[type="checkbox"] + .tsd-widget:before { - background-position: -120px 0; -} -input[type="checkbox"]:checked + .tsd-widget:before { - background-position: -160px 0; -} - -img { - max-width: 100%; -} - -.tsd-anchor-icon { - display: inline-flex; - align-items: center; - margin-left: 0.5rem; - vertical-align: middle; - color: var(--color-text); -} - -.tsd-anchor-icon svg { - width: 1em; - height: 1em; - visibility: hidden; -} - -.tsd-anchor-link:hover > .tsd-anchor-icon svg { - visibility: visible; -} - -.deprecated { - text-decoration: line-through; -} - -.warning { - padding: 1rem; - color: var(--color-warning-text); - background: var(--color-background-warning); -} - -* { - scrollbar-width: thin; - scrollbar-color: var(--color-accent) var(--color-icon-background); -} - -*::-webkit-scrollbar { - width: 0.75rem; -} - -*::-webkit-scrollbar-track { - background: var(--color-icon-background); -} - -*::-webkit-scrollbar-thumb { - background-color: var(--color-accent); - border-radius: 999rem; - border: 0.25rem solid var(--color-icon-background); -} diff --git a/packages/neon-dappkit-types/docs/enums/SignMessageVersion.html b/packages/neon-dappkit-types/docs/enums/SignMessageVersion.html deleted file mode 100644 index 6a0a4c3..0000000 --- a/packages/neon-dappkit-types/docs/enums/SignMessageVersion.html +++ /dev/null @@ -1,81 +0,0 @@ -SignMessageVersion | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Enumeration SignMessageVersion

-
-

A version enum that indicates how a message should be signed

-
-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
CLASSIC: 1
-
- -
DEFAULT: 2
-
- -
WITHOUT_SALT: 3
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/index.html b/packages/neon-dappkit-types/docs/index.html deleted file mode 100644 index b14a6bd..0000000 --- a/packages/neon-dappkit-types/docs/index.html +++ /dev/null @@ -1,152 +0,0 @@ -@cityofzion/neon-dappkit-types
-
- -
-
-
-
-

@cityofzion/neon-dappkit-types

-

- -

- -

- Neon-DappKit is the easiest way to build a dApp on Neo3. -
Made with ❤ by COZ.IO -

- - - -

Neon-DappKit

-
-

Neon-DappKit is the easiest way to build a dApp on Neo3. Suitable to connect Web Applications, Off-chain JS Servers and -React-Native Apps to the Neo3 Blockchain.

-
-

WalletConnectSDK uses Neon-DappKit Types, so you can easily swap -between Neon-DappKit implementation and WalletConnectSDK on the fly and reuse code, check the -guide.

-
- - -

Installation

-
-
npm i @CityOfZion/neon-dappkit
-
- - -

Getting Started

-
-

Neon-Dappkit has 4 main components:

- - - -

Quick Example

-
-
import { NeonInvoker, NeonParser } from "@CityOfZion/neon-dappkit";

const invoker = await NeonInvoker.init({
rpcAddress: NeonInvoker.TESTNET,
})

const rawResp = await invoker.testInvoke({
invocations: [
{
scriptHash: '0x123456',
operation: 'myMethod',
args: [123, 'Test'].map(NeonParser.formatRpcArgument)
},
],
})

const resp = NeonParser.parseRpcResponse(rawResp.stack[0]) -
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/AndWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/AndWitnessCondition.html deleted file mode 100644 index 4e1e646..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/AndWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -AndWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface AndWitnessCondition

-
-

Hierarchy

-
    -
  • AndWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
expressions: WitnessCondition[]
-
- -
type: "And"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/BooleanWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/BooleanWitnessCondition.html deleted file mode 100644 index b6212f4..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/BooleanWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -BooleanWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface BooleanWitnessCondition

-
-

Hierarchy

-
    -
  • BooleanWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
expression: boolean
-
- -
type: "Boolean"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/CalledByContractWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/CalledByContractWitnessCondition.html deleted file mode 100644 index 8ad50d8..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/CalledByContractWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -CalledByContractWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface CalledByContractWitnessCondition

-
-

Hierarchy

-
    -
  • CalledByContractWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
hash: string
-
- -
type: "CalledByContract"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/CalledByEntryWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/CalledByEntryWitnessCondition.html deleted file mode 100644 index f0a4ff4..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/CalledByEntryWitnessCondition.html +++ /dev/null @@ -1,68 +0,0 @@ -CalledByEntryWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface CalledByEntryWitnessCondition

-
-

Hierarchy

-
    -
  • CalledByEntryWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
type: "CalledByEntry"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/CalledByGroupWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/CalledByGroupWitnessCondition.html deleted file mode 100644 index 6f24a85..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/CalledByGroupWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -CalledByGroupWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface CalledByGroupWitnessCondition

-
-

Hierarchy

-
    -
  • CalledByGroupWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
group: string
-
- -
type: "CalledByGroup"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/DecryptFromArrayResult.html b/packages/neon-dappkit-types/docs/interfaces/DecryptFromArrayResult.html deleted file mode 100644 index 960a408..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/DecryptFromArrayResult.html +++ /dev/null @@ -1,75 +0,0 @@ -DecryptFromArrayResult | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface DecryptFromArrayResult

-
-

Hierarchy

-
    -
  • DecryptFromArrayResult
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
keyIndex: number
-
- -
message: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/EncryptedPayload.html b/packages/neon-dappkit-types/docs/interfaces/EncryptedPayload.html deleted file mode 100644 index acf294f..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/EncryptedPayload.html +++ /dev/null @@ -1,89 +0,0 @@ -EncryptedPayload | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface EncryptedPayload

-
-

Hierarchy

-
    -
  • EncryptedPayload
-
-
-
- -
-
-

Properties

-
- -
cipherText: string
-
- -
dataTag: string
-
- -
ephemPublicKey: string
-
- -
randomVector: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/GroupWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/GroupWitnessCondition.html deleted file mode 100644 index 41fd1a7..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/GroupWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -GroupWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface GroupWitnessCondition

-
-

Hierarchy

-
    -
  • GroupWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
group: string
-
- -
type: "Group"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/InvokeResult.html b/packages/neon-dappkit-types/docs/interfaces/InvokeResult.html deleted file mode 100644 index 2fef6ce..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/InvokeResult.html +++ /dev/null @@ -1,133 +0,0 @@ -InvokeResult | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface InvokeResult<T>

-
-

Result from calling invokescript or invokefunction.

-
-
-

Type Parameters

-
-
-

Hierarchy

-
    -
  • InvokeResult
-
-
-
- -
-
-

Properties

-
- -
exception: string
-

A human-readable string clarifying the exception that occurred. Only available when state is "FAULT".

-
-
- -
gasconsumed: string
-

Amount of gas consumed up to the point of stopping in the VM. If state is FAULT, this value is not representative of the amount of gas it will consume if it somehow succeeds on the blockchain. -This is a decimal value.

-
-
- -
script: string
-

The script that is sent for execution on the blockchain as a base64 string.

-
-
- -
session?: string
-

This properties comes when the invoke result is a iterator. You need to call the traverseIterator method to get the real result

-
-
- -
stack: T[]
-
- -
state: "HALT" | "FAULT"
-

State of VM on exit. HALT means a successful exit while FAULT means exit with error.

-
-
- -
tx?: string
-

A ready to send transaction that wraps the script. -Only available when signers are provided and the sender's private key is open in the RPC node. -Formatted in base64-encoding.

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3ApplicationLog.html b/packages/neon-dappkit-types/docs/interfaces/Neo3ApplicationLog.html deleted file mode 100644 index a0e4c26..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3ApplicationLog.html +++ /dev/null @@ -1,78 +0,0 @@ -Neo3ApplicationLog | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3ApplicationLog

-
-

An interface that defines the application log format

-
-
-

Hierarchy

-
    -
  • Neo3ApplicationLog
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
executions: {
    gasconsumed: string;
    notifications: Neo3EventWithState[];
    stack?: Neo3StackItem[];
    trigger: string;
    vmstate: string;
}[]
-
- -
txid: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3Event.html b/packages/neon-dappkit-types/docs/interfaces/Neo3Event.html deleted file mode 100644 index 15ef957..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3Event.html +++ /dev/null @@ -1,80 +0,0 @@ -Neo3Event | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3Event

-
-

An interface that defines the event contract and event name

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
contract: string
-
- -
eventname: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3EventListener.html b/packages/neon-dappkit-types/docs/interfaces/Neo3EventListener.html deleted file mode 100644 index 02df53d..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3EventListener.html +++ /dev/null @@ -1,153 +0,0 @@ -Neo3EventListener | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3EventListener

-
-

The entry point of the library

-
-
-

Hierarchy

-
    -
  • Neo3EventListener
-
-
-
- -
-
-

Methods

-
- -
-
- -
    - -
  • -

    Checks if the transaction was completed successfully -Throws an error if the transaction failed

    -
    -
    -

    Parameters

    -
      -
    • -
      txResult: Neo3ApplicationLog
      -

      the Neo3ApplicationLog object

      -
    • -
    • -
      Optional eventToCheck: Neo3Event
      -

      the Neo3Event object to check if it is present in the application log

      -
    • -
    • -
      Optional confirmStackTrue: boolean
      -

      if true, checks if the stack contains true as the first element

      -
    -

    Returns void

-
- -
-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3EventWithState.html b/packages/neon-dappkit-types/docs/interfaces/Neo3EventWithState.html deleted file mode 100644 index b087d00..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3EventWithState.html +++ /dev/null @@ -1,89 +0,0 @@ -Neo3EventWithState | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3EventWithState

-
-

An interface that defines the event contract, event name and the state of the event

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
contract: string
-
- -
eventname: string
-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3Invoker.html b/packages/neon-dappkit-types/docs/interfaces/Neo3Invoker.html deleted file mode 100644 index e1875f7..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3Invoker.html +++ /dev/null @@ -1,177 +0,0 @@ -Neo3Invoker | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3Invoker

-
-

The entry point for the SmartContract invocation

-
-
-

Hierarchy

-
    -
  • Neo3Invoker
-
-
-
- -
-
-

Properties

-
- -
invokeFunction: ((cimOrBt: ContractInvocationMulti | BuiltTransaction) => Promise<string>)
-
-

Type declaration

-
    -
  • -
      -
    • (cimOrBt: ContractInvocationMulti | BuiltTransaction): Promise<string>
    • -
    • -

      Sends an 'invokeFunction' request to the Wallet and it will communicate with the blockchain. It will consume gas and persist data to the blockchain.

      -
      const invocations: ContractInvocation[] = [
      {
      scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a',
      operation: 'getStream',
      abortOnFail: true, // if 'getStream' returns false the next invocation will not be made
      args: [
      { type: 'Integer', value: 17 }
      ]
      },
      {
      scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a',
      operation: 'transfer',
      args: [
      { type: 'Address', value: senderAddress },
      { type: 'Address', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' },
      { type: 'Integer', value: 100000000 },
      { type: 'Array', value: [] }
      ]
      }
      ]

      const signer: Signer[] = [
      {
      scopes: WitnessScope.Global
      }
      ]

      const formattedRequest: ContractInvocationMulti = {
      signer,
      invocations
      }
      const resp = await invokeFunction(formattedRequest) -
      - -

      Returns

      the call result promise. It might only contain the transactionId, another call to the blockchain might be necessary to check the result.

      -
      -
      -

      Parameters

      -
      -

      Returns Promise<string>

-
- -
signTransaction: ((cim: ContractInvocationMulti | BuiltTransaction) => Promise<BuiltTransaction>)
-
-

Type declaration

-
-
- - -
-

Type declaration

-
    -
  • -
      -
    • (cim: ContractInvocationMulti | BuiltTransaction): Promise<InvokeResult<RpcResponseStackItem>>
    • -
    • -

      Sends a testInvoke request to the Wallet and it will communicate with the blockchain. -It will not consume any gas but it will also not persist any data, this is often used to retrieve SmartContract information or check how much gas an invocation will cost. -Also, the wallet might choose to not ask the user authorization for test invocations making them easy to use.

      -
      const signers: Signer[] = [
      {
      scopes: WitnessScope.None
      }
      ]

      const invocations: ContractInvocation[] = [
      {
      scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a',
      operation: 'getStream',
      abortOnFail: true, // if 'getStream' returns false the next invocation will not be made
      args: [
      { type: 'Integer', value: 17 }
      ],
      },
      {
      scriptHash: '0x010101c0775af568185025b0ce43cfaa9b990a2a',
      operation: 'balanceOf',
      args: [
      { type: 'Address', value: senderAddress }
      ]
      }
      ]

      const formattedRequest: ContractInvocationMulti = {
      signers,
      invocations
      }
      const resp = await testInvoke(formattedRequest) -
      - -

      Returns

      the call result promise

      -
      -
      -

      Parameters

      -
      -

      Returns Promise<InvokeResult<RpcResponseStackItem>>

-
- -
traverseIterator: ((sessionId: string, iteratorId: string, count: number) => Promise<RpcResponseStackItem[]>)
-
-

Type declaration

-
    -
  • -
      -
    • (sessionId: string, iteratorId: string, count: number): Promise<RpcResponseStackItem[]>
    • -
    • -

      Call the method traverseiterator on the rpc. This method is used to get the result of an iterator. -The result is the first count of data traversed in the Iterator, and follow-up requests will continue traversing from count + 1

      - -

      Returns

      the call result promise

      -
      -
      -

      Parameters

      -
        -
      • -
        sessionId: string
        -

        the session id of the iterator

        -
      • -
      • -
        iteratorId: string
        -

        the iterator id

        -
      • -
      • -
        count: number
        -

        the number of items to retrieve

        -
      -

      Returns Promise<RpcResponseStackItem[]>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3Parser.html b/packages/neon-dappkit-types/docs/interfaces/Neo3Parser.html deleted file mode 100644 index bc92cb8..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3Parser.html +++ /dev/null @@ -1,620 +0,0 @@ -Neo3Parser | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3Parser

-
-

Hierarchy

-
    -
  • Neo3Parser
-
-
-
- -
-
-

Properties

-
- -
abToHex: ((arr: ArrayBuffer | ArrayLike<number>) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (arr: ArrayBuffer | ArrayLike<number>): string
    • -
    • -

      Converts an arraybuffer to hexstring.

      - -

      Example

      const encoder = new TextEncoder()
      const arrayBuffer = encoder.encode('unit test')
      console.log(Neo3Parser.abToHex(arrayBuffer))
      // 756e69742074657374 -
      -
      -
      -

      Parameters

      -
        -
      • -
        arr: ArrayBuffer | ArrayLike<number>
      -

      Returns string

-
- -
abToStr: ((buf: ArrayBuffer | ArrayLike<number>) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (buf: ArrayBuffer | ArrayLike<number>): string
    • -
    • -

      Converts an ArrayBuffer to an ASCII string.

      - -

      Example

      const encoder = new TextEncoder()
      const arrayBuffer = encoder.encode('unit test')
      console.log(Neo3Parser.abToStr(arrayBuffer))
      // unit test -
      -
      -
      -

      Parameters

      -
        -
      • -
        buf: ArrayBuffer | ArrayLike<number>
      -

      Returns string

-
- -
accountInputToAddress: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts an account input such Address, PublicKey or ScriptHash to an Address.

      - -

      Example

      const address = Neo3Parser.accountInputToAddress('a5de523ae9d99be784a536e9412b7a3cbe049e1a')
      console.log(address)
      // NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs -
      - -

      Example

      const address = Neo3Parser.accountInputToAddress('03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c')
      console.log(address)
      // NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
accountInputToScripthash: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts an account input such Address, PublicKey or ScriptHash to an ScriptHash.

      - -

      Example

      const scriptHash = Neo3Parser.accountInputToScripthash('NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs')
      console.log(scriptHash)
      // a5de523ae9d99be784a536e9412b7a3cbe049e1a -
      - -

      Example

      const scriptHash = Neo3Parser.accountInputToScripthash('03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c')
      console.log(scriptHash)
      // a5de523ae9d99be784a536e9412b7a3cbe049e1a -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
asciiToBase64: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts an ascii string to a base64 string.

      - -

      Example

      const base64String = Neo3Parser.asciiToBase64('unit test')
      console.log(base64String)
      // dW5pdCB0ZXN0 -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
base64ToHex: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts a base64 string to hex

      - -

      Example

      const hexString = Neo3Parser.base64ToHex('dW5pdCB0ZXN0')
      console.log(base64String)
      // 756e69742074657374 -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
base64ToUtf8: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts a base64 string to utf8.

      - -

      Example

      const utf8String = Neo3Parser.base64ToUtf8('VVRGLTggU3RyaW5nIMOhw6PDoMOn')
      console.log(utf8String)
      // UTF-8 String áãàç -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
formatRpcArgument: ((arg: any, parseConfig?: ParseConfig) => Arg)
-
-

Type declaration

-
    -
  • -
      -
    • (arg: any, parseConfig?: ParseConfig): Arg
    • -
    • -

      Formats the argument that will be sent to the RPC server

      - -

      Example

      const formattedNumber = Neo3Parser.formatRpcArgument(123)
      console.log(formattedNumber)
      // { type: 'Integer', value: '123' } -
      - -

      Example

      const formattedBoolean = Neo3Parser.formatRpcArgument(true)
      console.log(formattedBoolean)
      // { type: 'Boolean', value: true } -
      - -

      Example

      const formattedString = Neo3Parser.formatRpcArgument('unit test')
      console.log(formmatedString)
      // { type: 'String', value: 'unit test' } -
      - -

      Example

      const formattedByteArray = Neo3Parser.formatRpcArgument('756e69742074657374')
      console.log(formattedByteArray)
      // { type: 'ByteArray', value: '756e69742074657374' } -
      - -

      Example

      const formattedHash160 = Neo3Parser.formatRpcArgument('0xd2a4cff31913016155e38e474a2c06d08be276cf', { type: 'Hash160' })
      console.log(formattedHash160)
      // { type: 'Hash160', value: 'd2a4cff31913016155e38e474a2c06d08be276cf' } -
      - -

      Example

      const formattedArray = Neo3Parser.formatRpcArgument([1, 2, 3], { type: 'Array', generic: { type: 'Integer' } })
      console.log(formattedArray)
      // { type: 'Array', value: [{ type: 'Integer', value: '1' }, { type: 'Integer', value: '2' }, { type: 'Integer', value: '3' }] } -
      - -

      Example

      const formattedMap = Neo3Parser.formatRpcArgument({ unit: 'test', neo3: 'parser' }, { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'String' } })
      console.log(formattedMap)
      // { type: 'Map', value: [{ key: { type: 'String', value: 'unit' }, value: { type: 'String', value: 'test' } }, { key: { type: 'String', value: 'neo3' }, value: { type: 'String', value: 'parser' } }] } -
      -
      -
      -

      Parameters

      -
        -
      • -
        arg: any
        -

        the argument that will be formatted

        -
      • -
      • -
        Optional parseConfig: ParseConfig
        -

        how to format the argument

        -
      -

      Returns Arg

-
- -
hexToAb: ((str: string) => Uint8Array)
-
-

Type declaration

-
    -
  • -
      -
    • (str: string): Uint8Array
    • -
    • -

      Converts a hexstring into an arrayBuffer.

      - -

      Example

      const arrayBuffer = Neo3Parser.hexToAb('756e69742074657374')
      console.log(arrayBuffer)
      // Uint8Array(9) [117, 110, 105, 116, 32, 116, 101, 115, 116] -
      -
      -
      -

      Parameters

      -
        -
      • -
        str: string
      -

      Returns Uint8Array

-
- -
hexToBase64: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts a hex string to a base64 string.

      - -

      Example

      const base64String = Neo3Parser.hexToBase64('756e69742074657374')
      console.log(base64String)
      // dW5pdCB0ZXN0 -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
hexToStr: ((hexstring: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (hexstring: string): string
    • -
    • -

      Converts a hexstring to ascii string.

      - -

      Example

      const str = Neo3Parser.hexToStr('756e69742074657374')
      console.log(str)
      // unit test -
      -
      -
      -

      Parameters

      -
        -
      • -
        hexstring: string
      -

      Returns string

-
- -
intToHex: ((num: number) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (num: number): string
    • -
    • -

      convert an integer to big endian hex and add leading zeros.

      - -

      Example

      const hexString = Neo3Parser.intToHex(512)
      console.log(hexString)
      // 0200 -
      -
      -
      -

      Parameters

      -
        -
      • -
        num: number
      -

      Returns string

-
- -
numToHex: ((num: number, size?: number, littleEndian?: boolean) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (num: number, size?: number, littleEndian?: boolean): string
    • -
    • -

      Converts a number to a big endian hexstring of a suitable size, optionally little endian

      - -

      Example

      console.log(Neo3Parser.numToHex(513))
      // 01

      console.log(Neo3Parser.numToHex(513, 2))
      // 0201

      console.log(Neo3Parser.numToHex(513, 2, true))
      // 0102 -
      -
      -
      -

      Parameters

      -
        -
      • -
        num: number
        -

        a positive integer.

        -
      • -
      • -
        Optional size: number
        -

        the required size in bytes, eg 1 for Uint8, 2 for Uint16. Defaults to 1.

        -
      • -
      • -
        Optional littleEndian: boolean
        -

        encode the hex in little endian form

        -
      -

      Returns string

-
- -
numToVarInt: ((num: number) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (num: number): string
    • -
    • -

      Converts a number to a variable length Int. Used for array length header

      - -

      Example

      console.log(Neo3Parser.numToVarInt(16))
      // 10

      console.log(Neo3Parser.numToVarInt(512))
      // fd0002

      console.log(Neo3Parser.numToVarInt(65535))
      // fdffff

      console.log(Neo3Parser.numToVarInt(4294967295))
      // feffffffff

      console.log(Neo3Parser.numToVarInt(4294967296))
      // ff0000000001000000 -
      -
      -
      -

      Parameters

      -
        -
      • -
        num: number
      -

      Returns string

-
- -
parseRpcResponse: ((field: RpcResponseStackItem, parseConfig?: ParseConfig) => any)
-
-

Type declaration

-
    -
  • -
      -
    • (field: RpcResponseStackItem, parseConfig?: ParseConfig): any
    • -
    • -

      Formats the response from the RPC server to an easier to use format for dapp developers

      - -

      Example

      const stringResponse = {
      type: 'ByteString',
      value: 'dW5pdCB0ZXN0'
      }
      const parsed = Neo3Parser.parseRpcResponse(stringResponse)
      console.log(parsed)
      // unit test -
      - -

      Example

      const scriptHashResponse = {
      type: 'ByteString',
      value: 'YUeato/VwsBLJU84LYTd8vXGfO0='
      }
      const parsed = Neo3Parser.parseRpcResponse(scriptHashResponse, { type: 'Hash160' })
      console.log(parsed)
      // 0xed7cc6f5f2dd842d384f254bc0c2d58fb69a4761 -
      - -

      Example

      const byteArrayResponse = {
      type: 'ByteString',
      value: 'dW5pdCB0ZXN0'
      }
      const parsed = Neo3Parser.parseRpcResponse(bytesResponse, { type: 'ByteArray' })
      console.log(parsed)
      // 756e69742074657374 -
      - -

      Example

      const integerResponse = {
      type: 'Integer',
      value: '18'
      }
      const parsed = Neo3Parser.parseRpcResponse(integerResponse)
      console.log(parsed)
      // 18 -
      - -

      Example

      const arrayResponse = {
      type: 'Array',
      value: [
      {
      type: 'Integer',
      value: '10',
      },
      {
      type: 'Integer',
      value: '20',
      },
      {
      type: 'Integer',
      value: '30',
      },
      ]
      }
      const parsed = Neo3Parser.parseRpcResponse(arrayResponse, { type: 'Array', generic: { type: 'Integer' } })
      console.log(parsed)
      // [10, 20, 30] -
      - -

      Example

      const mapResponse = {
      type: 'Map',
      value: [
      {
      key: {
      type: 'ByteString',
      value: 'dW5pdA=='
      },
      value: {
      type: 'ByteString',
      value: 'dGVzdA=='
      },
      {
      key: {
      type: 'ByteString',
      value: 'bmVvMw=='
      },
      value: {
      type: 'ByteString',
      value: 'cGFyc2Vy'
      },
      ]
      }
      const parsed = Neo3Parser.parseRpcResponse(mapResponse, { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'String' } })
      console.log(parsed)
      // { unit: 'test', neo3: 'parser' } -
      -
      -
      -

      Parameters

      -
      -

      Returns any

-
- -
reverseHex: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Reverses a HEX string, treating 2 chars as a byte.

      - -

      Example

      const reversedHexString = Neo3Parser.reverseHex('abcdef')
      console.log(reversedHexString)
      // efcdab -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
- -
strToAb: ((str: string) => Uint8Array)
-
-

Type declaration

-
    -
  • -
      -
    • (str: string): Uint8Array
    • -
    • -

      Converts an ASCII string into an arrayBuffer.

      - -

      Example

      const arrayBuffer = Neo3Parser.strToAb('unit test')
      console.log(arrayBuffer)
      // Uint8Array(9) [117, 110, 105, 116, 32, 116, 101, 115, 116] -
      -
      -
      -

      Parameters

      -
        -
      • -
        str: string
      -

      Returns Uint8Array

-
- -
strToBase64: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts a string to base64

      - -

      Example

      const base64String = Neo3Parser.strToBase64('unit test')
      console.log(base64String)
      // dW5pdCB0ZXN0 -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
        -

        The string to convert

        -
      -

      Returns string

-
- -
strToHex: ((str: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (str: string): string
    • -
    • -

      Converts an ascii string to hexstring.

      - -

      Example

      const hexString = Neo3Parser.strToHex('unit test')
      console.log(hexString)
      // 756e69742074657374 -
      -
      -
      -

      Parameters

      -
        -
      • -
        str: string
      -

      Returns string

-
- -
utf8ToBase64: ((input: string) => string)
-
-

Type declaration

-
    -
  • -
      -
    • (input: string): string
    • -
    • -

      Converts an utf8 string to a base64 string.

      - -

      Example

      const base64String = Neo3Parser.utf8ToBase64('unit test')
      console.log(base64String)
      // dW5pdCB0ZXN0 -
      -
      -
      -

      Parameters

      -
        -
      • -
        input: string
      -

      Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3Signer.html b/packages/neon-dappkit-types/docs/interfaces/Neo3Signer.html deleted file mode 100644 index 709e1b4..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3Signer.html +++ /dev/null @@ -1,187 +0,0 @@ -Neo3Signer | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3Signer

-
-

A simple interface that defines the Signing and Verifying methods

-
-
-

Hierarchy

-
    -
  • Neo3Signer
-
-
-
- -
-
-

Methods

-
- -
    - -
  • -

    Decrypts a message encrypted using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve

    - -

    Returns

    the decrypted message

    -
    -
    -

    Parameters

    -
      -
    • -
      payload: EncryptedPayload
      -

      an object that was encrypted with the public key corresponding to the account

      -
    -

    Returns Promise<string>

-
- -
    - -
  • -

    Tries to find the first payload that can be decrypted from an array of objects that were encrypted using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve

    - -

    Returns

    an object with the decrypted message of the first payload that could be decrypted and the index indicating which encrypted message from the array was decrypt

    - -

    Throws

    an error if none of the public keys used to encrypt correspond to the account

    -
    -
    -

    Parameters

    -
      -
    • -
      payloads: EncryptedPayload[]
      -

      an array of objects that were encrypted with the public keys

      -
    -

    Returns Promise<DecryptFromArrayResult>

-
- -
    - -
  • -

    Encrypts a message using the Elliptic Curve Integrated Encryption Scheme with the secp256r1 curve

    - -

    Returns

    an array with the same lenght as the array of public keys, each element is an EncryptedPayload

    -
    -
    -

    Parameters

    -
      -
    • -
      message: string
      -

      message to be encrypted

      -
    • -
    • -
      publicKeys: string[]
      -

      a list of public keys to encrypt the message with

      -
    -

    Returns Promise<EncryptedPayload[]>

-
- -
    - -
  • -

    returns the address of the account, not as safe as using signMessage and getting the publicKey

    -
    -

    Returns string

-
- -
-
- -
    - -
  • -

    Checks if the signedMessage is true

    - -

    Returns

    true if the signedMessage is acknowledged by the account

    -
    -
    -

    Parameters

    -
      -
    • -
      params: SignedMessage
      -

      an object that represents a signed message

      -
    -

    Returns Promise<boolean>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/Neo3StackItem.html b/packages/neon-dappkit-types/docs/interfaces/Neo3StackItem.html deleted file mode 100644 index 65d01c0..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/Neo3StackItem.html +++ /dev/null @@ -1,78 +0,0 @@ -Neo3StackItem | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface Neo3StackItem

-
-

An interface that defines the stack item format

-
-
-

Hierarchy

-
    -
  • Neo3StackItem
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
type: string
-
- -
value?: string | number | boolean | Neo3StackItem[]
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/NotWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/NotWitnessCondition.html deleted file mode 100644 index 3162a43..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/NotWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -NotWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface NotWitnessCondition

-
-

Hierarchy

-
    -
  • NotWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
expression: WitnessCondition
-
- -
type: "Not"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/OrWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/OrWitnessCondition.html deleted file mode 100644 index b64b4f1..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/OrWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -OrWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface OrWitnessCondition

-
-

Hierarchy

-
    -
  • OrWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
expressions: WitnessCondition[]
-
- -
type: "Or"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/ScriptHashWitnessCondition.html b/packages/neon-dappkit-types/docs/interfaces/ScriptHashWitnessCondition.html deleted file mode 100644 index 28c4c20..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/ScriptHashWitnessCondition.html +++ /dev/null @@ -1,75 +0,0 @@ -ScriptHashWitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface ScriptHashWitnessCondition

-
-

Hierarchy

-
    -
  • ScriptHashWitnessCondition
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
hash: string
-
- -
type: "ScriptHash"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/interfaces/WitnessRule.html b/packages/neon-dappkit-types/docs/interfaces/WitnessRule.html deleted file mode 100644 index ee1a56c..0000000 --- a/packages/neon-dappkit-types/docs/interfaces/WitnessRule.html +++ /dev/null @@ -1,75 +0,0 @@ -WitnessRule | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Interface WitnessRule

-
-

Hierarchy

-
    -
  • WitnessRule
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
action: string
-
- -
condition: WitnessCondition
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/modules.html b/packages/neon-dappkit-types/docs/modules.html deleted file mode 100644 index 503be89..0000000 --- a/packages/neon-dappkit-types/docs/modules.html +++ /dev/null @@ -1,187 +0,0 @@ -@cityofzion/neon-dappkit-types
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/AnyArgType.html b/packages/neon-dappkit-types/docs/types/AnyArgType.html deleted file mode 100644 index 1d050a7..0000000 --- a/packages/neon-dappkit-types/docs/types/AnyArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -AnyArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias AnyArgType

-
AnyArgType: {
    type: "Any";
    value: any;
}
-
-

Type declaration

-
    -
  • -
    type: "Any"
  • -
  • -
    value: any
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/AnyConfigArgType.html b/packages/neon-dappkit-types/docs/types/AnyConfigArgType.html deleted file mode 100644 index 48ab056..0000000 --- a/packages/neon-dappkit-types/docs/types/AnyConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -AnyConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias AnyConfigArgType

-
AnyConfigArgType: {
    type: "Any";
    union?: ParseConfig[];
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Arg.html b/packages/neon-dappkit-types/docs/types/Arg.html deleted file mode 100644 index 3166802..0000000 --- a/packages/neon-dappkit-types/docs/types/Arg.html +++ /dev/null @@ -1,112 +0,0 @@ -Arg | @cityofzion/neon-dappkit-types
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ArrayArgType.html b/packages/neon-dappkit-types/docs/types/ArrayArgType.html deleted file mode 100644 index 3d6dad8..0000000 --- a/packages/neon-dappkit-types/docs/types/ArrayArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -ArrayArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ArrayArgType

-
ArrayArgType: {
    type: "Array";
    value: Arg[];
}
-
-

Type declaration

-
    -
  • -
    type: "Array"
  • -
  • -
    value: Arg[]
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ArrayConfigArgType.html b/packages/neon-dappkit-types/docs/types/ArrayConfigArgType.html deleted file mode 100644 index e1c2794..0000000 --- a/packages/neon-dappkit-types/docs/types/ArrayConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -ArrayConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ArrayConfigArgType

-
ArrayConfigArgType: {
    generic?: ParseConfig;
    type: "Array";
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ArrayResponseArgType.html b/packages/neon-dappkit-types/docs/types/ArrayResponseArgType.html deleted file mode 100644 index d75fd6e..0000000 --- a/packages/neon-dappkit-types/docs/types/ArrayResponseArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -ArrayResponseArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ArrayResponseArgType

-
ArrayResponseArgType: {
    type: "Array";
    value: RpcResponseStackItem[];
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/BooleanArgType.html b/packages/neon-dappkit-types/docs/types/BooleanArgType.html deleted file mode 100644 index e93e23f..0000000 --- a/packages/neon-dappkit-types/docs/types/BooleanArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -BooleanArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias BooleanArgType

-
BooleanArgType: {
    type: "Boolean";
    value: boolean;
}
-
-

Type declaration

-
    -
  • -
    type: "Boolean"
  • -
  • -
    value: boolean
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/BooleanConfigArgType.html b/packages/neon-dappkit-types/docs/types/BooleanConfigArgType.html deleted file mode 100644 index f9c8ede..0000000 --- a/packages/neon-dappkit-types/docs/types/BooleanConfigArgType.html +++ /dev/null @@ -1,117 +0,0 @@ -BooleanConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias BooleanConfigArgType

-
BooleanConfigArgType: {
    type: "Boolean";
}
-
-

Type declaration

-
    -
  • -
    type: "Boolean"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/BufferArgType.html b/packages/neon-dappkit-types/docs/types/BufferArgType.html deleted file mode 100644 index a4b6846..0000000 --- a/packages/neon-dappkit-types/docs/types/BufferArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -BufferArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias BufferArgType

-
BufferArgType: {
    type: "Buffer";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "Buffer"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/BuiltTransaction.html b/packages/neon-dappkit-types/docs/types/BuiltTransaction.html deleted file mode 100644 index 9e28e37..0000000 --- a/packages/neon-dappkit-types/docs/types/BuiltTransaction.html +++ /dev/null @@ -1,112 +0,0 @@ -BuiltTransaction | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias BuiltTransaction

-
BuiltTransaction: ContractInvocationMulti & {
    hash?: string;
    networkFee: string;
    nonce: number;
    script: string;
    size: number;
    systemFee: string;
    validUntilBlock: number;
    version: number;
    witnesses: BuiltTransactionWitness[];
}
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/BuiltTransactionWitness.html b/packages/neon-dappkit-types/docs/types/BuiltTransactionWitness.html deleted file mode 100644 index 849356d..0000000 --- a/packages/neon-dappkit-types/docs/types/BuiltTransactionWitness.html +++ /dev/null @@ -1,119 +0,0 @@ -BuiltTransactionWitness | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias BuiltTransactionWitness

-
BuiltTransactionWitness: {
    invocation: string;
    verification: string;
}
-
-

Type declaration

-
    -
  • -
    invocation: string
  • -
  • -
    verification: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ByteArrayArgType.html b/packages/neon-dappkit-types/docs/types/ByteArrayArgType.html deleted file mode 100644 index e72bdca..0000000 --- a/packages/neon-dappkit-types/docs/types/ByteArrayArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -ByteArrayArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ByteArrayArgType

-
ByteArrayArgType: {
    type: "ByteArray";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "ByteArray"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ByteArrayConfigArgType.html b/packages/neon-dappkit-types/docs/types/ByteArrayConfigArgType.html deleted file mode 100644 index 5444e1a..0000000 --- a/packages/neon-dappkit-types/docs/types/ByteArrayConfigArgType.html +++ /dev/null @@ -1,117 +0,0 @@ -ByteArrayConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ByteArrayConfigArgType

-
ByteArrayConfigArgType: {
    type: "ByteArray";
}
-
-

Type declaration

-
    -
  • -
    type: "ByteArray"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ByteStringArgType.html b/packages/neon-dappkit-types/docs/types/ByteStringArgType.html deleted file mode 100644 index d4cdc2c..0000000 --- a/packages/neon-dappkit-types/docs/types/ByteStringArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -ByteStringArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ByteStringArgType

-
ByteStringArgType: {
    type: "ByteString";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "ByteString"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ContractInvocation.html b/packages/neon-dappkit-types/docs/types/ContractInvocation.html deleted file mode 100644 index 044c71d..0000000 --- a/packages/neon-dappkit-types/docs/types/ContractInvocation.html +++ /dev/null @@ -1,133 +0,0 @@ -ContractInvocation | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ContractInvocation

-
ContractInvocation: {
    abortOnFail?: boolean;
    args?: Arg[];
    operation: string;
    scriptHash: string;
}
-

A simple interface that defines the invocation options

-
-
-

Type declaration

-
    -
  • -
    Optional abortOnFail?: boolean
    -

    When requesting multiple invocations, you can set abortOnFail to true on some invocations so the VM will abort the rest of the calls if this invocation returns false

    -
  • -
  • -
    Optional args?: Arg[]
    -

    The parameters to be sent to the method

    -
  • -
  • -
    operation: string
    -

    The SmartContract's method name

    -
  • -
  • -
    scriptHash: string
    -

    The SmartContract ScriptHash

    -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ContractInvocationMulti.html b/packages/neon-dappkit-types/docs/types/ContractInvocationMulti.html deleted file mode 100644 index 180152a..0000000 --- a/packages/neon-dappkit-types/docs/types/ContractInvocationMulti.html +++ /dev/null @@ -1,141 +0,0 @@ -ContractInvocationMulti | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias ContractInvocationMulti

-
ContractInvocationMulti: {
    extraNetworkFee?: number;
    extraSystemFee?: number;
    invocations: ContractInvocation[];
    networkFeeOverride?: number;
    signers?: Signer[];
    systemFeeOverride?: number;
}
-

A simple interface that defines the MultiInvoke options

-
-
-

Type declaration

-
    -
  • -
    Optional extraNetworkFee?: number
    -

    an optional fee to be added to the calculated network fee

    -
  • -
  • -
    Optional extraSystemFee?: number
    -

    an optional fee to be added to the calculated system fee

    -
  • -
  • -
    invocations: ContractInvocation[]
    -

    The array of invocations

    -
  • -
  • -
    Optional networkFeeOverride?: number
    -

    for the cases you need to calculate the network fee by yourself

    -
  • -
  • -
    Optional signers?: Signer[]
    -

    the signing options

    -
  • -
  • -
    Optional systemFeeOverride?: number
    -

    for the cases you need to calculate the system fee by yourself

    -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Hash160ArgType.html b/packages/neon-dappkit-types/docs/types/Hash160ArgType.html deleted file mode 100644 index 8392c23..0000000 --- a/packages/neon-dappkit-types/docs/types/Hash160ArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -Hash160ArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Hash160ArgType

-
Hash160ArgType: {
    type: "Hash160";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "Hash160"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Hash160ConfigArgType.html b/packages/neon-dappkit-types/docs/types/Hash160ConfigArgType.html deleted file mode 100644 index a00ae07..0000000 --- a/packages/neon-dappkit-types/docs/types/Hash160ConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -Hash160ConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Hash160ConfigArgType

-
Hash160ConfigArgType: {
    hint?: string;
    type: "Hash160";
}
-
-

Type declaration

-
    -
  • -
    Optional hint?: string
  • -
  • -
    type: "Hash160"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Hash256ArgType.html b/packages/neon-dappkit-types/docs/types/Hash256ArgType.html deleted file mode 100644 index 2a86bab..0000000 --- a/packages/neon-dappkit-types/docs/types/Hash256ArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -Hash256ArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Hash256ArgType

-
Hash256ArgType: {
    type: "Hash256";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "Hash256"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Hash256ConfigArgType.html b/packages/neon-dappkit-types/docs/types/Hash256ConfigArgType.html deleted file mode 100644 index abbe6ff..0000000 --- a/packages/neon-dappkit-types/docs/types/Hash256ConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -Hash256ConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Hash256ConfigArgType

-
Hash256ConfigArgType: {
    hint?: string;
    type: "Hash256";
}
-
-

Type declaration

-
    -
  • -
    Optional hint?: string
  • -
  • -
    type: "Hash256"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/IntegerArgType.html b/packages/neon-dappkit-types/docs/types/IntegerArgType.html deleted file mode 100644 index 82a3913..0000000 --- a/packages/neon-dappkit-types/docs/types/IntegerArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -IntegerArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias IntegerArgType

-
IntegerArgType: {
    type: "Integer";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "Integer"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/IntegerConfigArgType.html b/packages/neon-dappkit-types/docs/types/IntegerConfigArgType.html deleted file mode 100644 index 0dde324..0000000 --- a/packages/neon-dappkit-types/docs/types/IntegerConfigArgType.html +++ /dev/null @@ -1,117 +0,0 @@ -IntegerConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias IntegerConfigArgType

-
IntegerConfigArgType: {
    type: "Integer";
}
-
-

Type declaration

-
    -
  • -
    type: "Integer"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/InteropInterfaceArgType.html b/packages/neon-dappkit-types/docs/types/InteropInterfaceArgType.html deleted file mode 100644 index 55b7870..0000000 --- a/packages/neon-dappkit-types/docs/types/InteropInterfaceArgType.html +++ /dev/null @@ -1,121 +0,0 @@ -InteropInterfaceArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias InteropInterfaceArgType

-
InteropInterfaceArgType: {
    id: string;
    interface: string;
    type: "InteropInterface";
}
-
-

Type declaration

-
    -
  • -
    id: string
  • -
  • -
    interface: string
  • -
  • -
    type: "InteropInterface"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/InteropInterfaceConfigArgType.html b/packages/neon-dappkit-types/docs/types/InteropInterfaceConfigArgType.html deleted file mode 100644 index e85fd4d..0000000 --- a/packages/neon-dappkit-types/docs/types/InteropInterfaceConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -InteropInterfaceConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias InteropInterfaceConfigArgType

-
InteropInterfaceConfigArgType: {
    hint?: string;
    type: "InteropInterface";
}
-
-

Type declaration

-
    -
  • -
    Optional hint?: string
  • -
  • -
    type: "InteropInterface"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/MapArgType.html b/packages/neon-dappkit-types/docs/types/MapArgType.html deleted file mode 100644 index 045195d..0000000 --- a/packages/neon-dappkit-types/docs/types/MapArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -MapArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias MapArgType

-
MapArgType: {
    type: "Map";
    value: {
        key: Arg;
        value: Arg;
    }[];
}
-
-

Type declaration

-
    -
  • -
    type: "Map"
  • -
  • -
    value: {
        key: Arg;
        value: Arg;
    }[]
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/MapConfigArgType.html b/packages/neon-dappkit-types/docs/types/MapConfigArgType.html deleted file mode 100644 index 02087d7..0000000 --- a/packages/neon-dappkit-types/docs/types/MapConfigArgType.html +++ /dev/null @@ -1,121 +0,0 @@ -MapConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias MapConfigArgType

-
MapConfigArgType: {
    genericItem?: ParseConfig;
    genericKey?: ParseConfig;
    type: "Map";
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/MapResponseArgType.html b/packages/neon-dappkit-types/docs/types/MapResponseArgType.html deleted file mode 100644 index 2e00e29..0000000 --- a/packages/neon-dappkit-types/docs/types/MapResponseArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -MapResponseArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias MapResponseArgType

-
MapResponseArgType: {
    type: "Map";
    value: {
        key: RpcResponseStackItem;
        value: RpcResponseStackItem;
    }[];
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Neo3EventListenerCallback.html b/packages/neon-dappkit-types/docs/types/Neo3EventListenerCallback.html deleted file mode 100644 index 7c869dc..0000000 --- a/packages/neon-dappkit-types/docs/types/Neo3EventListenerCallback.html +++ /dev/null @@ -1,127 +0,0 @@ -Neo3EventListenerCallback | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Neo3EventListenerCallback

-
Neo3EventListenerCallback: ((event: Neo3EventWithState) => void)
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/ParseConfig.html b/packages/neon-dappkit-types/docs/types/ParseConfig.html deleted file mode 100644 index be5c15b..0000000 --- a/packages/neon-dappkit-types/docs/types/ParseConfig.html +++ /dev/null @@ -1,112 +0,0 @@ -ParseConfig | @cityofzion/neon-dappkit-types
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/PointerArgType.html b/packages/neon-dappkit-types/docs/types/PointerArgType.html deleted file mode 100644 index f51aea6..0000000 --- a/packages/neon-dappkit-types/docs/types/PointerArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -PointerArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias PointerArgType

-
PointerArgType: {
    type: "Pointer";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "Pointer"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/PublicKeyArgType.html b/packages/neon-dappkit-types/docs/types/PublicKeyArgType.html deleted file mode 100644 index b216bba..0000000 --- a/packages/neon-dappkit-types/docs/types/PublicKeyArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -PublicKeyArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias PublicKeyArgType

-
PublicKeyArgType: {
    type: "PublicKey";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "PublicKey"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/PublicKeyConfigArgType.html b/packages/neon-dappkit-types/docs/types/PublicKeyConfigArgType.html deleted file mode 100644 index d3bd0b4..0000000 --- a/packages/neon-dappkit-types/docs/types/PublicKeyConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -PublicKeyConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias PublicKeyConfigArgType

-
PublicKeyConfigArgType: {
    hint?: string;
    type: "PublicKey";
}
-
-

Type declaration

-
    -
  • -
    Optional hint?: string
  • -
  • -
    type: "PublicKey"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/RpcResponseStackItem.html b/packages/neon-dappkit-types/docs/types/RpcResponseStackItem.html deleted file mode 100644 index 10085ae..0000000 --- a/packages/neon-dappkit-types/docs/types/RpcResponseStackItem.html +++ /dev/null @@ -1,112 +0,0 @@ -RpcResponseStackItem | @cityofzion/neon-dappkit-types
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/SignMessagePayload.html b/packages/neon-dappkit-types/docs/types/SignMessagePayload.html deleted file mode 100644 index b0429e5..0000000 --- a/packages/neon-dappkit-types/docs/types/SignMessagePayload.html +++ /dev/null @@ -1,121 +0,0 @@ -SignMessagePayload | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias SignMessagePayload

-
SignMessagePayload: {
    message: string;
    version?: SignMessageVersion;
}
-

A simple type that defines the SignMessage payload, where Version.LEGACY is deprecated and Version.DEFAULT is NeoFS compatible and uses SALT, and Version.WITHOUT_SALT is NeoFS compatible and does not use SALT

-
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/SignedMessage.html b/packages/neon-dappkit-types/docs/types/SignedMessage.html deleted file mode 100644 index 5787a45..0000000 --- a/packages/neon-dappkit-types/docs/types/SignedMessage.html +++ /dev/null @@ -1,133 +0,0 @@ -SignedMessage | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias SignedMessage

-
SignedMessage: {
    data: string;
    messageHex: string;
    publicKey: string;
    salt?: string;
}
-

A simple type that defines the Signed Message format

-
-
-

Type declaration

-
    -
  • -
    data: string
    -

    encrypted message

    -
  • -
  • -
    messageHex: string
    -

    message hex

    -
  • -
  • -
    publicKey: string
    -

    signer's public key

    -
  • -
  • -
    Optional salt?: string
    -

    salt used to encrypt

    -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/Signer.html b/packages/neon-dappkit-types/docs/types/Signer.html deleted file mode 100644 index 9f59e97..0000000 --- a/packages/neon-dappkit-types/docs/types/Signer.html +++ /dev/null @@ -1,139 +0,0 @@ -Signer | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias Signer

-
Signer: {
    account?: string;
    allowedContracts?: string[];
    allowedGroups?: string[];
    rules?: WitnessRule[];
    scopes: string | number;
}
-

A simple interface that defines the signing options, which privileges the user needs to give for the SmartContract. -Usually the default signer is enough: { scopes: WitnessScope.CalledByEntry } -But you may need additional authorization, for instance, allow the SmartContract to invoke another specific contract:

-
{
scopes: WitnessScope.CustomContracts,
allowedContracts: ['0xf970f4ccecd765b63732b821775dc38c25d74f23']
} -
-
-
-

Type declaration

-
    -
  • -
    Optional account?: string
    -

    An optional scriptHash to be used to sign, if no account is provided the user selected account will be used

    -
  • -
  • -
    Optional allowedContracts?: string[]
    -

    When the scopes is WitnessScope.CustomContracts, you need to specify which contracts are allowed

    -
  • -
  • -
    Optional allowedGroups?: string[]
    -

    When the scopes is WitnessScope.CustomGroups, you need to specify which groups are allowed

    -
  • -
  • -
    Optional rules?: WitnessRule[]
  • -
  • -
    scopes: string | number
    -

    The level of permission the invocation needs

    -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/StringArgType.html b/packages/neon-dappkit-types/docs/types/StringArgType.html deleted file mode 100644 index f703778..0000000 --- a/packages/neon-dappkit-types/docs/types/StringArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -StringArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias StringArgType

-
StringArgType: {
    type: "String";
    value: string;
}
-
-

Type declaration

-
    -
  • -
    type: "String"
  • -
  • -
    value: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/StringConfigArgType.html b/packages/neon-dappkit-types/docs/types/StringConfigArgType.html deleted file mode 100644 index 4fa492b..0000000 --- a/packages/neon-dappkit-types/docs/types/StringConfigArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -StringConfigArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias StringConfigArgType

-
StringConfigArgType: {
    hint?: string;
    type: "String";
}
-
-

Type declaration

-
    -
  • -
    Optional hint?: string
  • -
  • -
    type: "String"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/StructArgType.html b/packages/neon-dappkit-types/docs/types/StructArgType.html deleted file mode 100644 index 14622b2..0000000 --- a/packages/neon-dappkit-types/docs/types/StructArgType.html +++ /dev/null @@ -1,119 +0,0 @@ -StructArgType | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Type alias StructArgType

-
StructArgType: {
    type: "Struct";
    value: RpcResponseStackItem[];
}
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/types/WitnessCondition.html b/packages/neon-dappkit-types/docs/types/WitnessCondition.html deleted file mode 100644 index 242a457..0000000 --- a/packages/neon-dappkit-types/docs/types/WitnessCondition.html +++ /dev/null @@ -1,112 +0,0 @@ -WitnessCondition | @cityofzion/neon-dappkit-types
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/variables/ABI_TYPES.html b/packages/neon-dappkit-types/docs/variables/ABI_TYPES.html deleted file mode 100644 index a4f0350..0000000 --- a/packages/neon-dappkit-types/docs/variables/ABI_TYPES.html +++ /dev/null @@ -1,204 +0,0 @@ -ABI_TYPES | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Variable ABI_TYPESConst

-
ABI_TYPES: {
    ANY: {
        name: string;
    };
    ARRAY: {
        internal: string;
        name: string;
    };
    BOOLEAN: {
        internal: string;
        name: string;
    };
    BYTEARRAY: {
        internal: string;
        name: string;
    };
    HASH160: {
        internal: string;
        name: string;
    };
    HASH256: {
        internal: string;
        name: string;
    };
    INTEGER: {
        internal: string;
        name: string;
    };
    INTEROPINTERFACE: {
        internal: string;
        name: string;
    };
    MAP: {
        internal: string;
        name: string;
    };
    PUBLICKEY: {
        internal: string;
        name: string;
    };
    SIGNATURE: {
        internal: string;
        name: string;
    };
    STRING: {
        internal: string;
        name: string;
    };
    VOID: {
        internal: string;
        name: string;
    };
} = ...
-
-

Type declaration

-
    -
  • -
    ANY: {
        name: string;
    }
    -
      -
    • -
      name: string
  • -
  • -
    ARRAY: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    BOOLEAN: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    BYTEARRAY: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    HASH160: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    HASH256: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    INTEGER: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    INTEROPINTERFACE: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    MAP: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    PUBLICKEY: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    SIGNATURE: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    STRING: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
  • -
  • -
    VOID: {
        internal: string;
        name: string;
    }
    -
      -
    • -
      internal: string
    • -
    • -
      name: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/variables/HINT_TYPES.html b/packages/neon-dappkit-types/docs/variables/HINT_TYPES.html deleted file mode 100644 index e4cf8ad..0000000 --- a/packages/neon-dappkit-types/docs/variables/HINT_TYPES.html +++ /dev/null @@ -1,211 +0,0 @@ -HINT_TYPES | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Variable HINT_TYPESConst

-
HINT_TYPES: {
    ADDRESS: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    BLOCKHASH: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    ITERATOR: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    PUBLICKEY: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    SCRIPTHASH: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    SCRIPTHASHLITTLEENDING: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    STORAGECONTEXT: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
    TRANSACTIONID: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    };
} = ...
-
-

Type declaration

-
    -
  • -
    ADDRESS: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    BLOCKHASH: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    ITERATOR: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    PUBLICKEY: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    SCRIPTHASH: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    SCRIPTHASHLITTLEENDING: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    STORAGECONTEXT: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
  • -
  • -
    TRANSACTIONID: {
        abi: {
            internal: string;
            name: string;
        };
        name: string;
    }
    -
      -
    • -
      abi: {
          internal: string;
          name: string;
      }
      -
        -
      • -
        internal: string
      • -
      • -
        name: string
    • -
    • -
      name: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/variables/INTERNAL_TYPES.html b/packages/neon-dappkit-types/docs/variables/INTERNAL_TYPES.html deleted file mode 100644 index 4f41edd..0000000 --- a/packages/neon-dappkit-types/docs/variables/INTERNAL_TYPES.html +++ /dev/null @@ -1,135 +0,0 @@ -INTERNAL_TYPES | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Variable INTERNAL_TYPESConst

-
INTERNAL_TYPES: {
    ARRAY: string;
    BOOLEAN: string;
    BUFFER: string;
    BYTESTRING: string;
    INTEGER: string;
    INTEROPINTERFACE: string;
    MAP: string;
    NULL: string;
    POINTER: string;
    STRUCT: string;
} = ...
-
-

Type declaration

-
    -
  • -
    ARRAY: string
  • -
  • -
    BOOLEAN: string
  • -
  • -
    BUFFER: string
  • -
  • -
    BYTESTRING: string
  • -
  • -
    INTEGER: string
  • -
  • -
    INTEROPINTERFACE: string
  • -
  • -
    MAP: string
  • -
  • -
    NULL: string
  • -
  • -
    POINTER: string
  • -
  • -
    STRUCT: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit-types/docs/variables/TypeChecker.html b/packages/neon-dappkit-types/docs/variables/TypeChecker.html deleted file mode 100644 index 278be22..0000000 --- a/packages/neon-dappkit-types/docs/variables/TypeChecker.html +++ /dev/null @@ -1,258 +0,0 @@ -TypeChecker | @cityofzion/neon-dappkit-types
-
- -
-
-
-
- -

Variable TypeCheckerConst

-
TypeChecker: {
    isRpcResponseStackItem(item: any): item is RpcResponseStackItem;
    isStackTypeAny(item: any): item is AnyArgType;
    isStackTypeArray(item: any): item is ArrayResponseArgType;
    isStackTypeBoolean(item: any): item is BooleanArgType;
    isStackTypeBuffer(item: any): item is BufferArgType;
    isStackTypeByteString(item: any): item is ByteStringArgType;
    isStackTypeInteger(item: any): item is IntegerArgType;
    isStackTypeInteropInterface(item: any): item is InteropInterfaceArgType;
    isStackTypeMap(item: any): item is MapResponseArgType;
    isStackTypePointer(item: any): item is PointerArgType;
    isStackTypeStruct(item: any): item is StructArgType;
} = ...
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/packages/neon-dappkit/dist/NeonEventListener.d.ts b/packages/neon-dappkit/dist/NeonEventListener.d.ts deleted file mode 100644 index 27c0d03..0000000 --- a/packages/neon-dappkit/dist/NeonEventListener.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Neo3ApplicationLog, Neo3Event, Neo3EventListener, Neo3EventListenerCallback, Neo3EventWithState } from '@cityofzion/neon-dappkit-types'; -export type NeonEventListenerOptions = { - debug?: boolean | undefined; - waitForApplicationLog?: { - maxAttempts?: number | undefined; - waitMs?: number | undefined; - } | undefined; - waitForEventMs?: number | undefined; -}; -export declare class NeonEventListener implements Neo3EventListener { - private options; - static MAINNET: string; - static TESTNET: string; - private blockPollingLoopActive; - private listeners; - private readonly rpcClient; - constructor(rpcUrl: string, options?: NeonEventListenerOptions | undefined); - addEventListener(contract: string, eventname: string, callback: Neo3EventListenerCallback): void; - removeEventListener(contract: string, eventname: string, callback: Neo3EventListenerCallback): void; - removeAllEventListenersOfContract(contract: string): void; - removeAllEventListenersOfEvent(contract: string, eventname: string): void; - waitForApplicationLog(txId: string): Promise; - confirmHalt(txResult: Neo3ApplicationLog): void; - confirmStackTrue(txResult: Neo3ApplicationLog): void; - getNotificationState(txResult: Neo3ApplicationLog, eventToCheck: Neo3Event): Neo3EventWithState | undefined; - confirmTransaction(txResult: Neo3ApplicationLog, eventToCheck?: Neo3Event | undefined, confirmStackTrue?: boolean): void; - private blockPollingLoop; - private wait; -} diff --git a/packages/neon-dappkit/dist/NeonEventListener.js b/packages/neon-dappkit/dist/NeonEventListener.js deleted file mode 100644 index e733629..0000000 --- a/packages/neon-dappkit/dist/NeonEventListener.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NeonEventListener = void 0; -const neon_js_1 = require("@cityofzion/neon-js"); -class NeonEventListener { - constructor(rpcUrl, options = undefined) { - this.options = options; - this.blockPollingLoopActive = false; - this.listeners = new Map(); - this.rpcClient = new neon_js_1.rpc.RPCClient(rpcUrl); - } - addEventListener(contract, eventname, callback) { - var _a; - const listenersOfContract = this.listeners.get(contract); - if (!listenersOfContract) { - this.listeners.set(contract, new Map([[eventname, [callback]]])); - } - else { - listenersOfContract.set(eventname, [...((_a = listenersOfContract.get(eventname)) !== null && _a !== void 0 ? _a : []), callback]); - } - if (!this.blockPollingLoopActive) { - this.blockPollingLoopActive = true; - this.blockPollingLoop(); - } - } - removeEventListener(contract, eventname, callback) { - const listenersOfContract = this.listeners.get(contract); - if (listenersOfContract) { - let listenersOfEvent = listenersOfContract.get(eventname); - if (listenersOfEvent) { - listenersOfEvent = listenersOfEvent.filter((l) => l !== callback); - listenersOfContract.set(eventname, listenersOfEvent); - if (listenersOfEvent.length === 0) { - listenersOfContract.delete(eventname); - if (listenersOfContract.size === 0) { - this.listeners.delete(contract); - if (this.listeners.size === 0) { - this.blockPollingLoopActive = false; - } - } - } - } - } - } - removeAllEventListenersOfContract(contract) { - this.listeners.delete(contract); - if (this.listeners.size === 0) { - this.blockPollingLoopActive = false; - } - } - removeAllEventListenersOfEvent(contract, eventname) { - const listenersOfContract = this.listeners.get(contract); - if (listenersOfContract) { - listenersOfContract.delete(eventname); - if (listenersOfContract.size === 0) { - this.listeners.delete(contract); - if (this.listeners.size === 0) { - this.blockPollingLoopActive = false; - } - } - } - } - waitForApplicationLog(txId) { - var _a, _b, _c, _d, _e, _f; - return __awaiter(this, void 0, void 0, function* () { - const maxAttempts = (_c = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.waitForApplicationLog) === null || _b === void 0 ? void 0 : _b.maxAttempts) !== null && _c !== void 0 ? _c : 30; - const waitMs = (_f = (_e = (_d = this.options) === null || _d === void 0 ? void 0 : _d.waitForApplicationLog) === null || _e === void 0 ? void 0 : _e.waitMs) !== null && _f !== void 0 ? _f : 1000; - let attempts = 0; - let error = new Error("Couldn't get application log"); - do { - try { - return yield this.rpcClient.getApplicationLog(txId); - } - catch (e) { - error = e; - } - attempts++; - yield this.wait(waitMs); - } while (attempts < maxAttempts); - throw error; - }); - } - confirmHalt(txResult) { - var _a, _b; - if (((_a = txResult === null || txResult === void 0 ? void 0 : txResult.executions[0]) === null || _a === void 0 ? void 0 : _a.vmstate) !== 'HALT') - throw new Error('Transaction failed. VMState: ' + ((_b = txResult === null || txResult === void 0 ? void 0 : txResult.executions[0]) === null || _b === void 0 ? void 0 : _b.vmstate)); - } - confirmStackTrue(txResult) { - if (!txResult || - !txResult.executions || - txResult.executions.length === 0 || - !txResult.executions[0].stack || - txResult.executions[0].stack.length === 0) { - throw new Error('Transaction failed. No stack found in transaction result'); - } - const stack = txResult.executions[0].stack[0]; - if (stack.value !== true) { - throw new Error('Transaction failed. Stack value is not true'); - } - } - getNotificationState(txResult, eventToCheck) { - return txResult === null || txResult === void 0 ? void 0 : txResult.executions[0].notifications.find((e) => { - return e.contract === eventToCheck.contract && e.eventname === eventToCheck.eventname; - }); - } - confirmTransaction(txResult, eventToCheck, confirmStackTrue = false) { - this.confirmHalt(txResult); - if (confirmStackTrue) { - this.confirmStackTrue(txResult); - } - if (eventToCheck) { - const state = this.getNotificationState(txResult, eventToCheck); - if (!state) { - throw new Error('Transaction failed. Event not found in transaction result'); - } - } - } - blockPollingLoop() { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; - return __awaiter(this, void 0, void 0, function* () { - let height = yield this.rpcClient.getBlockCount(); - while (this.blockPollingLoopActive) { - yield this.wait((_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.waitForEventMs) !== null && _b !== void 0 ? _b : 4000); - try { - ((_c = this.options) === null || _c === void 0 ? void 0 : _c.debug) && console.log('Checking block ' + height); - if (height > (yield this.rpcClient.getBlockCount())) { - ((_d = this.options) === null || _d === void 0 ? void 0 : _d.debug) && console.log('Block height is ahead of node. Waiting for node to catch up...'); - continue; - } - const block = yield this.rpcClient.getBlock(height - 1, true); - for (const transaction of block.tx) { - if (!transaction.hash) { - ((_e = this.options) === null || _e === void 0 ? void 0 : _e.debug) && console.log('Transaction hash not found. Skipping transaction'); - continue; - } - const log = yield this.rpcClient.getApplicationLog(transaction.hash); - for (const notification of log.executions[0].notifications) { - const listenersOfContract = this.listeners.get(notification.contract); - if (!listenersOfContract) { - ((_f = this.options) === null || _f === void 0 ? void 0 : _f.debug) && console.log('No listeners for contract ' + notification.contract); - continue; - } - const listenersOfEvent = listenersOfContract.get(notification.eventname); - if (!listenersOfEvent) { - ((_g = this.options) === null || _g === void 0 ? void 0 : _g.debug) && console.log('No listeners for event ' + notification.eventname); - continue; - } - for (const listener of listenersOfEvent) { - try { - ((_h = this.options) === null || _h === void 0 ? void 0 : _h.debug) && console.log('Calling listener'); - listener(notification); - } - catch (e) { - ((_j = this.options) === null || _j === void 0 ? void 0 : _j.debug) && console.error(e); - } - } - } - } - height++; // this is important to avoid skipping blocks when the code throws exceptions - } - catch (error) { - ((_k = this.options) === null || _k === void 0 ? void 0 : _k.debug) && console.error(error); - } - } - ((_l = this.options) === null || _l === void 0 ? void 0 : _l.debug) && console.log('Block polling loop stopped'); - }); - } - wait(ms) { - return new Promise((resolve) => setTimeout(resolve, ms)); - } -} -exports.NeonEventListener = NeonEventListener; -NeonEventListener.MAINNET = 'https://mainnet1.neo.coz.io:443'; -NeonEventListener.TESTNET = 'https://testnet1.neo.coz.io:443'; diff --git a/packages/neon-dappkit/dist/NeonInvoker.d.ts b/packages/neon-dappkit/dist/NeonInvoker.d.ts deleted file mode 100644 index b1e095a..0000000 --- a/packages/neon-dappkit/dist/NeonInvoker.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { ContractInvocationMulti, Signer, Neo3Invoker, Arg, InvokeResult, RpcResponseStackItem, BuiltTransaction, TypeChecker } from '@cityofzion/neon-dappkit-types'; -import { api } from '@cityofzion/neon-js'; -import type * as NeonTypes from '@cityofzion/neon-core'; -export type CalculateFee = { - networkFee: NeonTypes.u.BigInteger; - systemFee: NeonTypes.u.BigInteger; - total: number; -}; -export type ExtendedArg = Arg | { - type: 'Address'; - value: string; -} | { - type: 'ScriptHash'; - value: string; -}; -export type InitOptions = { - rpcAddress: string; - account?: NeonTypes.wallet.Account | NeonTypes.wallet.Account[]; - signingCallback?: api.SigningFunction; -}; -export type Options = InitOptions & { - networkMagic: number; - validBlocks: number; -}; -export declare class NeonInvoker implements Neo3Invoker { - options: Options; - static MAINNET: string; - static TESTNET: string; - private constructor(); - testInvoke(cim: ContractInvocationMulti): Promise; - invokeFunction(cimOrBt: ContractInvocationMulti | BuiltTransaction): Promise; - signTransaction(cimOrBt: ContractInvocationMulti | BuiltTransaction): Promise; - calculateFee(cimOrBt: ContractInvocationMulti): Promise; - traverseIterator(sessionId: string, iteratorId: string, count: number): Promise; - static init(options: InitOptions): Promise; - static getMagicOfRpcAddress(rpcAddress: string): Promise; - static convertParams(args: ExtendedArg[] | undefined): NeonTypes.sc.ContractParam[]; - static buildSigner(optionsAccount: NeonTypes.wallet.Account | undefined, signerEntry?: Signer): NeonTypes.tx.Signer; - static buildMultipleSigner(optionAccounts: NeonTypes.wallet.Account[], signers?: Signer[]): NeonTypes.tx.Signer[]; - private normalizeAccountArray; - private buildScriptHex; - private signTransactionByAccounts; - private buildTransactionFromCimOrBt; - private getNetworkFee; - private getSystemFee; -} -export { TypeChecker }; diff --git a/packages/neon-dappkit/dist/NeonInvoker.js b/packages/neon-dappkit/dist/NeonInvoker.js deleted file mode 100644 index 254ca36..0000000 --- a/packages/neon-dappkit/dist/NeonInvoker.js +++ /dev/null @@ -1,255 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeChecker = exports.NeonInvoker = void 0; -const neon_dappkit_types_1 = require("@cityofzion/neon-dappkit-types"); -Object.defineProperty(exports, "TypeChecker", { enumerable: true, get: function () { return neon_dappkit_types_1.TypeChecker; } }); -const neon_js_1 = require("@cityofzion/neon-js"); -class NeonInvoker { - constructor(options) { - this.options = options; - } - testInvoke(cim) { - return __awaiter(this, void 0, void 0, function* () { - const accountArr = this.normalizeAccountArray(this.options.account); - const script = this.buildScriptHex(cim); - const rpcResult = yield new neon_js_1.rpc.RPCClient(this.options.rpcAddress).invokeScript(neon_js_1.u.HexString.fromHex(script), accountArr[0] ? NeonInvoker.buildMultipleSigner(accountArr, cim.signers) : undefined); - if (rpcResult.state === 'FAULT') - throw Error(`Execution state is FAULT. Exception: ${rpcResult.exception}`); - return Object.assign(Object.assign({}, rpcResult), { stack: rpcResult.stack }); - }); - } - invokeFunction(cimOrBt) { - return __awaiter(this, void 0, void 0, function* () { - const accountArr = this.normalizeAccountArray(this.options.account); - const transaction = yield this.buildTransactionFromCimOrBt(cimOrBt, accountArr); - const rpcClient = new neon_js_1.rpc.RPCClient(this.options.rpcAddress); - const signedTransaction = yield this.signTransactionByAccounts(transaction, accountArr); - return yield rpcClient.sendRawTransaction(signedTransaction); - }); - } - signTransaction(cimOrBt) { - return __awaiter(this, void 0, void 0, function* () { - const accountArr = this.normalizeAccountArray(this.options.account); - const transaction = yield this.buildTransactionFromCimOrBt(cimOrBt, accountArr); - const signedTransaction = yield this.signTransactionByAccounts(transaction, accountArr); - const signedTransactionJson = signedTransaction.toJson(); - return Object.assign(Object.assign({}, cimOrBt), { hash: signedTransactionJson.hash, script: neon_js_1.u.base642hex(signedTransactionJson.script), nonce: signedTransactionJson.nonce, version: signedTransactionJson.version, size: signedTransactionJson.size, validUntilBlock: signedTransactionJson.validuntilblock, witnesses: signedTransactionJson.witnesses, networkFee: signedTransactionJson.netfee, systemFee: signedTransactionJson.sysfee }); - }); - } - calculateFee(cimOrBt) { - return __awaiter(this, void 0, void 0, function* () { - const accountArr = this.normalizeAccountArray(this.options.account); - const transaction = yield this.buildTransactionFromCimOrBt(cimOrBt, accountArr); - return { - networkFee: transaction.networkFee, - systemFee: transaction.systemFee, - total: Number(transaction.networkFee.add(transaction.systemFee).toDecimal(8)), - }; - }); - } - traverseIterator(sessionId, iteratorId, count) { - return __awaiter(this, void 0, void 0, function* () { - const rpcClient = new neon_js_1.rpc.RPCClient(this.options.rpcAddress); - const result = yield rpcClient.traverseIterator(sessionId, iteratorId, count); - return result.map((item) => ({ value: item.value, type: item.type })); - }); - } - static init(options) { - return __awaiter(this, void 0, void 0, function* () { - const networkMagic = yield this.getMagicOfRpcAddress(options.rpcAddress); - return new NeonInvoker(Object.assign(Object.assign({}, options), { validBlocks: 100, networkMagic })); - }); - } - static getMagicOfRpcAddress(rpcAddress) { - return __awaiter(this, void 0, void 0, function* () { - const resp = yield new neon_js_1.rpc.RPCClient(rpcAddress).getVersion(); - return resp.protocol.network; - }); - } - static convertParams(args) { - return (args !== null && args !== void 0 ? args : []).map((a) => { - if (a.type === undefined) - throw new Error('Invalid argument type'); - if (a.value === undefined) - throw new Error('Invalid argument value'); - switch (a.type) { - case 'Any': - return neon_js_1.sc.ContractParam.any(a.value); - case 'String': - return neon_js_1.sc.ContractParam.string(a.value); - case 'Boolean': - return neon_js_1.sc.ContractParam.boolean(a.value); - case 'PublicKey': - return neon_js_1.sc.ContractParam.publicKey(a.value); - case 'ScriptHash': - return neon_js_1.sc.ContractParam.hash160(neon_js_1.u.HexString.fromHex(a.value)); - case 'Address': - case 'Hash160': - return neon_js_1.sc.ContractParam.hash160(a.value); - case 'Hash256': - return neon_js_1.sc.ContractParam.hash256(a.value); - case 'Integer': - return neon_js_1.sc.ContractParam.integer(a.value); - case 'Array': - return neon_js_1.sc.ContractParam.array(...this.convertParams(a.value)); - case 'Map': - return neon_js_1.sc.ContractParam.map(...a.value.map((map) => ({ - key: this.convertParams([map.key])[0], - value: this.convertParams([map.value])[0], - }))); - case 'ByteArray': - return neon_js_1.sc.ContractParam.byteArray(neon_js_1.u.hex2base64(a.value)); - } - }); - } - static buildSigner(optionsAccount, signerEntry) { - var _a, _b; - let scopes = (_a = signerEntry === null || signerEntry === void 0 ? void 0 : signerEntry.scopes) !== null && _a !== void 0 ? _a : 'CalledByEntry'; - if (typeof scopes === 'number') { - scopes = neon_js_1.tx.toString(scopes); - } - const account = (_b = signerEntry === null || signerEntry === void 0 ? void 0 : signerEntry.account) !== null && _b !== void 0 ? _b : optionsAccount === null || optionsAccount === void 0 ? void 0 : optionsAccount.scriptHash; - if (!account) - throw new Error('You need to provide at least one account to sign.'); - return neon_js_1.tx.Signer.fromJson({ - scopes, - account, - allowedcontracts: signerEntry === null || signerEntry === void 0 ? void 0 : signerEntry.allowedContracts, - allowedgroups: signerEntry === null || signerEntry === void 0 ? void 0 : signerEntry.allowedGroups, - rules: signerEntry === null || signerEntry === void 0 ? void 0 : signerEntry.rules, - }); - } - static buildMultipleSigner(optionAccounts, signers = []) { - const allSigners = []; - for (let i = 0; i < Math.max(signers.length, optionAccounts.length); i++) { - allSigners.push(this.buildSigner(optionAccounts === null || optionAccounts === void 0 ? void 0 : optionAccounts[i], signers === null || signers === void 0 ? void 0 : signers[i])); - } - return allSigners; - } - normalizeAccountArray(acc) { - if (!acc) { - return []; - } - if (Array.isArray(acc)) { - return acc; - } - return [acc]; - } - buildScriptHex(cim) { - const sb = new neon_js_1.sc.ScriptBuilder(); - cim.invocations.forEach((c) => { - sb.emitContractCall({ - scriptHash: c.scriptHash, - operation: c.operation, - args: NeonInvoker.convertParams(c.args), - }); - if (c.abortOnFail) { - sb.emit(0x39); - } - }); - return sb.build(); - } - signTransactionByAccounts(transaction, accountArr) { - return __awaiter(this, void 0, void 0, function* () { - let txClone = new neon_js_1.tx.Transaction(transaction); - for (const account of accountArr) { - if (this.options.signingCallback) { - transaction.addWitness(new neon_js_1.tx.Witness({ - invocationScript: '', - verificationScript: neon_js_1.wallet.getVerificationScriptFromPublicKey(account.publicKey), - })); - const facade = yield neon_js_1.api.NetworkFacade.fromConfig({ - node: this.options.rpcAddress, - }); - txClone = yield facade.sign(transaction, { - signingCallback: this.options.signingCallback, - }); - } - else { - txClone.sign(account, this.options.networkMagic); - } - } - return txClone; - }); - } - buildTransactionFromCimOrBt(cimOrBt, accountArr) { - return __awaiter(this, void 0, void 0, function* () { - const cimHexString = this.buildScriptHex(cimOrBt); - const signers = NeonInvoker.buildMultipleSigner(accountArr, cimOrBt.signers); - if ('script' in cimOrBt) { - if (cimOrBt.script !== cimHexString) { - throw new Error('The script in the BuiltTransaction is not the same as the one generated from the ContractInvocationMulti'); - } - return new neon_js_1.tx.Transaction({ - validUntilBlock: cimOrBt.validUntilBlock, - version: cimOrBt.version, - nonce: cimOrBt.nonce, - script: cimOrBt.script, - systemFee: cimOrBt.systemFee, - networkFee: cimOrBt.networkFee, - witnesses: cimOrBt.witnesses.map((witness) => neon_js_1.tx.Witness.fromJson(witness)), - signers, - }); - } - const rpcClient = new neon_js_1.rpc.RPCClient(this.options.rpcAddress); - const currentHeight = yield rpcClient.getBlockCount(); - const transaction = new neon_js_1.tx.Transaction({ - script: neon_js_1.u.HexString.fromHex(cimHexString), - validUntilBlock: currentHeight + this.options.validBlocks, - signers, - }); - const systemFee = yield this.getSystemFee(cimOrBt); - const networkFee = yield this.getNetworkFee(cimOrBt, rpcClient, accountArr, transaction); - transaction.networkFee = networkFee; - transaction.systemFee = systemFee; - return transaction; - }); - } - getNetworkFee(cim, rpcClient, accountArr, transaction) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - if (cim.networkFeeOverride) { - return neon_js_1.u.BigInteger.fromNumber(cim.networkFeeOverride); - } - const txClone = new neon_js_1.tx.Transaction(transaction); - // Add one witness for each signer, using the first account as placeholder if there is no account for the respective signer - // This is needed to calculate the network fee, since the signer is considered to calculate the fee and we need - // the same number of witnesses as signers, otherwise the fee calculation will fail - txClone.signers.forEach((signer) => { - var _a; - const account = (_a = accountArr.find((account) => account.scriptHash === signer.account.toString())) !== null && _a !== void 0 ? _a : accountArr[0]; - if (!account) - throw new Error('You need to provide at least one account to calculate the network fee.'); - txClone.addWitness(new neon_js_1.tx.Witness({ - invocationScript: '', - verificationScript: neon_js_1.wallet.getVerificationScriptFromPublicKey(account.publicKey), - })); - }); - const networkFee = yield neon_js_1.api.smartCalculateNetworkFee(txClone, rpcClient); - return networkFee.add((_a = cim.extraNetworkFee) !== null && _a !== void 0 ? _a : 0); - }); - } - getSystemFee(cimOrBt) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - if (cimOrBt.systemFeeOverride) { - return neon_js_1.u.BigInteger.fromNumber(cimOrBt.systemFeeOverride); - } - const { gasconsumed } = yield this.testInvoke(cimOrBt); - const systemFee = neon_js_1.u.BigInteger.fromNumber(gasconsumed); - return systemFee.add((_a = cimOrBt.extraSystemFee) !== null && _a !== void 0 ? _a : 0); - }); - } -} -exports.NeonInvoker = NeonInvoker; -NeonInvoker.MAINNET = 'https://mainnet1.neo.coz.io:443'; -NeonInvoker.TESTNET = 'https://testnet1.neo.coz.io:443'; diff --git a/packages/neon-dappkit/dist/NeonInvoker.spec.d.ts b/packages/neon-dappkit/dist/NeonInvoker.spec.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/packages/neon-dappkit/dist/NeonInvoker.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/neon-dappkit/dist/NeonInvoker.spec.js b/packages/neon-dappkit/dist/NeonInvoker.spec.js deleted file mode 100644 index 204f451..0000000 --- a/packages/neon-dappkit/dist/NeonInvoker.spec.js +++ /dev/null @@ -1,582 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_1 = require("./index"); -const neon_js_1 = require("@cityofzion/neon-js"); -const assert_1 = __importDefault(require("assert")); -function getBalance(invoker, address) { - return __awaiter(this, void 0, void 0, function* () { - const payerBalanceResp = yield invoker.testInvoke({ - invocations: [ - { - operation: 'balanceOf', - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - args: [{ value: address, type: 'Hash160' }], - }, - ], - }); - return index_1.NeonParser.parseRpcResponse(payerBalanceResp.stack[0]) / Math.pow(10, 8); - }); -} -function wait(ms) { - return new Promise((resolve) => { - setTimeout(resolve, ms); - }); -} -describe('NeonInvoker', function () { - this.timeout(60000); - it('does invokeFuncion', () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account('3bd06d95e9189385851aa581d182f25de34af759cf7f883af57030303ded52b8'); - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account, - }); - const txId = yield invoker.invokeFunction({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: account.address }, - { type: 'Hash160', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: account.scriptHash, - scopes: neon_js_1.tx.WitnessScope.CalledByEntry, - rules: [], - }, - ], - }); - (0, assert_1.default)(txId.length > 0, 'has txId'); - yield wait(15000); - })); - it('does invokeFunction with signingCallback', () => __awaiter(this, void 0, void 0, function* () { - const publicAccount = new neon_js_1.wallet.Account('02eecb8c0c3ae4e3c65457581c8c8dc0ecf52f74953166ce84d3c5b67a42a1ee73'); - const privateAccount = new neon_js_1.wallet.Account('3bd06d95e9189385851aa581d182f25de34af759cf7f883af57030303ded52b8'); - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - signingCallback: (transaction, details) => __awaiter(this, void 0, void 0, function* () { - const hex = index_1.NeonParser.numToHex(details.network, 4, true) + index_1.NeonParser.reverseHex(transaction.hash()); - return neon_js_1.wallet.sign(hex, privateAccount.privateKey); - }), - account: publicAccount, - }); - const txId = yield invoker.invokeFunction({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: publicAccount.address }, - { type: 'Hash160', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: publicAccount.scriptHash, - scopes: neon_js_1.tx.WitnessScope.CalledByEntry, - rules: [], - }, - ], - }); - (0, assert_1.default)(txId.length > 0, 'has txId'); - yield wait(15000); - })); - it('can sign and invoke using different NeonInvokers/accounts', () => __awaiter(this, void 0, void 0, function* () { - const accountPayer = new neon_js_1.wallet.Account('fb1f57cc1347ae5b6251dc8bae761362d2ecaafec4c87f4dc9e97fef6dd75014'); // NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv - const accountOwner = new neon_js_1.wallet.Account('3bd06d95e9189385851aa581d182f25de34af759cf7f883af57030303ded52b8'); // NhGomBpYnKXArr55nHRQ5rzy79TwKVXZbr - // TEST WITH BOTH ACCOUNTS ON THE SAME INVOKER - const invokerBoth = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account: [accountPayer, accountOwner], - }); - const txBoth = yield invokerBoth.invokeFunction({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: accountOwner.address }, - { type: 'Hash160', value: accountPayer.address }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: accountPayer.scriptHash, - scopes: 'CalledByEntry', - }, - { - account: accountOwner.scriptHash, - scopes: 'CalledByEntry', - }, - ], - }); - (0, assert_1.default)(txBoth.length > 0, 'has txId'); - yield wait(15000); - // TEST WITH EACH ACCOUNT ON A DIFFERENT INVOKER - const invokerPayer = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account: accountPayer, - }); - const invokerOwner = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account: accountOwner, - }); - const payerBalance = yield getBalance(invokerPayer, accountPayer.address); - const ownerBalance = yield getBalance(invokerOwner, accountOwner.address); - const bt = yield invokerPayer.signTransaction({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: accountOwner.address }, - { type: 'Hash160', value: accountPayer.address }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: accountPayer.scriptHash, - scopes: 'CalledByEntry', - }, - { - account: accountOwner.scriptHash, - scopes: 'CalledByEntry', - }, - ], - }); - const txId = yield invokerOwner.invokeFunction(bt); - (0, assert_1.default)(txId.length > 0, 'has txId'); - yield wait(15000); - const payerBalance2 = yield getBalance(invokerPayer, accountPayer.address); - const ownerBalance2 = yield getBalance(invokerOwner, accountOwner.address); - (0, assert_1.default)(payerBalance2 > payerBalance + 0.8, `payer balance (${payerBalance2}) increased by almost 1 (was ${payerBalance})`); - (0, assert_1.default)(payerBalance2 < payerBalance + 1, `payer balance (${payerBalance2}) increased by almost 1 (was ${payerBalance})`); - assert_1.default.equal(ownerBalance2, ownerBalance - 1, 'owner balance decreased by 1'); - yield wait(15000); - })); - it("can throw an error if the signed transaction doesn't match the invocation", () => __awaiter(this, void 0, void 0, function* () { - const accountPayer = new neon_js_1.wallet.Account('fb1f57cc1347ae5b6251dc8bae761362d2ecaafec4c87f4dc9e97fef6dd75014'); // NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv - const accountOwner = new neon_js_1.wallet.Account('3bd06d95e9189385851aa581d182f25de34af759cf7f883af57030303ded52b8'); // NhGomBpYnKXArr55nHRQ5rzy79TwKVXZbr - const invokerPayer = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account: accountPayer, - }); - const invokerOwner = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account: accountOwner, - }); - const bt = yield invokerPayer.signTransaction({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: accountOwner.address }, - { type: 'Hash160', value: accountPayer.address }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: accountPayer.scriptHash, - scopes: 'CalledByEntry', - }, - { - account: accountOwner.scriptHash, - scopes: 'CalledByEntry', - }, - ], - }); - yield assert_1.default.rejects(invokerOwner.invokeFunction(Object.assign(Object.assign({}, bt), { invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: accountPayer.address }, - { type: 'Hash160', value: accountOwner.address }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ] })), { - name: 'Error', - message: 'The script in the BuiltTransaction is not the same as the one generated from the ContractInvocationMulti', - }); - })); - it('does calculateFee', () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account('3bd06d95e9189385851aa581d182f25de34af759cf7f883af57030303ded52b8'); - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - account, - }); - const param = { - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'transfer', - args: [ - { type: 'Hash160', value: account.address }, - { type: 'Hash160', value: 'NbnjKGMBJzJ6j5PHeYhjJDaQ5Vy5UYu4Fv' }, - { type: 'Integer', value: '100000000' }, - { type: 'Array', value: [] }, - ], - }, - ], - signers: [ - { - account: account.scriptHash, - scopes: neon_js_1.tx.WitnessScope.CalledByEntry, - rules: [], - }, - ], - }; - const { networkFee, systemFee, total } = yield invoker.calculateFee(param); - (0, assert_1.default)(Number(networkFee) > 0, 'has networkFee'); - (0, assert_1.default)(Number(systemFee) > 0, 'has systemFee'); - (0, assert_1.default)(total === Number(networkFee.add(systemFee).toDecimal(8)), 'has totalFee'); - const { networkFee: networkFeeOverridden, systemFee: systemFeeOverridden } = yield invoker.calculateFee(Object.assign({ networkFeeOverride: 20000, systemFeeOverride: 10000 }, param)); - (0, assert_1.default)(Number(networkFeeOverridden) === 20000, 'has networkFee overridden'); - (0, assert_1.default)(Number(systemFeeOverridden) === 10000, 'has systemFee overridden'); - const { networkFee: networkFeeExtra, systemFee: systemFeeExtra } = yield invoker.calculateFee(Object.assign({ extraNetworkFee: 20000, extraSystemFee: 10000 }, param)); - (0, assert_1.default)(Number(networkFeeExtra) === Number(networkFee) + 20000, 'has networkFee overridden'); - (0, assert_1.default)(Number(systemFeeExtra) === Number(systemFee) + 10000, 'has systemFee overridden'); - })); - it('does testInvoke', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0xd2a4cff31913016155e38e474a2c06d08be276cf', - operation: 'symbol', - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeByteString(resp.stack[0])) { - assert_1.default.equal(resp.stack[0].value, 'R0FT', 'correct symbol'); - } - else { - assert_1.default.fail('stack return is not ByteString'); - } - })); - it('handles integer return', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'negative_number', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_same_int', - args: [{ type: 'Integer', value: '1234' }], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeInteger(resp.stack[0])) { - assert_1.default.equal(resp.stack[0].value, '-100'); - } - else { - assert_1.default.fail('stack return is not Integer'); - } - if (index_1.TypeChecker.isStackTypeInteger(resp.stack[1])) { - assert_1.default.equal(resp.stack[1].value, '1234'); - } - else { - assert_1.default.fail('stack return is not Integer'); - } - })); - it('handles boolean return', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'bool_true', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'bool_false', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_same_bool', - args: [{ type: 'Boolean', value: true }], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_same_bool', - args: [{ type: 'Boolean', value: false }], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[0])) { - assert_1.default.equal(resp.stack[0].value, true); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[1])) { - assert_1.default.equal(resp.stack[1].value, false); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[2])) { - assert_1.default.equal(resp.stack[2].value, true); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[3])) { - assert_1.default.equal(resp.stack[3].value, false); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - })); - it('handles boolean return (again)', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'bool_true', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'bool_false', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_same_bool', - args: [{ type: 'Boolean', value: true }], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_same_bool', - args: [{ type: 'Boolean', value: false }], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[0])) { - assert_1.default.equal(resp.stack[0].value, true); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[1])) { - assert_1.default.equal(resp.stack[1].value, false); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[2])) { - assert_1.default.equal(resp.stack[2].value, true); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - if (index_1.TypeChecker.isStackTypeBoolean(resp.stack[3])) { - assert_1.default.equal(resp.stack[3].value, false); - } - else { - assert_1.default.fail('stack return is not Boolean'); - } - })); - it('handles array return', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'positive_numbers', - args: [], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeArray(resp.stack[0])) { - assert_1.default.deepEqual(resp.stack[0].value, [ - { - type: 'Integer', - value: '1', - }, - { - type: 'Integer', - value: '20', - }, - { - type: 'Integer', - value: '100', - }, - { - type: 'Integer', - value: '123', - }, - ]); - } - else { - assert_1.default.fail('stack return is not Array'); - } - })); - it('handles bytestring return', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_str', - args: [], - }, - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'return_bytes', - args: [], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeByteString(resp.stack[0])) { - assert_1.default.deepEqual(resp.stack[0].value, 'dGVzdGluZyBzdHJpbmcgcmV0dXJu'); - } - else { - assert_1.default.fail('stack return is not ByteString'); - } - if (index_1.TypeChecker.isStackTypeByteString(resp.stack[1])) { - assert_1.default.deepEqual(resp.stack[1].value, 'dGVzdGluZyBzdHJpbmcgcmV0dXJu'); - } - else { - assert_1.default.fail('stack return is not ByteString'); - } - })); - it('handles array return (again)', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x7346e59b3b3516467390a11c390679ab46b37af3', - operation: 'positive_numbers', - args: [], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeArray(resp.stack[0])) { - assert_1.default.deepEqual(resp.stack[0].value, [ - { - type: 'Integer', - value: '1', - }, - { - type: 'Integer', - value: '20', - }, - { - type: 'Integer', - value: '100', - }, - { - type: 'Integer', - value: '123', - }, - ]); - } - else { - assert_1.default.fail('stack return is not Array'); - } - })); - it('handles map return', () => __awaiter(this, void 0, void 0, function* () { - const invoker = yield index_1.NeonInvoker.init({ - rpcAddress: index_1.NeonInvoker.TESTNET, - }); - const resp = yield invoker.testInvoke({ - invocations: [ - { - scriptHash: '0x8b43ab0c83b7d12cf35a0e780072bc314a688796', - operation: 'main', - args: [], - }, - ], - }); - assert_1.default.equal(resp.state, 'HALT', 'success'); - if (index_1.TypeChecker.isStackTypeMap(resp.stack[0])) { - assert_1.default.deepEqual(resp.stack[0].value, [ - { - key: { - type: 'ByteString', - value: 'YQ==', - }, - value: { - type: 'Integer', - value: '4', - }, - }, - { - key: { - type: 'Integer', - value: '13', - }, - value: { - type: 'Integer', - value: '3', - }, - }, - ]); - } - else { - assert_1.default.fail('stack return is not Map'); - } - })); -}); diff --git a/packages/neon-dappkit/dist/NeonParser.d.ts b/packages/neon-dappkit/dist/NeonParser.d.ts deleted file mode 100644 index 80949b1..0000000 --- a/packages/neon-dappkit/dist/NeonParser.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Neo3Parser } from '@cityofzion/neon-dappkit-types'; -declare const NeonParser: Neo3Parser; -export { NeonParser }; diff --git a/packages/neon-dappkit/dist/NeonParser.js b/packages/neon-dappkit/dist/NeonParser.js deleted file mode 100644 index d47f2b2..0000000 --- a/packages/neon-dappkit/dist/NeonParser.js +++ /dev/null @@ -1,214 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NeonParser = void 0; -const neon_dappkit_types_1 = require("@cityofzion/neon-dappkit-types"); -const neon_js_1 = require("@cityofzion/neon-js"); -const NeonParser = { - abToHex(arr) { - return neon_js_1.u.ab2hexstring(arr); - }, - abToStr(buf) { - return neon_js_1.u.ab2str(buf); - }, - accountInputToAddress(input) { - return new neon_js_1.wallet.Account(input).address; - }, - accountInputToScripthash(input) { - return new neon_js_1.wallet.Account(input).scriptHash; - }, - base64ToHex: (input) => { - return neon_js_1.u.base642hex(input); - }, - base64ToUtf8(input) { - return neon_js_1.u.base642utf8(input); - }, - hexToBase64(input) { - return neon_js_1.u.hex2base64(input); - }, - hexToAb(str) { - return neon_js_1.u.hexstring2ab(str); - }, - hexToStr(hexstring) { - return neon_js_1.u.hexstring2str(hexstring); - }, - intToHex(num) { - return neon_js_1.u.int2hex(num); - }, - numToHex(num, size, littleEndian) { - return neon_js_1.u.num2hexstring(num, size, littleEndian); - }, - numToVarInt(num) { - return neon_js_1.u.num2VarInt(num); - }, - reverseHex(input) { - return neon_js_1.u.reverseHex(input); - }, - strToAb(str) { - return neon_js_1.u.str2ab(str); - }, - strToBase64: (input) => { - return neon_js_1.u.hex2base64(neon_js_1.u.str2hexstring(input)); - }, - strToHex(str) { - return neon_js_1.u.str2hexstring(str); - }, - utf8ToBase64(input) { - return neon_js_1.u.utf82base64(input); - }, - asciiToBase64(input) { - return neon_js_1.u.HexString.fromAscii(input).toBase64(); - }, - parseRpcResponse(field, parseConfig) { - parseConfig = verifyParseConfigUnion(field, parseConfig); - switch (field.type) { - case 'ByteString': - return parseByteString(field, parseConfig); - case 'Integer': - return parseInt(field.value); - case 'Struct': - case 'Array': - return field.value.map((f) => { - return NeonParser.parseRpcResponse(f, parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.generic); - }); - case 'Map': { - const object = {}; - const mapResponseArg = field; - mapResponseArg.value.forEach((f) => { - const key = NeonParser.parseRpcResponse(f.key, parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.genericKey); - object[key] = NeonParser.parseRpcResponse(f.value, parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.genericItem); - }); - return object; - } - // Another method should take care of this parse - case 'InteropInterface': - return; - default: - try { - return JSON.parse(field.value); - } - catch (e) { - return field.value; - } - } - }, - formatRpcArgument(arg, parseConfig) { - const argType = parseConfig && parseConfig.type !== 'Any' ? parseConfig.type : typeof arg; - switch (argType) { - case 'ByteArray': { - return { type: 'ByteArray', value: arg }; - } - case 'Hash160': { - return neon_js_1.sc.ContractParam.hash160(arg).toJson(); - } - case 'Hash256': { - return neon_js_1.sc.ContractParam.hash256(arg).toJson(); - } - case 'PublicKey': { - return neon_js_1.sc.ContractParam.publicKey(arg).toJson(); - } - case 'String': - case 'string': { - return neon_js_1.sc.ContractParam.string(arg).toJson(); - } - case 'Integer': - case 'number': { - return neon_js_1.sc.ContractParam.integer(arg).toJson(); - } - case 'Boolean': - case 'boolean': { - return neon_js_1.sc.ContractParam.boolean(typeof arg === 'string' ? arg === 'true' : arg).toJson(); - } - case 'Array': - case 'Map': - case 'object': { - if (Array.isArray(arg)) { - parseConfig = parseConfig; - const typeHints = parseConfig && parseConfig.generic ? parseConfig.generic : undefined; - return { type: 'Array', value: arg.map((arrayArg) => NeonParser.formatRpcArgument(arrayArg, typeHints)) }; - } - else if (arg !== null) { - const mapPairs = Object.keys(arg).map((key) => { - parseConfig = parseConfig; - const configKey = (parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.genericKey) || undefined; - const configItem = (parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.genericItem) || undefined; - return { - key: NeonParser.formatRpcArgument(key, configKey), - value: NeonParser.formatRpcArgument(arg[key], configItem), - }; - }); - return { type: 'Map', value: mapPairs }; - } - // If the variable 'arg' is null, the default case of the switch case should be returned. - } - /* eslint "no-fallthrough": "off" */ - default: { - return neon_js_1.sc.ContractParam.any().toJson(); - } - } - }, -}; -exports.NeonParser = NeonParser; -function verifyParseConfigUnion(field, parseConfig) { - if ((parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.type) === 'Any' && (parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.union)) { - const configs = parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.union.filter((config) => { - var _a; - const abiType = neon_dappkit_types_1.ABI_TYPES[config.type.toUpperCase()]; - return ((_a = abiType.internal) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === field.type.toUpperCase(); - }); - if (configs.length > 0) { - if (field.type === 'Array' && configs[0].type === 'Array') { - return { type: 'Array', generic: configs[0].generic }; - } - else if (field.type === 'Map' && configs[0].type === 'Map') { - return { type: 'Map', genericKey: configs[0].genericKey, genericItem: configs[0].genericItem }; - } - else if (field.type === 'ByteString') { - if (configs.length === 1) { - return configs[0]; - } - else { - return { type: 'String' }; - } - } - else { - return configs[0]; - } - } - return undefined; - } - return parseConfig; -} -function parseByteString({ value }, parseConfig) { - const valueToParse = value; - const rawValue = NeonParser.base64ToHex(valueToParse); - if ((parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.type) === neon_dappkit_types_1.ABI_TYPES.BYTEARRAY.name || (parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.type) === neon_dappkit_types_1.ABI_TYPES.PUBLICKEY.name) { - return rawValue; - } - if ((parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.type) === neon_dappkit_types_1.ABI_TYPES.HASH160.name) { - if (rawValue.length !== 40) - throw new TypeError(`${rawValue} is not a ${neon_dappkit_types_1.ABI_TYPES.HASH160.name}`); - return (parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.hint) === neon_dappkit_types_1.HINT_TYPES.SCRIPTHASHLITTLEENDING.name - ? rawValue - : `0x${NeonParser.reverseHex(rawValue)}`; - } - if ((parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.type) === neon_dappkit_types_1.ABI_TYPES.HASH256.name) { - if (rawValue.length !== 64) - throw new TypeError(`${rawValue} is not a ${neon_dappkit_types_1.ABI_TYPES.HASH256.name}`); - return `0x${NeonParser.reverseHex(rawValue)}`; - } - let stringValue; - try { - stringValue = NeonParser.base64ToUtf8(valueToParse); - } - catch (e) { - return valueToParse; - } - if ((parseConfig === null || parseConfig === void 0 ? void 0 : parseConfig.hint) === neon_dappkit_types_1.HINT_TYPES.ADDRESS.name && - (stringValue.length !== 34 || - (!stringValue.startsWith('N') && !stringValue.startsWith('A')) || - !stringValue.match(/^[A-HJ-NP-Za-km-z1-9]*$/)) // check base58 chars - ) { - throw new TypeError(`${valueToParse} is not an ${neon_dappkit_types_1.HINT_TYPES.ADDRESS.name}`); - } - return stringValue; -} diff --git a/packages/neon-dappkit/dist/NeonParser.spec.d.ts b/packages/neon-dappkit/dist/NeonParser.spec.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/packages/neon-dappkit/dist/NeonParser.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/neon-dappkit/dist/NeonParser.spec.js b/packages/neon-dappkit/dist/NeonParser.spec.js deleted file mode 100644 index e67a19a..0000000 --- a/packages/neon-dappkit/dist/NeonParser.spec.js +++ /dev/null @@ -1,945 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const _1 = require("."); -const mocha_1 = require("mocha"); -const assert = __importStar(require("assert")); -(0, mocha_1.describe)('NeonParser', function () { - this.timeout(60000); - (0, mocha_1.it)('converts an ArrayBuffer into a hex string', () => __awaiter(this, void 0, void 0, function* () { - const encoder = new TextEncoder(); - const arrayBuffer = encoder.encode('unit test'); - const hexString = '756e69742074657374'; - assert.equal(_1.NeonParser.abToHex(arrayBuffer), hexString); - })); - (0, mocha_1.it)('converts an ArrayBuffer into a string', () => __awaiter(this, void 0, void 0, function* () { - const encoder = new TextEncoder(); - const str = 'unit test'; - const arrayBuffer = encoder.encode(str); - assert.equal(_1.NeonParser.abToStr(arrayBuffer), str); - })); - (0, mocha_1.it)('converts an account input into its address', () => __awaiter(this, void 0, void 0, function* () { - const address = 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs'; - const privateKey = '087780053c374394a48d685aacf021804fa9fab19537d16194ee215e825942a0'; - const publicKey = '03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c'; - const scriptHash = 'a5de523ae9d99be784a536e9412b7a3cbe049e1a'; - assert.equal(_1.NeonParser.accountInputToAddress(privateKey), address); - assert.equal(_1.NeonParser.accountInputToAddress(publicKey), address); - assert.equal(_1.NeonParser.accountInputToAddress(scriptHash), address); - })); - (0, mocha_1.it)('converts an account input into its scripthash', () => __awaiter(this, void 0, void 0, function* () { - const scriptHash = 'a5de523ae9d99be784a536e9412b7a3cbe049e1a'; - const privateKey = '087780053c374394a48d685aacf021804fa9fab19537d16194ee215e825942a0'; - const publicKey = '03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c'; - const address = 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs'; - assert.equal(_1.NeonParser.accountInputToScripthash(privateKey), scriptHash); - assert.equal(_1.NeonParser.accountInputToScripthash(publicKey), scriptHash); - assert.equal(_1.NeonParser.accountInputToScripthash(address), scriptHash); - })); - (0, mocha_1.it)('converts a base64 string to a hex string', () => __awaiter(this, void 0, void 0, function* () { - let base64String = 'dW5pdCB0ZXN0'; - let hexString = '756e69742074657374'; - assert.equal(_1.NeonParser.base64ToHex(base64String), hexString); - base64String = 'TmVvblBhcnNlcg=='; - hexString = '4e656f6e506172736572'; - assert.equal(_1.NeonParser.base64ToHex(base64String), hexString); - })); - (0, mocha_1.it)('converts a base64 string to a hex and revert it', () => __awaiter(this, void 0, void 0, function* () { - assert.equal(_1.NeonParser.reverseHex(_1.NeonParser.base64ToHex('ateeXCdGd+AdYKWa5w8SikaAqlk=')), '59aa80468a120fe79aa5601de07746275c9ed76a'); - })); - (0, mocha_1.it)('converts a base64 string into an utf-8 string', () => __awaiter(this, void 0, void 0, function* () { - const base64String = 'VVRGLTggU3RyaW5nIMOhw6PDoMOn'; - const utf8String = 'UTF-8 String áãàç'; - assert.equal(_1.NeonParser.base64ToUtf8(base64String), utf8String); - })); - (0, mocha_1.it)('converts a hex string into a base64 string', () => __awaiter(this, void 0, void 0, function* () { - let base64String = 'dW5pdCB0ZXN0'; - let hexString = '756e69742074657374'; - assert.equal(_1.NeonParser.hexToBase64(hexString), base64String); - base64String = 'TmVvblBhcnNlcg=='; - hexString = '4e656f6e506172736572'; - assert.equal(_1.NeonParser.hexToBase64(hexString), base64String); - })); - (0, mocha_1.it)('converts a hex string into an array buffer', () => __awaiter(this, void 0, void 0, function* () { - const encoder = new TextEncoder(); - const arrayBuffer = encoder.encode('unit test'); - const hexString = '756e69742074657374'; - assert.deepEqual(_1.NeonParser.hexToAb(hexString), arrayBuffer); - })); - (0, mocha_1.it)('converts a hex string into a string', () => __awaiter(this, void 0, void 0, function* () { - let str = 'unit test'; - let hexString = '756e69742074657374'; - assert.equal(_1.NeonParser.hexToStr(hexString), str); - str = 'NeonParser'; - hexString = '4e656f6e506172736572'; - assert.equal(_1.NeonParser.hexToStr(hexString), str); - })); - (0, mocha_1.it)('converts a number into a hex string intToHex', () => __awaiter(this, void 0, void 0, function* () { - let num = 16; - let hexString = '10'; - assert.equal(_1.NeonParser.intToHex(num), hexString); - num = 512; - hexString = '0200'; - assert.equal(_1.NeonParser.intToHex(num), hexString); - })); - (0, mocha_1.it)('converts a number into a hex string numToHexstring', () => __awaiter(this, void 0, void 0, function* () { - let num = 16; - let hexString = '10'; - assert.equal(_1.NeonParser.numToHex(num), hexString); - num = 512; - hexString = '00'; - assert.equal(_1.NeonParser.numToHex(num), hexString); - num = 512; - hexString = '0200'; - assert.equal(_1.NeonParser.numToHex(num, 2), hexString); - num = 512; - hexString = '0002'; - assert.equal(_1.NeonParser.numToHex(num, 2, true), hexString); - })); - (0, mocha_1.it)('converts a number into a variable length Int', () => __awaiter(this, void 0, void 0, function* () { - let num = 16; - let str = '10'; - assert.equal(_1.NeonParser.numToVarInt(num), str); - num = 512; - str = 'fd0002'; - assert.equal(_1.NeonParser.numToVarInt(num), str); - num = 65535; - str = 'fdffff'; - assert.equal(_1.NeonParser.numToVarInt(num), str); - num = 4294967295; - str = 'feffffffff'; - assert.equal(_1.NeonParser.numToVarInt(num), str); - num = 4294967296; - str = 'ff0000000001000000'; - assert.equal(_1.NeonParser.numToVarInt(num), str); - })); - (0, mocha_1.it)('reverts a hex string', () => __awaiter(this, void 0, void 0, function* () { - const hexString = 'abcdef'; - const reverseHexString = 'efcdab'; - assert.equal(_1.NeonParser.reverseHex(hexString), reverseHexString); - })); - (0, mocha_1.it)('converts a string into an array buffer', () => __awaiter(this, void 0, void 0, function* () { - const encoder = new TextEncoder(); - const str = 'unit test'; - const arrayBuffer = encoder.encode(str); - assert.deepEqual(_1.NeonParser.strToAb(str), arrayBuffer); - })); - (0, mocha_1.it)('converts a string into a base64 string ', () => __awaiter(this, void 0, void 0, function* () { - let str = 'unit test'; - let base64String = 'dW5pdCB0ZXN0'; - assert.equal(_1.NeonParser.strToBase64(str), base64String); - str = 'NeonParser'; - base64String = 'TmVvblBhcnNlcg=='; - assert.equal(_1.NeonParser.strToBase64(str), base64String); - })); - (0, mocha_1.it)('converts a string into a hex string', () => __awaiter(this, void 0, void 0, function* () { - let str = 'unit test'; - let hexString = '756e69742074657374'; - assert.equal(_1.NeonParser.strToHex(str), hexString); - str = 'NeonParser'; - hexString = '4e656f6e506172736572'; - assert.equal(_1.NeonParser.strToHex(str), hexString); - })); - // Currently neon-core's utf82base64 method is bugged, but will be fixed on the next patch release - mocha_1.it.skip('converts a utf-8 string into a base64 string', () => __awaiter(this, void 0, void 0, function* () { - let utf8String = 'unit test'; - let base64String = 'dW5pdCB0ZXN0'; - assert.equal(_1.NeonParser.utf8ToBase64(utf8String), base64String); - utf8String = 'NeonParser'; - base64String = 'TmVvblBhcnNlcg=='; - assert.equal(_1.NeonParser.utf8ToBase64(utf8String), base64String); - utf8String = 'ãõáàç'; - base64String = 'w6PDtcOhw6DDpw=='; - assert.equal(_1.NeonParser.utf8ToBase64(utf8String), base64String); - })); - (0, mocha_1.it)('converts a ascii string into a base64 string', () => __awaiter(this, void 0, void 0, function* () { - let asciiString = 'unit test'; - let base64String = 'dW5pdCB0ZXN0'; - assert.equal(_1.NeonParser.asciiToBase64(asciiString), base64String); - asciiString = 'NeonParser'; - base64String = 'TmVvblBhcnNlcg=='; - assert.equal(_1.NeonParser.asciiToBase64(asciiString), base64String); - })); - (0, mocha_1.describe)('parseRpcResponse', function () { - (0, mocha_1.it)('parses Address', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.asciiToBase64('NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs'), - }; - const address = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'String', hint: 'Address' }); - assert.deepEqual(address, 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs'); - })); - (0, mocha_1.it)('parses invalid Address', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - // Address will end up too short - value: _1.NeonParser.hexToBase64('Nnnnnnnnnnnnnnnn'), - }; - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'String', hint: 'Address' })); - // Address will be too big - rpcResponse.value = _1.NeonParser.strToBase64('NnnnnnnnnnnnnnnnNnnnnnnnnnnnnnnnNnnnnnnnnnnnnnnn'); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'String', hint: 'Address' })); - // Address shouldn't start with a letter that isn't 'A' or 'N' - rpcResponse.value = _1.NeonParser.strToBase64('BNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs'); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'String', hint: 'Address' })); - // Address shouldn't have invalid base58 characters - rpcResponse.value = _1.NeonParser.strToBase64('NNLI44dJNXtDNSBkofB48aTVYtb1zZrNEL'); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'String', hint: 'Address' })); - })); - (0, mocha_1.it)('parses ScriptHash and ScriptHashLittleEndian', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.hexToBase64('61479ab68fd5c2c04b254f382d84ddf2f5c67ced'), - }; - const scriptHash = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash160', hint: 'ScriptHash' }); - assert.deepEqual(scriptHash, '0xed7cc6f5f2dd842d384f254bc0c2d58fb69a4761'); - const scriptHashLilEndian = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Hash160', - hint: 'ScriptHashLittleEndian', - }); - assert.deepEqual(scriptHashLilEndian, '61479ab68fd5c2c04b254f382d84ddf2f5c67ced'); - })); - (0, mocha_1.it)('parses invalid ScriptHash and ScriptHashLittleEndian', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - // ScriptHash will end up too short - value: _1.NeonParser.hexToBase64('61479ab68fd5c2c04b25'), - }; - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash160', hint: 'ScriptHash' })); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash160', hint: 'ScriptHashLittleEndian' })); - // ScriptHash will be too big - rpcResponse.value = _1.NeonParser.hexToBase64('61479ab68fd5c2c04b254f382d84ddf2f5c67ced111111111111'); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash160', hint: 'ScriptHash' })); - assert.throws(() => _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash160', hint: 'ScriptHashLittleEndian' })); - })); - (0, mocha_1.it)('parses BlockHash or TransactionId', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.hexToBase64(_1.NeonParser.reverseHex('0x6c513de791b17ddadec205a07301229ac890d71c16c1d5a0320c655fb69214fc'.substring(2))), - }; - const blockHash = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash256', hint: 'BlockHash' }); - const transactionId = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash256', hint: 'TransactionId' }); - assert.deepEqual(transactionId, '0x6c513de791b17ddadec205a07301229ac890d71c16c1d5a0320c655fb69214fc'); - assert.deepEqual(blockHash, transactionId); - // There isn't a different on how they are returned right now - const hash256 = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Hash256' }); - assert.deepEqual(hash256, blockHash); - })); - (0, mocha_1.it)('parses ByteString without parseConfig', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.asciiToBase64('Testing'), - }; - const stringValue = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(stringValue, 'Testing'); - const bytesValue = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'ByteArray' }); - assert.deepEqual(bytesValue, '54657374696e67'); - })); - (0, mocha_1.it)('parses PublicKey', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.hexToBase64('03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c'), - }; - const scriptHash = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'PublicKey' }); - assert.deepEqual(scriptHash, '03cdb067d930fd5adaa6c68545016044aaddec64ba39e548250eaea551172e535c'); - })); - (0, mocha_1.it)('parses Integer', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Integer', - value: '18', - }; - const integer = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(integer, 18); - })); - (0, mocha_1.it)('parses single type Array', () => __awaiter(this, void 0, void 0, function* () { - let rpcResponse = { - type: 'Array', - value: [ - { - type: 'Integer', - value: '10', - }, - { - type: 'Integer', - value: '20', - }, - { - type: 'Integer', - value: '30', - }, - ], - }; - let array = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Array', generic: { type: 'Integer' } }); - assert.deepEqual(array, [10, 20, 30]); - rpcResponse = { - type: 'Array', - value: [ - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('array'), - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('return'), - }, - ], - }; - array = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Array', generic: { type: 'String' } }); - assert.deepEqual(array, ['test', 'array', 'return']); - // Will also work if you don't send a parseConfig and expects the ByteString results to be a String - assert.deepEqual(array, _1.NeonParser.parseRpcResponse(rpcResponse)); - rpcResponse = { - type: 'Array', - value: [ - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('array'), - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('return'), - }, - ], - }; - array = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Array', generic: { type: 'ByteArray' } }); - assert.deepEqual(array, ['74657374', '6172726179', '72657475726e']); - })); - (0, mocha_1.it)('parses Union', () => __awaiter(this, void 0, void 0, function* () { - let rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }; - let union = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Any', - union: [{ type: 'String' }, { type: 'Integer' }], - }); - assert.deepEqual(union, 'test'); - rpcResponse = { - type: 'Integer', - value: '12', - }; - union = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Any', - union: [{ type: 'String' }, { type: 'Integer' }], - }); - assert.deepEqual(union, 12); - rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.hexToBase64('61479ab68fd5c2c04b254f382d84ddf2f5c67ced'), - }; - union = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Any', - union: [{ type: 'Hash160', hint: 'ScriptHash' }, { type: 'Integer' }], - }); - assert.deepEqual(union, '0xed7cc6f5f2dd842d384f254bc0c2d58fb69a4761'); - })); - (0, mocha_1.it)('parses same internal types with Union', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }; - // It's not possible to definitly know the correct return of the same internal type, currently, it's only a ByteString problem, - // so whenever there are multiple ByteStrings on a union it will be considerer as a String - const str = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Any', - union: [{ type: 'Hash160', hint: 'ScriptHash' }, { type: 'Hash256', hint: 'BlockHash' }, { type: 'Integer' }], - }); - assert.deepEqual(str, 'test'); - })); - (0, mocha_1.it)('parses multiple types Array', () => __awaiter(this, void 0, void 0, function* () { - let rpcResponse = { - type: 'Array', - value: [ - { - type: 'Integer', - value: '10', - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - { - type: 'ByteString', - value: _1.NeonParser.strToBase64('parser'), - }, - ], - }; - let array = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Array', - generic: { - type: 'Any', - union: [ - { - type: 'Integer', - }, - { - type: 'String', - }, - ], - }, - }); - assert.deepEqual(array, [10, 'test', 'parser']); - rpcResponse = { - type: 'Array', - value: [ - { - type: 'Integer', - value: '10', - }, - { - type: 'ByteString', - value: 'Tk5MaTQ0ZEpOWHRETlNCa29mQjQ4YVRWWXRiMXpack5Fcw', - }, - { - type: 'ByteString', - value: 'TlozcHFuYzFoTU44RUhXNTVabkNudThCMndvb1hKSEN5cg==', - }, - ], - }; - array = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Array', - generic: { - type: 'Any', - union: [ - { - type: 'Integer', - }, - { - type: 'String', - hint: 'Address', - }, - ], - }, - }); - assert.deepEqual(array, [10, 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs', 'NZ3pqnc1hMN8EHW55ZnCnu8B2wooXJHCyr']); - })); - (0, mocha_1.it)('parses single type Map', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Map', - value: [ - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('unit'), - }, - value: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - }, - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('neo'), - }, - value: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('parser'), - }, - }, - ], - }; - const map = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Map', - genericKey: { type: 'String' }, - genericItem: { type: 'String' }, - }); - assert.deepEqual(map, { unit: 'test', neo: 'parser' }); - // Will also work if you don't send a parseConfig and expects the ByteString results to be a String - assert.deepEqual(map, _1.NeonParser.parseRpcResponse(rpcResponse)); - })); - (0, mocha_1.it)('parses multiple types Map', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Map', - value: [ - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('unit'), - }, - value: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - }, - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('neo'), - }, - value: { - type: 'Integer', - value: '123', - }, - }, - { - key: { - type: 'Integer', - value: '789', - }, - value: { - type: 'Integer', - value: '123', - }, - }, - ], - }; - const map = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Map', - genericKey: { type: 'Any', union: [{ type: 'String' }, { type: 'Integer' }] }, - genericItem: { type: 'Any', union: [{ type: 'String' }, { type: 'Integer' }] }, - }); - assert.deepEqual(map, { unit: 'test', neo: 123, 789: 123 }); - })); - (0, mocha_1.it)('parses Boolean', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Boolean', - value: true, - }; - let bool = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Boolean' }); - assert.deepEqual(bool, true); - bool = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(bool, true); - rpcResponse.value = false; - bool = _1.NeonParser.parseRpcResponse(rpcResponse, { type: 'Boolean' }); - assert.deepEqual(bool, false); - bool = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(bool, false); - })); - (0, mocha_1.it)('parses Iterator', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'InteropInterface', - interface: 'IIterator', - id: 'e93e82f7-629b-4b4b-9fae-054d18bd32e2', - }; - // currently can't parse an iterator - const iterator = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(iterator, undefined); - })); - (0, mocha_1.it)('parses Array inside Map', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Map', - value: [ - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('test'), - }, - value: { - type: 'Array', - value: [ - { type: 'ByteString', value: _1.NeonParser.strToBase64('abc') }, - { type: 'ByteString', value: _1.NeonParser.strToBase64('def') }, - { type: 'ByteString', value: _1.NeonParser.strToBase64('ghi') }, - ], - }, - }, - { - key: { - type: 'ByteString', - value: _1.NeonParser.strToBase64('neo'), - }, - value: { - type: 'Integer', - value: '123', - }, - }, - ], - }; - const map = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(map, { test: ['abc', 'def', 'ghi'], neo: 123 }); - const mapWithConfig = _1.NeonParser.parseRpcResponse(rpcResponse, { - type: 'Map', - genericKey: { type: 'String' }, - genericItem: { type: 'Any', union: [{ type: 'Integer' }, { type: 'Array', generic: { type: 'ByteArray' } }] }, - }); - assert.deepEqual(mapWithConfig, { test: ['616263', '646566', '676869'], neo: 123 }); - })); - (0, mocha_1.it)('parses Map inside Array', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponseArray = { - type: 'Array', - value: [ - { type: 'ByteString', value: _1.NeonParser.strToBase64('abc') }, - { - type: 'Map', - value: [ - { - key: { type: 'ByteString', value: _1.NeonParser.strToBase64('neon') }, - value: { type: 'ByteString', value: _1.NeonParser.strToBase64('parser') }, - }, - { - key: { type: 'ByteString', value: _1.NeonParser.strToBase64('unit') }, - value: { type: 'ByteString', value: _1.NeonParser.strToBase64('test') }, - }, - ], - }, - { type: 'ByteString', value: _1.NeonParser.strToBase64('def') }, - ], - }; - let array = _1.NeonParser.parseRpcResponse(rpcResponseArray); - assert.deepEqual(array, ['abc', { neon: 'parser', unit: 'test' }, 'def']); - array = _1.NeonParser.parseRpcResponse(rpcResponseArray, { - type: 'Array', - generic: { - type: 'Any', - union: [ - { type: 'String' }, - { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'ByteArray' } }, - ], - }, - }); - assert.deepEqual(array, ['abc', { neon: '706172736572', unit: '74657374' }, 'def']); - })); - (0, mocha_1.it)('parses raw when UTF8 parsing fails', () => __awaiter(this, void 0, void 0, function* () { - const rpcResponse = { - type: 'Map', - value: [ - { - key: { - type: 'ByteString', - value: 'bmFtZQ==', - }, - value: { - type: 'ByteString', - value: 'TElaQVJE', - }, - }, - { - key: { - type: 'ByteString', - value: 'c2VlZA==', - }, - value: { - type: 'ByteString', - value: 'dphNnS0kGxelyR4Q8ntrbA==', - }, - }, - ], - }; - const parsed = _1.NeonParser.parseRpcResponse(rpcResponse); - assert.deepEqual(parsed, { name: 'LIZARD', seed: 'dphNnS0kGxelyR4Q8ntrbA==' }); - })); - }); - (0, mocha_1.describe)('formatRpcArgument', () => { - (0, mocha_1.it)('format numbers', () => __awaiter(this, void 0, void 0, function* () { - let numberArg = _1.NeonParser.formatRpcArgument(0); - let expectedResult = { type: 'Integer', value: '0' }; - assert.deepStrictEqual(numberArg, expectedResult); - numberArg = _1.NeonParser.formatRpcArgument(1); - expectedResult = { type: 'Integer', value: '1' }; - assert.deepStrictEqual(numberArg, expectedResult); - numberArg = _1.NeonParser.formatRpcArgument(123); - expectedResult = { type: 'Integer', value: '123' }; - assert.deepStrictEqual(numberArg, expectedResult); - numberArg = _1.NeonParser.formatRpcArgument(-10); - expectedResult = { type: 'Integer', value: '-10' }; - assert.deepStrictEqual(numberArg, expectedResult); - })); - (0, mocha_1.it)('format boolean', () => __awaiter(this, void 0, void 0, function* () { - let booleanArg = _1.NeonParser.formatRpcArgument(true); - let expectedResult = { type: 'Boolean', value: true }; - assert.deepStrictEqual(booleanArg, expectedResult); - booleanArg = _1.NeonParser.formatRpcArgument(false); - expectedResult = { type: 'Boolean', value: false }; - assert.deepStrictEqual(booleanArg, expectedResult); - })); - (0, mocha_1.it)('format string', () => __awaiter(this, void 0, void 0, function* () { - let stringArg = _1.NeonParser.formatRpcArgument('unit test'); - let expectedResult = { type: 'String', value: 'unit test' }; - assert.deepStrictEqual(stringArg, expectedResult); - stringArg = _1.NeonParser.formatRpcArgument('1234'); - expectedResult = { type: 'String', value: '1234' }; - assert.deepStrictEqual(stringArg, expectedResult); - })); - (0, mocha_1.it)('format ByteArray', () => __awaiter(this, void 0, void 0, function* () { - let byteArrayValue = _1.NeonParser.strToHex('unit test'); - let byteArrayArg = _1.NeonParser.formatRpcArgument(byteArrayValue, { type: 'ByteArray' }); - let expectedResult = { type: 'ByteArray', value: byteArrayValue }; - assert.deepStrictEqual(byteArrayArg, expectedResult); - byteArrayValue = _1.NeonParser.strToHex('another value 1234'); - byteArrayArg = _1.NeonParser.formatRpcArgument(byteArrayValue, { type: 'ByteArray' }); - expectedResult = { type: 'ByteArray', value: byteArrayValue }; - assert.deepStrictEqual(byteArrayArg, expectedResult); - // Not passing a config will endup returning a String instead of a ByteArray - byteArrayArg = _1.NeonParser.formatRpcArgument(byteArrayValue); - expectedResult = { type: 'ByteArray', value: byteArrayValue }; - assert.notDeepStrictEqual(byteArrayArg, expectedResult); - })); - (0, mocha_1.it)('format Hash160', () => __awaiter(this, void 0, void 0, function* () { - let hash160Arg = _1.NeonParser.formatRpcArgument('0xd2a4cff31913016155e38e474a2c06d08be276cf', { type: 'Hash160' }); - let expectedResult = { type: 'Hash160', value: 'd2a4cff31913016155e38e474a2c06d08be276cf' }; - assert.deepStrictEqual(hash160Arg, expectedResult); - hash160Arg = _1.NeonParser.formatRpcArgument('d2a4cff31913016155e38e474a2c06d08be276cf', { type: 'Hash160' }); - expectedResult = { type: 'Hash160', value: 'd2a4cff31913016155e38e474a2c06d08be276cf' }; - assert.deepStrictEqual(hash160Arg, expectedResult); - // Not passing a config will endup returning a String instead of a Hash160 - hash160Arg = _1.NeonParser.formatRpcArgument('d2a4cff31913016155e38e474a2c06d08be276cf'); - expectedResult = { type: 'Hash160', value: 'd2a4cff31913016155e38e474a2c06d08be276cf' }; - assert.notDeepStrictEqual(hash160Arg, expectedResult); - })); - (0, mocha_1.it)('format Hash256', () => __awaiter(this, void 0, void 0, function* () { - let hash256Arg = _1.NeonParser.formatRpcArgument('0xd2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be', { type: 'Hash256' }); - let expectedResult = { - type: 'Hash256', - value: 'd2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be', - }; - assert.deepStrictEqual(hash256Arg, expectedResult); - hash256Arg = _1.NeonParser.formatRpcArgument('d2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be', { - type: 'Hash256', - }); - expectedResult = { type: 'Hash256', value: 'd2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be' }; - assert.deepStrictEqual(hash256Arg, expectedResult); - // Not passing a config will endup returning a String instead of a Hash256 - hash256Arg = _1.NeonParser.formatRpcArgument('d2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be'); - expectedResult = { type: 'Hash256', value: 'd2b24b57ea05821766877241a51e17eae06ed66a6c72adb5727f8ba701d995be' }; - assert.notDeepStrictEqual(hash256Arg, expectedResult); - })); - (0, mocha_1.it)('format PublicKey', () => __awaiter(this, void 0, void 0, function* () { - let publicKeyArg = _1.NeonParser.formatRpcArgument('035a928f201639204e06b4368b1a93365462a8ebbff0b8818151b74faab3a2b61a', { type: 'PublicKey' }); - const expectedResult = { - type: 'PublicKey', - value: '035a928f201639204e06b4368b1a93365462a8ebbff0b8818151b74faab3a2b61a', - }; - assert.deepStrictEqual(publicKeyArg, expectedResult); - publicKeyArg = _1.NeonParser.formatRpcArgument('035a928f201639204e06b4368b1a93365462a8ebbff0b8818151b74faab3a2b61a'); - assert.notDeepStrictEqual(publicKeyArg, expectedResult); - })); - (0, mocha_1.it)('format array of primitive types', () => __awaiter(this, void 0, void 0, function* () { - let arrayArg = _1.NeonParser.formatRpcArgument([1, 2, 3], { type: 'Array', generic: { type: 'Integer' } }); - let arrayArgNoConfig = _1.NeonParser.formatRpcArgument([1, 2, 3]); - let expectedResult = { - type: 'Array', - value: [ - { type: 'Integer', value: '1' }, - { type: 'Integer', value: '2' }, - { type: 'Integer', value: '3' }, - ], - }; - assert.deepStrictEqual(arrayArg, expectedResult); - assert.deepStrictEqual(arrayArg, arrayArgNoConfig); - arrayArg = _1.NeonParser.formatRpcArgument([true, false], { type: 'Array', generic: { type: 'Boolean' } }); - arrayArgNoConfig = _1.NeonParser.formatRpcArgument([true, false]); - expectedResult = { - type: 'Array', - value: [ - { type: 'Boolean', value: true }, - { type: 'Boolean', value: false }, - ], - }; - assert.deepStrictEqual(arrayArg, expectedResult); - assert.deepStrictEqual(arrayArg, arrayArgNoConfig); - arrayArg = _1.NeonParser.formatRpcArgument(['unit', 'test'], { type: 'Array', generic: { type: 'String' } }); - arrayArgNoConfig = _1.NeonParser.formatRpcArgument(['unit', 'test']); - expectedResult = { - type: 'Array', - value: [ - { type: 'String', value: 'unit' }, - { type: 'String', value: 'test' }, - ], - }; - assert.deepStrictEqual(arrayArg, expectedResult); - assert.deepStrictEqual(arrayArg, arrayArgNoConfig); - arrayArg = _1.NeonParser.formatRpcArgument(['756e6974', '74657374'], { - type: 'Array', - generic: { type: 'ByteArray' }, - }); - arrayArgNoConfig = _1.NeonParser.formatRpcArgument(['unit', 'test']); - expectedResult = { - type: 'Array', - value: [ - { type: 'ByteArray', value: '756e6974' }, - { type: 'ByteArray', value: '74657374' }, - ], - }; - assert.deepStrictEqual(arrayArg, expectedResult); - assert.notDeepStrictEqual(arrayArg, arrayArgNoConfig); - })); - (0, mocha_1.it)('format map of primitive types', () => __awaiter(this, void 0, void 0, function* () { - let mapArg = _1.NeonParser.formatRpcArgument({}, { type: 'Map' }); - let mapArgNoConfig = _1.NeonParser.formatRpcArgument({}); - let expectedResult = { - type: 'Map', - value: [], - }; - assert.deepStrictEqual(mapArg, expectedResult); - assert.deepStrictEqual(mapArg, mapArgNoConfig); - mapArg = _1.NeonParser.formatRpcArgument({ unit: 'test', neon: 'parser', neo3: 'parser' }, { type: 'Map', genericKey: { type: 'String' }, genericItem: { type: 'String' } }); - mapArgNoConfig = _1.NeonParser.formatRpcArgument({ unit: 'test', neon: 'parser', neo3: 'parser' }); - expectedResult = { - type: 'Map', - value: [ - { - key: { - type: 'String', - value: 'unit', - }, - value: { - type: 'String', - value: 'test', - }, - }, - { - key: { - type: 'String', - value: 'neon', - }, - value: { - type: 'String', - value: 'parser', - }, - }, - { - key: { - type: 'String', - value: 'neo3', - }, - value: { - type: 'String', - value: 'parser', - }, - }, - ], - }; - assert.deepStrictEqual(mapArg, expectedResult); - assert.deepStrictEqual(mapArg, mapArgNoConfig); - mapArg = _1.NeonParser.formatRpcArgument({ true: true, false: false }, { type: 'Map', genericKey: { type: 'Boolean' }, genericItem: { type: 'Boolean' } }); - mapArgNoConfig = _1.NeonParser.formatRpcArgument({ true: true, false: false }); - expectedResult = { - type: 'Map', - value: [ - { - key: { - type: 'Boolean', - value: true, - }, - value: { - type: 'Boolean', - value: true, - }, - }, - { - key: { - type: 'Boolean', - value: false, - }, - value: { - type: 'Boolean', - value: false, - }, - }, - ], - }; - assert.deepStrictEqual(mapArg, expectedResult); - assert.notDeepStrictEqual(mapArg, mapArgNoConfig); - mapArg = _1.NeonParser.formatRpcArgument({ 98765: 12345 }, { type: 'Map', genericKey: { type: 'Integer' }, genericItem: { type: 'Integer' } }); - mapArgNoConfig = _1.NeonParser.formatRpcArgument({ 98765: 12345 }); - expectedResult = { - type: 'Map', - value: [ - { - key: { - type: 'Integer', - value: '98765', - }, - value: { - type: 'Integer', - value: '12345', - }, - }, - ], - }; - assert.deepStrictEqual(mapArg, expectedResult); - assert.notDeepStrictEqual(mapArg, mapArgNoConfig); - mapArg = _1.NeonParser.formatRpcArgument({ '627974654172726179': _1.NeonParser.strToHex('unit test') }, { type: 'Map', genericKey: { type: 'ByteArray' }, genericItem: { type: 'ByteArray' } }); - mapArgNoConfig = _1.NeonParser.formatRpcArgument({ '627974654172726179': _1.NeonParser.strToHex('unit test') }); - expectedResult = { - type: 'Map', - value: [ - { - key: { - type: 'ByteArray', - value: '627974654172726179', - }, - value: { - type: 'ByteArray', - value: '756e69742074657374', - }, - }, - ], - }; - assert.deepStrictEqual(mapArg, expectedResult); - assert.notDeepStrictEqual(mapArg, mapArgNoConfig); - })); - (0, mocha_1.it)('format Any', () => __awaiter(this, void 0, void 0, function* () { - let anyArg = _1.NeonParser.formatRpcArgument(12345, { type: 'Any' }); - let expectedResult = { - type: 'Integer', - value: '12345', - }; - assert.deepStrictEqual(anyArg, expectedResult); - anyArg = _1.NeonParser.formatRpcArgument(false, { type: 'Any' }); - expectedResult = { - type: 'Boolean', - value: false, - }; - assert.deepStrictEqual(anyArg, expectedResult); - anyArg = _1.NeonParser.formatRpcArgument('unit test', { type: 'Any' }); - expectedResult = { - type: 'String', - value: 'unit test', - }; - assert.deepStrictEqual(anyArg, expectedResult); - anyArg = _1.NeonParser.formatRpcArgument([1, 2], { type: 'Any' }); - expectedResult = { - type: 'Array', - value: [ - { type: 'Integer', value: '1' }, - { type: 'Integer', value: '2' }, - ], - }; - assert.deepStrictEqual(anyArg, expectedResult); - anyArg = _1.NeonParser.formatRpcArgument(null, { type: 'Any' }); - expectedResult = { type: 'Any', value: null }; - assert.deepStrictEqual(anyArg, expectedResult); - })); - }); -}); diff --git a/packages/neon-dappkit/dist/NeonSigner.d.ts b/packages/neon-dappkit/dist/NeonSigner.d.ts deleted file mode 100644 index f42f6cf..0000000 --- a/packages/neon-dappkit/dist/NeonSigner.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Neo3Signer, SignMessagePayload, SignedMessage, SignMessageVersion, EncryptedPayload, DecryptFromArrayResult } from '@cityofzion/neon-dappkit-types'; -import type * as NeonTypes from '@cityofzion/neon-core'; -export { SignMessageVersion }; -export declare class NeonSigner implements Neo3Signer { - account?: NeonTypes.wallet.Account; - constructor(account?: NeonTypes.wallet.Account); - signMessage(message: SignMessagePayload): Promise; - signMessageClassic(message: string): SignedMessage; - signMessageDefault(message: string): SignedMessage; - signMessageWithoutSalt(message: string): SignedMessage; - private classicFormat; - verifyMessage(verifyArgs: SignedMessage): Promise; - /** - * returns the address of the account - */ - getAccountAddress(): string | null; - encrypt(message: string, publicKeys: string[]): Promise; - decrypt(payload: EncryptedPayload): Promise; - decryptFromArray(payloads: EncryptedPayload[]): Promise; -} diff --git a/packages/neon-dappkit/dist/NeonSigner.js b/packages/neon-dappkit/dist/NeonSigner.js deleted file mode 100644 index 592f422..0000000 --- a/packages/neon-dappkit/dist/NeonSigner.js +++ /dev/null @@ -1,186 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NeonSigner = exports.SignMessageVersion = void 0; -const neon_dappkit_types_1 = require("@cityofzion/neon-dappkit-types"); -Object.defineProperty(exports, "SignMessageVersion", { enumerable: true, get: function () { return neon_dappkit_types_1.SignMessageVersion; } }); -const neon_js_1 = require("@cityofzion/neon-js"); -// @ts-ignore -const randombytes_1 = __importDefault(require("randombytes")); -const elliptic = __importStar(require("elliptic")); -const crypto = __importStar(require("crypto")); -class NeonSigner { - constructor(account) { - this.account = account; - } - signMessage(message) { - return __awaiter(this, void 0, void 0, function* () { - if (!this.account) { - throw new Error('No account provided'); - } - if (message.version === neon_dappkit_types_1.SignMessageVersion.CLASSIC) { - return this.signMessageClassic(message.message); - } - else if (message.version === neon_dappkit_types_1.SignMessageVersion.WITHOUT_SALT) { - return this.signMessageWithoutSalt(message.message); - } - else { - return this.signMessageDefault(message.message); - } - }); - } - signMessageClassic(message) { - const salt = (0, randombytes_1.default)(16).toString('hex'); - const messageHex = this.classicFormat(`${salt}${message}`); - return { - publicKey: this.account.publicKey, - data: neon_js_1.wallet.sign(messageHex, this.account.privateKey), - salt, - messageHex, - }; - } - signMessageDefault(message) { - const salt = (0, randombytes_1.default)(16).toString('hex'); - const messageHex = neon_js_1.u.str2hexstring(message); - return { - publicKey: this.account.publicKey, - data: neon_js_1.wallet.sign(messageHex, this.account.privateKey, salt), - salt, - messageHex, - }; - } - signMessageWithoutSalt(message) { - const messageHex = this.classicFormat(message); - return { - publicKey: this.account.publicKey, - data: neon_js_1.wallet.sign(messageHex, this.account.privateKey), - messageHex, - }; - } - classicFormat(message) { - const parameterHexString = neon_js_1.u.str2hexstring(message); - const lengthHex = neon_js_1.u.num2VarInt(parameterHexString.length / 2); - return `010001f0${lengthHex}${parameterHexString}0000`; - } - verifyMessage(verifyArgs) { - return __awaiter(this, void 0, void 0, function* () { - return neon_js_1.wallet.verify(verifyArgs.messageHex, verifyArgs.data, verifyArgs.publicKey); - }); - } - /** - * returns the address of the account - */ - getAccountAddress() { - var _a, _b; - return (_b = (_a = this.account) === null || _a === void 0 ? void 0 : _a.address) !== null && _b !== void 0 ? _b : null; - } - encrypt(message, publicKeys) { - return __awaiter(this, void 0, void 0, function* () { - const curve = new elliptic.ec('p256'); - const messageBuffer = new TextEncoder().encode(message); - return publicKeys.map((publicKey) => { - const pub = curve.keyFromPublic(publicKey, 'hex').getPublic(); - const ephem = curve.genKeyPair(); - const ephemPublicKey = ephem.getPublic(true, 'hex'); - // create the shared ECHD secret - const px = ephem.derive(pub); - // hash the secret - const hash = crypto.createHash('sha512').update(px.toString('hex')).digest(); - // define the initiation vector - const iv = crypto.randomBytes(16); - const encryptionKey = hash.subarray(0, 32); - const macKey = hash.subarray(32); - const cipher = crypto.createCipheriv('aes-256-cbc', encryptionKey, iv); - const firstChunk = cipher.update(messageBuffer); - const secondChunk = cipher.final(); - const ciphertext = Buffer.concat([firstChunk, secondChunk]); - const dataToMac = Buffer.concat([iv, Buffer.from(ephemPublicKey, 'hex'), ciphertext]); - const hmacSha = crypto.createHmac('sha256', macKey).update(dataToMac).digest(); - const mac = Buffer.from(hmacSha); - return { - randomVector: iv.toString('hex'), - cipherText: ciphertext.toString('hex'), - dataTag: mac.toString('hex'), - ephemPublicKey, - }; - }); - }); - } - decrypt(payload) { - return __awaiter(this, void 0, void 0, function* () { - if (!this.account) { - throw new Error('No account provided'); - } - const curve = new elliptic.ec('p256'); - const ephemPublicKey = curve.keyFromPublic(payload.ephemPublicKey, 'hex'); - const privKey = curve.keyFromPrivate(this.account.privateKey, 'hex'); - const px = privKey.derive(ephemPublicKey.getPublic()); - const hash = crypto.createHash('sha512').update(px.toString('hex')).digest(); - const encryptionKey = hash.subarray(0, 32); - // verify the hmac - const macKey = hash.subarray(32); - const dataToMac = Buffer.concat([ - Buffer.from(payload.randomVector, 'hex'), - Buffer.from(payload.ephemPublicKey, 'hex'), - Buffer.from(payload.cipherText, 'hex'), - ]); - const realMac = crypto.createHmac('sha256', macKey).update(dataToMac).digest(); - if (payload.dataTag !== realMac.toString('hex')) { - throw new Error('invalid payload: hmac misalignment'); - } - const cipher = crypto.createDecipheriv('aes-256-cbc', encryptionKey, Buffer.from(payload.randomVector, 'hex')); - const firstChunk = cipher.update(Buffer.from(payload.cipherText, 'hex')); - const secondChunk = cipher.final(); - return new TextDecoder().decode(Buffer.concat([firstChunk, secondChunk])); - }); - } - decryptFromArray(payloads) { - return __awaiter(this, void 0, void 0, function* () { - for (const [index, payload] of payloads.entries()) { - try { - const message = yield this.decrypt(payload); - return { message, keyIndex: index }; - } - catch (e) { - // do nothing - } - } - throw new Error('Could not decrypt message from array'); - }); - } -} -exports.NeonSigner = NeonSigner; diff --git a/packages/neon-dappkit/dist/NeonSigner.spec.d.ts b/packages/neon-dappkit/dist/NeonSigner.spec.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/packages/neon-dappkit/dist/NeonSigner.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/neon-dappkit/dist/NeonSigner.spec.js b/packages/neon-dappkit/dist/NeonSigner.spec.js deleted file mode 100644 index 1a53e9c..0000000 --- a/packages/neon-dappkit/dist/NeonSigner.spec.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_1 = require("./index"); -const neon_js_1 = require("@cityofzion/neon-js"); -const assert_1 = __importDefault(require("assert")); -describe('NeonSigner', function () { - it('can sign and verify', () => __awaiter(this, void 0, void 0, function* () { - const acc = new neon_js_1.wallet.Account('fb1f57cc1347ae5b6251dc8bae761362d2ecaafec4c87f4dc9e97fef6dd75014'); - const signer = new index_1.NeonSigner(acc); - const signed = yield signer.signMessage({ - version: index_1.SignMessageVersion.DEFAULT, - message: 'my random message', - }); - (0, assert_1.default)(signed.salt.length > 0); - (0, assert_1.default)(signed.messageHex.length > 0); - (0, assert_1.default)(signed.data.length > 0); - (0, assert_1.default)(signed.publicKey.length > 0); - const verified = yield signer.verifyMessage(signed); - (0, assert_1.default)(verified); - })); - it('can sign using classic version and verify', () => __awaiter(this, void 0, void 0, function* () { - const acc = new neon_js_1.wallet.Account('fb1f57cc1347ae5b6251dc8bae761362d2ecaafec4c87f4dc9e97fef6dd75014'); - const signer = new index_1.NeonSigner(acc); - const signed = yield signer.signMessage({ - version: index_1.SignMessageVersion.CLASSIC, - message: 'my random message', - }); - (0, assert_1.default)(signed.salt.length > 0); - (0, assert_1.default)(signed.messageHex.length > 0); - (0, assert_1.default)(signed.data.length > 0); - (0, assert_1.default)(signed.publicKey.length > 0); - const verified = yield signer.verifyMessage(signed); - (0, assert_1.default)(verified); - })); - it('can sign with no salt and verify', () => __awaiter(this, void 0, void 0, function* () { - const acc = new neon_js_1.wallet.Account('fb1f57cc1347ae5b6251dc8bae761362d2ecaafec4c87f4dc9e97fef6dd75014'); - const signer = new index_1.NeonSigner(acc); - const signed = yield signer.signMessage({ - version: index_1.SignMessageVersion.WITHOUT_SALT, - message: 'my random message', - }); - (0, assert_1.default)(signed.salt === undefined); - (0, assert_1.default)(signed.messageHex.length > 0); - (0, assert_1.default)(signed.data.length > 0); - (0, assert_1.default)(signed.publicKey.length > 0); - const verified = yield signer.verifyMessage(signed); - (0, assert_1.default)(verified); - })); - it('can verify', () => __awaiter(this, void 0, void 0, function* () { - const signer = new index_1.NeonSigner(); - const verified = yield signer.verifyMessage({ - publicKey: '031757edb62014dea820a0b33a156f6a59fc12bd966202f0e49357c81f26f5de34', - data: 'aeb234ed1639e9fcc95a102633b1c70ca9f9b97e9592cc74bfc40cbc7fefdb19ae8c6b49ebd410dbcbeec6b5906e503d528e34cd5098cc7929dbcbbaf23c5d77', - salt: '052a55a8d56b73b342a8e41da3050b09', - messageHex: '010001f0a0303532613535613864353662373362333432613865343164613330353062303965794a68624763694f694a49557a49314e694973496e523563434936496b705856434a392e65794a6c654841694f6a45324e444d304e7a63324e6a4d73496d6c68644349364d5459304d7a4d354d5449324d33302e7253315f73735230364c426778744831504862774c306d7a6557563950686d5448477a324849524f4a4f340000', - }); - (0, assert_1.default)(verified); - })); - it('can verify when failing', () => __awaiter(this, void 0, void 0, function* () { - const signer = new index_1.NeonSigner(); - const verified = yield signer.verifyMessage({ - publicKey: '031757edb62014dea820a0b33a156f6a59fc12bd966202f0e49357c81f26f5de34', - data: '4fe1b478cf76564b2133bdff9ba97d8a360ce36d0511918931cda207c2ce589dfc07ec5d8b93ce7c3b70fc88b676cc9e08f9811bf0d5b5710a20f10c58191bfb', - salt: '733ceb4d4e8ffdc83ecc6e35c4498999', - messageHex: '010001f05c3733336365623464346538666664633833656363366533356334343938393939436172616c686f2c206d756c65712c206f2062616775697520656820697373756d65726d6f2074616978206c696761646f206e61206d697373e36f3f0000', - }); - (0, assert_1.default)(!verified); - })); - it('can encrypt and decrypt messages from the corresponding public key', () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account(); - const signer = new index_1.NeonSigner(account); - const messageOriginal = 'Some plaintext for encryption'; - const messageEncrypted = yield signer.encrypt(messageOriginal, [account.publicKey]); - const messageDecrypted = yield signer.decrypt(messageEncrypted[0]); - for (const value of Object.values(messageEncrypted[0])) { - (0, assert_1.default)(!messageOriginal.includes(value)); - } - (0, assert_1.default)(messageDecrypted === messageOriginal); - })); - it('can NOT encrypt and decrypt messages from different public keys', () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account(); - const anotherAccount = new neon_js_1.wallet.Account(); - const signer = new index_1.NeonSigner(account); - const messageOriginal = 'Some plaintext for encryption'; - const messageEncrypted = yield signer.encrypt(messageOriginal, [anotherAccount.publicKey]); - yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () { return yield signer.decrypt(messageEncrypted[0]); }), /invalid payload: hmac misalignment/, 'Decrypt failed with a different public key'); - })); - it('can encrypt and decrypt messages from an array that has the corresponding public key', () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account(); - const anotherAccount1 = new neon_js_1.wallet.Account(); - const anotherAccount2 = new neon_js_1.wallet.Account(); - const anotherAccount3 = new neon_js_1.wallet.Account(); - const signer = new index_1.NeonSigner(account); - const messageOriginal = 'Some plaintext for encryption'; - const publicKeys = [ - anotherAccount3.publicKey, - anotherAccount2.publicKey, - anotherAccount1.publicKey, - account.publicKey, - ]; - const messageEncrypted = yield signer.encrypt(messageOriginal, publicKeys); - const messageDecrypted = yield signer.decryptFromArray(messageEncrypted); - (0, assert_1.default)(messageDecrypted.message === messageOriginal); - (0, assert_1.default)(messageDecrypted.keyIndex === publicKeys.length - 1); - const anotherSigner = new index_1.NeonSigner(anotherAccount1); - const anotherMessageDecrypted = yield anotherSigner.decryptFromArray(messageEncrypted); - (0, assert_1.default)(anotherMessageDecrypted.message === messageOriginal); - (0, assert_1.default)(anotherMessageDecrypted.keyIndex !== messageDecrypted.keyIndex); - (0, assert_1.default)(anotherMessageDecrypted.keyIndex === publicKeys.length - 2); - })); - it("can NOT encrypt and decrypt messages from an array that doesn't have the corresponding public key", () => __awaiter(this, void 0, void 0, function* () { - const account = new neon_js_1.wallet.Account(); - const anotherAccount1 = new neon_js_1.wallet.Account(); - const anotherAccount2 = new neon_js_1.wallet.Account(); - const anotherAccount3 = new neon_js_1.wallet.Account(); - const signer = new index_1.NeonSigner(account); - const messageOriginal = 'Some plaintext for encryption'; - const publicKeys = [anotherAccount3.publicKey, anotherAccount2.publicKey, anotherAccount1.publicKey]; - const messageEncrypted = yield signer.encrypt(messageOriginal, publicKeys); - assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () { return yield signer.decryptFromArray(messageEncrypted); }), /Decrypt failed. Event not found in decryptFromArray result/, 'Decrypt failed'); - })); -}); diff --git a/packages/neon-dappkit/dist/index.d.ts b/packages/neon-dappkit/dist/index.d.ts deleted file mode 100644 index 650787e..0000000 --- a/packages/neon-dappkit/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './NeonEventListener'; -export * from './NeonInvoker'; -export * from './NeonParser'; -export * from './NeonSigner'; diff --git a/packages/neon-dappkit/dist/index.js b/packages/neon-dappkit/dist/index.js deleted file mode 100644 index 945509c..0000000 --- a/packages/neon-dappkit/dist/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./NeonEventListener"), exports); -__exportStar(require("./NeonInvoker"), exports); -__exportStar(require("./NeonParser"), exports); -__exportStar(require("./NeonSigner"), exports); diff --git a/packages/neon-dappkit/dist/typeChecker.d.ts b/packages/neon-dappkit/dist/typeChecker.d.ts deleted file mode 100644 index d81219b..0000000 --- a/packages/neon-dappkit/dist/typeChecker.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AnyArgType, BooleanArgType, IntegerArgType, ArrayResponseArgType, MapResponseArgType, ByteStringArgType, InteropInterfaceArgType, PointerArgType, BufferArgType, StructArgType, RpcResponseStackItem } from '@cityofzion/neon-dappkit-types'; -export declare function isStackTypeAny(item: any): item is AnyArgType; -export declare function isStackTypeBoolean(item: any): item is BooleanArgType; -export declare function isStackTypeInteger(item: any): item is IntegerArgType; -export declare function isStackTypeArray(item: any): item is ArrayResponseArgType; -export declare function isStackTypeMap(item: any): item is MapResponseArgType; -export declare function isStackTypeByteString(item: any): item is ByteStringArgType; -export declare function isStackTypeInteropInterface(item: any): item is InteropInterfaceArgType; -export declare function isStackTypePointer(item: any): item is PointerArgType; -export declare function isStackTypeBuffer(item: any): item is BufferArgType; -export declare function isStackTypeStruct(item: any): item is StructArgType; -export declare function isRpcResponseStackItem(item: any): item is RpcResponseStackItem; diff --git a/packages/neon-dappkit/dist/typeChecker.js b/packages/neon-dappkit/dist/typeChecker.js deleted file mode 100644 index dedd553..0000000 --- a/packages/neon-dappkit/dist/typeChecker.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isRpcResponseStackItem = exports.isStackTypeStruct = exports.isStackTypeBuffer = exports.isStackTypePointer = exports.isStackTypeInteropInterface = exports.isStackTypeByteString = exports.isStackTypeMap = exports.isStackTypeArray = exports.isStackTypeInteger = exports.isStackTypeBoolean = exports.isStackTypeAny = void 0; -function isStackTypeAny(item) { - return typeof item === 'object' && item.type === 'Any'; -} -exports.isStackTypeAny = isStackTypeAny; -function isStackTypeBoolean(item) { - return typeof item === 'object' && item.type === 'Boolean' && typeof item.value === 'boolean'; -} -exports.isStackTypeBoolean = isStackTypeBoolean; -function isStackTypeInteger(item) { - return typeof item === 'object' && item.type === 'Integer' && typeof item.value === 'string'; -} -exports.isStackTypeInteger = isStackTypeInteger; -function isStackTypeArray(item) { - return (typeof item === 'object' && - item.type === 'Array' && - Array.isArray(item.value) && - item.value.every((i) => isRpcResponseStackItem(i))); -} -exports.isStackTypeArray = isStackTypeArray; -function isStackTypeMap(item) { - return (typeof item === 'object' && - item.type === 'Map' && - Array.isArray(item.value) && - item.value.every((i) => isRpcResponseStackItem(i.key) && isRpcResponseStackItem(i.value))); -} -exports.isStackTypeMap = isStackTypeMap; -function isStackTypeByteString(item) { - return typeof item === 'object' && item.type === 'ByteString' && typeof item.value === 'string'; -} -exports.isStackTypeByteString = isStackTypeByteString; -function isStackTypeInteropInterface(item) { - return (typeof item === 'object' && - item.type === 'InteropInterface' && - typeof item.interface === 'string' && - typeof item.id === 'string'); -} -exports.isStackTypeInteropInterface = isStackTypeInteropInterface; -function isStackTypePointer(item) { - return typeof item === 'object' && item.type === 'Pointer' && typeof item.value === 'string'; -} -exports.isStackTypePointer = isStackTypePointer; -function isStackTypeBuffer(item) { - return typeof item === 'object' && item.type === 'Buffer' && typeof item.value === 'string'; -} -exports.isStackTypeBuffer = isStackTypeBuffer; -function isStackTypeStruct(item) { - return (typeof item === 'object' && - item.type === 'Struct' && - Array.isArray(item.value) && - item.value.every((i) => isRpcResponseStackItem(i))); -} -exports.isStackTypeStruct = isStackTypeStruct; -function isRpcResponseStackItem(item) { - return (isStackTypeAny(item) || - isStackTypeBoolean(item) || - isStackTypeInteger(item) || - isStackTypeArray(item) || - isStackTypeMap(item) || - isStackTypeByteString(item) || - isStackTypeInteropInterface(item) || - isStackTypePointer(item) || - isStackTypeBuffer(item) || - isStackTypeStruct(item)); -} -exports.isRpcResponseStackItem = isRpcResponseStackItem;