@sentio/sdk-bundle 3.9.0-rc.11 → 3.9.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/builtin/0x1.js +6 -6
- package/lib/aptos/builtin/0x3.js +7 -7
- package/lib/aptos/builtin/0x4.js +7 -7
- package/lib/aptos/builtin/index.js +8 -8
- package/lib/aptos/ext/index.js +6 -6
- package/lib/aptos/index.js +6 -6
- package/lib/{chunk-GKWJC2YI.js → chunk-26S7KJIT.js} +2 -2
- package/lib/{chunk-JI4FP5EO.js → chunk-3SVRU4MS.js} +3 -3
- package/lib/{chunk-FEBQKFS4.js → chunk-6R2NQ3VR.js} +9 -9
- package/lib/{chunk-FEBQKFS4.js.map → chunk-6R2NQ3VR.js.map} +1 -1
- package/lib/{chunk-OL6YRPTK.js → chunk-BVCEJCB2.js} +4 -4
- package/lib/{chunk-LZDSL5QC.js → chunk-BZ6EYE2I.js} +3 -3
- package/lib/{chunk-4OSIPFLU.js → chunk-COOUCU37.js} +4 -4
- package/lib/{chunk-J55WJILR.js → chunk-CVGW37OQ.js} +2 -2
- package/lib/{chunk-YNXKKBWD.js → chunk-DK6LECDX.js} +3 -3
- package/lib/{chunk-OWQDH3DV.js → chunk-F2EOILX4.js} +3 -3
- package/lib/{chunk-A475EZ6I.js → chunk-IK26N3OU.js} +3 -3
- package/lib/{chunk-U2M7H3L4.js → chunk-K47QREBW.js} +4 -4
- package/lib/{chunk-OJCNTHPM.js → chunk-L4FFB2H3.js} +16 -16
- package/lib/{chunk-OJCNTHPM.js.map → chunk-L4FFB2H3.js.map} +1 -1
- package/lib/{chunk-CKQ6AYH4.js → chunk-MOM77KQ5.js} +11771 -8910
- package/lib/{chunk-CKQ6AYH4.js.map → chunk-MOM77KQ5.js.map} +1 -1
- package/lib/{chunk-QGM4U77D.js → chunk-N4IJSN3I.js} +6 -6
- package/lib/{chunk-BJ5XZJ35.js → chunk-U5ELBG4P.js} +2 -2
- package/lib/{chunk-FDUL3YZM.js → chunk-UIAUNTW3.js} +5 -5
- package/lib/{chunk-RJARVYPW.js → chunk-VUKYZFM7.js} +31 -32
- package/lib/chunk-VUKYZFM7.js.map +1 -0
- package/lib/{chunk-N7WG7KOR.js → chunk-XDGHFKM4.js} +3 -3
- package/lib/{chunk-CYPAA6MD.js → chunk-XPVA66OB.js} +9 -16
- package/lib/chunk-XPVA66OB.js.map +1 -0
- package/lib/{chunk-GSHARKR6.js → chunk-Z4Z4NDFW.js} +5 -5
- package/lib/{chunk-QAYXSXRO.js → chunk-ZU52PSDM.js} +6 -6
- package/lib/core/index.js +1 -1
- package/lib/eth/abi-decoder/decode-worker.js +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js +4 -4
- package/lib/eth/builtin/erc1155.js +5 -5
- package/lib/eth/builtin/erc20.js +4 -4
- package/lib/eth/builtin/erc721.js +4 -4
- package/lib/eth/builtin/index.js +6 -6
- package/lib/eth/builtin/weth9.js +5 -5
- package/lib/eth/index.js +4 -4
- package/lib/fuel/index.js +3 -3
- package/lib/index.js +1 -1
- package/lib/iota/builtin/0x1.js +9 -9
- package/lib/iota/builtin/0x2.js +10 -10
- package/lib/iota/builtin/0x3.js +11 -11
- package/lib/iota/builtin/index.js +11 -11
- package/lib/iota/ext/index.js +6 -6
- package/lib/iota/index.js +8 -8
- package/lib/move/index.js +2 -2
- package/lib/solana/builtin/index.js +2 -2
- package/lib/solana/index.js +2 -2
- package/lib/store/index.js +1 -1
- package/lib/sui/builtin/0x1.js +9 -9
- package/lib/sui/builtin/0x2.js +10 -10
- package/lib/sui/builtin/0x3.js +11 -11
- package/lib/sui/builtin/index.js +11 -11
- package/lib/sui/ext/index.js +6 -6
- package/lib/sui/index.js +8 -8
- package/lib/testing/index.js +10 -10
- package/lib/utils/index.js +4 -4
- package/package.json +2 -2
- package/lib/chunk-CYPAA6MD.js.map +0 -1
- package/lib/chunk-RJARVYPW.js.map +0 -1
- /package/lib/{chunk-GKWJC2YI.js.map → chunk-26S7KJIT.js.map} +0 -0
- /package/lib/{chunk-JI4FP5EO.js.map → chunk-3SVRU4MS.js.map} +0 -0
- /package/lib/{chunk-OL6YRPTK.js.map → chunk-BVCEJCB2.js.map} +0 -0
- /package/lib/{chunk-LZDSL5QC.js.map → chunk-BZ6EYE2I.js.map} +0 -0
- /package/lib/{chunk-4OSIPFLU.js.map → chunk-COOUCU37.js.map} +0 -0
- /package/lib/{chunk-J55WJILR.js.map → chunk-CVGW37OQ.js.map} +0 -0
- /package/lib/{chunk-YNXKKBWD.js.map → chunk-DK6LECDX.js.map} +0 -0
- /package/lib/{chunk-OWQDH3DV.js.map → chunk-F2EOILX4.js.map} +0 -0
- /package/lib/{chunk-A475EZ6I.js.map → chunk-IK26N3OU.js.map} +0 -0
- /package/lib/{chunk-U2M7H3L4.js.map → chunk-K47QREBW.js.map} +0 -0
- /package/lib/{chunk-QGM4U77D.js.map → chunk-N4IJSN3I.js.map} +0 -0
- /package/lib/{chunk-BJ5XZJ35.js.map → chunk-U5ELBG4P.js.map} +0 -0
- /package/lib/{chunk-FDUL3YZM.js.map → chunk-UIAUNTW3.js.map} +0 -0
- /package/lib/{chunk-N7WG7KOR.js.map → chunk-XDGHFKM4.js.map} +0 -0
- /package/lib/{chunk-GSHARKR6.js.map → chunk-Z4Z4NDFW.js.map} +0 -0
- /package/lib/{chunk-QAYXSXRO.js.map → chunk-ZU52PSDM.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
HandlerRegister
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CVGW37OQ.js";
|
|
5
5
|
import {
|
|
6
6
|
getHandlerName,
|
|
7
7
|
proxyProcessor
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
deserializeReceipt,
|
|
29
29
|
normalizeLabels,
|
|
30
30
|
require_lib
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MOM77KQ5.js";
|
|
32
32
|
import {
|
|
33
33
|
__name,
|
|
34
34
|
__toESM
|
|
@@ -1252,4 +1252,4 @@ export {
|
|
|
1252
1252
|
FuelAbstractProcessor,
|
|
1253
1253
|
TypedCall
|
|
1254
1254
|
};
|
|
1255
|
-
//# sourceMappingURL=chunk-
|
|
1255
|
+
//# sourceMappingURL=chunk-XDGHFKM4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MOM77KQ5.js";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
7
|
} from "./chunk-R7PMHHKJ.js";
|
|
@@ -88,7 +88,7 @@ var MoveAccountContext = class extends BaseContext {
|
|
|
88
88
|
};
|
|
89
89
|
import("node:process").then((p) => p.stdout.write(""));
|
|
90
90
|
|
|
91
|
-
// ../../node_modules/.pnpm/radash@12.1.
|
|
91
|
+
// ../../node_modules/.pnpm/radash@12.1.1/node_modules/radash/dist/esm/string.mjs
|
|
92
92
|
var capitalize = /* @__PURE__ */ __name((str) => {
|
|
93
93
|
if (!str || str.length === 0)
|
|
94
94
|
return "";
|
|
@@ -106,7 +106,7 @@ var camel = /* @__PURE__ */ __name((str) => {
|
|
|
106
106
|
});
|
|
107
107
|
}, "camel");
|
|
108
108
|
|
|
109
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
109
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/utils.js
|
|
110
110
|
var SPLITTER = "::";
|
|
111
111
|
var VECTOR_STR = "vector";
|
|
112
112
|
function isFrameworkAccount(account) {
|
|
@@ -242,7 +242,7 @@ function camel2(str) {
|
|
|
242
242
|
}
|
|
243
243
|
__name(camel2, "camel");
|
|
244
244
|
|
|
245
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
245
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/types.js
|
|
246
246
|
var TypeDescriptor = class _TypeDescriptor {
|
|
247
247
|
static {
|
|
248
248
|
__name(this, "TypeDescriptor");
|
|
@@ -506,22 +506,15 @@ function vectorType(t = ANY_TYPE) {
|
|
|
506
506
|
__name(vectorType, "vectorType");
|
|
507
507
|
var BUILTIN_TYPES = {
|
|
508
508
|
ADDRESS_TYPE: new TypeDescriptor("address"),
|
|
509
|
-
// export const Address = new TypeDescriptor<string>("Address")
|
|
510
509
|
VECTOR_TYPE_ANY: new TypeDescriptor("vector"),
|
|
511
510
|
VECTOR_TYPE: vectorType,
|
|
512
511
|
BOOL_TYPE: new TypeDescriptor("bool"),
|
|
513
512
|
U8_TYPE: new TypeDescriptor("u8"),
|
|
514
|
-
// export const U8 = new TypeDescriptor<number>("U8")
|
|
515
513
|
U16_TYPE: new TypeDescriptor("u16"),
|
|
516
|
-
// export const U16 = new TypeDescriptor<number>("U16")
|
|
517
514
|
U32_TYPE: new TypeDescriptor("u32"),
|
|
518
|
-
// export const U32 = new TypeDescriptor<number>("U32")
|
|
519
515
|
U64_TYPE: new TypeDescriptor("u64"),
|
|
520
|
-
// export const U64 = new TypeDescriptor<number>("U64")
|
|
521
516
|
U128_TYPE: new TypeDescriptor("u128"),
|
|
522
|
-
// export const U128 = new TypeDescriptor<number>("U128")
|
|
523
517
|
U256_TYPE: new TypeDescriptor("u256")
|
|
524
|
-
// export const U256 = new TypeDescriptor<number>("U256")
|
|
525
518
|
};
|
|
526
519
|
var BUILTIN_TYPES_SET = new Set(Object.values(BUILTIN_TYPES).flatMap((t) => {
|
|
527
520
|
if (typeof t === "object") {
|
|
@@ -546,7 +539,7 @@ function matchType(matcher, type) {
|
|
|
546
539
|
}
|
|
547
540
|
__name(matchType, "matchType");
|
|
548
541
|
|
|
549
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
542
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/account.js
|
|
550
543
|
var AccountModulesImportInfo = class {
|
|
551
544
|
static {
|
|
552
545
|
__name(this, "AccountModulesImportInfo");
|
|
@@ -619,14 +612,14 @@ var AccountRegister = class {
|
|
|
619
612
|
}
|
|
620
613
|
};
|
|
621
614
|
|
|
622
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
615
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/chain-adapter.js
|
|
623
616
|
var ChainAdapter = class {
|
|
624
617
|
static {
|
|
625
618
|
__name(this, "ChainAdapter");
|
|
626
619
|
}
|
|
627
620
|
};
|
|
628
621
|
|
|
629
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
622
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/abstract-move-coder.js
|
|
630
623
|
var AbstractMoveCoder = class {
|
|
631
624
|
static {
|
|
632
625
|
__name(this, "AbstractMoveCoder");
|
|
@@ -915,7 +908,7 @@ var AbstractMoveCoder = class {
|
|
|
915
908
|
}
|
|
916
909
|
};
|
|
917
910
|
|
|
918
|
-
// ../../node_modules/.pnpm/@typemove+move@2.0.
|
|
911
|
+
// ../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/dist/esm/internal-models.js
|
|
919
912
|
var InternalMoveFunctionVisibility;
|
|
920
913
|
(function(InternalMoveFunctionVisibility2) {
|
|
921
914
|
InternalMoveFunctionVisibility2["PRIVATE"] = "private";
|
|
@@ -959,4 +952,4 @@ export {
|
|
|
959
952
|
MoveContext,
|
|
960
953
|
MoveAccountContext
|
|
961
954
|
};
|
|
962
|
-
//# sourceMappingURL=chunk-
|
|
955
|
+
//# sourceMappingURL=chunk-XPVA66OB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/move/filter.ts","../src/move/move-context.ts","../../../node_modules/.pnpm/radash@12.1.1/node_modules/radash/src/string.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/utils.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/types.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/account.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/chain-adapter.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/abstract-move-coder.ts","../../../node_modules/.pnpm/@typemove+move@2.0.3/node_modules/@typemove/move/src/internal-models.ts","../src/move/index.ts"],"sourcesContent":["// TODO extends ArgumentsFilter\nimport {\n Data_AptCall,\n Data_AptResource,\n HandleInterval,\n MoveAccountFetchConfig,\n MoveFetchConfig,\n ProcessResult\n} from '@sentio/protos'\n\nexport interface EventFilter {\n type: string\n account?: string\n eventAccount?: string\n}\n\nexport interface FunctionNameAndCallFilter extends CallFilter {\n function: string\n}\n\nexport interface TransactionFilter {\n includeFailed?: boolean\n publicKeyPrefix?: string\n fromAndToAddress?: { from: string; to: string }\n}\n\n// TODO extends ArgumentsFilter\nexport interface CallFilter extends TransactionFilter {\n typeArguments?: string[]\n}\n\nexport interface ArgumentsFilter {\n arguments?: string[]\n}\n\nexport class EventHandler<T> {\n filters: EventFilter[]\n handlerName: string\n handler: (event: T) => Promise<ProcessResult>\n fetchConfig: MoveFetchConfig\n partitionHandler?: (event: T) => Promise<string | undefined>\n}\n\nexport class CallHandler<T> {\n filters: FunctionNameAndCallFilter[]\n handlerName: string\n handler: (call: T) => Promise<ProcessResult>\n fetchConfig: MoveFetchConfig\n partitionHandler?: (call: T) => Promise<string | undefined>\n}\n\nexport class ObjectChangeHandler<T> {\n handlerName: string\n handler: (call: T) => Promise<ProcessResult>\n type: string | string[]\n}\n\nexport class ResourceChangeHandler<T> {\n handlerName: string\n handler: (call: T) => Promise<ProcessResult>\n type: string | string[]\n partitionHandler?: (call: T) => Promise<string | undefined>\n}\n\nexport class ResourceIntervalHandler {\n type?: string | string[]\n versionInterval?: HandleInterval\n timeIntervalInMinutes?: HandleInterval\n handler: (resource: Data_AptResource) => Promise<ProcessResult>\n handlerName: string\n fetchConfig: MoveAccountFetchConfig\n partitionHandler?: (resource: Data_AptResource) => Promise<string | undefined>\n}\n\nexport class TransactionIntervalHandler {\n versionInterval?: HandleInterval\n timeIntervalInMinutes?: HandleInterval\n handler: (tx: Data_AptCall) => Promise<ProcessResult>\n handlerName: string\n fetchConfig: MoveFetchConfig\n partitionHandler?: (tx: Data_AptCall) => Promise<string | undefined>\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { BaseContext } from '../core/index.js'\nimport { AbstractMoveCoder } from '@typemove/move'\n\nexport abstract class MoveContext<Network, ModuleType, StructType> extends BaseContext {\n address: string\n coder: AbstractMoveCoder<ModuleType, StructType>\n network: Network\n\n abstract getTimestamp(): number\n}\n\nexport abstract class MoveAccountContext<Network, ModuleType, StructType> extends BaseContext {\n address: string\n coder: AbstractMoveCoder<ModuleType, StructType>\n network: Network\n\n abstract getTimestamp(): number\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","/**\n * Capitalize the first word of the string\n *\n * capitalize('hello') -> 'Hello'\n * capitalize('va va voom') -> 'Va va voom'\n */\nexport const capitalize = (str: string): string => {\n if (!str || str.length === 0) return ''\n const lower = str.toLowerCase()\n return lower.substring(0, 1).toUpperCase() + lower.substring(1, lower.length)\n}\n\n/**\n * Formats the given string in camel case fashion\n *\n * camel('hello world') -> 'helloWorld'\n * camel('va va-VOOM') -> 'vaVaVoom'\n * camel('helloWorld') -> 'helloWorld'\n */\nexport const camel = (str: string): string => {\n const parts =\n str\n ?.replace(/([A-Z])+/g, capitalize)\n ?.split(/(?=[A-Z])|[\\.\\-\\s_]/)\n .map(x => x.toLowerCase()) ?? []\n if (parts.length === 0) return ''\n if (parts.length === 1) return parts[0]\n return parts.reduce((acc, part) => {\n return `${acc}${part.charAt(0).toUpperCase()}${part.slice(1)}`\n })\n}\n\n/**\n * Formats the given string in snake case fashion\n *\n * snake('hello world') -> 'hello_world'\n * snake('va va-VOOM') -> 'va_va_voom'\n * snake('helloWord') -> 'hello_world'\n */\nexport const snake = (\n str: string,\n options?: {\n splitOnNumber?: boolean\n }\n): string => {\n const parts =\n str\n ?.replace(/([A-Z])+/g, capitalize)\n .split(/(?=[A-Z])|[\\.\\-\\s_]/)\n .map(x => x.toLowerCase()) ?? []\n if (parts.length === 0) return ''\n if (parts.length === 1) return parts[0]\n const result = parts.reduce((acc, part) => {\n return `${acc}_${part.toLowerCase()}`\n })\n return options?.splitOnNumber === false\n ? result\n : result.replace(/([A-Za-z]{1}[0-9]{1})/, val => `${val[0]!}_${val[1]!}`)\n}\n\n/**\n * Formats the given string in dash case fashion\n *\n * dash('hello world') -> 'hello-world'\n * dash('va va_VOOM') -> 'va-va-voom'\n * dash('helloWord') -> 'hello-word'\n */\nexport const dash = (str: string): string => {\n const parts =\n str\n ?.replace(/([A-Z])+/g, capitalize)\n ?.split(/(?=[A-Z])|[\\.\\-\\s_]/)\n .map(x => x.toLowerCase()) ?? []\n if (parts.length === 0) return ''\n if (parts.length === 1) return parts[0]\n return parts.reduce((acc, part) => {\n return `${acc}-${part.toLowerCase()}`\n })\n}\n\n/**\n * Formats the given string in pascal case fashion\n *\n * pascal('hello world') -> 'HelloWorld'\n * pascal('va va boom') -> 'VaVaBoom'\n */\nexport const pascal = (str: string): string => {\n const parts = str?.split(/[\\.\\-\\s_]/).map(x => x.toLowerCase()) ?? []\n if (parts.length === 0) return ''\n return parts.map(str => str.charAt(0).toUpperCase() + str.slice(1)).join('')\n}\n\n/**\n * Formats the given string in title case fashion\n *\n * title('hello world') -> 'Hello World'\n * title('va_va_boom') -> 'Va Va Boom'\n * title('root-hook') -> 'Root Hook'\n * title('queryItems') -> 'Query Items'\n */\nexport const title = (str: string | null | undefined): string => {\n if (!str) return ''\n return str\n .split(/(?=[A-Z])|[\\.\\-\\s_]/)\n .map(s => s.trim())\n .filter(s => !!s)\n .map(s => capitalize(s.toLowerCase()))\n .join(' ')\n}\n\n/**\n * template is used to replace data by name in template strings.\n * The default expression looks for {{name}} to identify names.\n *\n * Ex. template('Hello, {{name}}', { name: 'ray' })\n * Ex. template('Hello, <name>', { name: 'ray' }, /<(.+?)>/g)\n */\nexport const template = (\n str: string,\n data: Record<string, any>,\n regex = /\\{\\{(.+?)\\}\\}/g\n) => {\n return Array.from(str.matchAll(regex)).reduce((acc, match) => {\n return acc.replace(match[0], data[match[1]])\n }, str)\n}\n\n/**\n * Trims all prefix and suffix characters from the given\n * string. Like the builtin trim function but accepts\n * other characters you would like to trim and trims\n * multiple characters.\n *\n * ```typescript\n * trim(' hello ') // => 'hello'\n * trim('__hello__', '_') // => 'hello'\n * trim('/repos/:owner/:repo/', '/') // => 'repos/:owner/:repo'\n * trim('222222__hello__1111111', '12_') // => 'hello'\n * ```\n */\nexport const trim = (\n str: string | null | undefined,\n charsToTrim: string = ' '\n) => {\n if (!str) return ''\n const toTrim = charsToTrim.replace(/[\\W]{1}/g, '\\\\$&')\n const regex = new RegExp(`^[${toTrim}]+|[${toTrim}]+$`, 'g')\n return str.replace(regex, '')\n}\n","import { InternalMoveModule, InternalMoveStruct } from './internal-models.js'\nimport { camel as camelRadash } from 'radash'\n\nexport const SPLITTER = '::'\n\nexport const VECTOR_STR = 'vector'\n\nexport function isFrameworkAccount(account: string) {\n const n = parseInt(account, 16)\n if (Number.isNaN(n)) {\n return false\n }\n return n >= 0 && n < 16\n}\n\n// strip any lead 0\nexport function accountTypeString(account: string): string {\n const withoutPrefix = account.toLowerCase().replace(/^(0x)/, '')\n return '0x' + withoutPrefix.replace(/^0*/, '')\n}\n\nconst MOVE_ADDRESS_LENGTH = 32\n\nfunction isHex(value: string): boolean {\n return /^(0x|0X)?[a-fA-F0-9]+$/.test(value)\n}\n\nfunction getHexByteLength(value: string): number {\n return /^(0x|0X)/.test(value) ? (value.length - 2) / 2 : value.length / 2\n}\n\nexport function isValidMoveAddress(value: string): boolean {\n return isHex(value) && getHexByteLength(value) <= MOVE_ADDRESS_LENGTH\n}\n\n// Get full address with 32 bytes\nexport function accountAddressString(account: string): string {\n if (!isValidMoveAddress(account)) {\n throw Error('Not valid move address')\n }\n\n const address = account.toLowerCase().replace(/^(0x)/, '')\n return `0x${address.padStart(MOVE_ADDRESS_LENGTH * 2, '0')}`\n}\n\n// https://github.com/microsoft/TypeScript/issues/2536\nconst KEYWORDS = new Set([\n 'break',\n 'case',\n 'catch',\n 'class',\n 'const',\n 'continue',\n 'debugger',\n 'default',\n 'delete',\n 'do',\n 'else',\n 'enum',\n 'export',\n 'extends',\n 'false',\n 'finally',\n 'for',\n 'function',\n 'if',\n 'import',\n 'in',\n 'instanceof',\n 'new',\n 'null',\n 'return',\n 'super',\n 'switch',\n 'this',\n 'throw',\n 'true',\n 'try',\n 'typeof',\n 'var',\n 'void',\n 'while',\n 'with',\n 'as',\n 'implements',\n 'interface',\n 'let',\n 'package',\n 'private',\n 'protected',\n 'public',\n 'static',\n 'yield',\n 'any',\n 'boolean',\n 'constructor',\n 'declare',\n // 'get',\n 'module',\n // 'require',\n 'number',\n // 'set',\n 'string',\n 'symbol',\n 'type',\n 'from',\n // 'of',\n 'async',\n 'await',\n 'bigint',\n 'object',\n 'volatile',\n 'namespace',\n 'arguments'\n])\n\nexport function normalizeToJSName(name: string) {\n if (KEYWORDS.has(name)) {\n return name + '$'\n }\n return name\n}\n\nexport function moduleQnameForType(type: string): [string, string] {\n const parts = type.split(SPLITTER).slice(0, 2)\n return [parts[0], parts[1]]\n}\n\nexport function moduleQname(module: { address: string; name: string }): string {\n return accountTypeString(module.address) + SPLITTER + module.name\n}\n\nexport function structQname(module: InternalMoveModule, struct: InternalMoveStruct): string {\n return [accountTypeString(module.address), module.name, struct.name].join(SPLITTER)\n}\n\nexport function upperFirst(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1)\n}\n\nexport function camel(str: string): string {\n const base = camelRadash(str)\n return str.endsWith('_') ? base + '_' : base\n}\n","import { accountTypeString, SPLITTER, VECTOR_STR } from './utils.js'\n\nexport type DecodedStruct<B, T> = B & {\n /**\n * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n */\n data_decoded: T\n type_arguments: string[]\n}\n\nexport type NestedDecodedStruct<A, B extends { data: A }, T> = B & {\n data: DecodedStruct<A, T>\n}\n\nexport class TypeDescriptor<T = any> {\n qname: string\n reference: boolean\n mutable: boolean\n typeArgs: TypeDescriptor[]\n\n constructor(symbol: string, typeParams?: TypeDescriptor[]) {\n this.qname = symbol\n this.reference = false\n this.mutable = false\n this.typeArgs = typeParams || []\n }\n\n apply(...typeArgs: TypeDescriptor[]): TypeDescriptor {\n const newObj = this.clone()\n newObj.typeArgs = typeArgs\n return newObj\n }\n\n clone(): this {\n const newObj = new TypeDescriptor(this.qname, this.typeArgs)\n newObj.reference = this.reference\n newObj.mutable = this.mutable\n return newObj as any\n }\n\n // compare qname without consider case for system type\n compareQname(t: TypeDescriptor): boolean {\n let t1 = this.qname\n if (BUILTIN_TYPES_SET.has(this.qname.toLowerCase())) {\n t1 = this.qname.toLowerCase()\n }\n let t2 = t.qname\n if (BUILTIN_TYPES_SET.has(t.qname.toLowerCase())) {\n t2 = t.qname\n }\n return t1 === t2\n }\n\n getSignature(): string {\n if (this.typeArgs.length > 0) {\n return this.qname + '<' + this.typeArgs.map((t) => t.getSignature()).join(', ') + '>'\n }\n return this.qname\n }\n\n // Make U8, U16, etc => u8, u16\n getNormalizedSignature(): string {\n let qname = this.qname\n switch (qname) {\n case 'U8':\n case 'U16':\n case 'U32':\n case 'U64':\n case 'U128':\n case 'U256':\n case 'Vector':\n case 'Bool':\n case 'Address':\n qname = qname.toLowerCase()\n }\n\n if (this.typeArgs.length > 0) {\n return qname + '<' + this.typeArgs.map((t) => t.getNormalizedSignature()).join(', ') + '>'\n }\n return qname\n }\n\n // Replace T0, T1 with more concrete type\n applyTypeArgs(ctx: Map<string, TypeDescriptor>): TypeDescriptor {\n const replace = ctx.get(this.qname)\n if (replace) {\n return replace\n }\n if (ctx.size === 0 || this.typeArgs.length === 0) {\n return this\n }\n\n const typeArgs: TypeDescriptor[] = []\n for (const arg of this.typeArgs) {\n const replace = ctx.get(arg.qname)\n if (replace) {\n typeArgs.push(replace)\n } else {\n typeArgs.push(arg.applyTypeArgs(ctx))\n }\n }\n return new TypeDescriptor(this.qname, typeArgs)\n }\n\n // all depended types including itself, not include system type\n dependedTypes(): string[] {\n if (this.qname.startsWith('&')) {\n console.error('Not expected &')\n return []\n }\n\n // Handle closure/lambda types: |&mut T1|T2 or |T1, T2|T3\n if (this.qname.startsWith('|')) {\n // Closure types are function types, not module dependencies\n // The actual type dependencies are in the typeArgs if any\n const types = new Set<string>()\n for (const param of this.typeArgs) {\n param.dependedTypes().forEach((t) => types.add(t))\n }\n return Array.from(types)\n }\n\n if (this.isVector()) {\n return this.typeArgs[0].dependedTypes()\n }\n\n if (BUILTIN_TYPES_SET.has(this.qname.toLowerCase())) {\n return []\n }\n switch (this.qname) {\n case 'signer':\n case '0x1::string::String':\n return []\n }\n\n // Type parameters are not depended\n if (this.qname.indexOf(SPLITTER) == -1) {\n if (this.qname.startsWith('T')) {\n return []\n }\n }\n\n const types = new Set<string>()\n for (const param of this.typeArgs) {\n param.dependedTypes().forEach((t) => types.add(t))\n }\n\n types.add(this.qname)\n\n return Array.from(types)\n }\n\n isVector(): boolean {\n return this.qname.toLowerCase() === VECTOR_STR\n }\n\n existAnyType(): boolean {\n if (this.qname === 'any') {\n return true\n }\n for (const param of this.typeArgs) {\n if (param.existAnyType()) {\n return true\n }\n }\n return false\n }\n\n name(): string {\n const parts = this.qname.split(SPLITTER)\n return parts[parts.length - 1]\n }\n\n module(): string {\n const parts = this.qname.split(SPLITTER)\n return parts[parts.length - 2]\n }\n}\n\nexport function parseMoveType(type: string): TypeDescriptor {\n if (type === undefined) {\n console.log('')\n }\n\n // Aptos SDK 7+ exposes Move closure / function-value types in ABIs as\n // `|param1, param2, ...| ret`. Parse them specially — the inner params and\n // return type are nested and recursively parsed; the descriptor's qname is\n // the sentinel `|fn|` (other code in this file branches on qname.startsWith('|')).\n const closure = tryParseClosure(type)\n if (closure) {\n return closure\n }\n\n const stack: TypeDescriptor[] = [new TypeDescriptor('')]\n let buffer = []\n\n // xxx:asdf<g1<a,<c,d>>, b, g2<a,b>, e>\n for (let i = 0; i < type.length; i++) {\n const ch = type[i]\n if (ch === ' ') {\n continue\n }\n if (ch === '<') {\n // const symbol = type.slice(symbolStart, i)\n // symbolStart =\n const symbol = buffer.join('')\n buffer = []\n stack[stack.length - 1].qname = symbol\n adjustType(stack[stack.length - 1])\n stack.push(new TypeDescriptor(''))\n continue\n }\n if (ch === '>' || ch === ',') {\n const typeParam = stack.pop()\n if (!typeParam) {\n throw Error('Unexpected stack size')\n }\n if (buffer.length > 0) {\n typeParam.qname = buffer.join('')\n buffer = []\n }\n adjustType(typeParam)\n stack[stack.length - 1].typeArgs.push(typeParam)\n if (ch === ',') {\n stack.push(new TypeDescriptor(''))\n }\n continue\n }\n buffer.push(ch)\n }\n\n if (buffer.length > 0) {\n stack[stack.length - 1].qname = buffer.join('')\n }\n adjustType(stack[stack.length - 1])\n\n const res = stack.pop()\n if (!res || stack.length > 0) {\n throw Error('Unexpected stack size')\n }\n return res\n}\n\n// Parse `|param1, param2, ...| return_type` (Aptos Move closure / function-value\n// types exposed by SDK 7+). Returns undefined if the input is not a closure.\n// Commas and the closing `|` are matched at angle-bracket depth 0.\nfunction tryParseClosure(type: string): TypeDescriptor | undefined {\n let i = 0\n while (i < type.length && type[i] === ' ') i++\n if (type[i] !== '|') return undefined\n\n let depth = 0\n let close = -1\n for (let j = i + 1; j < type.length; j++) {\n const ch = type[j]\n if (ch === '<') depth++\n else if (ch === '>') depth--\n else if (ch === '|' && depth === 0) {\n close = j\n break\n }\n }\n if (close < 0) return undefined\n\n const inner = type.slice(i + 1, close)\n const ret = type.slice(close + 1).trim()\n\n const paramTypes: TypeDescriptor[] = []\n if (inner.trim().length > 0) {\n let depth2 = 0\n let start = 0\n for (let k = 0; k <= inner.length; k++) {\n const ch = inner[k]\n if (k === inner.length || (ch === ',' && depth2 === 0)) {\n const piece = inner.slice(start, k).trim()\n if (piece.length > 0) paramTypes.push(parseMoveType(piece))\n start = k + 1\n } else if (ch === '<') depth2++\n else if (ch === '>') depth2--\n }\n }\n\n const typeArgs = paramTypes.slice()\n if (ret.length > 0) typeArgs.push(parseMoveType(ret))\n\n return new TypeDescriptor('|fn|', typeArgs)\n}\n\nfunction adjustType(type: TypeDescriptor) {\n if (type.qname.startsWith('&')) {\n type.reference = true\n type.qname = type.qname.slice(1)\n }\n if (type.qname.startsWith('mut')) {\n type.mutable = true\n type.qname = type.qname.slice(3)\n }\n const parts = type.qname.split(SPLITTER)\n if (parts.length > 1) {\n const [account, module, name] = parts\n type.qname = [accountTypeString(account), module, name].join(SPLITTER)\n }\n}\n\nexport const ANY_TYPE = new TypeDescriptor<any>('any')\n\nexport function vectorType<T>(t: TypeDescriptor<T> = ANY_TYPE): TypeDescriptor<T[]> {\n return BUILTIN_TYPES.VECTOR_TYPE_ANY.apply(t)\n}\n\nexport const BUILTIN_TYPES = {\n ADDRESS_TYPE: new TypeDescriptor<string>('address'),\n\n VECTOR_TYPE_ANY: new TypeDescriptor<any[]>('vector'),\n VECTOR_TYPE: vectorType,\n\n BOOL_TYPE: new TypeDescriptor<number>('bool'),\n\n U8_TYPE: new TypeDescriptor<number>('u8'),\n U16_TYPE: new TypeDescriptor<number>('u16'),\n U32_TYPE: new TypeDescriptor<number>('u32'),\n U64_TYPE: new TypeDescriptor<number>('u64'),\n U128_TYPE: new TypeDescriptor<number>('u128'),\n U256_TYPE: new TypeDescriptor<number>('u256')\n}\n\nconst BUILTIN_TYPES_SET = new Set(\n Object.values(BUILTIN_TYPES).flatMap((t) => {\n if (typeof t === 'object') {\n return [t.qname.toLowerCase()]\n }\n return []\n })\n)\n\n/**\n *\n * @param matcher\n * @param type\n */\nexport function matchType(matcher: TypeDescriptor, type: TypeDescriptor): boolean {\n if (matcher.qname === 'any') {\n return true\n }\n if (!matcher.compareQname(type)) {\n return false\n }\n for (const [idx, matcherTarg] of matcher.typeArgs.entries()) {\n const targ = type.typeArgs[idx]\n if (!matchType(matcherTarg, targ)) {\n return false\n }\n }\n return true\n}\n","import { moduleQname, moduleQnameForType } from './utils.js'\nimport { InternalMoveModule } from './internal-models.js'\n\nexport class AccountModulesImportInfo {\n // account to module\n imports: Map<string, Set<string>>\n account: string\n moduleName: string\n\n constructor(account: string, tsModuleName: string) {\n this.account = account\n this.moduleName = tsModuleName\n this.imports = new Map<string, Set<string>>()\n }\n\n addImport(account: string, module: string) {\n if (account === this.account) {\n return\n }\n let accountModules = this.imports.get(account)\n if (!accountModules) {\n accountModules = new Set<string>()\n this.imports.set(account, accountModules)\n }\n accountModules.add(module)\n }\n}\n\nexport class AccountRegister {\n accountImports = new Map<string, AccountModulesImportInfo>()\n pendingAccounts = new Set<string>()\n\n register(module: InternalMoveModule, tsModuleName: string): AccountModulesImportInfo {\n const currentModuleFqn = moduleQname(module)\n\n let accountModuleImports = this.accountImports.get(module.address)\n if (!accountModuleImports) {\n accountModuleImports = new AccountModulesImportInfo(module.address, tsModuleName)\n this.accountImports.set(module.address, accountModuleImports)\n // the account has already be processed, delete pending task\n this.pendingAccounts.delete(module.address)\n }\n\n this.registerStruct(module, accountModuleImports)\n this.registerFunctions(module, accountModuleImports)\n\n this.accountImports.set(currentModuleFqn, accountModuleImports)\n return accountModuleImports\n }\n\n private registerFunctions(module: InternalMoveModule, accountModuleImports: AccountModulesImportInfo): void {\n for (const func of module.exposedFunctions) {\n // if (!func.isEntry) {\n // continue\n // }\n for (const param of func.params.concat(func.return)) {\n for (const type of param.dependedTypes()) {\n const [account, module] = moduleQnameForType(type)\n accountModuleImports.addImport(account, module)\n if (!this.accountImports.has(account)) {\n this.pendingAccounts.add(account)\n }\n }\n }\n }\n }\n\n private registerStruct(module: InternalMoveModule, accountModuleImports: AccountModulesImportInfo): void {\n for (const struct of module.structs) {\n for (const field of struct.fields) {\n for (const type of field.type.dependedTypes()) {\n const [account, module] = moduleQnameForType(type)\n accountModuleImports.addImport(account, module)\n if (!this.accountImports.has(account)) {\n this.pendingAccounts.add(account)\n }\n }\n }\n }\n }\n}\n","import { InternalMoveModule, InternalMoveStruct } from './internal-models.js'\nimport { TypeDescriptor } from './types.js'\n\nexport abstract class ChainAdapter<ModuleType, StructType> {\n // endpoint: string\n //\n // constructor(endpoint: string) {\n // this.endpoint = endpoint\n // }\n abstract getChainId(): Promise<string>\n\n abstract fetchModule(account: string, module: string): Promise<ModuleType>\n\n abstract fetchModules(account: string): Promise<ModuleType[]>\n abstract toInternalModules(modules: ModuleType[]): InternalMoveModule[]\n\n // Get all structs that represent Events\n abstract getAllEventStructs(module: InternalMoveModule[]): Map<string, InternalMoveStruct>\n\n // Get the parameters that actually have arguments in runtime\n // Aptos first signer and Sui's last TxContext are no use\n abstract getMeaningfulFunctionParams(params: TypeDescriptor[]): TypeDescriptor[]\n\n abstract getType(base: StructType): string\n abstract getData<T>(base: StructType): any\n}\n","import { accountTypeString, moduleQname, SPLITTER, VECTOR_STR } from './utils.js'\nimport { DecodedStruct, matchType, parseMoveType, TypeDescriptor } from './types.js'\nimport { InternalMoveEnum, InternalMoveFunction, InternalMoveModule, InternalMoveStruct } from './internal-models.js'\n// import { bytesToBigInt } from '../utils/index.js'\nimport { ChainAdapter } from './chain-adapter.js'\n\nexport abstract class AbstractMoveCoder<ModuleType, StructType> {\n protected moduleMapping = new Map<string, InternalMoveModule>()\n protected accounts = new Set<string>()\n private typeMapping = new Map<string, InternalMoveStruct>()\n private enumMapping = new Map<string, InternalMoveEnum>()\n\n private funcMapping = new Map<string, InternalMoveFunction>()\n // network: string\n adapter: ChainAdapter<ModuleType, StructType>\n\n protected constructor(adapter: ChainAdapter<ModuleType, StructType>) {\n this.adapter = adapter\n }\n\n contains(account: string, name: string) {\n return this.moduleMapping.has(moduleQname({ address: account, name }))\n }\n\n abstract load(module: ModuleType, address: string): InternalMoveModule\n\n protected loadInternal(module: InternalMoveModule, address: string) {\n const account = module.address\n const declareAccount = accountTypeString(address)\n\n this._loadInternal(module, account)\n if (account !== declareAccount) {\n this._loadInternal(module, declareAccount)\n }\n }\n\n private _loadInternal(module: InternalMoveModule, account: string) {\n if (this.contains(account, module.name)) {\n return\n }\n this.moduleMapping.set(moduleQname({ address: account, name: module.name }), module)\n for (const enumType of module.enums) {\n const key = [account, module.name, enumType.name].join(SPLITTER)\n this.enumMapping.set(key, enumType)\n }\n\n for (const struct of module.structs) {\n // TODO move to util\n const key = [account, module.name, struct.name].join(SPLITTER)\n this.typeMapping.set(key, struct)\n }\n\n for (const func of module.exposedFunctions) {\n // if (!func.isEntry) {\n // continue\n // }\n const key = [account, module.name, func.name].join(SPLITTER)\n this.funcMapping.set(key, func)\n }\n }\n\n protected decodeBigInt(data: any): bigint {\n if (Array.isArray(data)) {\n throw new Error('data is in byte array')\n // Only sui function need this, strange\n // const bytes = data as number[]\n // return bytesToBigInt(new Uint8Array(bytes.slice().reverse()))\n }\n\n return BigInt(data)\n }\n\n private requestMap = new Map<string, Promise<void>>()\n\n async getMoveStruct(type: string): Promise<InternalMoveStruct> {\n const [account_, module, typeName] = type.split(SPLITTER)\n const account = accountTypeString(account_)\n type = [account, module, typeName].join(SPLITTER)\n\n let struct = this.typeMapping.get(type)\n if (struct) {\n return struct\n }\n if (this.accounts.has(account)) {\n throw new Error('Failed to load struct ' + type + ' for imported account')\n }\n let resp = this.requestMap.get(account)\n if (!resp) {\n resp = this.adapter.fetchModules(account).then((modules) => {\n for (const m of modules) {\n this.load(m, account)\n }\n })\n this.requestMap.set(account, resp)\n }\n await resp\n struct = this.typeMapping.get(type)\n if (struct) {\n return struct\n }\n throw new Error('Failed to load function ' + type + ' type are not imported anywhere')\n }\n\n async maybeGetMoveEnum(type: string): Promise<InternalMoveEnum | undefined> {\n const [account_, module, typeName] = type.split(SPLITTER)\n const account = accountTypeString(account_)\n type = [account, module, typeName].join(SPLITTER)\n\n let enumType = this.enumMapping.get(type)\n if (enumType) {\n return enumType\n }\n if (this.accounts.has(account)) {\n return undefined\n }\n let resp = this.requestMap.get(account)\n if (!resp) {\n resp = this.adapter.fetchModules(account).then((modules) => {\n for (const m of modules) {\n this.load(m, account)\n }\n })\n this.requestMap.set(account, resp)\n }\n await resp\n enumType = this.enumMapping.get(type)\n if (enumType) {\n return enumType\n }\n return undefined\n }\n\n async getMoveFunction(type: string): Promise<InternalMoveFunction> {\n const [account_, module, typeName] = type.split(SPLITTER)\n const account = accountTypeString(account_)\n type = [account, module, typeName].join(SPLITTER)\n\n let func = this.funcMapping.get(type)\n if (func) {\n return func\n }\n if (this.accounts.has(account)) {\n throw new Error('Failed to load function ' + type + ' for imported account')\n }\n let resp = this.requestMap.get(account)\n if (!resp) {\n resp = this.adapter\n .fetchModules(account)\n .then((modules) => {\n for (const m of modules) {\n this.load(m, account)\n }\n })\n .catch((e) => {\n this.requestMap.delete(account)\n })\n this.requestMap.set(account, resp)\n }\n await resp\n func = this.funcMapping.get(type)\n if (func) {\n return func\n }\n throw new Error('Failed to load function ' + type + ' type are not imported anywhere')\n }\n\n protected async decode<T>(data: any, type: TypeDescriptor<T>): Promise<T> {\n // process simple type\n if (type.reference) {\n return data\n }\n switch (type.qname) {\n case 'signer': // TODO check this, aptos only\n case 'address':\n case 'Address':\n case '0x1::string::String':\n case 'bool':\n case 'Bool':\n case 'u8':\n case 'U8':\n case 'u16':\n case 'U16':\n case 'u32':\n case 'U32':\n return data\n case 'u64':\n case 'U64':\n case 'u128':\n case 'U128':\n case 'u256':\n case 'U256':\n return this.decodeBigInt(data) as any\n }\n\n // process vector\n if (type.qname.toLowerCase() === VECTOR_STR) {\n // vector<u8> as hex string\n if (type.typeArgs[0].qname === 'u8' || type.typeArgs[0].qname === 'U8') {\n return data\n }\n\n const res = []\n for (const entry of data) {\n res.push(await this.decode(entry, type.typeArgs[0]))\n }\n return res as any\n }\n\n // try enum type first\n const enumType = await this.maybeGetMoveEnum(type.qname)\n if (enumType) {\n return data\n }\n\n // Process complex type\n const struct = await this.getMoveStruct(type.qname)\n\n const typeCtx = new Map<string, TypeDescriptor>()\n for (const [idx, typeArg] of type.typeArgs.entries()) {\n typeCtx.set('T' + idx, typeArg)\n }\n\n const typedData: any = {}\n\n for (const field of struct.fields) {\n let filedType = field.type\n filedType = filedType.applyTypeArgs(typeCtx)\n const fieldValue = this.adapter.getData(data)[field.name]\n const value = await this.decode(fieldValue, filedType)\n typedData[field.name] = value\n }\n return typedData\n }\n\n async decodeArray(entries: any[], types: TypeDescriptor[], strict = true): Promise<any[]> {\n const entriesDecoded: any[] = []\n for (const [idx, arg] of entries.entries()) {\n // TODO consider apply payload.type_arguments, but this might be hard since we don't code gen for them\n const argType = types[idx]\n try {\n if (!strict && arg === undefined) {\n entriesDecoded.push(arg)\n } else {\n entriesDecoded.push(await this.decode(arg, argType))\n }\n } catch (e) {\n throw Error('Decoding error for ' + JSON.stringify(arg) + 'using type' + argType + String(e))\n }\n }\n return entriesDecoded\n }\n\n public encode(data: any): any {\n if (data === undefined || data === null) {\n return undefined\n }\n if (typeof data === 'bigint') {\n return data.toString()\n }\n if (Array.isArray(data)) {\n return this.encodeArray(data)\n }\n for (const [key, value] of Object.entries(data)) {\n if (!value) {\n continue\n }\n if (typeof value === 'bigint') {\n data[key] = value.toString()\n }\n }\n return data\n }\n\n encodeArray(entriesDecoded: any[]): any[] {\n const entries: any[] = []\n for (const [idx, arg] of entriesDecoded.entries()) {\n entries.push(this.encode(arg))\n }\n return entries\n }\n\n async decodeCallResult(res: any[], func: string): Promise<any[]> {\n const f = await this.getMoveFunction(func)\n return this.decodeArray(res, f.return)\n }\n\n async filterAndDecodeStruct<T, ST extends StructType>(\n typeMatcher: TypeDescriptor<T>,\n structsWithTags: ST[]\n ): Promise<DecodedStruct<ST, T>[]> {\n if (!structsWithTags) {\n return [] as any\n }\n // const typeMatcherDescriptor = parseMoveType(typeMatcher)\n const results: DecodedStruct<ST, T>[] = []\n for (const resource of structsWithTags) {\n const resourceType = this.adapter.getType(resource)\n const resourceTypeDescriptor = parseMoveType(resourceType)\n if (!matchType(typeMatcher, resourceTypeDescriptor)) {\n continue\n }\n\n const result = await this.decodedStruct<T, ST>(resource)\n if (result) {\n results.push(result)\n } else {\n console.error('decoding error')\n }\n }\n return results\n }\n\n protected async decodedStruct<T, ST extends StructType>(typeStruct: ST): Promise<DecodedStruct<ST, T> | undefined> {\n const typeDescriptor = parseMoveType(this.adapter.getType(typeStruct))\n const typeArguments = typeDescriptor.typeArgs.map((t) => t.getSignature())\n\n let dataTyped = undefined\n try {\n dataTyped = await this.decode(typeStruct, typeDescriptor)\n } catch (e) {\n throw Error('Decoding error for struct' + JSON.stringify(typeStruct) + String(e))\n // return undefined\n }\n return {\n ...typeStruct,\n data_decoded: dataTyped,\n type_arguments: typeArguments\n }\n }\n\n public async decodeType<T, ST>(typeStruct: ST, type: TypeDescriptor<T>): Promise<T | undefined> {\n if (typeStruct === null || typeStruct == undefined) {\n return typeStruct as any\n }\n if (typeof typeStruct === 'object') {\n if ('type' in typeStruct) {\n const typeInStruct = parseMoveType((typeStruct.type as any).toString() || '')\n if (!matchType(type, typeInStruct)) {\n return undefined\n }\n type = typeInStruct\n }\n }\n\n return await this.decode(typeStruct, type)\n }\n}\n","import { TypeDescriptor } from './types.js'\n\nexport interface InternalMoveModule {\n address: string\n name: string\n exposedFunctions: InternalMoveFunction[]\n structs: InternalMoveStruct[]\n enums: InternalMoveEnum[]\n}\n\nexport interface InternalMoveFunction {\n name: string\n visibility: InternalMoveFunctionVisibility\n isEntry: boolean\n isView?: boolean\n typeParams: InternalMoveTypeParam[]\n params: TypeDescriptor[]\n return: TypeDescriptor[]\n}\n\nexport interface InternalMoveStruct {\n name: string\n isNative: boolean\n isEvent: boolean\n abilities: string[]\n typeParams: InternalMoveTypeParam[]\n fields: InternalMoveStructField[]\n}\n\nexport interface InternalMoveEnum {\n name: string\n abilities: string[]\n typeParams: InternalMoveTypeParam[]\n variants: {\n [key: string]: InternalMoveStructField[]\n }\n}\n\nexport interface InternalMoveStructField {\n name: string\n type: TypeDescriptor\n}\n\nexport enum InternalMoveFunctionVisibility {\n PRIVATE = 'private',\n PUBLIC = 'public',\n FRIEND = 'friend'\n}\n\nexport type InternalMoveTypeParam = {\n constraints: string[]\n}\n","export * from './filter.js'\nexport * from './move-context.js'\n\nexport * from '@typemove/move'\n\nexport { MoveFetchConfig } from '@sentio/protos'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;AAmCO,IAAM,eAAN,MAAsB;AAAA,EAnC7B,OAmC6B;AAAA;AAAA;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,cAAN,MAAqB;AAAA,EA3C5B,OA2C4B;AAAA;AAAA;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,sBAAN,MAA6B;AAAA,EAnDpC,OAmDoC;AAAA;AAAA;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,wBAAN,MAA+B;AAAA,EAzDtC,OAyDsC;AAAA;AAAA;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,0BAAN,MAA8B;AAAA,EAhErC,OAgEqC;AAAA;AAAA;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,6BAAN,MAAiC;AAAA,EA1ExC,OA0EwC;AAAA;AAAA;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CA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MAAM;MACrB,OAAO;AACL,gBAAQ,MAAM,gBAAgB;MAChC;IACF;AACA,WAAO;EACT;EAEU,MAAM,cAAwC,YAAc;AACpE,UAAM,iBAAiB,cAAc,KAAK,QAAQ,QAAQ,UAAU,CAAC;AACrE,UAAM,gBAAgB,eAAe,SAAS,IAAI,CAAC,MAAM,EAAE,aAAY,CAAE;AAEzE,QAAI,YAAY;AAChB,QAAI;AACF,kBAAY,MAAM,KAAK,OAAO,YAAY,cAAc;IAC1D,SAAS,GAAG;AACV,YAAM,MAAM,8BAA8B,KAAK,UAAU,UAAU,IAAI,OAAO,CAAC,CAAC;IAElF;AACA,WAAO;MACL,GAAG;MACH,cAAc;MACd,gBAAgB;;EAEpB;EAEO,MAAM,WAAkB,YAAgB,MAAuB;AACpE,QAAI,eAAe,QAAQ,cAAc,QAAW;AAClD,aAAO;IACT;AACA,QAAI,OAAO,eAAe,UAAU;AAClC,UAAI,UAAU,YAAY;AACxB,cAAM,eAAe,cAAe,WAAW,KAAa,SAAQ,KAAM,EAAE;AAC5E,YAAI,CAAC,UAAU,MAAM,YAAY,GAAG;AAClC,iBAAO;QACT;AACA,eAAO;MACT;IACF;AAEA,WAAO,MAAM,KAAK,OAAO,YAAY,IAAI;EAC3C;;;;AC9SF,IAAY;CAAZ,SAAYC,iCAA8B;AACxC,EAAAA,gCAAA,SAAA,IAAA;AACA,EAAAA,gCAAA,QAAA,IAAA;AACA,EAAAA,gCAAA,QAAA,IAAA;AACF,GAJY,mCAAA,iCAA8B,CAAA,EAAA;;;ACrCzC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;","names":["camel","replace","types","module","InternalMoveFunctionVisibility"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadAllTypes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K47QREBW.js";
|
|
5
5
|
import {
|
|
6
6
|
IotaBaseProcessor,
|
|
7
7
|
ZERO_ADDRESS,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
transactionArgumentOrPureU64,
|
|
19
19
|
transactionArgumentOrPureU8,
|
|
20
20
|
transactionArgumentOrVec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L4FFB2H3.js";
|
|
22
22
|
import {
|
|
23
23
|
IotaNetwork,
|
|
24
24
|
Transaction
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VUKYZFM7.js";
|
|
26
26
|
import {
|
|
27
27
|
ANY_TYPE,
|
|
28
28
|
TypeDescriptor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XPVA66OB.js";
|
|
30
30
|
import {
|
|
31
31
|
__export,
|
|
32
32
|
__name
|
|
@@ -21267,4 +21267,4 @@ export {
|
|
|
21267
21267
|
loadAllTypes2 as loadAllTypes,
|
|
21268
21268
|
x2_exports
|
|
21269
21269
|
};
|
|
21270
|
-
//# sourceMappingURL=chunk-
|
|
21270
|
+
//# sourceMappingURL=chunk-Z4Z4NDFW.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadAllTypes as loadAllTypes2
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UIAUNTW3.js";
|
|
5
5
|
import {
|
|
6
6
|
Transaction,
|
|
7
7
|
loadAllTypes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BVCEJCB2.js";
|
|
9
9
|
import {
|
|
10
10
|
SuiBaseProcessor,
|
|
11
11
|
ZERO_ADDRESS2 as ZERO_ADDRESS,
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
transactionArgumentOrPureU642 as transactionArgumentOrPureU64,
|
|
19
19
|
transactionArgumentOrPureU82 as transactionArgumentOrPureU8,
|
|
20
20
|
transactionArgumentOrVec2 as transactionArgumentOrVec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L4FFB2H3.js";
|
|
22
22
|
import {
|
|
23
23
|
SuiNetwork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BZ6EYE2I.js";
|
|
25
25
|
import {
|
|
26
26
|
TypeDescriptor
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XPVA66OB.js";
|
|
28
28
|
import {
|
|
29
29
|
__export,
|
|
30
30
|
__name
|
|
@@ -8501,4 +8501,4 @@ export {
|
|
|
8501
8501
|
loadAllTypes3 as loadAllTypes,
|
|
8502
8502
|
x3_exports
|
|
8503
8503
|
};
|
|
8504
|
-
//# sourceMappingURL=chunk-
|
|
8504
|
+
//# sourceMappingURL=chunk-ZU52PSDM.js.map
|
package/lib/core/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
decode_worker_default,
|
|
6
6
|
parseLog,
|
|
7
7
|
parseLogInline
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-U5ELBG4P.js";
|
|
9
|
+
import "../../chunk-MOM77KQ5.js";
|
|
10
10
|
import "../../chunk-J5UEW4B7.js";
|
|
11
11
|
import "../../chunk-R7PMHHKJ.js";
|
|
12
12
|
export {
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
mockNewRoundLog,
|
|
12
12
|
mockOwnershipTransferRequestedLog,
|
|
13
13
|
mockOwnershipTransferredLog2 as mockOwnershipTransferredLog
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
14
|
+
} from "../../chunk-COOUCU37.js";
|
|
15
|
+
import "../../chunk-U5ELBG4P.js";
|
|
16
|
+
import "../../chunk-CVGW37OQ.js";
|
|
17
17
|
import "../../chunk-43HP4DQZ.js";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-MOM77KQ5.js";
|
|
19
19
|
import "../../chunk-J5UEW4B7.js";
|
|
20
20
|
import "../../chunk-R7PMHHKJ.js";
|
|
21
21
|
export {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
mockTransferBatchLog,
|
|
11
11
|
mockTransferSingleLog,
|
|
12
12
|
mockURILog
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-DK6LECDX.js";
|
|
14
14
|
import {
|
|
15
15
|
ERC1155__factory
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
16
|
+
} from "../../chunk-COOUCU37.js";
|
|
17
|
+
import "../../chunk-U5ELBG4P.js";
|
|
18
|
+
import "../../chunk-CVGW37OQ.js";
|
|
19
19
|
import "../../chunk-43HP4DQZ.js";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-MOM77KQ5.js";
|
|
21
21
|
import "../../chunk-J5UEW4B7.js";
|
|
22
22
|
import "../../chunk-R7PMHHKJ.js";
|
|
23
23
|
export {
|
package/lib/eth/builtin/erc20.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
mockApprovalLog2 as mockApprovalLog,
|
|
11
11
|
mockOwnershipTransferredLog,
|
|
12
12
|
mockTransferLog2 as mockTransferLog
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-COOUCU37.js";
|
|
14
|
+
import "../../chunk-U5ELBG4P.js";
|
|
15
|
+
import "../../chunk-CVGW37OQ.js";
|
|
16
16
|
import "../../chunk-43HP4DQZ.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-MOM77KQ5.js";
|
|
18
18
|
import "../../chunk-J5UEW4B7.js";
|
|
19
19
|
import "../../chunk-R7PMHHKJ.js";
|
|
20
20
|
export {
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
mockApprovalForAllLog,
|
|
11
11
|
mockApprovalLog,
|
|
12
12
|
mockTransferLog
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-COOUCU37.js";
|
|
14
|
+
import "../../chunk-U5ELBG4P.js";
|
|
15
|
+
import "../../chunk-CVGW37OQ.js";
|
|
16
16
|
import "../../chunk-43HP4DQZ.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-MOM77KQ5.js";
|
|
18
18
|
import "../../chunk-J5UEW4B7.js";
|
|
19
19
|
import "../../chunk-R7PMHHKJ.js";
|
|
20
20
|
export {
|
package/lib/eth/builtin/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
ERC1155Processor,
|
|
4
4
|
ERC1155ProcessorTemplate,
|
|
5
5
|
erc1155_exports
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-DK6LECDX.js";
|
|
7
7
|
import {
|
|
8
8
|
WETH9Processor,
|
|
9
9
|
WETH9ProcessorTemplate,
|
|
10
10
|
weth9_exports
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-IK26N3OU.js";
|
|
12
12
|
import {
|
|
13
13
|
EACAggregatorProxyProcessor,
|
|
14
14
|
EACAggregatorProxyProcessorTemplate,
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
erc20_exports,
|
|
23
23
|
erc20bytes_exports,
|
|
24
24
|
erc721_exports
|
|
25
|
-
} from "../../chunk-
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
25
|
+
} from "../../chunk-COOUCU37.js";
|
|
26
|
+
import "../../chunk-U5ELBG4P.js";
|
|
27
|
+
import "../../chunk-CVGW37OQ.js";
|
|
28
28
|
import "../../chunk-43HP4DQZ.js";
|
|
29
|
-
import "../../chunk-
|
|
29
|
+
import "../../chunk-MOM77KQ5.js";
|
|
30
30
|
import "../../chunk-J5UEW4B7.js";
|
|
31
31
|
import "../../chunk-R7PMHHKJ.js";
|
|
32
32
|
|
package/lib/eth/builtin/weth9.js
CHANGED
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
mockDepositLog,
|
|
11
11
|
mockTransferLog,
|
|
12
12
|
mockWithdrawalLog
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-IK26N3OU.js";
|
|
14
14
|
import {
|
|
15
15
|
WETH9__factory
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
16
|
+
} from "../../chunk-COOUCU37.js";
|
|
17
|
+
import "../../chunk-U5ELBG4P.js";
|
|
18
|
+
import "../../chunk-CVGW37OQ.js";
|
|
19
19
|
import "../../chunk-43HP4DQZ.js";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-MOM77KQ5.js";
|
|
21
21
|
import "../../chunk-J5UEW4B7.js";
|
|
22
22
|
import "../../chunk-R7PMHHKJ.js";
|
|
23
23
|
export {
|
package/lib/eth/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
getProcessor,
|
|
24
24
|
getProvider,
|
|
25
25
|
makeEthCallKey
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-COOUCU37.js";
|
|
27
27
|
import {
|
|
28
28
|
FormattedLog,
|
|
29
29
|
SimpleEthersError,
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
newInterface,
|
|
39
39
|
transformEtherError,
|
|
40
40
|
validateAndNormalizeAddress
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-U5ELBG4P.js";
|
|
42
|
+
import "../chunk-CVGW37OQ.js";
|
|
43
43
|
import "../chunk-43HP4DQZ.js";
|
|
44
44
|
import {
|
|
45
45
|
EthFetchConfig,
|
|
46
46
|
PreprocessResult
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-MOM77KQ5.js";
|
|
48
48
|
import "../chunk-J5UEW4B7.js";
|
|
49
49
|
import "../chunk-R7PMHHKJ.js";
|
|
50
50
|
export {
|
package/lib/fuel/index.js
CHANGED
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
getOptionsSignature,
|
|
23
23
|
getProvider,
|
|
24
24
|
getRpcEndpoint
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-XDGHFKM4.js";
|
|
26
|
+
import "../chunk-CVGW37OQ.js";
|
|
27
27
|
import "../chunk-43HP4DQZ.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-MOM77KQ5.js";
|
|
29
29
|
import "../chunk-J5UEW4B7.js";
|
|
30
30
|
import "../chunk-R7PMHHKJ.js";
|
|
31
31
|
export {
|
package/lib/index.js
CHANGED
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
toMetricValue,
|
|
200
200
|
totalPerEntityAggregation_TypeFromJSON,
|
|
201
201
|
totalPerEntityAggregation_TypeToJSON
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-MOM77KQ5.js";
|
|
203
203
|
import {
|
|
204
204
|
BigDecimal as BigDecimal2
|
|
205
205
|
} from "./chunk-J5UEW4B7.js";
|
package/lib/iota/builtin/0x1.js
CHANGED
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
uq32_32,
|
|
21
21
|
uq64_64,
|
|
22
22
|
vector
|
|
23
|
-
} from "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-
|
|
23
|
+
} from "../../chunk-K47QREBW.js";
|
|
24
|
+
import "../../chunk-L4FFB2H3.js";
|
|
25
|
+
import "../../chunk-BZ6EYE2I.js";
|
|
26
|
+
import "../../chunk-VUKYZFM7.js";
|
|
27
27
|
import "../../chunk-QUAXYDJ7.js";
|
|
28
28
|
import "../../chunk-ZJYIROIV.js";
|
|
29
29
|
import "../../chunk-742S42NO.js";
|
|
30
30
|
import "../../chunk-7IDGS56O.js";
|
|
31
|
-
import "../../chunk-
|
|
32
|
-
import "../../chunk-
|
|
33
|
-
import "../../chunk-
|
|
34
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-COOUCU37.js";
|
|
32
|
+
import "../../chunk-U5ELBG4P.js";
|
|
33
|
+
import "../../chunk-CVGW37OQ.js";
|
|
34
|
+
import "../../chunk-XPVA66OB.js";
|
|
35
35
|
import "../../chunk-IHQZUXB6.js";
|
|
36
36
|
import "../../chunk-ZR7UHHH2.js";
|
|
37
37
|
import "../../chunk-43HP4DQZ.js";
|
|
38
|
-
import "../../chunk-
|
|
38
|
+
import "../../chunk-MOM77KQ5.js";
|
|
39
39
|
import "../../chunk-J5UEW4B7.js";
|
|
40
40
|
import "../../chunk-R7PMHHKJ.js";
|
|
41
41
|
export {
|
package/lib/iota/builtin/0x2.js
CHANGED
|
@@ -65,23 +65,23 @@ import {
|
|
|
65
65
|
versioned,
|
|
66
66
|
zklogin_verified_id,
|
|
67
67
|
zklogin_verified_issuer
|
|
68
|
-
} from "../../chunk-
|
|
69
|
-
import "../../chunk-
|
|
70
|
-
import "../../chunk-
|
|
71
|
-
import "../../chunk-
|
|
72
|
-
import "../../chunk-
|
|
68
|
+
} from "../../chunk-Z4Z4NDFW.js";
|
|
69
|
+
import "../../chunk-K47QREBW.js";
|
|
70
|
+
import "../../chunk-L4FFB2H3.js";
|
|
71
|
+
import "../../chunk-BZ6EYE2I.js";
|
|
72
|
+
import "../../chunk-VUKYZFM7.js";
|
|
73
73
|
import "../../chunk-QUAXYDJ7.js";
|
|
74
74
|
import "../../chunk-ZJYIROIV.js";
|
|
75
75
|
import "../../chunk-742S42NO.js";
|
|
76
76
|
import "../../chunk-7IDGS56O.js";
|
|
77
|
-
import "../../chunk-
|
|
78
|
-
import "../../chunk-
|
|
79
|
-
import "../../chunk-
|
|
80
|
-
import "../../chunk-
|
|
77
|
+
import "../../chunk-COOUCU37.js";
|
|
78
|
+
import "../../chunk-U5ELBG4P.js";
|
|
79
|
+
import "../../chunk-CVGW37OQ.js";
|
|
80
|
+
import "../../chunk-XPVA66OB.js";
|
|
81
81
|
import "../../chunk-IHQZUXB6.js";
|
|
82
82
|
import "../../chunk-ZR7UHHH2.js";
|
|
83
83
|
import "../../chunk-43HP4DQZ.js";
|
|
84
|
-
import "../../chunk-
|
|
84
|
+
import "../../chunk-MOM77KQ5.js";
|
|
85
85
|
import "../../chunk-J5UEW4B7.js";
|
|
86
86
|
import "../../chunk-R7PMHHKJ.js";
|
|
87
87
|
export {
|
package/lib/iota/builtin/0x3.js
CHANGED
|
@@ -12,24 +12,24 @@ import {
|
|
|
12
12
|
validator_set,
|
|
13
13
|
validator_wrapper,
|
|
14
14
|
voting_power
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-N4IJSN3I.js";
|
|
16
|
+
import "../../chunk-Z4Z4NDFW.js";
|
|
17
|
+
import "../../chunk-K47QREBW.js";
|
|
18
|
+
import "../../chunk-L4FFB2H3.js";
|
|
19
|
+
import "../../chunk-BZ6EYE2I.js";
|
|
20
|
+
import "../../chunk-VUKYZFM7.js";
|
|
21
21
|
import "../../chunk-QUAXYDJ7.js";
|
|
22
22
|
import "../../chunk-ZJYIROIV.js";
|
|
23
23
|
import "../../chunk-742S42NO.js";
|
|
24
24
|
import "../../chunk-7IDGS56O.js";
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-COOUCU37.js";
|
|
26
|
+
import "../../chunk-U5ELBG4P.js";
|
|
27
|
+
import "../../chunk-CVGW37OQ.js";
|
|
28
|
+
import "../../chunk-XPVA66OB.js";
|
|
29
29
|
import "../../chunk-IHQZUXB6.js";
|
|
30
30
|
import "../../chunk-ZR7UHHH2.js";
|
|
31
31
|
import "../../chunk-43HP4DQZ.js";
|
|
32
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-MOM77KQ5.js";
|
|
33
33
|
import "../../chunk-J5UEW4B7.js";
|
|
34
34
|
import "../../chunk-R7PMHHKJ.js";
|
|
35
35
|
export {
|