@sentio/sdk 2.11.2 → 2.11.3-rc.2
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/ext/coin.js +73 -96
 - package/lib/aptos/ext/coin.js.map +1 -1
 - package/lib/move/abstract-codegen.d.ts +1 -0
 - package/lib/move/abstract-codegen.js +2 -1
 - package/lib/move/abstract-codegen.js.map +1 -1
 - package/lib/sui/builtin/0x2.d.ts +74 -40
 - package/lib/sui/builtin/0x2.js.map +1 -1
 - package/lib/sui/builtin/0x3.d.ts +190 -104
 - package/lib/sui/builtin/0x3.js.map +1 -1
 - package/lib/sui/codegen/codegen.js +1 -0
 - package/lib/sui/codegen/codegen.js.map +1 -1
 - package/lib/sui/models.d.ts +1 -1
 - package/lib/sui/models.js.map +1 -1
 - package/package.json +7 -5
 - package/src/aptos/ext/coin.ts +73 -98
 - package/src/move/abstract-codegen.ts +2 -1
 - package/src/sui/builtin/0x2.ts +64 -40
 - package/src/sui/builtin/0x3.ts +167 -102
 - package/src/sui/codegen/codegen.ts +1 -0
 - package/src/sui/models.ts +1 -1
 
| 
         @@ -31,6 +31,7 @@ class SuiCodegen extends AbstractCodegen { 
     | 
|
| 
       31 
31 
     | 
    
         
             
                PREFIX = 'Sui';
         
     | 
| 
       32 
32 
     | 
    
         
             
                STRUCT_FIELD_NAME = 'fields';
         
     | 
| 
       33 
33 
     | 
    
         
             
                // GENERATE_ON_ENTRY = true
         
     | 
| 
      
 34 
     | 
    
         
            +
                PAYLOAD_OPTIONAL = true;
         
     | 
| 
       34 
35 
     | 
    
         
             
                async fetchModules(account, network) {
         
     | 
| 
       35 
36 
     | 
    
         
             
                    const client = getRpcClient(network);
         
     | 
| 
       36 
37 
     | 
    
         
             
                    return await client.getNormalizedMoveModulesByPackage({ package: account });
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/sui/codegen/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAA4B,MAAM,gBAAgB,CAAA;AAEtF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AACxB,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAkB,MAAM,qBAAqB,CAAA;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,OAAe,EAAE,MAAM,GAAG,eAAe,EAAE,UAAU,GAAG,KAAK;IACzF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAM;KACP;IACD,MAAM,GAAG,GAAG,IAAI,UAAU,EAAE,CAAA;IAC5B,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,QAAQ,UAAU,CAAC,CAAC,CAAA;AAC3D,CAAC;AAED,SAAS,cAAc,CAAC,OAAmB;IACzC,QAAQ,OAAO,EAAE;QACf,KAAK,UAAU,CAAC,QAAQ;YACtB,OAAO,kCAAkC,CAAA;KAC5C;IACD,OAAO,kCAAkC,CAAA;AAC3C,CAAC;AAED,SAAS,YAAY,CAAC,OAAmB;IACvC,OAAO,IAAI,eAAe,CAAC,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AACnF,CAAC;AAED,MAAM,UAAW,SAAQ,eAAqD;IAC5E,YAAY,GAAG,YAAY,CAAA;IAC3B,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAA;IAC9B,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAA;IAC9B,MAAM,GAAG,KAAK,CAAA;IACd,iBAAiB,GAAG,QAAQ,CAAA;IAC5B,2BAA2B; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/sui/codegen/codegen.ts"],"names":[],"mappings":"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","sourcesContent":["import { Connection, JsonRpcProvider, SuiMoveNormalizedModules } from '@mysten/sui.js'\n\nimport { SuiNetwork } from '../network.js'\nimport * as fs from 'fs'\nimport chalk from 'chalk'\nimport { InternalMoveModule, InternalMoveStruct } from '../../move/internal-models.js'\nimport { AbstractCodegen } from '../../move/abstract-codegen.js'\nimport { toInternalModule } from '../move-types.js'\nimport { moduleQname, SPLITTER, structQname, TypeDescriptor } from '../../move/index.js'\nimport { getMeaningfulFunctionParams } from '../utils.js'\n\nexport async function codegen(abisDir: string, outDir = 'src/types/sui', genExample = false) {\n  if (!fs.existsSync(abisDir)) {\n    return\n  }\n  const gen = new SuiCodegen()\n  const numFiles = await gen.generate(abisDir, outDir)\n  console.log(chalk.green(`Generated ${numFiles} for Sui`))\n}\n\nfunction getRpcEndpoint(network: SuiNetwork): string {\n  switch (network) {\n    case SuiNetwork.TEST_NET:\n      return 'https://fullnode.testnet.sui.io/'\n  }\n  return 'https://fullnode.mainnet.sui.io/'\n}\n\nfunction getRpcClient(network: SuiNetwork): JsonRpcProvider {\n  return new JsonRpcProvider(new Connection({ fullnode: getRpcEndpoint(network) }))\n}\n\nclass SuiCodegen extends AbstractCodegen<SuiMoveNormalizedModules, SuiNetwork> {\n  ADDRESS_TYPE = 'SuiAddress'\n  MAIN_NET = SuiNetwork.MAIN_NET\n  TEST_NET = SuiNetwork.TEST_NET\n  PREFIX = 'Sui'\n  STRUCT_FIELD_NAME = 'fields'\n  // GENERATE_ON_ENTRY = true\n  PAYLOAD_OPTIONAL = true\n\n  async fetchModules(account: string, network: SuiNetwork): Promise<SuiMoveNormalizedModules> {\n    const client = getRpcClient(network)\n    return await client.getNormalizedMoveModulesByPackage({ package: account })\n  }\n\n  getMeaningfulFunctionParams(params: TypeDescriptor[]): TypeDescriptor[] {\n    return getMeaningfulFunctionParams(params)\n  }\n\n  toInternalModules(modules: SuiMoveNormalizedModules): InternalMoveModule[] {\n    return Object.values(modules).map(toInternalModule)\n  }\n\n  getEventStructs(module: InternalMoveModule) {\n    const qname = moduleQname(module)\n    const eventMap = new Map<string, InternalMoveStruct>()\n\n    for (const struct of module.structs) {\n      const abilities = new Set(struct.abilities)\n      if (abilities.has('Drop') && abilities.has('Copy')) {\n        eventMap.set(qname + SPLITTER + struct.name, struct)\n      }\n    }\n    return eventMap\n  }\n\n  readModulesFile(fullPath: string) {\n    const res = super.readModulesFile(fullPath)\n    if (res.result) {\n      return res.result\n    }\n    return res\n  }\n\n  generateStructs(module: InternalMoveModule, struct: InternalMoveStruct, events: Set<string>): string {\n    switch (structQname(module, struct)) {\n      case '0x2::object::ID':\n        return `export type ${struct.name} = string`\n      case '0x2::coin::Coin':\n        return `export type ${struct.name}<T> = string`\n      case '0x1::option::Option':\n        return `export type Option<T> = T | undefined`\n    }\n    return super.generateStructs(module, struct, events)\n  }\n\n  generateOnEvents(module: InternalMoveModule, struct: InternalMoveStruct): string {\n    switch (structQname(module, struct)) {\n      case '0x2::object::ID':\n      case '0x2::coin::Coin':\n      case '0x1::option::Option':\n        return ''\n    }\n    return super.generateOnEvents(module, struct)\n  }\n}\n"]}
         
     | 
    
        package/lib/sui/models.d.ts
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { SuiEvent, MoveCallSuiTransaction, SuiMoveObject } from '@mysten/sui.js';
         
     | 
| 
      
 1 
     | 
    
         
            +
            import type { SuiEvent, MoveCallSuiTransaction, SuiMoveObject } from '@mysten/sui.js';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export type TypedEventInstance<T> = SuiEvent & {
         
     | 
| 
       3 
3 
     | 
    
         
             
                /**
         
     | 
| 
       4 
4 
     | 
    
         
             
                 * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch
         
     | 
    
        package/lib/sui/models.js.map
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/sui/models.ts"],"names":[],"mappings":"","sourcesContent":["import { SuiEvent, MoveCallSuiTransaction, SuiMoveObject } from '@mysten/sui.js'\n\nexport type TypedEventInstance<T> = SuiEvent & {\n  /**\n   * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n   */\n  data_decoded: T\n\n  type_arguments: string[]\n}\n\nexport type TypedFunctionPayload<T extends Array<any>> = MoveCallSuiTransaction & {\n  /**\n   * decoded argument data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n   */\n  arguments_decoded: T\n}\n\nexport type TypedSuiMoveObject<T> = SuiMoveObject & {\n  data_decoded: T\n  type_arguments: string[]\n}\n"]}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/sui/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { SuiEvent, MoveCallSuiTransaction, SuiMoveObject } from '@mysten/sui.js'\n\nexport type TypedEventInstance<T> = SuiEvent & {\n  /**\n   * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n   */\n  data_decoded: T\n\n  type_arguments: string[]\n}\n\nexport type TypedFunctionPayload<T extends Array<any>> = MoveCallSuiTransaction & {\n  /**\n   * decoded argument data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n   */\n  arguments_decoded: T\n}\n\nexport type TypedSuiMoveObject<T> = SuiMoveObject & {\n  data_decoded: T\n  type_arguments: string[]\n}\n"]}
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@sentio/sdk",
         
     | 
| 
       3 
3 
     | 
    
         
             
              "license": "Apache-2.0",
         
     | 
| 
       4 
     | 
    
         
            -
              "version": "2.11.2",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "version": "2.11.3-rc.2",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "type": "module",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "scripts": {
         
     | 
| 
       7 
7 
     | 
    
         
             
                "compile": "tsc && cp src/utils/*.csv lib/utils && cp src/tsup.config.ts lib",
         
     | 
| 
         @@ -23,8 +23,8 @@ 
     | 
|
| 
       23 
23 
     | 
    
         
             
                "@project-serum/anchor": "^0.26.0",
         
     | 
| 
       24 
24 
     | 
    
         
             
                "@sentio/bigdecimal": "^9.1.1-patch.3",
         
     | 
| 
       25 
25 
     | 
    
         
             
                "@sentio/ethers-v6": "^1.0.28",
         
     | 
| 
       26 
     | 
    
         
            -
                "@sentio/protos": "^2.11.2",
         
     | 
| 
       27 
     | 
    
         
            -
                "@sentio/runtime": "^2.11.2",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "@sentio/protos": "^2.11.3-rc.2",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "@sentio/runtime": "^2.11.3-rc.2",
         
     | 
| 
       28 
28 
     | 
    
         
             
                "@solana/web3.js": "^1.74.0",
         
     | 
| 
       29 
29 
     | 
    
         
             
                "@types/prettier": "^2.7.2",
         
     | 
| 
       30 
30 
     | 
    
         
             
                "aptos-sdk": "npm:aptos@^1.7.2",
         
     | 
| 
         @@ -37,7 +37,6 @@ 
     | 
|
| 
       37 
37 
     | 
    
         
             
                "node-fetch": "^3.3.1",
         
     | 
| 
       38 
38 
     | 
    
         
             
                "p-queue": "^7.3.4",
         
     | 
| 
       39 
39 
     | 
    
         
             
                "prettier": "^2.8.7",
         
     | 
| 
       40 
     | 
    
         
            -
                "superstruct": "^1.0.3",
         
     | 
| 
       41 
40 
     | 
    
         
             
                "superstruct_solana": "npm:superstruct@^0.14.2",
         
     | 
| 
       42 
41 
     | 
    
         
             
                "typechain": "^8.0.0",
         
     | 
| 
       43 
42 
     | 
    
         
             
                "yaml": "^2.2.1"
         
     | 
| 
         @@ -47,6 +46,9 @@ 
     | 
|
| 
       47 
46 
     | 
    
         
             
                "@types/google-protobuf": "^3.15.6",
         
     | 
| 
       48 
47 
     | 
    
         
             
                "@types/lodash-es": "^4.17.6"
         
     | 
| 
       49 
48 
     | 
    
         
             
              },
         
     | 
| 
      
 49 
     | 
    
         
            +
              "resolutions": {
         
     | 
| 
      
 50 
     | 
    
         
            +
                "superstruct": "^1.0.3"
         
     | 
| 
      
 51 
     | 
    
         
            +
              },
         
     | 
| 
       50 
52 
     | 
    
         
             
              "exports": {
         
     | 
| 
       51 
53 
     | 
    
         
             
                ".": "./lib/index.js",
         
     | 
| 
       52 
54 
     | 
    
         
             
                "./core": "./lib/core/index.js",
         
     | 
| 
         @@ -85,5 +87,5 @@ 
     | 
|
| 
       85 
87 
     | 
    
         
             
              "engines": {
         
     | 
| 
       86 
88 
     | 
    
         
             
                "node": ">=16"
         
     | 
| 
       87 
89 
     | 
    
         
             
              },
         
     | 
| 
       88 
     | 
    
         
            -
              "gitHead": " 
     | 
| 
      
 90 
     | 
    
         
            +
              "gitHead": "2eeb2f6cca6e05315c63f1b4b1c92d4865b74f99"
         
     | 
| 
       89 
91 
     | 
    
         
             
            }
         
     | 
    
        package/src/aptos/ext/coin.ts
    CHANGED
    
    | 
         @@ -14,9 +14,7 @@ export interface SimpleCoinInfo { 
     | 
|
| 
       14 
14 
     | 
    
         
             
            export async function initCoinList() {
         
     | 
| 
       15 
15 
     | 
    
         
             
              let list = DEFAULT_LIST
         
     | 
| 
       16 
16 
     | 
    
         
             
              try {
         
     | 
| 
       17 
     | 
    
         
            -
                const resp = await fetch(
         
     | 
| 
       18 
     | 
    
         
            -
                  'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/src/defaultList.mainnet.json'
         
     | 
| 
       19 
     | 
    
         
            -
                )
         
     | 
| 
      
 17 
     | 
    
         
            +
                const resp = await fetch('https://github.com/hippospace/aptos-coin-list/blob/main/src/permissionless.json')
         
     | 
| 
       20 
18 
     | 
    
         
             
                list = (await resp.json()) as any[]
         
     | 
| 
       21 
19 
     | 
    
         
             
              } catch (e) {
         
     | 
| 
       22 
20 
     | 
    
         
             
                console.warn("Can't not fetch newest coin list, use default list")
         
     | 
| 
         @@ -57,7 +55,7 @@ export function getCoinInfo(type: string): SimpleCoinInfo { 
     | 
|
| 
       57 
55 
     | 
    
         
             
                return {
         
     | 
| 
       58 
56 
     | 
    
         
             
                  token_type: { type: type, account_address: parts[0] },
         
     | 
| 
       59 
57 
     | 
    
         
             
                  symbol: parts[2],
         
     | 
| 
       60 
     | 
    
         
            -
                  decimals:  
     | 
| 
      
 58 
     | 
    
         
            +
                  decimals: 8,
         
     | 
| 
       61 
59 
     | 
    
         
             
                  bridge: 'native',
         
     | 
| 
       62 
60 
     | 
    
         
             
                }
         
     | 
| 
       63 
61 
     | 
    
         
             
              }
         
     | 
| 
         @@ -137,6 +135,75 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       137 
135 
     | 
    
         
             
                hippo_symbol: 'MEE',
         
     | 
| 
       138 
136 
     | 
    
         
             
                pancake_symbol: 'MEE',
         
     | 
| 
       139 
137 
     | 
    
         
             
              },
         
     | 
| 
      
 138 
     | 
    
         
            +
              {
         
     | 
| 
      
 139 
     | 
    
         
            +
                name: 'Move Dollar',
         
     | 
| 
      
 140 
     | 
    
         
            +
                symbol: 'MOD',
         
     | 
| 
      
 141 
     | 
    
         
            +
                official_symbol: 'MOD',
         
     | 
| 
      
 142 
     | 
    
         
            +
                coingecko_id: '',
         
     | 
| 
      
 143 
     | 
    
         
            +
                decimals: 8,
         
     | 
| 
      
 144 
     | 
    
         
            +
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/MOD.svg',
         
     | 
| 
      
 145 
     | 
    
         
            +
                project_url: 'https://www.thala.fi/',
         
     | 
| 
      
 146 
     | 
    
         
            +
                token_type: {
         
     | 
| 
      
 147 
     | 
    
         
            +
                  type: '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD',
         
     | 
| 
      
 148 
     | 
    
         
            +
                  account_address: '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01',
         
     | 
| 
      
 149 
     | 
    
         
            +
                  module_name: 'mod_coin',
         
     | 
| 
      
 150 
     | 
    
         
            +
                  struct_name: 'MOD',
         
     | 
| 
      
 151 
     | 
    
         
            +
                },
         
     | 
| 
      
 152 
     | 
    
         
            +
                extensions: {
         
     | 
| 
      
 153 
     | 
    
         
            +
                  data: [],
         
     | 
| 
      
 154 
     | 
    
         
            +
                },
         
     | 
| 
      
 155 
     | 
    
         
            +
                unique_index: 128,
         
     | 
| 
      
 156 
     | 
    
         
            +
                source: 'native',
         
     | 
| 
      
 157 
     | 
    
         
            +
                permissioned_listing: true,
         
     | 
| 
      
 158 
     | 
    
         
            +
                hippo_symbol: 'MOD',
         
     | 
| 
      
 159 
     | 
    
         
            +
                pancake_symbol: 'MOD',
         
     | 
| 
      
 160 
     | 
    
         
            +
              },
         
     | 
| 
      
 161 
     | 
    
         
            +
              {
         
     | 
| 
      
 162 
     | 
    
         
            +
                name: 'Thala Token',
         
     | 
| 
      
 163 
     | 
    
         
            +
                symbol: 'THL',
         
     | 
| 
      
 164 
     | 
    
         
            +
                official_symbol: 'THL',
         
     | 
| 
      
 165 
     | 
    
         
            +
                coingecko_id: '',
         
     | 
| 
      
 166 
     | 
    
         
            +
                decimals: 8,
         
     | 
| 
      
 167 
     | 
    
         
            +
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/THL.svg',
         
     | 
| 
      
 168 
     | 
    
         
            +
                project_url: 'https://www.thala.fi/',
         
     | 
| 
      
 169 
     | 
    
         
            +
                token_type: {
         
     | 
| 
      
 170 
     | 
    
         
            +
                  type: '0x07fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL',
         
     | 
| 
      
 171 
     | 
    
         
            +
                  account_address: '0x07fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615',
         
     | 
| 
      
 172 
     | 
    
         
            +
                  module_name: 'thl_coin',
         
     | 
| 
      
 173 
     | 
    
         
            +
                  struct_name: 'THL',
         
     | 
| 
      
 174 
     | 
    
         
            +
                },
         
     | 
| 
      
 175 
     | 
    
         
            +
                extensions: {
         
     | 
| 
      
 176 
     | 
    
         
            +
                  data: [],
         
     | 
| 
      
 177 
     | 
    
         
            +
                },
         
     | 
| 
      
 178 
     | 
    
         
            +
                unique_index: 129,
         
     | 
| 
      
 179 
     | 
    
         
            +
                source: 'native',
         
     | 
| 
      
 180 
     | 
    
         
            +
                permissioned_listing: true,
         
     | 
| 
      
 181 
     | 
    
         
            +
                hippo_symbol: 'THL',
         
     | 
| 
      
 182 
     | 
    
         
            +
                pancake_symbol: 'THL',
         
     | 
| 
      
 183 
     | 
    
         
            +
              },
         
     | 
| 
      
 184 
     | 
    
         
            +
              {
         
     | 
| 
      
 185 
     | 
    
         
            +
                name: 'Aptopad Coin',
         
     | 
| 
      
 186 
     | 
    
         
            +
                symbol: 'APD',
         
     | 
| 
      
 187 
     | 
    
         
            +
                official_symbol: 'APD',
         
     | 
| 
      
 188 
     | 
    
         
            +
                coingecko_id: '',
         
     | 
| 
      
 189 
     | 
    
         
            +
                decimals: 8,
         
     | 
| 
      
 190 
     | 
    
         
            +
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/aptopad.png',
         
     | 
| 
      
 191 
     | 
    
         
            +
                project_url: 'https://aptopad.io',
         
     | 
| 
      
 192 
     | 
    
         
            +
                token_type: {
         
     | 
| 
      
 193 
     | 
    
         
            +
                  type: '0xcc78307c77f1c2c0fdfee17269bfca7876a0b35438c3442417480c0d5c370fbc::AptopadCoin::APD',
         
     | 
| 
      
 194 
     | 
    
         
            +
                  account_address: '0xcc78307c77f1c2c0fdfee17269bfca7876a0b35438c3442417480c0d5c370fbc',
         
     | 
| 
      
 195 
     | 
    
         
            +
                  module_name: 'AptopadCoin',
         
     | 
| 
      
 196 
     | 
    
         
            +
                  struct_name: 'APD',
         
     | 
| 
      
 197 
     | 
    
         
            +
                },
         
     | 
| 
      
 198 
     | 
    
         
            +
                extensions: {
         
     | 
| 
      
 199 
     | 
    
         
            +
                  data: [],
         
     | 
| 
      
 200 
     | 
    
         
            +
                },
         
     | 
| 
      
 201 
     | 
    
         
            +
                unique_index: 130,
         
     | 
| 
      
 202 
     | 
    
         
            +
                source: 'native',
         
     | 
| 
      
 203 
     | 
    
         
            +
                hippo_symbol: 'APD',
         
     | 
| 
      
 204 
     | 
    
         
            +
                pancake_symbol: 'APD',
         
     | 
| 
      
 205 
     | 
    
         
            +
                permissioned_listing: false,
         
     | 
| 
      
 206 
     | 
    
         
            +
              },
         
     | 
| 
       140 
207 
     | 
    
         
             
              {
         
     | 
| 
       141 
208 
     | 
    
         
             
                name: 'Ditto Staked Aptos',
         
     | 
| 
       142 
209 
     | 
    
         
             
                symbol: 'stAPT',
         
     | 
| 
         @@ -183,29 +250,6 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       183 
250 
     | 
    
         
             
                hippo_symbol: 'DTO',
         
     | 
| 
       184 
251 
     | 
    
         
             
                pancake_symbol: 'DTO',
         
     | 
| 
       185 
252 
     | 
    
         
             
              },
         
     | 
| 
       186 
     | 
    
         
            -
              {
         
     | 
| 
       187 
     | 
    
         
            -
                name: 'DAI',
         
     | 
| 
       188 
     | 
    
         
            -
                symbol: 'devDAI',
         
     | 
| 
       189 
     | 
    
         
            -
                official_symbol: 'DAI',
         
     | 
| 
       190 
     | 
    
         
            -
                coingecko_id: 'dai',
         
     | 
| 
       191 
     | 
    
         
            -
                decimals: 8,
         
     | 
| 
       192 
     | 
    
         
            -
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/DAI.webp',
         
     | 
| 
       193 
     | 
    
         
            -
                project_url: 'project_url',
         
     | 
| 
       194 
     | 
    
         
            -
                token_type: {
         
     | 
| 
       195 
     | 
    
         
            -
                  type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetDAI',
         
     | 
| 
       196 
     | 
    
         
            -
                  account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
         
     | 
| 
       197 
     | 
    
         
            -
                  module_name: 'devnet_coins',
         
     | 
| 
       198 
     | 
    
         
            -
                  struct_name: 'DevnetDAI',
         
     | 
| 
       199 
     | 
    
         
            -
                },
         
     | 
| 
       200 
     | 
    
         
            -
                extensions: {
         
     | 
| 
       201 
     | 
    
         
            -
                  data: [],
         
     | 
| 
       202 
     | 
    
         
            -
                },
         
     | 
| 
       203 
     | 
    
         
            -
                unique_index: 213,
         
     | 
| 
       204 
     | 
    
         
            -
                source: 'native',
         
     | 
| 
       205 
     | 
    
         
            -
                hippo_symbol: 'devDAI',
         
     | 
| 
       206 
     | 
    
         
            -
                pancake_symbol: 'devDAI',
         
     | 
| 
       207 
     | 
    
         
            -
                permissioned_listing: false,
         
     | 
| 
       208 
     | 
    
         
            -
              },
         
     | 
| 
       209 
253 
     | 
    
         
             
              {
         
     | 
| 
       210 
254 
     | 
    
         
             
                name: 'Aptoge',
         
     | 
| 
       211 
255 
     | 
    
         
             
                symbol: 'APTOGE',
         
     | 
| 
         @@ -367,29 +411,6 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       367 
411 
     | 
    
         
             
                pancake_symbol: 'MOJO',
         
     | 
| 
       368 
412 
     | 
    
         
             
                permissioned_listing: false,
         
     | 
| 
       369 
413 
     | 
    
         
             
              },
         
     | 
| 
       370 
     | 
    
         
            -
              {
         
     | 
| 
       371 
     | 
    
         
            -
                name: 'USD Coin',
         
     | 
| 
       372 
     | 
    
         
            -
                symbol: 'devUSDC',
         
     | 
| 
       373 
     | 
    
         
            -
                official_symbol: 'USDC',
         
     | 
| 
       374 
     | 
    
         
            -
                coingecko_id: 'usd-coin',
         
     | 
| 
       375 
     | 
    
         
            -
                decimals: 8,
         
     | 
| 
       376 
     | 
    
         
            -
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/USDC.webp',
         
     | 
| 
       377 
     | 
    
         
            -
                project_url: 'project_url',
         
     | 
| 
       378 
     | 
    
         
            -
                token_type: {
         
     | 
| 
       379 
     | 
    
         
            -
                  type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetUSDC',
         
     | 
| 
       380 
     | 
    
         
            -
                  account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
         
     | 
| 
       381 
     | 
    
         
            -
                  module_name: 'devnet_coins',
         
     | 
| 
       382 
     | 
    
         
            -
                  struct_name: 'DevnetUSDC',
         
     | 
| 
       383 
     | 
    
         
            -
                },
         
     | 
| 
       384 
     | 
    
         
            -
                extensions: {
         
     | 
| 
       385 
     | 
    
         
            -
                  data: [],
         
     | 
| 
       386 
     | 
    
         
            -
                },
         
     | 
| 
       387 
     | 
    
         
            -
                unique_index: 553,
         
     | 
| 
       388 
     | 
    
         
            -
                source: 'native',
         
     | 
| 
       389 
     | 
    
         
            -
                hippo_symbol: 'devUSDC',
         
     | 
| 
       390 
     | 
    
         
            -
                pancake_symbol: 'devUSDC',
         
     | 
| 
       391 
     | 
    
         
            -
                permissioned_listing: false,
         
     | 
| 
       392 
     | 
    
         
            -
              },
         
     | 
| 
       393 
414 
     | 
    
         
             
              {
         
     | 
| 
       394 
415 
     | 
    
         
             
                name: 'Doglaika Coin',
         
     | 
| 
       395 
416 
     | 
    
         
             
                symbol: 'DLC',
         
     | 
| 
         @@ -413,29 +434,6 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       413 
434 
     | 
    
         
             
                hippo_symbol: 'DLC',
         
     | 
| 
       414 
435 
     | 
    
         
             
                pancake_symbol: 'DLC',
         
     | 
| 
       415 
436 
     | 
    
         
             
              },
         
     | 
| 
       416 
     | 
    
         
            -
              {
         
     | 
| 
       417 
     | 
    
         
            -
                name: 'Bitcoin',
         
     | 
| 
       418 
     | 
    
         
            -
                symbol: 'devBTC',
         
     | 
| 
       419 
     | 
    
         
            -
                official_symbol: 'BTC',
         
     | 
| 
       420 
     | 
    
         
            -
                coingecko_id: 'bitcoin',
         
     | 
| 
       421 
     | 
    
         
            -
                decimals: 8,
         
     | 
| 
       422 
     | 
    
         
            -
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/BTC.webp',
         
     | 
| 
       423 
     | 
    
         
            -
                project_url: 'project_url',
         
     | 
| 
       424 
     | 
    
         
            -
                token_type: {
         
     | 
| 
       425 
     | 
    
         
            -
                  type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetBTC',
         
     | 
| 
       426 
     | 
    
         
            -
                  account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
         
     | 
| 
       427 
     | 
    
         
            -
                  module_name: 'devnet_coins',
         
     | 
| 
       428 
     | 
    
         
            -
                  struct_name: 'DevnetBTC',
         
     | 
| 
       429 
     | 
    
         
            -
                },
         
     | 
| 
       430 
     | 
    
         
            -
                extensions: {
         
     | 
| 
       431 
     | 
    
         
            -
                  data: [],
         
     | 
| 
       432 
     | 
    
         
            -
                },
         
     | 
| 
       433 
     | 
    
         
            -
                unique_index: 662,
         
     | 
| 
       434 
     | 
    
         
            -
                source: 'native',
         
     | 
| 
       435 
     | 
    
         
            -
                hippo_symbol: 'devBTC',
         
     | 
| 
       436 
     | 
    
         
            -
                pancake_symbol: 'devBTC',
         
     | 
| 
       437 
     | 
    
         
            -
                permissioned_listing: false,
         
     | 
| 
       438 
     | 
    
         
            -
              },
         
     | 
| 
       439 
437 
     | 
    
         
             
              {
         
     | 
| 
       440 
438 
     | 
    
         
             
                name: 'The People',
         
     | 
| 
       441 
439 
     | 
    
         
             
                symbol: 'People',
         
     | 
| 
         @@ -551,29 +549,6 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       551 
549 
     | 
    
         
             
                hippo_symbol: 'MOVE',
         
     | 
| 
       552 
550 
     | 
    
         
             
                pancake_symbol: 'MOVE',
         
     | 
| 
       553 
551 
     | 
    
         
             
              },
         
     | 
| 
       554 
     | 
    
         
            -
              {
         
     | 
| 
       555 
     | 
    
         
            -
                name: 'Tether',
         
     | 
| 
       556 
     | 
    
         
            -
                symbol: 'devUSDT',
         
     | 
| 
       557 
     | 
    
         
            -
                official_symbol: 'USDT',
         
     | 
| 
       558 
     | 
    
         
            -
                coingecko_id: 'tether',
         
     | 
| 
       559 
     | 
    
         
            -
                decimals: 8,
         
     | 
| 
       560 
     | 
    
         
            -
                logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/USDT.webp',
         
     | 
| 
       561 
     | 
    
         
            -
                project_url: 'project_url',
         
     | 
| 
       562 
     | 
    
         
            -
                token_type: {
         
     | 
| 
       563 
     | 
    
         
            -
                  type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetUSDT',
         
     | 
| 
       564 
     | 
    
         
            -
                  account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
         
     | 
| 
       565 
     | 
    
         
            -
                  module_name: 'devnet_coins',
         
     | 
| 
       566 
     | 
    
         
            -
                  struct_name: 'DevnetUSDT',
         
     | 
| 
       567 
     | 
    
         
            -
                },
         
     | 
| 
       568 
     | 
    
         
            -
                extensions: {
         
     | 
| 
       569 
     | 
    
         
            -
                  data: [],
         
     | 
| 
       570 
     | 
    
         
            -
                },
         
     | 
| 
       571 
     | 
    
         
            -
                unique_index: 923,
         
     | 
| 
       572 
     | 
    
         
            -
                source: 'native',
         
     | 
| 
       573 
     | 
    
         
            -
                hippo_symbol: 'devUSDT',
         
     | 
| 
       574 
     | 
    
         
            -
                pancake_symbol: 'devUSDT',
         
     | 
| 
       575 
     | 
    
         
            -
                permissioned_listing: false,
         
     | 
| 
       576 
     | 
    
         
            -
              },
         
     | 
| 
       577 
552 
     | 
    
         
             
              {
         
     | 
| 
       578 
553 
     | 
    
         
             
                name: 'AptosLaunch Token',
         
     | 
| 
       579 
554 
     | 
    
         
             
                symbol: 'ALT',
         
     | 
| 
         @@ -608,8 +583,8 @@ const DEFAULT_LIST = [ 
     | 
|
| 
       608 
583 
     | 
    
         
             
                token_type: {
         
     | 
| 
       609 
584 
     | 
    
         
             
                  type: '0x27975005fd8b836a905dc7f81c51f89e76091a4d0c4d694265f6eae0c05cb400::proton_a5d::PROTON_E54',
         
     | 
| 
       610 
585 
     | 
    
         
             
                  account_address: '0x27975005fd8b836a905dc7f81c51f89e76091a4d0c4d694265f6eae0c05cb400',
         
     | 
| 
       611 
     | 
    
         
            -
                  module_name: ' 
     | 
| 
       612 
     | 
    
         
            -
                  struct_name: ' 
     | 
| 
      
 586 
     | 
    
         
            +
                  module_name: 'proton_a5d',
         
     | 
| 
      
 587 
     | 
    
         
            +
                  struct_name: 'PROTON_E54',
         
     | 
| 
       613 
588 
     | 
    
         
             
                },
         
     | 
| 
       614 
589 
     | 
    
         
             
                extensions: {
         
     | 
| 
       615 
590 
     | 
    
         
             
                  data: [],
         
     | 
| 
         @@ -32,6 +32,7 @@ export abstract class AbstractCodegen<ModuleTypes, NetworkType> { 
     | 
|
| 
       32 
32 
     | 
    
         
             
              STRUCT_FIELD_NAME: string = 'data'
         
     | 
| 
       33 
33 
     | 
    
         
             
              GENERATE_CLIENT = false
         
     | 
| 
       34 
34 
     | 
    
         
             
              GENERATE_ON_ENTRY = true
         
     | 
| 
      
 35 
     | 
    
         
            +
              PAYLOAD_OPTIONAL = false
         
     | 
| 
       35 
36 
     | 
    
         | 
| 
       36 
37 
     | 
    
         
             
              abstract fetchModules(account: string, network: NetworkType): Promise<ModuleTypes>
         
     | 
| 
       37 
38 
     | 
    
         
             
              abstract toInternalModules(modules: ModuleTypes): InternalMoveModule[]
         
     | 
| 
         @@ -282,7 +283,7 @@ export abstract class AbstractCodegen<ModuleTypes, NetworkType> { 
     | 
|
| 
       282 
283 
     | 
    
         
             
                }
         
     | 
| 
       283 
284 
     | 
    
         | 
| 
       284 
285 
     | 
    
         
             
                const fields = this.getMeaningfulFunctionParams(func.params).map((param) => {
         
     | 
| 
       285 
     | 
    
         
            -
                  return this.generateTypeForDescriptor(param, module.address)
         
     | 
| 
      
 286 
     | 
    
         
            +
                  return this.generateTypeForDescriptor(param, module.address) + (this.PAYLOAD_OPTIONAL ? ' | undefined' : '')
         
     | 
| 
       286 
287 
     | 
    
         
             
                })
         
     | 
| 
       287 
288 
     | 
    
         | 
| 
       288 
289 
     | 
    
         
             
                const camelFuncName = upperFirst(camelCase(func.name))
         
     | 
    
        package/src/sui/builtin/0x2.ts
    CHANGED
    
    | 
         @@ -277,44 +277,58 @@ export namespace coin { 
     | 
|
| 
       277 
277 
     | 
    
         
             
              }
         
     | 
| 
       278 
278 
     | 
    
         | 
| 
       279 
279 
     | 
    
         
             
              export interface BurnPayload<T0 = any>
         
     | 
| 
       280 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       281 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 280 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 281 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       282 
282 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       283 
283 
     | 
    
         
             
              }
         
     | 
| 
       284 
284 
     | 
    
         | 
| 
       285 
285 
     | 
    
         
             
              export interface JoinPayload<T0 = any>
         
     | 
| 
       286 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       287 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 286 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 287 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       288 
288 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       289 
289 
     | 
    
         
             
              }
         
     | 
| 
       290 
290 
     | 
    
         | 
| 
       291 
291 
     | 
    
         
             
              export interface MintAndTransferPayload<T0 = any>
         
     | 
| 
       292 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       293 
     | 
    
         
            -
             
     | 
| 
      
 292 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 293 
     | 
    
         
            +
                  [SuiAddress | undefined, bigint | undefined, SuiAddress | undefined]
         
     | 
| 
      
 294 
     | 
    
         
            +
                > {
         
     | 
| 
      
 295 
     | 
    
         
            +
                arguments_decoded: [
         
     | 
| 
      
 296 
     | 
    
         
            +
                  SuiAddress | undefined,
         
     | 
| 
      
 297 
     | 
    
         
            +
                  bigint | undefined,
         
     | 
| 
      
 298 
     | 
    
         
            +
                  SuiAddress | undefined
         
     | 
| 
      
 299 
     | 
    
         
            +
                ];
         
     | 
| 
       294 
300 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       295 
301 
     | 
    
         
             
              }
         
     | 
| 
       296 
302 
     | 
    
         | 
| 
       297 
303 
     | 
    
         
             
              export interface UpdateDescriptionPayload<T0 = any>
         
     | 
| 
       298 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       299 
     | 
    
         
            -
             
     | 
| 
      
 304 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 305 
     | 
    
         
            +
                  [SuiAddress | undefined, SuiAddress | undefined]
         
     | 
| 
      
 306 
     | 
    
         
            +
                > {
         
     | 
| 
      
 307 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, SuiAddress | undefined];
         
     | 
| 
       300 
308 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       301 
309 
     | 
    
         
             
              }
         
     | 
| 
       302 
310 
     | 
    
         | 
| 
       303 
311 
     | 
    
         
             
              export interface UpdateIconUrlPayload<T0 = any>
         
     | 
| 
       304 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       305 
     | 
    
         
            -
             
     | 
| 
      
 312 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 313 
     | 
    
         
            +
                  [SuiAddress | undefined, SuiAddress | undefined]
         
     | 
| 
      
 314 
     | 
    
         
            +
                > {
         
     | 
| 
      
 315 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, SuiAddress | undefined];
         
     | 
| 
       306 
316 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       307 
317 
     | 
    
         
             
              }
         
     | 
| 
       308 
318 
     | 
    
         | 
| 
       309 
319 
     | 
    
         
             
              export interface UpdateNamePayload<T0 = any>
         
     | 
| 
       310 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       311 
     | 
    
         
            -
             
     | 
| 
      
 320 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 321 
     | 
    
         
            +
                  [SuiAddress | undefined, SuiAddress | undefined]
         
     | 
| 
      
 322 
     | 
    
         
            +
                > {
         
     | 
| 
      
 323 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, SuiAddress | undefined];
         
     | 
| 
       312 
324 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       313 
325 
     | 
    
         
             
              }
         
     | 
| 
       314 
326 
     | 
    
         | 
| 
       315 
327 
     | 
    
         
             
              export interface UpdateSymbolPayload<T0 = any>
         
     | 
| 
       316 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       317 
     | 
    
         
            -
             
     | 
| 
      
 328 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 329 
     | 
    
         
            +
                  [SuiAddress | undefined, SuiAddress | undefined]
         
     | 
| 
      
 330 
     | 
    
         
            +
                > {
         
     | 
| 
      
 331 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, SuiAddress | undefined];
         
     | 
| 
       318 
332 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       319 
333 
     | 
    
         
             
              }
         
     | 
| 
       320 
334 
     | 
    
         
             
            }
         
     | 
