@sentio/sdk 2.6.0-rc.1 → 2.6.0-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/move/abstract-codegen.d.ts +2 -0
- package/lib/move/abstract-codegen.js +72 -6
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/move/abstract-move-coder.js +0 -2
- package/lib/move/abstract-move-coder.js.map +1 -1
- package/lib/move/index.d.ts +0 -1
- package/lib/move/index.js +0 -1
- package/lib/move/index.js.map +1 -1
- package/lib/move/utils.d.ts +2 -0
- package/lib/move/utils.js +3 -0
- package/lib/move/utils.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +3 -16
- package/lib/sui/builtin/0x1.js +0 -25
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +68 -85
- package/lib/sui/builtin/0x2.js +1 -29
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/codegen/codegen.js +21 -1
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/move-coder.d.ts +1 -0
- package/lib/sui/move-coder.js +11 -0
- package/lib/sui/move-coder.js.map +1 -1
- package/lib/sui/sui-processor.js +1 -0
- package/lib/sui/sui-processor.js.map +1 -1
- package/package.json +4 -4
- package/src/move/abstract-codegen.ts +81 -6
- package/src/move/abstract-move-coder.ts +0 -2
- package/src/move/index.ts +0 -1
- package/src/move/utils.ts +6 -0
- package/src/sui/builtin/0x1.ts +3 -39
- package/src/sui/builtin/0x2.ts +69 -108
- package/src/sui/codegen/codegen.ts +23 -1
- package/src/sui/move-coder.ts +12 -0
- package/src/sui/sui-processor.ts +1 -0
- package/lib/move/ts-type.d.ts +0 -2
- package/lib/move/ts-type.js +0 -77
- package/lib/move/ts-type.js.map +0 -1
- package/src/move/ts-type.ts +0 -86
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"0x1.js","sourceRoot":"","sources":["../../../src/sui/builtin/0x1.ts"],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;QACtC,KAAK,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;KACtB;AACH,CAAC;AAED,YAAY,CAAC,gBAAgB,EAAE,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 } 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 class ascii extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"ascii\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): ascii {\n return new ascii({ ...ascii.DEFAULT_OPTIONS, ...options });\n }\n\n onEventChar(\n func: (event: ascii.CharInstance, ctx: SuiContext) => void,\n fetchConfig?: MoveFetchConfig\n ): ascii {\n this.onMoveEvent(\n func,\n {\n type: \"ascii::Char\",\n },\n fetchConfig\n );\n return this;\n }\n\n onEventString(\n func: (event: ascii.StringInstance, ctx: SuiContext) => void,\n fetchConfig?: MoveFetchConfig\n ): ascii {\n this.onMoveEvent(\n func,\n {\n type: \"ascii::String\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace ascii {\n export class Char {\n static TYPE_QNAME = \"0x1::ascii::Char\";\n byte: number;\n }\n\n export interface CharInstance extends TypedEventInstance<Char> {\n fields_decoded: Char;\n type_arguments: [];\n }\n\n export class String {\n static TYPE_QNAME = \"0x1::ascii::String\";\n bytes: string;\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n fields_decoded: String;\n type_arguments: [];\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?: 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 class BitVector {\n static TYPE_QNAME = \"0x1::bit_vector::BitVector\";\n length: bigint;\n bit_field: Boolean[];\n }\n\n export interface BitVectorInstance extends TypedEventInstance<BitVector> {\n fields_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?: 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 class FixedPoint32 {\n static TYPE_QNAME = \"0x1::fixed_point32::FixedPoint32\";\n value: bigint;\n }\n\n export interface FixedPoint32Instance\n extends TypedEventInstance<FixedPoint32> {\n fields_decoded: FixedPoint32;\n type_arguments: [];\n }\n}\n\nexport namespace hash {}\n\nexport class option extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"option\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): option {\n return new option({ ...option.DEFAULT_OPTIONS, ...options });\n }\n\n onEventOption(\n func: (event: option.OptionInstance, ctx: SuiContext) => void,\n fetchConfig?: MoveFetchConfig\n ): option {\n this.onMoveEvent(\n func,\n {\n type: \"option::Option\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace option {\n export class Option<T0> {\n static TYPE_QNAME = \"0x1::option::Option\";\n vec: T0[] | string;\n }\n\n export interface OptionInstance extends TypedEventInstance<Option<any>> {\n fields_decoded: Option<any>;\n type_arguments: [string];\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?: 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 class String {\n static TYPE_QNAME = \"0x1::string::String\";\n bytes: string;\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n fields_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?: 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 class TypeName {\n static TYPE_QNAME = \"0x1::type_name::TypeName\";\n name: ascii.String;\n }\n\n export interface TypeNameInstance extends TypedEventInstance<TypeName> {\n fields_decoded: TypeName;\n type_arguments: [];\n }\n}\n\nexport namespace vector {}\n\nconst MODULES = JSON.parse(\n '{\"address\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[],\"return_\":[\"U64\"]}}},\"ascii\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"byte\",\"type_\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"bytes\",\"type_\":{\"Vector\":\"U8\"}}]}},\"exposed_functions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}],\"return_\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}],\"return_\":[]},\"string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]}}]}}},\"bcs\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"to_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"length\",\"type_\":\"U64\"},{\"name\":\"bit_field\",\"type_\":{\"Vector\":\"Bool\"}}]}},\"exposed_functions\":{\"is_index_set\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]},\"shift_left\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]},\"unset\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]}}},\"debug\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"print\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[],\"return_\":[]}}},\"fixed_point32\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"value\",\"type_\":\"U64\"}]}},\"exposed_functions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]}}},\"hash\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"sha2_256\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[{\"constraints\":{\"abilities\":[]},\"is_phantom\":false}],\"fields\":[{\"name\":\"vec\",\"type_\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposed_functions\":{\"borrow\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"bytes\",\"type_\":{\"Vector\":\"U8\"}}]}},\"exposed_functions\":{\"append\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Vector\":\"U8\"}],\"return_\":[]},\"bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[]},\"is_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},\"U64\",\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]}}},\"type_name\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"name\",\"type_\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}]}},\"exposed_functions\":{\"borrow_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]}}},\"vector\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"append\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return_\":[]},\"borrow\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return_\":[]},\"empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return_\":[]},\"is_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return_\":[]},\"remove\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[]},\"singleton\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return_\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"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());\n"]}
|
1
|
+
{"version":3,"file":"0x1.js","sourceRoot":"","sources":["../../../src/sui/builtin/0x1.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AAKpB,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAEhB,UAAU,GAGX,MAAM,iBAAiB,CAAC;AAMzB,MAAM,OAAO,KAAM,SAAQ,gBAAgB;IACzC,YAAY,OAAuB;QACjC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,CAAC,eAAe,GAAmB;QACvC,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,UAAU,CAAC,QAAQ;KAC7B,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,UAAmC,EAAE;QAC/C,OAAO,IAAI,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,WAAW,CACT,IAA0D,EAC1D,WAA6B;QAE7B,IAAI,CAAC,WAAW,CACd,IAAI,EACJ;YACE,IAAI,EAAE,aAAa;SACpB,EACD,WAAW,CACZ,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,aAAa,CACX,IAA4D,EAC5D,WAA6B;QAE7B,IAAI,CAAC,WAAW,CACd,IAAI,EACJ;YACE,IAAI,EAAE,eAAe;SACtB,EACD,WAAW,CACZ,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;;AAGH,WAAiB,KAAK;IACpB,MAAa,IAAI;QACf,MAA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AuB;QACjC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC;IACD,MAAM,CAAC,eAAe,GAAmB;QACvC,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,UAAU,CAAC,QAAQ;KAC7B,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,UAAmC,EAAE;QAC/C,OAAO,IAAI,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,eAAe,CACb,IAAkE,EAClE,WAA6B;QAE7B,IAAI,CAAC,WAAW,CACd,IAAI,EACJ;YACE,IAAI,EAAE,qBAAqB;SAC5B,EACD,WAAW,CACZ,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;;AAGH,WAAiB,SAAS;IACxB,MAAa,QAAQ;QACnB,MAAM,CAAC,UAAU,GAAG,0BAA0B,CAAC;QAC/C,IAAI,CAAe;;IAFR,kBAAQ,WAGpB,CAAA;AAMH,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB;AAID,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,68nBAA68nB,CAC98nB,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,EAAE,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 } 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 class ascii extends SuiBaseProcessor {\n constructor(options: SuiBindOptions) {\n super(\"ascii\", options);\n }\n static DEFAULT_OPTIONS: SuiBindOptions = {\n address: \"0x1\",\n network: SuiNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<SuiBindOptions> = {}): ascii {\n return new ascii({ ...ascii.DEFAULT_OPTIONS, ...options });\n }\n\n onEventChar(\n func: (event: ascii.CharInstance, ctx: SuiContext) => void,\n fetchConfig?: MoveFetchConfig\n ): ascii {\n this.onMoveEvent(\n func,\n {\n type: \"ascii::Char\",\n },\n fetchConfig\n );\n return this;\n }\n\n onEventString(\n func: (event: ascii.StringInstance, ctx: SuiContext) => void,\n fetchConfig?: MoveFetchConfig\n ): ascii {\n this.onMoveEvent(\n func,\n {\n type: \"ascii::String\",\n },\n fetchConfig\n );\n return this;\n }\n}\n\nexport namespace ascii {\n export class Char {\n static TYPE_QNAME = \"0x1::ascii::Char\";\n byte: number;\n }\n\n export interface CharInstance extends TypedEventInstance<Char> {\n fields_decoded: Char;\n type_arguments: [];\n }\n\n export class String {\n static TYPE_QNAME = \"0x1::ascii::String\";\n bytes: number[];\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n fields_decoded: String;\n type_arguments: [];\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?: 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 class BitVector {\n static TYPE_QNAME = \"0x1::bit_vector::BitVector\";\n length: bigint;\n bit_field: Boolean[];\n }\n\n export interface BitVectorInstance extends TypedEventInstance<BitVector> {\n fields_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?: 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 class FixedPoint32 {\n static TYPE_QNAME = \"0x1::fixed_point32::FixedPoint32\";\n value: bigint;\n }\n\n export interface FixedPoint32Instance\n extends TypedEventInstance<FixedPoint32> {\n fields_decoded: FixedPoint32;\n type_arguments: [];\n }\n}\n\nexport namespace hash {}\n\nexport namespace option {\n export type Option<T> = T | undefined;\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?: 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 class String {\n static TYPE_QNAME = \"0x1::string::String\";\n bytes: number[];\n }\n\n export interface StringInstance extends TypedEventInstance<String> {\n fields_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?: 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 class TypeName {\n static TYPE_QNAME = \"0x1::type_name::TypeName\";\n name: ascii.String;\n }\n\n export interface TypeNameInstance extends TypedEventInstance<TypeName> {\n fields_decoded: TypeName;\n type_arguments: [];\n }\n}\n\nexport namespace vector {}\n\nconst MODULES = JSON.parse(\n '{\"address\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[],\"return_\":[\"U64\"]}}},\"ascii\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"byte\",\"type_\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"bytes\",\"type_\":{\"Vector\":\"U8\"}}]}},\"exposed_functions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}],\"return_\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U8\"],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"type_arguments\":[]}}],\"return_\":[]},\"string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]}}]}}},\"bcs\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"to_bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"length\",\"type_\":\"U64\"},{\"name\":\"bit_field\",\"type_\":{\"Vector\":\"Bool\"}}]}},\"exposed_functions\":{\"is_index_set\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]},\"shift_left\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]},\"unset\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"type_arguments\":[]}}},\"U64\"],\"return_\":[]}}},\"debug\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"print\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[],\"return_\":[]}}},\"fixed_point32\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"value\",\"type_\":\"U64\"}]}},\"exposed_functions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"type_arguments\":[]}}],\"return_\":[\"U64\"]}}},\"hash\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"sha2_256\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[{\"constraints\":{\"abilities\":[]},\"is_phantom\":false}],\"fields\":[{\"name\":\"vec\",\"type_\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposed_functions\":{\"borrow\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}}],\"return_\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"TypeParameter\":0}]}}],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"bytes\",\"type_\":{\"Vector\":\"U8\"}}]}},\"exposed_functions\":{\"append\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Vector\":\"U8\"}],\"return_\":[]},\"bytes\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[]},\"is_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}}],\"return_\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}},\"U64\",\"U64\"],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"type_arguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"type_arguments\":[]}}]}}},\"type_name\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"type_parameters\":[],\"fields\":[{\"name\":\"name\",\"type_\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}]}},\"exposed_functions\":{\"borrow_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"type_arguments\":[]}}],\"return_\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"type_arguments\":[]}}]}}},\"vector\":{\"file_format_version\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposed_functions\":{\"append\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return_\":[]},\"borrow\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return_\":[]},\"empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return_\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return_\":[]},\"is_empty\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return_\":[]},\"remove\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return_\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return_\":[]},\"singleton\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return_\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return_\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"is_entry\":false,\"type_parameters\":[{\"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());\n"]}
|
package/lib/sui/builtin/0x2.d.ts
CHANGED
@@ -30,7 +30,7 @@ export declare class bcs extends SuiBaseProcessor {
|
|
30
30
|
export declare namespace bcs {
|
31
31
|
class BCS {
|
32
32
|
static TYPE_QNAME: string;
|
33
|
-
bytes:
|
33
|
+
bytes: number[];
|
34
34
|
}
|
35
35
|
interface BCSInstance extends TypedEventInstance<BCS> {
|
36
36
|
fields_decoded: BCS;
|
@@ -53,11 +53,7 @@ export declare class coin extends SuiBaseProcessor {
|
|
53
53
|
onEventCurrencyCreated(func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): coin;
|
54
54
|
}
|
55
55
|
export declare namespace coin {
|
56
|
-
|
57
|
-
static TYPE_QNAME: string;
|
58
|
-
id: object_.UID;
|
59
|
-
balance: balance.Balance<T0>;
|
60
|
-
}
|
56
|
+
type Coin<T> = string;
|
61
57
|
class CoinMetadata<T0> {
|
62
58
|
static TYPE_QNAME: string;
|
63
59
|
id: object_.UID;
|
@@ -128,7 +124,7 @@ export declare namespace devnet_nft {
|
|
128
124
|
}
|
129
125
|
class MintNFTEvent {
|
130
126
|
static TYPE_QNAME: string;
|
131
|
-
object_id:
|
127
|
+
object_id: object_.ID;
|
132
128
|
creator: SuiAddress;
|
133
129
|
name: string;
|
134
130
|
}
|
@@ -140,8 +136,8 @@ export declare namespace devnet_nft {
|
|
140
136
|
arguments_decoded: [];
|
141
137
|
type_arguments: [];
|
142
138
|
}
|
143
|
-
interface MintPayload extends TypedFunctionPayload<[
|
144
|
-
arguments_decoded: [
|
139
|
+
interface MintPayload extends TypedFunctionPayload<[number[], number[], number[]]> {
|
140
|
+
arguments_decoded: [number[], number[], number[]];
|
145
141
|
type_arguments: [];
|
146
142
|
}
|
147
143
|
interface UpdateDescriptionPayload extends TypedFunctionPayload<[SuiAddress]> {
|
@@ -158,7 +154,7 @@ export declare class digest extends SuiBaseProcessor {
|
|
158
154
|
export declare namespace digest {
|
159
155
|
class Sha3256Digest {
|
160
156
|
static TYPE_QNAME: string;
|
161
|
-
digest:
|
157
|
+
digest: number[];
|
162
158
|
}
|
163
159
|
interface Sha3256DigestInstance extends TypedEventInstance<Sha3256Digest> {
|
164
160
|
fields_decoded: Sha3256Digest;
|
@@ -201,7 +197,7 @@ export declare class elliptic_curve extends SuiBaseProcessor {
|
|
201
197
|
export declare namespace elliptic_curve {
|
202
198
|
class RistrettoPoint {
|
203
199
|
static TYPE_QNAME: string;
|
204
|
-
value:
|
200
|
+
value: number[];
|
205
201
|
}
|
206
202
|
interface RistrettoPointInstance extends TypedEventInstance<RistrettoPoint> {
|
207
203
|
fields_decoded: RistrettoPoint;
|
@@ -209,7 +205,7 @@ export declare namespace elliptic_curve {
|
|
209
205
|
}
|
210
206
|
class Scalar {
|
211
207
|
static TYPE_QNAME: string;
|
212
|
-
value:
|
208
|
+
value: number[];
|
213
209
|
}
|
214
210
|
interface ScalarInstance extends TypedEventInstance<Scalar> {
|
215
211
|
fields_decoded: Scalar;
|
@@ -247,10 +243,10 @@ export declare class groth16 extends SuiBaseProcessor {
|
|
247
243
|
export declare namespace groth16 {
|
248
244
|
class PreparedVerifyingKey {
|
249
245
|
static TYPE_QNAME: string;
|
250
|
-
vk_gamma_abc_g1_bytes:
|
251
|
-
alpha_g1_beta_g2_bytes:
|
252
|
-
gamma_g2_neg_pc_bytes:
|
253
|
-
delta_g2_neg_pc_bytes:
|
246
|
+
vk_gamma_abc_g1_bytes: number[];
|
247
|
+
alpha_g1_beta_g2_bytes: number[];
|
248
|
+
gamma_g2_neg_pc_bytes: number[];
|
249
|
+
delta_g2_neg_pc_bytes: number[];
|
254
250
|
}
|
255
251
|
interface PreparedVerifyingKeyInstance extends TypedEventInstance<PreparedVerifyingKey> {
|
256
252
|
fields_decoded: PreparedVerifyingKey;
|
@@ -258,7 +254,7 @@ export declare namespace groth16 {
|
|
258
254
|
}
|
259
255
|
class ProofPoints {
|
260
256
|
static TYPE_QNAME: string;
|
261
|
-
bytes:
|
257
|
+
bytes: number[];
|
262
258
|
}
|
263
259
|
interface ProofPointsInstance extends TypedEventInstance<ProofPoints> {
|
264
260
|
fields_decoded: ProofPoints;
|
@@ -266,7 +262,7 @@ export declare namespace groth16 {
|
|
266
262
|
}
|
267
263
|
class PublicProofInputs {
|
268
264
|
static TYPE_QNAME: string;
|
269
|
-
bytes:
|
265
|
+
bytes: number[];
|
270
266
|
}
|
271
267
|
interface PublicProofInputsInstance extends TypedEventInstance<PublicProofInputs> {
|
272
268
|
fields_decoded: PublicProofInputs;
|
@@ -321,8 +317,8 @@ export declare namespace locked_coin {
|
|
321
317
|
balance: balance.Balance<T0>;
|
322
318
|
locked_until_epoch: epoch_time_lock.EpochTimeLock;
|
323
319
|
}
|
324
|
-
interface LockCoinPayload<T0 = any> extends TypedFunctionPayload<[
|
325
|
-
arguments_decoded: [
|
320
|
+
interface LockCoinPayload<T0 = any> extends TypedFunctionPayload<[coin.Coin<T0>, SuiAddress, bigint]> {
|
321
|
+
arguments_decoded: [coin.Coin<T0>, SuiAddress, bigint];
|
326
322
|
type_arguments: [string];
|
327
323
|
}
|
328
324
|
interface UnlockCoinPayload<T0 = any> extends TypedFunctionPayload<[locked_coin.LockedCoin<T0>]> {
|
@@ -331,24 +327,11 @@ export declare namespace locked_coin {
|
|
331
327
|
}
|
332
328
|
}
|
333
329
|
export declare namespace math { }
|
334
|
-
export declare class object_ extends SuiBaseProcessor {
|
335
|
-
constructor(options: SuiBindOptions);
|
336
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
337
|
-
static bind(options?: Partial<SuiBindOptions>): object_;
|
338
|
-
onEventID(func: (event: object_.IDInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): object_;
|
339
|
-
}
|
340
330
|
export declare namespace object_ {
|
341
|
-
|
342
|
-
static TYPE_QNAME: string;
|
343
|
-
bytes: SuiAddress;
|
344
|
-
}
|
345
|
-
interface IDInstance extends TypedEventInstance<ID> {
|
346
|
-
fields_decoded: ID;
|
347
|
-
type_arguments: [];
|
348
|
-
}
|
331
|
+
type ID = string;
|
349
332
|
class UID {
|
350
333
|
static TYPE_QNAME: string;
|
351
|
-
id:
|
334
|
+
id: object_.ID;
|
352
335
|
}
|
353
336
|
}
|
354
337
|
export declare namespace object_bag {
|
@@ -390,8 +373,8 @@ export declare namespace pay {
|
|
390
373
|
arguments_decoded: [SuiAddress];
|
391
374
|
type_arguments: [string];
|
392
375
|
}
|
393
|
-
interface JoinVecAndTransferPayload<T0 = any> extends TypedFunctionPayload<[
|
394
|
-
arguments_decoded: [
|
376
|
+
interface JoinVecAndTransferPayload<T0 = any> extends TypedFunctionPayload<[coin.Coin<T0>[]]> {
|
377
|
+
arguments_decoded: [coin.Coin<T0>[]];
|
395
378
|
type_arguments: [string];
|
396
379
|
}
|
397
380
|
interface SplitPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress, bigint]> {
|
@@ -441,22 +424,22 @@ export declare namespace safe {
|
|
441
424
|
class OwnerCapability<T0> {
|
442
425
|
static TYPE_QNAME: string;
|
443
426
|
id: object_.UID;
|
444
|
-
safe_id:
|
427
|
+
safe_id: object_.ID;
|
445
428
|
}
|
446
429
|
class Safe<T0> {
|
447
430
|
static TYPE_QNAME: string;
|
448
431
|
id: object_.UID;
|
449
432
|
balance: balance.Balance<T0>;
|
450
|
-
allowed_safes: vec_set.VecSet<
|
433
|
+
allowed_safes: vec_set.VecSet<object_.ID>;
|
451
434
|
}
|
452
435
|
class TransferCapability<T0> {
|
453
436
|
static TYPE_QNAME: string;
|
454
437
|
id: object_.UID;
|
455
|
-
safe_id:
|
438
|
+
safe_id: object_.ID;
|
456
439
|
amount: bigint;
|
457
440
|
}
|
458
|
-
interface CreatePayload<T0 = any> extends TypedFunctionPayload<[
|
459
|
-
arguments_decoded: [
|
441
|
+
interface CreatePayload<T0 = any> extends TypedFunctionPayload<[coin.Coin<T0>]> {
|
442
|
+
arguments_decoded: [coin.Coin<T0>];
|
460
443
|
type_arguments: [string];
|
461
444
|
}
|
462
445
|
interface CreateEmptyPayload<T0 = any> extends TypedFunctionPayload<[]> {
|
@@ -519,7 +502,7 @@ export declare namespace staking_pool {
|
|
519
502
|
class Delegation {
|
520
503
|
static TYPE_QNAME: string;
|
521
504
|
id: object_.UID;
|
522
|
-
staked_sui_id:
|
505
|
+
staked_sui_id: object_.ID;
|
523
506
|
pool_tokens: balance.Balance<staking_pool.DelegationToken>;
|
524
507
|
principal_sui_amount: bigint;
|
525
508
|
}
|
@@ -568,7 +551,7 @@ export declare namespace staking_pool {
|
|
568
551
|
sui_balance: bigint;
|
569
552
|
rewards_pool: balance.Balance<sui.SUI>;
|
570
553
|
delegation_token_supply: balance.Supply<staking_pool.DelegationToken>;
|
571
|
-
pending_delegations: linked_table.LinkedTable<
|
554
|
+
pending_delegations: linked_table.LinkedTable<object_.ID, staking_pool.PendingDelegationEntry>;
|
572
555
|
pending_withdraws: table_vec.TableVec<staking_pool.PendingWithdrawEntry>;
|
573
556
|
}
|
574
557
|
interface DestroyEmptyDelegationPayload extends TypedFunctionPayload<[]> {
|
@@ -603,8 +586,8 @@ export declare namespace sui {
|
|
603
586
|
static TYPE_QNAME: string;
|
604
587
|
dummy_field: Boolean;
|
605
588
|
}
|
606
|
-
interface TransferPayload extends TypedFunctionPayload<[
|
607
|
-
arguments_decoded: [
|
589
|
+
interface TransferPayload extends TypedFunctionPayload<[coin.Coin<sui.SUI>]> {
|
590
|
+
arguments_decoded: [coin.Coin<sui.SUI>];
|
608
591
|
type_arguments: [];
|
609
592
|
}
|
610
593
|
}
|
@@ -702,19 +685,19 @@ export declare namespace sui_system {
|
|
702
685
|
arguments_decoded: [SuiAddress, SuiAddress];
|
703
686
|
type_arguments: [];
|
704
687
|
}
|
705
|
-
interface RequestAddDelegationPayload extends TypedFunctionPayload<[SuiAddress,
|
706
|
-
arguments_decoded: [SuiAddress,
|
688
|
+
interface RequestAddDelegationPayload extends TypedFunctionPayload<[SuiAddress, coin.Coin<sui.SUI>, SuiAddress]> {
|
689
|
+
arguments_decoded: [SuiAddress, coin.Coin<sui.SUI>, SuiAddress];
|
707
690
|
type_arguments: [];
|
708
691
|
}
|
709
692
|
interface RequestAddDelegationMulCoinPayload extends TypedFunctionPayload<[
|
710
693
|
SuiAddress,
|
711
|
-
|
694
|
+
coin.Coin<sui.SUI>[],
|
712
695
|
_0x1.option.Option<bigint>,
|
713
696
|
SuiAddress
|
714
697
|
]> {
|
715
698
|
arguments_decoded: [
|
716
699
|
SuiAddress,
|
717
|
-
|
700
|
+
coin.Coin<sui.SUI>[],
|
718
701
|
_0x1.option.Option<bigint>,
|
719
702
|
SuiAddress
|
720
703
|
];
|
@@ -746,8 +729,8 @@ export declare namespace sui_system {
|
|
746
729
|
];
|
747
730
|
type_arguments: [];
|
748
731
|
}
|
749
|
-
interface RequestAddStakePayload extends TypedFunctionPayload<[SuiAddress,
|
750
|
-
arguments_decoded: [SuiAddress,
|
732
|
+
interface RequestAddStakePayload extends TypedFunctionPayload<[SuiAddress, coin.Coin<sui.SUI>]> {
|
733
|
+
arguments_decoded: [SuiAddress, coin.Coin<sui.SUI>];
|
751
734
|
type_arguments: [];
|
752
735
|
}
|
753
736
|
interface RequestAddStakeWithLockedCoinPayload extends TypedFunctionPayload<[
|
@@ -759,35 +742,35 @@ export declare namespace sui_system {
|
|
759
742
|
}
|
760
743
|
interface RequestAddValidatorPayload extends TypedFunctionPayload<[
|
761
744
|
SuiAddress,
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
745
|
+
number[],
|
746
|
+
number[],
|
747
|
+
number[],
|
748
|
+
number[],
|
749
|
+
number[],
|
750
|
+
number[],
|
751
|
+
number[],
|
752
|
+
number[],
|
753
|
+
number[],
|
754
|
+
number[],
|
755
|
+
number[],
|
756
|
+
coin.Coin<sui.SUI>,
|
774
757
|
bigint,
|
775
758
|
bigint
|
776
759
|
]> {
|
777
760
|
arguments_decoded: [
|
778
761
|
SuiAddress,
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
762
|
+
number[],
|
763
|
+
number[],
|
764
|
+
number[],
|
765
|
+
number[],
|
766
|
+
number[],
|
767
|
+
number[],
|
768
|
+
number[],
|
769
|
+
number[],
|
770
|
+
number[],
|
771
|
+
number[],
|
772
|
+
number[],
|
773
|
+
coin.Coin<sui.SUI>,
|
791
774
|
bigint,
|
792
775
|
bigint
|
793
776
|
];
|
@@ -858,7 +841,7 @@ export declare namespace tx_context {
|
|
858
841
|
class TxContext {
|
859
842
|
static TYPE_QNAME: string;
|
860
843
|
sender: SuiAddress;
|
861
|
-
tx_hash:
|
844
|
+
tx_hash: number[];
|
862
845
|
epoch: bigint;
|
863
846
|
ids_created: bigint;
|
864
847
|
}
|
@@ -872,7 +855,7 @@ export declare class typed_id extends SuiBaseProcessor {
|
|
872
855
|
export declare namespace typed_id {
|
873
856
|
class TypedID<T0> {
|
874
857
|
static TYPE_QNAME: string;
|
875
|
-
id:
|
858
|
+
id: object_.ID;
|
876
859
|
}
|
877
860
|
interface TypedIDInstance extends TypedEventInstance<TypedID<any>> {
|
878
861
|
fields_decoded: TypedID<any>;
|
@@ -917,17 +900,17 @@ export declare namespace validator {
|
|
917
900
|
class ValidatorMetadata {
|
918
901
|
static TYPE_QNAME: string;
|
919
902
|
sui_address: SuiAddress;
|
920
|
-
pubkey_bytes:
|
921
|
-
network_pubkey_bytes:
|
922
|
-
worker_pubkey_bytes:
|
923
|
-
proof_of_possession:
|
903
|
+
pubkey_bytes: number[];
|
904
|
+
network_pubkey_bytes: number[];
|
905
|
+
worker_pubkey_bytes: number[];
|
906
|
+
proof_of_possession: number[];
|
924
907
|
name: string;
|
925
908
|
description: string;
|
926
909
|
image_url: url.Url;
|
927
910
|
project_url: url.Url;
|
928
|
-
net_address:
|
929
|
-
consensus_address:
|
930
|
-
worker_address:
|
911
|
+
net_address: number[];
|
912
|
+
consensus_address: number[];
|
913
|
+
worker_address: number[];
|
931
914
|
next_epoch_stake: bigint;
|
932
915
|
next_epoch_delegation: bigint;
|
933
916
|
next_epoch_gas_price: bigint;
|
package/lib/sui/builtin/0x2.js
CHANGED
@@ -118,12 +118,6 @@ export class coin extends SuiBaseProcessor {
|
|
118
118
|
}
|
119
119
|
}
|
120
120
|
(function (coin) {
|
121
|
-
class Coin {
|
122
|
-
static TYPE_QNAME = "0x2::coin::Coin";
|
123
|
-
id;
|
124
|
-
balance;
|
125
|
-
}
|
126
|
-
coin.Coin = Coin;
|
127
121
|
class CoinMetadata {
|
128
122
|
static TYPE_QNAME = "0x2::coin::CoinMetadata";
|
129
123
|
id;
|
@@ -459,30 +453,8 @@ export class locked_coin extends SuiBaseProcessor {
|
|
459
453
|
}
|
460
454
|
locked_coin.LockedCoin = LockedCoin;
|
461
455
|
})(locked_coin || (locked_coin = {}));
|
462
|
-
export
|
463
|
-
constructor(options) {
|
464
|
-
super("object", options);
|
465
|
-
}
|
466
|
-
static DEFAULT_OPTIONS = {
|
467
|
-
address: "0x2",
|
468
|
-
network: SuiNetwork.MAIN_NET,
|
469
|
-
};
|
470
|
-
static bind(options = {}) {
|
471
|
-
return new object_({ ...object_.DEFAULT_OPTIONS, ...options });
|
472
|
-
}
|
473
|
-
onEventID(func, fetchConfig) {
|
474
|
-
this.onMoveEvent(func, {
|
475
|
-
type: "object::ID",
|
476
|
-
}, fetchConfig);
|
477
|
-
return this;
|
478
|
-
}
|
479
|
-
}
|
456
|
+
export var object_;
|
480
457
|
(function (object_) {
|
481
|
-
class ID {
|
482
|
-
static TYPE_QNAME = "0x2::object::ID";
|
483
|
-
bytes;
|
484
|
-
}
|
485
|
-
object_.ID = ID;
|
486
458
|
class UID {
|
487
459
|
static TYPE_QNAME = "0x2::object::UID";
|
488
460
|
id;
|