@sentio/sdk 2.13.3-rc.2 → 2.13.3-rc.3
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.d.ts +1 -2
- package/lib/aptos/builtin/0x1.js +1 -1
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +1 -2
- package/lib/aptos/builtin/0x3.js +1 -1
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +1 -2
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/file.js +2 -1
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/index.d.ts +1 -0
- package/lib/eth/index.js +1 -0
- package/lib/eth/index.js.map +1 -1
- package/lib/move/abstract-codegen.js +1 -2
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/move/index.d.ts +1 -0
- package/lib/move/index.js +1 -0
- package/lib/move/index.js.map +1 -1
- package/lib/solana/codegen/codegen.js +1 -1
- package/lib/solana/codegen/codegen.js.map +1 -1
- package/lib/solana/index.d.ts +1 -0
- package/lib/solana/index.js +1 -0
- package/lib/solana/index.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +1 -2
- package/lib/sui/builtin/0x1.js +1 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +1 -2
- package/lib/sui/builtin/0x2.js +1 -1
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +1 -2
- package/lib/sui/builtin/0x3.js +1 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/package.json +34 -22
- package/src/aptos/builtin/0x1.ts +6 -2
- package/src/aptos/builtin/0x3.ts +6 -2
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +1 -1
- package/src/eth/builtin/internal/erc1155-processor.ts +1 -1
- package/src/eth/builtin/internal/erc20-processor.ts +1 -1
- package/src/eth/builtin/internal/erc20bytes-processor.ts +1 -1
- package/src/eth/builtin/internal/erc721-processor.ts +1 -1
- package/src/eth/builtin/internal/weth9-processor.ts +1 -1
- package/src/eth/codegen/file.ts +2 -1
- package/src/eth/index.ts +2 -0
- package/src/move/abstract-codegen.ts +1 -2
- package/src/move/index.ts +2 -0
- package/src/solana/codegen/codegen.ts +1 -1
- package/src/solana/index.ts +2 -0
- package/src/sui/builtin/0x1.ts +6 -2
- package/src/sui/builtin/0x2.ts +6 -2
- package/src/sui/builtin/0x3.ts +6 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/solana/codegen/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,UAAU,OAAO,CAAC,OAAe,EAAE,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK;IAC3G,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAM;KACP;IAED,MAAM,SAAS,GAAG,EAAE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M;YACT,OAAO,QAAQ,CAAA;QACjB;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,GAAG,EAAE;SACZ,WAAW,EAAE;SACb,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC;SACtC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;SACvC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,EAAE,CAAC;SACnF,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAA;AACtD,CAAC","sourcesContent":["import path from 'path'\nimport fs from 'fs'\nimport chalk from 'chalk'\nimport { Idl } from '@project-serum/anchor'\nimport { IdlAccountItem, IdlField, IdlInstruction, IdlType } from '@project-serum/anchor/dist/cjs/idl.js'\n\nexport function codegen(abisDir: string, targetPath = path.join('src', 'types', 'solana'), genExample = false) {\n if (!fs.existsSync(abisDir)) {\n return\n }\n\n const abisFiles = fs.readdirSync(abisDir)\n let numFiles = 0\n\n for (const file of abisFiles) {\n if (path.extname(file) === '.json') {\n if (!fs.existsSync(targetPath)) {\n fs.mkdirSync(targetPath, { recursive: true })\n }\n const idlContent = fs.readFileSync(path.join(abisDir, file), 'utf-8')\n const idlObj = JSON.parse(idlContent)\n const idlName = idlObj.name\n const idlFile = path.join(targetPath, idlName + '.ts')\n fs.writeFileSync(idlFile, `export const ${idlName}_idl = ${idlContent}`)\n fs.writeFileSync(path.join(targetPath, `${idlName}_processor.ts`), codeGenSolanaIdlProcessor(idlObj))\n numFiles += 2\n }\n }\n\n console.log(chalk.green(`Generated ${numFiles} for Solana`))\n}\n\nfunction codeGenSolanaIdlProcessor(idlObj: Idl): string {\n const idlName = idlObj.name\n const idlNamePascalCase = toPascalCase(idlName)\n const instructions: any[] = idlObj.instructions\n return `import { BorshInstructionCoder, Instruction, Idl } from '@
|
1
|
+
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/solana/codegen/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,UAAU,OAAO,CAAC,OAAe,EAAE,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK;IAC3G,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAM;KACP;IAED,MAAM,SAAS,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,GAAG,CAAC,CAAA;IAEhB,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,EAAE;YAClC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;gBAC9B,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;aAC9C;YACD,MAAM,UAAU,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;YACrE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;YACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAA;YAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,C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ent":["import path from 'path'\nimport fs from 'fs'\nimport chalk from 'chalk'\nimport { Idl } from '@project-serum/anchor'\nimport { IdlAccountItem, IdlField, IdlInstruction, IdlType } from '@project-serum/anchor/dist/cjs/idl.js'\n\nexport function codegen(abisDir: string, targetPath = path.join('src', 'types', 'solana'), genExample = false) {\n if (!fs.existsSync(abisDir)) {\n return\n }\n\n const abisFiles = fs.readdirSync(abisDir)\n let numFiles = 0\n\n for (const file of abisFiles) {\n if (path.extname(file) === '.json') {\n if (!fs.existsSync(targetPath)) {\n fs.mkdirSync(targetPath, { recursive: true })\n }\n const idlContent = fs.readFileSync(path.join(abisDir, file), 'utf-8')\n const idlObj = JSON.parse(idlContent)\n const idlName = idlObj.name\n const idlFile = path.join(targetPath, idlName + '.ts')\n fs.writeFileSync(idlFile, `export const ${idlName}_idl = ${idlContent}`)\n fs.writeFileSync(path.join(targetPath, `${idlName}_processor.ts`), codeGenSolanaIdlProcessor(idlObj))\n numFiles += 2\n }\n }\n\n console.log(chalk.green(`Generated ${numFiles} for Solana`))\n}\n\nfunction codeGenSolanaIdlProcessor(idlObj: Idl): string {\n const idlName = idlObj.name\n const idlNamePascalCase = toPascalCase(idlName)\n const instructions: any[] = idlObj.instructions\n return `import { BorshInstructionCoder, Instruction, Idl } from '@sentio/sdk/solana'\nimport { SolanaBaseProcessor, SolanaContext, SolanaBindOptions } from \"@sentio/sdk/solana\"\nimport { ${idlName}_idl } from \"./${idlName}.js\"\nimport { PublicKey } from '@solana/web3.js'\n\nexport class ${idlNamePascalCase}Processor extends SolanaBaseProcessor {\n static DEFAULT_OPTIONS = {\n name: '${idlNamePascalCase}',\n instructionCoder: new BorshInstructionCoder(${idlName}_idl as Idl)\n }\n\n static bind(options: SolanaBindOptions): ${idlNamePascalCase}Processor {\n return new ${idlNamePascalCase}Processor( { ...${idlNamePascalCase}Processor.DEFAULT_OPTIONS, ...options })\n }\n\n ${instructions.map((ins) => codeGenSolanaInstruction(idlNamePascalCase, ins)).join('')}\n}\n `\n}\n\nfunction codeGenSolanaInstruction(idlName: string, ins: IdlInstruction): string {\n const instructionName = ins.name\n\n const argsType = codeGenInstructionArgsType(ins.args)\n const accountType = codeGenAccountType(ins.accounts)\n\n return `\n on${\n instructionName.charAt(0).toUpperCase() + instructionName.slice(1)\n }(handler: (args: ${argsType}, accounts: ${accountType}, ctx: SolanaContext) => void): ${idlName}Processor {\n this.onInstruction('${instructionName}', (ins: Instruction, ctx, accounts: string[]) => {\n const origin = ins.data as any\n if (origin) {\n const data = ${codeGenInstructionArgs(ins.args)}\n const accountData = ${codeGenAccountTypeArgs(ins.accounts)}\n handler(data, accountData, ctx)\n }\n })\n return this\n }\n `\n}\n\nfunction codeGenInstructionArgs(args: IdlField[]): string {\n return `{ ${args.map((arg) => codeGenInstructionArg(arg.name, arg.type)).join(', ')} }`\n}\n\nfunction codeGenInstructionArg(name: string, type: IdlType): string {\n const mType = mapType(type)\n if (mType === 'bigint') {\n return `${name}: BigInt(origin.${name}.toString())`\n }\n return `${name}: origin.${name} as ${mType}`\n}\n\nfunction codeGenInstructionArgsType(args: IdlField[]): string {\n return `{ ${args.map((arg) => arg.name + ': ' + mapType(arg.type)).join(', ')} }`\n}\n\nfunction codeGenAccountType(args: IdlAccountItem[]): string {\n return `{ ${args.map((arg) => arg.name + ': string').join(', ')} }`\n}\n\nfunction codeGenAccountTypeArgs(args: IdlAccountItem[]): string {\n return `{ ${args.map((arg, idx) => `${arg.name}: accounts[${idx}]`).join(', ')} }`\n}\n\n// Reference: https://github.com/coral-xyz/anchor/blob/93332766f13e86efbe77c9986722731742317ede/ts/src/program/namespace/types.ts#L104\nfunction mapType(tpe: IdlType): string {\n // TODO handle complex type\n switch (tpe) {\n case 'publicKey':\n return 'PublicKey'\n case 'bool':\n return 'boolean'\n case 'string':\n return 'string'\n case 'u8':\n case 'i8':\n case 'u16':\n case 'i16':\n case 'u32':\n case 'i32':\n case 'f32':\n case 'f64':\n return 'number'\n case 'u64':\n case 'i64':\n case 'u128':\n case 'i128':\n return 'bigint'\n default:\n return 'any'\n }\n}\n\nfunction toPascalCase(str: string) {\n return `${str}`\n .toLowerCase()\n .replace(new RegExp(/[-_]+/, 'g'), ' ')\n .replace(new RegExp(/[^\\w\\s]/, 'g'), '')\n .replace(new RegExp(/\\s+(.)(\\w*)/, 'g'), ($1, $2, $3) => `${$2.toUpperCase() + $3}`)\n .replace(new RegExp(/\\w/), (s) => s.toUpperCase())\n}\n"]}
|
package/lib/solana/index.d.ts
CHANGED
package/lib/solana/index.js
CHANGED
package/lib/solana/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/solana/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA","sourcesContent":["export * from './solana-plugin.js'\nexport * from './solana-context.js'\nexport * from './solana-processor.js'\nexport * from './solana-options.js'\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/solana/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AAEnC,OAAO,EAAE,qBAAqB,EAA8B,MAAM,uBAAuB,CAAA","sourcesContent":["export * from './solana-plugin.js'\nexport * from './solana-context.js'\nexport * from './solana-processor.js'\nexport * from './solana-options.js'\n\nexport { BorshInstructionCoder, type Instruction, type Idl } from '@project-serum/anchor'\n"]}
|
package/lib/sui/builtin/0x1.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { TypeDescriptor } from "@sentio/sdk/move";
|
1
|
+
import { TypeDescriptor, MoveFetchConfig } from "@sentio/sdk/move";
|
2
2
|
import { MoveCoder, SuiBindOptions, SuiBaseProcessor, TypedEventInstance, SuiContext } from "@sentio/sdk/sui";
|
3
|
-
import { MoveFetchConfig } from "@sentio/protos";
|
4
3
|
export declare namespace address { }
|
5
4
|
export declare namespace ascii {
|
6
5
|
type Char = string;
|
package/lib/sui/builtin/0x1.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/* tslint:disable */
|
3
3
|
/* eslint-disable */
|
4
4
|
/* Generated modules for account 0x1 */
|
5
|
-
import { TypeDescriptor, ANY_TYPE } from "@sentio/sdk/move";
|
5
|
+
import { TypeDescriptor, ANY_TYPE, } from "@sentio/sdk/move";
|
6
6
|
import { defaultMoveCoder, SuiBaseProcessor, SuiNetwork, } from "@sentio/sdk/sui";
|
7
7
|
export var ascii;
|
8
8
|
(function (ascii) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"0x1.js","sourceRoot":"","sources":["../../../src/sui/builtin/0x1.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AAEpB,uCAAuC;AAEvC,OAAO,EAAc,cAAc,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAEhB,UAAU,GAGX,MAAM,iBAAiB,CAAC;AAMzB,MAAM,KAAW,KAAK,CAsBrB;AAtBD,WAAiB,KAAK;IAEpB,IAAiB,IAAI,CAQpB;IARD,WAAiB,IAAI;QACN,eAAU,GAAG,kBAAkB,CAAC;QAE7C,MAAM,IAAI,GAAG,IAAI,cAAc,CAAO,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvD,SAAgB,IAAI;YAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC;QAFe,SAAI,OAEnB,CAAA;IACH,CAAC,EARgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAQpB;IAGD,IAAiB,MAAM,CAQtB;IARD,WAAiB,MAAM;QACR,iBAAU,GAAG,oBAAoB,CAAC;QAE/C,MAAM,IAAI,GAAG,IAAI,cAAc,CAAS,MAAM,CAAC,UAAU,CAA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AC/C,OAAO,IAAI,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,eAAe,CACb,IAAkE,EAClE,WAAsC;QAEtC,IAAI,CAAC,WAAW,CACd,IAAI,EACJ;YACE,IAAI,EAAE,qBAAqB;SAC5B,EACD,WAAW,CACZ,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;;SAzBU,SAAS;AA4BtB,WAAiB,SAAS;IAKxB,IAAiB,QAAQ,CAQxB;IARD,WAAiB,QAAQ;QACV,mBAAU,GAAG,0BAA0B,CAAC;QAErD,MAAM,IAAI,GAAG,IAAI,cAAc,CAAW,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE/D,SAAgB,IAAI;YAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC;QAFe,aAAI,OAEnB,CAAA;IACH,CAAC,EARgB,QAAQ,GAAR,kBAAQ,KAAR,kBAAQ,QAQxB;AAMH,CAAC,EAnBgB,SAAS,KAAT,SAAS,QAmBzB;AAID,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,6lnBAA6lnB,CAC9lnB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,KAAgB;IAC3C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QACtC,KAAK,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;KACtB;AACH,CAAC;AAED,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpD,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\n/* Generated modules for account 0x1 */\n\nimport { CallFilter, TypeDescriptor, ANY_TYPE } from \"@sentio/sdk/move\";\nimport {\n MoveCoder,\n defaultMoveCoder,\n SuiBindOptions,\n SuiBaseProcessor,\n TypedEventInstance,\n SuiNetwork,\n TypedFunctionPayload,\n SuiContext,\n} from \"@sentio/sdk/sui\";\nimport { MoveFetchConfig } from \"@sentio/protos\";\nimport { SuiAddress, ModuleClient } from \"@sentio/sdk/sui\";\n\nexport namespace address {}\n\nexport namespace ascii {\n export type Char = string;\n export namespace Char {\n export const TYPE_QNAME = \"0x1::ascii::Char\";\n\n const TYPE = new TypeDescriptor<Char>(Char.TYPE_QNAME);\n\n export function type(): TypeDescriptor<Char> {\n return TYPE.apply();\n }\n }\n\n export type String = string;\n export namespace String {\n export const TYPE_QNAME = \"0x1::ascii::String\";\n\n const TYPE = new TypeDescriptor<String>(String.TYPE_QNAME);\n\n export function type(): TypeDescriptor<String> {\n return TYPE.apply();\n }\n }\n}\n\nexport namespace bcs {}\n\nexport class bit_vector extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"bit_vector\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): bit_vector {\n return new bit_vector({ ...bit_vector.DEFAULT_OPTIONS, ...options });\n }\n\n onEventBitVector(\n func: (event: bit_vector.BitVectorInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): bit_vector {\n this.onMoveEvent(\n func,\n {\n type: \"bit_vector::BitVector\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace bit_vector {\n export interface BitVector {\n length: bigint;\n bit_field: Boolean[];\n }\n\n export namespace BitVector {\n export const TYPE_QNAME = \"0x1::bit_vector::BitVector\";\n\n const TYPE = new TypeDescriptor<BitVector>(BitVector.TYPE_QNAME);\n\n export function type(): TypeDescriptor<BitVector> {\n return TYPE.apply();\n }\n }\n\n export interface BitVectorInstance extends TypedEventInstance<BitVector> {\n data_decoded: BitVector;\n type_arguments: [];\n }\n}\n\nexport namespace debug {}\n\nexport class fixed_point32 extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"fixed_point32\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): fixed_point32 {\n return new fixed_point32({ ...fixed_point32.DEFAULT_OPTIONS, ...options });\n }\n\n onEventFixedPoint32(\n func: (event: fixed_point32.FixedPoint32Instance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): fixed_point32 {\n this.onMoveEvent(\n func,\n {\n type: \"fixed_point32::FixedPoint32\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace fixed_point32 {\n export interface FixedPoint32 {\n value: bigint;\n }\n\n export namespace FixedPoint32 {\n export const TYPE_QNAME = \"0x1::fixed_point32::FixedPoint32\";\n\n const TYPE = new TypeDescriptor<FixedPoint32>(FixedPoint32.TYPE_QNAME);\n\n export function type(): TypeDescriptor<FixedPoint32> {\n return TYPE.apply();\n }\n }\n\n export interface FixedPoint32Instance\n extends TypedEventInstance<FixedPoint32> {\n data_decoded: FixedPoint32;\n type_arguments: [];\n }\n}\n\nexport namespace hash {}\n\nexport namespace option {\n export type Option<T> = T | undefined;\n export namespace Option {\n export const TYPE_QNAME = \"0x1::option::Option\";\n\n const TYPE = new TypeDescriptor<Option<any>>(Option.TYPE_QNAME);\n\n export function type<T0>(\n arg0: TypeDescriptor<T0> = ANY_TYPE\n ): TypeDescriptor<Option<T0>> {\n return TYPE.apply(arg0);\n }\n }\n}\n\nexport class string_ extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"string\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): string_ {\n return new string_({ ...string_.DEFAULT_OPTIONS, ...options });\n }\n\n onEventString(\n func: (event: string_.StringInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): string_ {\n this.onMoveEvent(\n func,\n {\n type: \"string::String\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace string_ {\n export interface String {\n bytes: number[];\n }\n\n export namespace String {\n export const TYPE_QNAME = \"0x1::string::String\";\n\n const TYPE = new TypeDescriptor<String>(String.TYPE_QNAME);\n\n export function type(): TypeDescriptor<String> {\n return TYPE.apply();\n }\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n data_decoded: String;\n type_arguments: [];\n }\n}\n\nexport class type_name extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"type_name\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): type_name {\n return new type_name({ ...type_name.DEFAULT_OPTIONS, ...options });\n }\n\n onEventTypeName(\n func: (event: type_name.TypeNameInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): type_name {\n this.onMoveEvent(\n func,\n {\n type: \"type_name::TypeName\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace type_name {\n export interface TypeName {\n name: ascii.String;\n }\n\n export namespace TypeName {\n export const TYPE_QNAME = \"0x1::type_name::TypeName\";\n\n const TYPE = new TypeDescriptor<TypeName>(TypeName.TYPE_QNAME);\n\n export function type(): TypeDescriptor<TypeName> {\n return TYPE.apply();\n }\n }\n\n export interface TypeNameInstance extends TypedEventInstance<TypeName> {\n data_decoded: TypeName;\n type_arguments: [];\n }\n}\n\nexport namespace vector {}\n\nconst MODULES = JSON.parse(\n '{\"address\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[\"U64\"]}}},\"ascii\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"byte\",\"type\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[]},\"string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}]}}},\"bcs\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"to_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"length\",\"type\":\"U64\"},{\"name\":\"bit_field\",\"type\":{\"Vector\":\"Bool\"}}]}},\"exposedFunctions\":{\"is_index_set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"shift_left\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"unset\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]}}},\"debug\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"print\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[]}}},\"fixed_point32\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"value\",\"type\":\"U64\"}]}},\"exposedFunctions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]}}},\"hash\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"sha2_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[{\"constraints\":{\"abilities\":[]},\"isPhantom\":false}],\"fields\":[{\"name\":\"vec\",\"type\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposedFunctions\":{\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Vector\":\"U8\"}],\"return\":[]},\"bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"type_name\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"name\",\"type\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]}},\"exposedFunctions\":{\"borrow_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return\":[]},\"remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[]},\"singleton\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]}}}}'\n);\n\nexport function loadAllTypes(coder: MoveCoder) {\n for (const m of Object.values(MODULES)) {\n coder.load(m as any);\n }\n}\n\nloadAllTypes(defaultMoveCoder(SuiNetwork.MAIN_NET));\nloadAllTypes(defaultMoveCoder(SuiNetwork.TEST_NET));\n"]}
|
1
|
+
{"version":3,"file":"0x1.js","sourceRoot":"","sources":["../../../src/sui/builtin/0x1.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AAEpB,uCAAuC;AAEvC,OAAO,EAEL,cAAc,EACd,QAAQ,GAET,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,gBAAgB,EAE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MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,6lnBAA6lnB,CAC9lnB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,KAAgB;IAC3C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QACtC,KAAK,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;KACtB;AACH,CAAC;AAED,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpD,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\n/* Generated modules for account 0x1 */\n\nimport {\n CallFilter,\n TypeDescriptor,\n ANY_TYPE,\n MoveFetchConfig,\n} from \"@sentio/sdk/move\";\nimport {\n MoveCoder,\n defaultMoveCoder,\n SuiBindOptions,\n SuiBaseProcessor,\n TypedEventInstance,\n SuiNetwork,\n TypedFunctionPayload,\n SuiContext,\n} from \"@sentio/sdk/sui\";\nimport { SuiAddress, ModuleClient } from \"@sentio/sdk/sui\";\n\nexport namespace address {}\n\nexport namespace ascii {\n export type Char = string;\n export namespace Char {\n export const TYPE_QNAME = \"0x1::ascii::Char\";\n\n const TYPE = new TypeDescriptor<Char>(Char.TYPE_QNAME);\n\n export function type(): TypeDescriptor<Char> {\n return TYPE.apply();\n }\n }\n\n export type String = string;\n export namespace String {\n export const TYPE_QNAME = \"0x1::ascii::String\";\n\n const TYPE = new TypeDescriptor<String>(String.TYPE_QNAME);\n\n export function type(): TypeDescriptor<String> {\n return TYPE.apply();\n }\n }\n}\n\nexport namespace bcs {}\n\nexport class bit_vector extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"bit_vector\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): bit_vector {\n return new bit_vector({ ...bit_vector.DEFAULT_OPTIONS, ...options });\n }\n\n onEventBitVector(\n func: (event: bit_vector.BitVectorInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): bit_vector {\n this.onMoveEvent(\n func,\n {\n type: \"bit_vector::BitVector\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace bit_vector {\n export interface BitVector {\n length: bigint;\n bit_field: Boolean[];\n }\n\n export namespace BitVector {\n export const TYPE_QNAME = \"0x1::bit_vector::BitVector\";\n\n const TYPE = new TypeDescriptor<BitVector>(BitVector.TYPE_QNAME);\n\n export function type(): TypeDescriptor<BitVector> {\n return TYPE.apply();\n }\n }\n\n export interface BitVectorInstance extends TypedEventInstance<BitVector> {\n data_decoded: BitVector;\n type_arguments: [];\n }\n}\n\nexport namespace debug {}\n\nexport class fixed_point32 extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"fixed_point32\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): fixed_point32 {\n return new fixed_point32({ ...fixed_point32.DEFAULT_OPTIONS, ...options });\n }\n\n onEventFixedPoint32(\n func: (event: fixed_point32.FixedPoint32Instance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): fixed_point32 {\n this.onMoveEvent(\n func,\n {\n type: \"fixed_point32::FixedPoint32\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace fixed_point32 {\n export interface FixedPoint32 {\n value: bigint;\n }\n\n export namespace FixedPoint32 {\n export const TYPE_QNAME = \"0x1::fixed_point32::FixedPoint32\";\n\n const TYPE = new TypeDescriptor<FixedPoint32>(FixedPoint32.TYPE_QNAME);\n\n export function type(): TypeDescriptor<FixedPoint32> {\n return TYPE.apply();\n }\n }\n\n export interface FixedPoint32Instance\n extends TypedEventInstance<FixedPoint32> {\n data_decoded: FixedPoint32;\n type_arguments: [];\n }\n}\n\nexport namespace hash {}\n\nexport namespace option {\n export type Option<T> = T | undefined;\n export namespace Option {\n export const TYPE_QNAME = \"0x1::option::Option\";\n\n const TYPE = new TypeDescriptor<Option<any>>(Option.TYPE_QNAME);\n\n export function type<T0>(\n arg0: TypeDescriptor<T0> = ANY_TYPE\n ): TypeDescriptor<Option<T0>> {\n return TYPE.apply(arg0);\n }\n }\n}\n\nexport class string_ extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"string\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): string_ {\n return new string_({ ...string_.DEFAULT_OPTIONS, ...options });\n }\n\n onEventString(\n func: (event: string_.StringInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): string_ {\n this.onMoveEvent(\n func,\n {\n type: \"string::String\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace string_ {\n export interface String {\n bytes: number[];\n }\n\n export namespace String {\n export const TYPE_QNAME = \"0x1::string::String\";\n\n const TYPE = new TypeDescriptor<String>(String.TYPE_QNAME);\n\n export function type(): TypeDescriptor<String> {\n return TYPE.apply();\n }\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n data_decoded: String;\n type_arguments: [];\n }\n}\n\nexport class type_name extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"type_name\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): type_name {\n return new type_name({ ...type_name.DEFAULT_OPTIONS, ...options });\n }\n\n onEventTypeName(\n func: (event: type_name.TypeNameInstance, ctx: SuiContext) => void,\n fetchConfig?: Partial<MoveFetchConfig>\n ): type_name {\n this.onMoveEvent(\n func,\n {\n type: \"type_name::TypeName\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace type_name {\n export interface TypeName {\n name: ascii.String;\n }\n\n export namespace TypeName {\n export const TYPE_QNAME = \"0x1::type_name::TypeName\";\n\n const TYPE = new TypeDescriptor<TypeName>(TypeName.TYPE_QNAME);\n\n export function type(): TypeDescriptor<TypeName> {\n return TYPE.apply();\n }\n }\n\n export interface TypeNameInstance extends TypedEventInstance<TypeName> {\n data_decoded: TypeName;\n type_arguments: [];\n }\n}\n\nexport namespace vector {}\n\nconst MODULES = JSON.parse(\n '{\"address\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[\"U64\"]}}},\"ascii\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"byte\",\"type\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[]},\"string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}]}}},\"bcs\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"to_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"length\",\"type\":\"U64\"},{\"name\":\"bit_field\",\"type\":{\"Vector\":\"Bool\"}}]}},\"exposedFunctions\":{\"is_index_set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"shift_left\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"unset\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]}}},\"debug\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"print\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[]}}},\"fixed_point32\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"value\",\"type\":\"U64\"}]}},\"exposedFunctions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]}}},\"hash\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"sha2_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[{\"constraints\":{\"abilities\":[]},\"isPhantom\":false}],\"fields\":[{\"name\":\"vec\",\"type\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposedFunctions\":{\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Vector\":\"U8\"}],\"return\":[]},\"bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"type_name\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"name\",\"type\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]}},\"exposedFunctions\":{\"borrow_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return\":[]},\"remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[]},\"singleton\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]}}}}'\n);\n\nexport function loadAllTypes(coder: MoveCoder) {\n for (const m of Object.values(MODULES)) {\n coder.load(m as any);\n }\n}\n\nloadAllTypes(defaultMoveCoder(SuiNetwork.MAIN_NET));\nloadAllTypes(defaultMoveCoder(SuiNetwork.TEST_NET));\n"]}
|
package/lib/sui/builtin/0x2.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { CallFilter, TypeDescriptor } from "@sentio/sdk/move";
|
1
|
+
import { CallFilter, TypeDescriptor, MoveFetchConfig } from "@sentio/sdk/move";
|
2
2
|
import { MoveCoder, SuiBindOptions, SuiBaseProcessor, TypedEventInstance, TypedFunctionPayload, SuiContext } from "@sentio/sdk/sui";
|
3
|
-
import { MoveFetchConfig } from "@sentio/protos";
|
4
3
|
import { SuiAddress } from "@sentio/sdk/sui";
|
5
4
|
import * as _0x1 from "./0x1.js";
|
6
5
|
export declare namespace address { }
|
package/lib/sui/builtin/0x2.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/* tslint:disable */
|
3
3
|
/* eslint-disable */
|
4
4
|
/* Generated modules for account 0x2 */
|
5
|
-
import { TypeDescriptor, ANY_TYPE } from "@sentio/sdk/move";
|
5
|
+
import { TypeDescriptor, ANY_TYPE, } from "@sentio/sdk/move";
|
6
6
|
import { defaultMoveCoder, SuiBaseProcessor, SuiNetwork, } from "@sentio/sdk/sui";
|
7
7
|
import * as _0x1 from "./0x1.js";
|
8
8
|
export var bag;
|