| 
         @@ -490,32 +504,34 @@ export namespace display { 
     | 
|
| 
       490 
504 
     | 
    
         
             
              }
         
     | 
| 
       491 
505 
     | 
    
         | 
| 
       492 
506 
     | 
    
         
             
              export interface AddPayload<T0 = any>
         
     | 
| 
       493 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress, string]> {
         
     | 
| 
       494 
     | 
    
         
            -
                arguments_decoded: [SuiAddress, string];
         
     | 
| 
      
 507 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined, string | undefined]> {
         
     | 
| 
      
 508 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, string | undefined];
         
     | 
| 
       495 
509 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       496 
510 
     | 
    
         
             
              }
         
     | 
| 
       497 
511 
     | 
    
         | 
| 
       498 
512 
     | 
    
         
             
              export interface AddMultiplePayload<T0 = any>
         
     | 
| 
       499 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       500 
     | 
    
         
            -
             
     | 
| 
      
 513 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 514 
     | 
    
         
            +
                  [SuiAddress | undefined, string[] | undefined]
         
     | 
| 
      
 515 
     | 
    
         
            +
                > {
         
     | 
| 
      
 516 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, string[] | undefined];
         
     | 
| 
       501 
517 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       502 
518 
     | 
    
         
             
              }
         
     | 
| 
       503 
519 
     | 
    
         | 
| 
       504 
520 
     | 
    
         
             
              export interface CreateAndKeepPayload<T0 = any>
         
     | 
| 
       505 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       506 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 521 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 522 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       507 
523 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       508 
524 
     | 
    
         
             
              }
         
     | 
| 
       509 
525 
     | 
    
         | 
| 
       510 
526 
     | 
    
         
             
              export interface EditPayload<T0 = any>
         
     | 
| 
       511 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress, string]> {
         
     | 
| 
       512 
     | 
    
         
            -
                arguments_decoded: [SuiAddress, string];
         
     | 
| 
      
 527 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined, string | undefined]> {
         
     | 
| 
      
 528 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, string | undefined];
         
     | 
| 
       513 
529 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       514 
530 
     | 
    
         
             
              }
         
     | 
| 
       515 
531 
     | 
    
         | 
| 
       516 
532 
     | 
    
         
             
              export interface RemovePayload<T0 = any>
         
     | 
| 
       517 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       518 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 533 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 534 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       519 
535 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       520 
536 
     | 
    
         
             
              }
         
     | 
| 
       521 
537 
     | 
    
         | 
| 
         @@ -1137,44 +1153,52 @@ export class pay extends SuiBaseProcessor { 
     | 
|
| 
       1137 
1153 
     | 
    
         | 
| 
       1138 
1154 
     | 
    
         
             
            export namespace pay {
         
     | 
| 
       1139 
1155 
     | 
    
         
             
              export interface DivideAndKeepPayload<T0 = any>
         
     | 
| 
       1140 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress, bigint]> {
         
     | 
| 
       1141 
     | 
    
         
            -
                arguments_decoded: [SuiAddress, bigint];
         
     | 
| 
      
 1156 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined, bigint | undefined]> {
         
     | 
| 
      
 1157 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, bigint | undefined];
         
     | 
| 
       1142 
1158 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1143 
1159 
     | 
    
         
             
              }
         
     | 
| 
       1144 
1160 
     | 
    
         | 
| 
       1145 
1161 
     | 
    
         
             
              export interface JoinPayload<T0 = any>
         
     | 
| 
       1146 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       1147 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 1162 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 1163 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       1148 
1164 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1149 
1165 
     | 
    
         
             
              }
         
     | 
| 
       1150 
1166 
     | 
    
         | 
| 
       1151 
1167 
     | 
    
         
             
              export interface JoinVecPayload<T0 = any>
         
     | 
| 
       1152 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress]> {
         
     | 
| 
       1153 
     | 
    
         
            -
                arguments_decoded: [SuiAddress];
         
     | 
| 
      
 1168 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined]> {
         
     | 
| 
      
 1169 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined];
         
     | 
| 
       1154 
1170 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1155 
1171 
     | 
    
         
             
              }
         
     | 
| 
       1156 
1172 
     | 
    
         | 
| 
       1157 
1173 
     | 
    
         
             
              export interface JoinVecAndTransferPayload<T0 = any>
         
     | 
| 
       1158 
     | 
    
         
            -
                extends TypedFunctionPayload<[coin.Coin<T0>[]]> {
         
     | 
| 
       1159 
     | 
    
         
            -
                arguments_decoded: [coin.Coin<T0>[]];
         
     | 
| 
      
 1174 
     | 
    
         
            +
                extends TypedFunctionPayload<[coin.Coin<T0>[] | undefined]> {
         
     | 
| 
      
 1175 
     | 
    
         
            +
                arguments_decoded: [coin.Coin<T0>[] | undefined];
         
     | 
| 
       1160 
1176 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1161 
1177 
     | 
    
         
             
              }
         
     | 
| 
       1162 
1178 
     | 
    
         | 
| 
       1163 
1179 
     | 
    
         
             
              export interface SplitPayload<T0 = any>
         
     | 
| 
       1164 
     | 
    
         
            -
                extends TypedFunctionPayload<[SuiAddress, bigint]> {
         
     | 
| 
       1165 
     | 
    
         
            -
                arguments_decoded: [SuiAddress, bigint];
         
     | 
| 
      
 1180 
     | 
    
         
            +
                extends TypedFunctionPayload<[SuiAddress | undefined, bigint | undefined]> {
         
     | 
| 
      
 1181 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, bigint | undefined];
         
     | 
| 
       1166 
1182 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1167 
1183 
     | 
    
         
             
              }
         
     | 
| 
       1168 
1184 
     | 
    
         | 
| 
       1169 
1185 
     | 
    
         
             
              export interface SplitAndTransferPayload<T0 = any>
         
     | 
| 
       1170 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       1171 
     | 
    
         
            -
             
     | 
| 
      
 1186 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 1187 
     | 
    
         
            +
                  [SuiAddress | undefined, bigint | undefined, SuiAddress | undefined]
         
     | 
| 
      
 1188 
     | 
    
         
            +
                > {
         
     | 
| 
      
 1189 
     | 
    
         
            +
                arguments_decoded: [
         
     | 
| 
      
 1190 
     | 
    
         
            +
                  SuiAddress | undefined,
         
     | 
| 
      
 1191 
     | 
    
         
            +
                  bigint | undefined,
         
     | 
| 
      
 1192 
     | 
    
         
            +
                  SuiAddress | undefined
         
     | 
| 
      
 1193 
     | 
    
         
            +
                ];
         
     | 
| 
       1172 
1194 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1173 
1195 
     | 
    
         
             
              }
         
     | 
| 
       1174 
1196 
     | 
    
         | 
| 
       1175 
1197 
     | 
    
         
             
              export interface SplitVecPayload<T0 = any>
         
     | 
| 
       1176 
     | 
    
         
            -
                extends TypedFunctionPayload< 
     | 
| 
       1177 
     | 
    
         
            -
             
     | 
| 
      
 1198 
     | 
    
         
            +
                extends TypedFunctionPayload<
         
     | 
| 
      
 1199 
     | 
    
         
            +
                  [SuiAddress | undefined, bigint[] | undefined]
         
     | 
| 
      
 1200 
     | 
    
         
            +
                > {
         
     | 
| 
      
 1201 
     | 
    
         
            +
                arguments_decoded: [SuiAddress | undefined, bigint[] | undefined];
         
     | 
| 
       1178 
1202 
     | 
    
         
             
                type_arguments: [string];
         
     | 
| 
       1179 
1203 
     | 
    
         
             
              }
         
     | 
| 
       1180 
1204 
     | 
    
         
             
            }
         
     | 
| 
         @@ -1231,8 +1255,8 @@ export namespace sui { 
     | 
|
| 
       1231 
1255 
     | 
    
         
             
              }
         
     | 
| 
       1232 
1256 
     | 
    
         | 
| 
       1233 
1257 
     | 
    
         
             
              export interface TransferPayload
         
     | 
| 
       1234 
     | 
    
         
            -
                extends TypedFunctionPayload<[coin.Coin<sui.SUI>]> {
         
     | 
| 
       1235 
     | 
    
         
            -
                arguments_decoded: [coin.Coin<sui.SUI>];
         
     | 
| 
      
 1258 
     | 
    
         
            +
                extends TypedFunctionPayload<[coin.Coin<sui.SUI> | undefined]> {
         
     | 
| 
      
 1259 
     | 
    
         
            +
                arguments_decoded: [coin.Coin<sui.SUI> | undefined];
         
     | 
| 
       1236 
1260 
     | 
    
         
             
                type_arguments: [];
         
     | 
| 
       1237 
1261 
     | 
    
         
             
              }
         
     | 
| 
       1238 
1262 
     | 
    
         
             
            }
         
     |