@sentio/sdk 2.11.0-rc.6 → 2.11.0-rc.7
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/aptos-processor.js +4 -2
 - package/lib/aptos/aptos-processor.js.map +1 -1
 - package/lib/aptos/builtin/0x1.js +38 -19
 - package/lib/aptos/builtin/0x1.js.map +1 -1
 - package/lib/aptos/builtin/0x3.js +8 -4
 - package/lib/aptos/builtin/0x3.js.map +1 -1
 - package/lib/core/event-tracker.js +6 -3
 - package/lib/core/event-tracker.js.map +1 -1
 - package/lib/core/exporter.js +2 -1
 - package/lib/core/exporter.js.map +1 -1
 - package/lib/core/meter.js +2 -1
 - package/lib/core/meter.js.map +1 -1
 - package/lib/eth/account-processor-state.js +2 -1
 - package/lib/eth/account-processor-state.js.map +1 -1
 - package/lib/eth/base-processor-template.js +4 -2
 - package/lib/eth/base-processor-template.js.map +1 -1
 - package/lib/eth/binds.js +2 -1
 - package/lib/eth/binds.js.map +1 -1
 - package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +2 -1
 - package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc1155-processor.js +2 -1
 - package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc20-processor.js +2 -1
 - package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc20bytes-processor.js +2 -1
 - package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc721-processor.js +2 -1
 - package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/EACAggregatorProxy__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/EACAggregatorProxy__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/ERC1155__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/ERC1155__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/ERC20Bytes__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/ERC20Bytes__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/ERC20__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/ERC20__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/ERC721__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/ERC721__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/factories/WETH9__factory.js +2 -1
 - package/lib/eth/builtin/internal/factories/WETH9__factory.js.map +1 -1
 - package/lib/eth/builtin/internal/weth9-processor.js +2 -1
 - package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
 - package/lib/solana/solana-processor.js +2 -1
 - package/lib/solana/solana-processor.js.map +1 -1
 - package/lib/sui/builtin/0x1.js +10 -5
 - package/lib/sui/builtin/0x1.js.map +1 -1
 - package/lib/sui/builtin/0x2.js +26 -13
 - package/lib/sui/builtin/0x2.js.map +1 -1
 - package/lib/sui/builtin/0x3.js +12 -6
 - package/lib/sui/builtin/0x3.js.map +1 -1
 - package/lib/sui/sui-processor.js +4 -2
 - package/lib/sui/sui-processor.js.map +1 -1
 - package/package.json +7 -7
 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"weth9-processor.js","sourceRoot":"","sources":["../../../../src/eth/builtin/internal/weth9-processor.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,mBAAmB,EAGnB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EAEjB,YAAY,EACZ,aAAa,EAEb,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAS,cAAc,EAAE,MAAM,YAAY,CAAC;AAuFnD,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAE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L,CAAC;SACH;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,MAAO,EAAE,WAAW,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,UAAU,gBAAgB,CAC9B,gBAA0C,EAC1C,OAAe;IAEf,MAAM,OAAO,GAAG,6BAA6B,CAAC,gBAAgB,CAAC,CAAC;IAChE,IAAI,QAAQ,GAAG,gBAAgB,CAC7B,OAAO,EACP,OAAO,EACP,OAAO,CACa,CAAC;IACvB,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1E,QAAQ,GAAG,IAAI,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAC9C,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;KACvD;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport { Overrides } from \"ethers\";\nimport { Networkish } from \"ethers/providers\";\nimport {\n  addContractByABI,\n  getContractByABI,\n  addProcessor,\n  getProcessor,\n  getProvider,\n  transformEtherError,\n  Trace,\n  BindOptions,\n  BaseProcessor,\n  BaseProcessorTemplate,\n  BoundContractView,\n  ContractContext,\n  ContractView,\n  DummyProvider,\n  TypedCallTrace,\n  getNetworkFromCtxOrNetworkish,\n} from \"@sentio/sdk/eth\";\nimport { BaseContext } from \"@sentio/sdk\";\nimport { EthFetchConfig } from \"@sentio/protos\";\n\nimport { WETH9, WETH9__factory } from \"./index.js\";\nimport {\n  ApprovalEvent,\n  ApprovalEventFilter,\n  TransferEvent,\n  TransferEventFilter,\n  DepositEvent,\n  DepositEventFilter,\n  WithdrawalEvent,\n  WithdrawalEventFilter,\n} from \"./WETH9.js\";\n\nexport interface NameCallObject {}\n\nexport type NameCallTrace = TypedCallTrace<[], NameCallObject> & Trace;\n\nexport interface ApproveCallObject {\n  guy: string;\n  wad: bigint;\n}\n\nexport type ApproveCallTrace = TypedCallTrace<\n  [string, bigint],\n  ApproveCallObject\n> &\n  Trace;\n\nexport interface TotalSupplyCallObject {}\n\nexport type TotalSupplyCallTrace = TypedCallTrace<[], TotalSupplyCallObject> &\n  Trace;\n\nexport interface TransferFromCallObject {\n  src: string;\n  dst: string;\n  wad: bigint;\n}\n\nexport type TransferFromCallTrace = TypedCallTrace<\n  [string, string, bigint],\n  TransferFromCallObject\n> &\n  Trace;\n\nexport interface WithdrawCallObject {\n  wad: bigint;\n}\n\nexport type WithdrawCallTrace = TypedCallTrace<[bigint], WithdrawCallObject> &\n  Trace;\n\nexport interface DecimalsCallObject {}\n\nexport type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject> & Trace;\n\nexport interface BalanceOfCallObject {}\n\nexport type BalanceOfCallTrace = TypedCallTrace<[string], BalanceOfCallObject> &\n  Trace;\n\nexport interface SymbolCallObject {}\n\nexport type SymbolCallTrace = TypedCallTrace<[], SymbolCallObject> & Trace;\n\nexport interface TransferCallObject {\n  dst: string;\n  wad: bigint;\n}\n\nexport type TransferCallTrace = TypedCallTrace<\n  [string, bigint],\n  TransferCallObject\n> &\n  Trace;\n\nexport interface DepositCallObject {}\n\nexport type DepositCallTrace = TypedCallTrace<[], DepositCallObject> & Trace;\n\nexport interface AllowanceCallObject {}\n\nexport type AllowanceCallTrace = TypedCallTrace<\n  [string, string],\n  AllowanceCallObject\n> &\n  Trace;\n\nconst templateContract = WETH9__factory.connect(\"0x0\", DummyProvider);\n\nexport class WETH9ContractView extends ContractView<WETH9> {\n  constructor(contract: WETH9) {\n    super(contract);\n  }\n\n  async name(overrides?: Overrides): Promise<string> {\n    try {\n      return await this.contract.getFunction(\"name()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async totalSupply(overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"totalSupply()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async decimals(overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"decimals()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async balanceOf(arg0: string, overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"balanceOf(address)\")(\n        arg0,\n        overrides || {}\n      );\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async symbol(overrides?: Overrides): Promise<string> {\n    try {\n      return await this.contract.getFunction(\"symbol()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async allowance(\n    arg0: string,\n    arg1: string,\n    overrides?: Overrides\n  ): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"allowance(address,address)\")(\n        arg0,\n        arg1,\n        overrides || {}\n      );\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n}\n\nexport class WETH9BoundContractView extends BoundContractView<\n  WETH9,\n  WETH9ContractView\n> {\n  async name(overrides?: Overrides): Promise<string> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.name(overrides || {});\n  }\n\n  async totalSupply(overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.totalSupply(overrides || {});\n  }\n\n  async decimals(overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.decimals(overrides || {});\n  }\n\n  async balanceOf(arg0: string, overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.balanceOf(arg0, overrides || {});\n  }\n\n  async symbol(overrides?: Overrides): Promise<string> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.symbol(overrides || {});\n  }\n\n  async allowance(\n    arg0: string,\n    arg1: string,\n    overrides?: Overrides\n  ): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.allowance(arg0, arg1, overrides || {});\n  }\n}\n\nexport type WETH9Context = ContractContext<WETH9, WETH9BoundContractView>;\n\nexport class WETH9Processor extends BaseProcessor<\n  WETH9,\n  WETH9BoundContractView\n> {\n  onEventApproval(\n    handler: (event: ApprovalEvent, ctx: WETH9Context) => void,\n    filter?: ApprovalEventFilter | ApprovalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Approval(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventTransfer(\n    handler: (event: TransferEvent, ctx: WETH9Context) => void,\n    filter?: TransferEventFilter | TransferEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Transfer(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventDeposit(\n    handler: (event: DepositEvent, ctx: WETH9Context) => void,\n    filter?: DepositEventFilter | DepositEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Deposit(address,uint256)\"](null, null);\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventWithdrawal(\n    handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,\n    filter?: WithdrawalEventFilter | WithdrawalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Withdrawal(address,uint256)\"](\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onCallName(\n    handler: (call: NameCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x06fdde03\", handler, fetchConfig);\n  }\n\n  onCallApprove(\n    handler: (call: ApproveCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x095ea7b3\", handler, fetchConfig);\n  }\n\n  onCallTotalSupply(\n    handler: (call: TotalSupplyCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x18160ddd\", handler, fetchConfig);\n  }\n\n  onCallTransferFrom(\n    handler: (call: TransferFromCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x23b872dd\", handler, fetchConfig);\n  }\n\n  onCallWithdraw(\n    handler: (call: WithdrawCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x2e1a7d4d\", handler, fetchConfig);\n  }\n\n  onCallDecimals(\n    handler: (call: DecimalsCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x313ce567\", handler, fetchConfig);\n  }\n\n  onCallBalanceOf(\n    handler: (call: BalanceOfCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x70a08231\", handler, fetchConfig);\n  }\n\n  onCallSymbol(\n    handler: (call: SymbolCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x95d89b41\", handler, fetchConfig);\n  }\n\n  onCallTransfer(\n    handler: (call: TransferCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xa9059cbb\", handler, fetchConfig);\n  }\n\n  onCallDeposit(\n    handler: (call: DepositCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xd0e30db0\", handler, fetchConfig);\n  }\n\n  onCallAllowance(\n    handler: (call: AllowanceCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xdd62ed3e\", handler, fetchConfig);\n  }\n\n  public static filters = {\n    Approval(src?: string | null, guy?: string | null, wad?: null) {\n      return templateContract.filters[\"Approval(address,address,uint256)\"](\n        src,\n        guy,\n        wad\n      );\n    },\n    Transfer(src?: string | null, dst?: string | null, wad?: null) {\n      return templateContract.filters[\"Transfer(address,address,uint256)\"](\n        src,\n        dst,\n        wad\n      );\n    },\n    Deposit(dst?: string | null, wad?: null) {\n      return templateContract.filters[\"Deposit(address,uint256)\"](dst, wad);\n    },\n    Withdrawal(src?: string | null, wad?: null) {\n      return templateContract.filters[\"Withdrawal(address,uint256)\"](src, wad);\n    },\n  };\n\n  protected CreateBoundContractView(): WETH9BoundContractView {\n    const view = getWETH9Contract(this.config.network, this.config.address);\n    return new WETH9BoundContractView(this.config.address, view);\n  }\n\n  public static bind(options: BindOptions): WETH9Processor {\n    if (!options.name) {\n      options.name = \"WETH9\";\n    }\n    let processor = getProcessor(options) as WETH9Processor;\n    if (!processor) {\n      processor = new WETH9Processor(options);\n      addProcessor(options, processor);\n    }\n    return processor;\n  }\n}\n\nexport class WETH9ProcessorTemplate extends BaseProcessorTemplate<\n  WETH9,\n  WETH9BoundContractView\n> {\n  bindInternal(options: BindOptions) {\n    if (!options.name) {\n      options.name = \"WETH9\";\n    }\n    let processor = getProcessor(options) as WETH9Processor;\n    if (!processor) {\n      processor = new WETH9Processor(options);\n      addProcessor(options, processor);\n    }\n    return processor;\n  }\n\n  onEventApproval(\n    handler: (event: ApprovalEvent, ctx: WETH9Context) => void,\n    filter?: ApprovalEventFilter | ApprovalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Approval(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventTransfer(\n    handler: (event: TransferEvent, ctx: WETH9Context) => void,\n    filter?: TransferEventFilter | TransferEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Transfer(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventDeposit(\n    handler: (event: DepositEvent, ctx: WETH9Context) => void,\n    filter?: DepositEventFilter | DepositEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Deposit(address,uint256)\"](null, null);\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventWithdrawal(\n    handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,\n    filter?: WithdrawalEventFilter | WithdrawalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Withdrawal(address,uint256)\"](\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n}\n\nexport function getWETH9Contract(\n  contextOrNetwork: BaseContext | Networkish,\n  address: string\n): WETH9ContractView {\n  const network = getNetworkFromCtxOrNetworkish(contextOrNetwork);\n  let contract = getContractByABI(\n    \"WETH9\",\n    address,\n    network\n  ) as WETH9ContractView;\n  if (!contract) {\n    const rawContract = WETH9__factory.connect(address, getProvider(network));\n    contract = new WETH9ContractView(rawContract);\n    addContractByABI(\"WETH9\", address, network, contract);\n  }\n  return contract;\n}\n"]}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"weth9-processor.js","sourceRoot":"","sources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C;QAErC,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC3E;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,MAAO,EAAE,WAAW,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB,CACf,OAA4D,EAC5D,MAAwD,EACxD,WAAqC;QAErC,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAC9D,IAAI,EACJ,IAAI,CACL,CAAC;SACH;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,MAAO,EAAE,WAAW,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,UAAU,gBAAgB,CAC9B,gBAA0C,EAC1C,OAAe;IAEf,MAAM,OAAO,GAAG,6BAA6B,CAAC,gBAAgB,CAAC,CAAC;IAChE,IAAI,QAAQ,GAAG,gBAAgB,CAC7B,OAAO,EACP,OAAO,EACP,OAAO,CACa,CAAC;IACvB,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1E,QAAQ,GAAG,IAAI,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAC9C,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;KACvD;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport { Overrides } from \"ethers\";\nimport { Networkish } from \"ethers/providers\";\nimport {\n  addContractByABI,\n  getContractByABI,\n  addProcessor,\n  getProcessor,\n  getProvider,\n  transformEtherError,\n  Trace,\n  BindOptions,\n  BaseProcessor,\n  BaseProcessorTemplate,\n  BoundContractView,\n  ContractContext,\n  ContractView,\n  DummyProvider,\n  TypedCallTrace,\n  getNetworkFromCtxOrNetworkish,\n} from \"@sentio/sdk/eth\";\nimport { BaseContext } from \"@sentio/sdk\";\nimport { EthFetchConfig } from \"@sentio/protos\";\n\nimport { WETH9, WETH9__factory } from \"./index.js\";\nimport {\n  ApprovalEvent,\n  ApprovalEventFilter,\n  TransferEvent,\n  TransferEventFilter,\n  DepositEvent,\n  DepositEventFilter,\n  WithdrawalEvent,\n  WithdrawalEventFilter,\n} from \"./WETH9.js\";\n\nexport interface NameCallObject {}\n\nexport type NameCallTrace = TypedCallTrace<[], NameCallObject> & Trace;\n\nexport interface ApproveCallObject {\n  guy: string;\n  wad: bigint;\n}\n\nexport type ApproveCallTrace = TypedCallTrace<\n  [string, bigint],\n  ApproveCallObject\n> &\n  Trace;\n\nexport interface TotalSupplyCallObject {}\n\nexport type TotalSupplyCallTrace = TypedCallTrace<[], TotalSupplyCallObject> &\n  Trace;\n\nexport interface TransferFromCallObject {\n  src: string;\n  dst: string;\n  wad: bigint;\n}\n\nexport type TransferFromCallTrace = TypedCallTrace<\n  [string, string, bigint],\n  TransferFromCallObject\n> &\n  Trace;\n\nexport interface WithdrawCallObject {\n  wad: bigint;\n}\n\nexport type WithdrawCallTrace = TypedCallTrace<[bigint], WithdrawCallObject> &\n  Trace;\n\nexport interface DecimalsCallObject {}\n\nexport type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject> & Trace;\n\nexport interface BalanceOfCallObject {}\n\nexport type BalanceOfCallTrace = TypedCallTrace<[string], BalanceOfCallObject> &\n  Trace;\n\nexport interface SymbolCallObject {}\n\nexport type SymbolCallTrace = TypedCallTrace<[], SymbolCallObject> & Trace;\n\nexport interface TransferCallObject {\n  dst: string;\n  wad: bigint;\n}\n\nexport type TransferCallTrace = TypedCallTrace<\n  [string, bigint],\n  TransferCallObject\n> &\n  Trace;\n\nexport interface DepositCallObject {}\n\nexport type DepositCallTrace = TypedCallTrace<[], DepositCallObject> & Trace;\n\nexport interface AllowanceCallObject {}\n\nexport type AllowanceCallTrace = TypedCallTrace<\n  [string, string],\n  AllowanceCallObject\n> &\n  Trace;\n\nconst templateContract = WETH9__factory.connect(\"0x0\", DummyProvider);\n\nexport class WETH9ContractView extends ContractView<WETH9> {\n  constructor(contract: WETH9) {\n    super(contract);\n  }\n\n  async name(overrides?: Overrides): Promise<string> {\n    try {\n      return await this.contract.getFunction(\"name()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async totalSupply(overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"totalSupply()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async decimals(overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"decimals()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async balanceOf(arg0: string, overrides?: Overrides): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"balanceOf(address)\")(\n        arg0,\n        overrides || {}\n      );\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async symbol(overrides?: Overrides): Promise<string> {\n    try {\n      return await this.contract.getFunction(\"symbol()\")(overrides || {});\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n\n  async allowance(\n    arg0: string,\n    arg1: string,\n    overrides?: Overrides\n  ): Promise<bigint> {\n    try {\n      return await this.contract.getFunction(\"allowance(address,address)\")(\n        arg0,\n        arg1,\n        overrides || {}\n      );\n    } catch (e) {\n      throw transformEtherError(e, undefined);\n    }\n  }\n}\n\nexport class WETH9BoundContractView extends BoundContractView<\n  WETH9,\n  WETH9ContractView\n> {\n  async name(overrides?: Overrides): Promise<string> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.name(overrides || {});\n  }\n\n  async totalSupply(overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.totalSupply(overrides || {});\n  }\n\n  async decimals(overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.decimals(overrides || {});\n  }\n\n  async balanceOf(arg0: string, overrides?: Overrides): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.balanceOf(arg0, overrides || {});\n  }\n\n  async symbol(overrides?: Overrides): Promise<string> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.symbol(overrides || {});\n  }\n\n  async allowance(\n    arg0: string,\n    arg1: string,\n    overrides?: Overrides\n  ): Promise<bigint> {\n    if (!overrides && this.context) {\n      overrides = {\n        blockTag: this.context.blockNumber,\n      };\n    }\n    return await this.view.allowance(arg0, arg1, overrides || {});\n  }\n}\n\nexport type WETH9Context = ContractContext<WETH9, WETH9BoundContractView>;\n\nexport class WETH9Processor extends BaseProcessor<\n  WETH9,\n  WETH9BoundContractView\n> {\n  onEventApproval(\n    handler: (event: ApprovalEvent, ctx: WETH9Context) => void,\n    filter?: ApprovalEventFilter | ApprovalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Approval(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventTransfer(\n    handler: (event: TransferEvent, ctx: WETH9Context) => void,\n    filter?: TransferEventFilter | TransferEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Transfer(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventDeposit(\n    handler: (event: DepositEvent, ctx: WETH9Context) => void,\n    filter?: DepositEventFilter | DepositEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Deposit(address,uint256)\"](null, null);\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventWithdrawal(\n    handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,\n    filter?: WithdrawalEventFilter | WithdrawalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Withdrawal(address,uint256)\"](\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onCallName(\n    handler: (call: NameCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x06fdde03\", handler, fetchConfig);\n  }\n\n  onCallApprove(\n    handler: (call: ApproveCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x095ea7b3\", handler, fetchConfig);\n  }\n\n  onCallTotalSupply(\n    handler: (call: TotalSupplyCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x18160ddd\", handler, fetchConfig);\n  }\n\n  onCallTransferFrom(\n    handler: (call: TransferFromCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x23b872dd\", handler, fetchConfig);\n  }\n\n  onCallWithdraw(\n    handler: (call: WithdrawCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x2e1a7d4d\", handler, fetchConfig);\n  }\n\n  onCallDecimals(\n    handler: (call: DecimalsCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x313ce567\", handler, fetchConfig);\n  }\n\n  onCallBalanceOf(\n    handler: (call: BalanceOfCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x70a08231\", handler, fetchConfig);\n  }\n\n  onCallSymbol(\n    handler: (call: SymbolCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0x95d89b41\", handler, fetchConfig);\n  }\n\n  onCallTransfer(\n    handler: (call: TransferCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xa9059cbb\", handler, fetchConfig);\n  }\n\n  onCallDeposit(\n    handler: (call: DepositCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xd0e30db0\", handler, fetchConfig);\n  }\n\n  onCallAllowance(\n    handler: (call: AllowanceCallTrace, ctx: WETH9Context) => void,\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    return super.onTrace(\"0xdd62ed3e\", handler, fetchConfig);\n  }\n\n  public static filters = {\n    Approval(src?: string | null, guy?: string | null, wad?: null) {\n      return templateContract.filters[\"Approval(address,address,uint256)\"](\n        src,\n        guy,\n        wad\n      );\n    },\n    Transfer(src?: string | null, dst?: string | null, wad?: null) {\n      return templateContract.filters[\"Transfer(address,address,uint256)\"](\n        src,\n        dst,\n        wad\n      );\n    },\n    Deposit(dst?: string | null, wad?: null) {\n      return templateContract.filters[\"Deposit(address,uint256)\"](dst, wad);\n    },\n    Withdrawal(src?: string | null, wad?: null) {\n      return templateContract.filters[\"Withdrawal(address,uint256)\"](src, wad);\n    },\n  };\n\n  protected CreateBoundContractView(): WETH9BoundContractView {\n    const view = getWETH9Contract(this.config.network, this.config.address);\n    return new WETH9BoundContractView(this.config.address, view);\n  }\n\n  public static bind(options: BindOptions): WETH9Processor {\n    if (!options.name) {\n      options.name = \"WETH9\";\n    }\n    let processor = getProcessor(options) as WETH9Processor;\n    if (!processor) {\n      processor = new WETH9Processor(options);\n      addProcessor(options, processor);\n    }\n    return processor;\n  }\n}\n\nexport class WETH9ProcessorTemplate extends BaseProcessorTemplate<\n  WETH9,\n  WETH9BoundContractView\n> {\n  bindInternal(options: BindOptions) {\n    if (!options.name) {\n      options.name = \"WETH9\";\n    }\n    let processor = getProcessor(options) as WETH9Processor;\n    if (!processor) {\n      processor = new WETH9Processor(options);\n      addProcessor(options, processor);\n    }\n    return processor;\n  }\n\n  onEventApproval(\n    handler: (event: ApprovalEvent, ctx: WETH9Context) => void,\n    filter?: ApprovalEventFilter | ApprovalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Approval(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventTransfer(\n    handler: (event: TransferEvent, ctx: WETH9Context) => void,\n    filter?: TransferEventFilter | TransferEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Transfer(address,address,uint256)\"](\n        null,\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventDeposit(\n    handler: (event: DepositEvent, ctx: WETH9Context) => void,\n    filter?: DepositEventFilter | DepositEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Deposit(address,uint256)\"](null, null);\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n\n  onEventWithdrawal(\n    handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,\n    filter?: WithdrawalEventFilter | WithdrawalEventFilter[],\n    fetchConfig?: Partial<EthFetchConfig>\n  ): this {\n    if (!filter) {\n      filter = templateContract.filters[\"Withdrawal(address,uint256)\"](\n        null,\n        null\n      );\n    }\n    return super.onEvent(handler, filter!, fetchConfig);\n  }\n}\n\nexport function getWETH9Contract(\n  contextOrNetwork: BaseContext | Networkish,\n  address: string\n): WETH9ContractView {\n  const network = getNetworkFromCtxOrNetworkish(contextOrNetwork);\n  let contract = getContractByABI(\n    \"WETH9\",\n    address,\n    network\n  ) as WETH9ContractView;\n  if (!contract) {\n    const rawContract = WETH9__factory.connect(address, getProvider(network));\n    contract = new WETH9ContractView(rawContract);\n    addContractByABI(\"WETH9\", address, network, contract);\n  }\n  return contract;\n}\n"]}
         
     | 
| 
         @@ -1,9 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { SolanaContext } from './solana-context.js';
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { ListStateStorage } from '@sentio/runtime';
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { CHAIN_IDS } from '@sentio/sdk';
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
            class SolanaProcessorState extends ListStateStorage {
         
     | 
| 
       5 
5 
     | 
    
         
             
                static INSTANCE = new SolanaProcessorState();
         
     | 
| 
       6 
6 
     | 
    
         
             
            }
         
     | 
| 
      
 7 
     | 
    
         
            +
            export { SolanaProcessorState };
         
     | 
| 
       7 
8 
     | 
    
         
             
            export class SolanaBaseProcessor {
         
     | 
| 
       8 
9 
     | 
    
         
             
                instructionHandlerMap = new Map();
         
     | 
| 
       9 
10 
     | 
    
         
             
                address;
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"solana-processor.js","sourceRoot":"","sources":["../../src/solana/solana-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAavC, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"solana-process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AAO,GAAG,CAAC,gBAAgB,EAAE,CAAA;IAC/B,CAAC;IAEM,SAAS,CAAC,SAA0B;QACzC,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;QACzC,OAAO,IAAI,CAAA;IACb,CAAC;IAEM,QAAQ,CAAC,QAAyB;QACvC,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;QACtC,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["import { ProcessResult } from '@sentio/protos'\nimport { SolanaContext } from './solana-context.js'\nimport { Instruction } from '@project-serum/anchor'\nimport { SolanaBindOptions } from './solana-options.js'\nimport { ListStateStorage } from '@sentio/runtime'\nimport { CHAIN_IDS } from '@sentio/sdk'\n\ntype IndexConfigure = {\n  startSlot: bigint\n  endSlot?: bigint\n}\n\nexport interface InstructionCoder {\n  decode(ix: Buffer | string, encoding?: 'hex' | 'base58'): Instruction | null\n}\n\nexport type SolanaInstructionHandler = (instruction: Instruction, ctx: SolanaContext, accounts?: string[]) => void\n\nexport class SolanaProcessorState extends ListStateStorage<SolanaBaseProcessor> {\n  static INSTANCE: SolanaProcessorState = new SolanaProcessorState()\n}\n\nexport class SolanaBaseProcessor {\n  public instructionHandlerMap: Map<string, SolanaInstructionHandler> = new Map()\n  address: string\n  endpoint: string\n  contractName: string\n  network: string\n  processInnerInstruction: boolean\n  config: IndexConfigure = { startSlot: 0n }\n  instructionCoder: InstructionCoder\n\n  decodeInstruction(rawInstruction: string): Instruction | null {\n    if (this.instructionCoder) {\n      return this.instructionCoder.decode(rawInstruction, 'base58')\n    }\n    return null\n  }\n\n  fromParsedInstruction: (instruction: { type: string; info: any }) => Instruction | null\n\n  constructor(options: SolanaBindOptions) {\n    this.address = options.address\n    this.contractName = options.name || ''\n    this.processInnerInstruction = options.processInnerInstruction || false\n    this.network = options.network || CHAIN_IDS.SOLANA_MAINNET\n    if (options.instructionCoder) {\n      this.instructionCoder = options.instructionCoder\n    }\n    if (options.startBlock) {\n      this.startSlot(options.startBlock)\n    }\n    if (options.endBlock) {\n      this.endBlock(options.endBlock)\n    }\n    this.endpoint = options.network || 'https://api.mainnet-beta.solana.com'\n\n    SolanaProcessorState.INSTANCE.addValue(this)\n  }\n\n  public onInstruction(instructionName: string, handler: SolanaInstructionHandler) {\n    this.instructionHandlerMap.set(instructionName, handler)\n    return this\n  }\n\n  public getParsedInstruction(ins: string | { type: string; info: any }): Instruction | null {\n    if (ins) {\n      if ((ins as { type: string; info: any }).info) {\n        return this.fromParsedInstruction ? this.fromParsedInstruction(ins as { type: string; info: any }) : null\n      }\n      if (this.decodeInstruction != null) {\n        return this.decodeInstruction(ins as string)\n      }\n    }\n    return null\n  }\n\n  public getInstructionHandler(parsedInstruction: Instruction): SolanaInstructionHandler | undefined {\n    return this.instructionHandlerMap.get(parsedInstruction.name)\n  }\n\n  public async handleInstruction(\n    parsedInstruction: Instruction,\n    accounts: string[],\n    handler: SolanaInstructionHandler,\n    slot: bigint\n  ): Promise<ProcessResult> {\n    const ctx = new SolanaContext(this.contractName, this.network, this.address, slot)\n    await handler(parsedInstruction, ctx, accounts)\n    return ctx.getProcessResult()\n  }\n\n  public startSlot(startSlot: bigint | number) {\n    this.config.startSlot = BigInt(startSlot)\n    return this\n  }\n\n  public endBlock(endBlock: bigint | number) {\n    this.config.endSlot = BigInt(endBlock)\n    return this\n  }\n}\n"]}
         
     | 
    
        package/lib/sui/builtin/0x1.js
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            /* tslint:disable */
         
     | 
| 
       3 
3 
     | 
    
         
             
            /* eslint-disable */
         
     | 
| 
       4 
4 
     | 
    
         
             
            import { defaultMoveCoder, SuiBaseProcessor, SuiNetwork, } from "@sentio/sdk/sui";
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            class ascii extends SuiBaseProcessor {
         
     | 
| 
       6 
6 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       7 
7 
     | 
    
         
             
                    super("ascii", options);
         
     | 
| 
       8 
8 
     | 
    
         
             
                }
         
     | 
| 
         @@ -26,6 +26,7 @@ export class ascii extends SuiBaseProcessor { 
     | 
|
| 
       26 
26 
     | 
    
         
             
                    return this;
         
     | 
| 
       27 
27 
     | 
    
         
             
                }
         
     | 
| 
       28 
28 
     | 
    
         
             
            }
         
     | 
| 
      
 29 
     | 
    
         
            +
            export { ascii };
         
     | 
| 
       29 
30 
     | 
    
         
             
            (function (ascii) {
         
     | 
| 
       30 
31 
     | 
    
         
             
                class Char {
         
     | 
| 
       31 
32 
     | 
    
         
             
                    static TYPE_QNAME = "0x1::ascii::Char";
         
     | 
| 
         @@ -38,7 +39,7 @@ export class ascii extends SuiBaseProcessor { 
     | 
|
| 
       38 
39 
     | 
    
         
             
                }
         
     | 
| 
       39 
40 
     | 
    
         
             
                ascii.String = String;
         
     | 
| 
       40 
41 
     | 
    
         
             
            })(ascii || (ascii = {}));
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
      
 42 
     | 
    
         
            +
            class bit_vector extends SuiBaseProcessor {
         
     | 
| 
       42 
43 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       43 
44 
     | 
    
         
             
                    super("bit_vector", options);
         
     | 
| 
       44 
45 
     | 
    
         
             
                }
         
     | 
| 
         @@ -56,6 +57,7 @@ export class bit_vector extends SuiBaseProcessor { 
     | 
|
| 
       56 
57 
     | 
    
         
             
                    return this;
         
     | 
| 
       57 
58 
     | 
    
         
             
                }
         
     | 
| 
       58 
59 
     | 
    
         
             
            }
         
     | 
| 
      
 60 
     | 
    
         
            +
            export { bit_vector };
         
     | 
| 
       59 
61 
     | 
    
         
             
            (function (bit_vector) {
         
     | 
| 
       60 
62 
     | 
    
         
             
                class BitVector {
         
     | 
| 
       61 
63 
     | 
    
         
             
                    static TYPE_QNAME = "0x1::bit_vector::BitVector";
         
     | 
| 
         @@ -64,7 +66,7 @@ export class bit_vector extends SuiBaseProcessor { 
     | 
|
| 
       64 
66 
     | 
    
         
             
                }
         
     | 
| 
       65 
67 
     | 
    
         
             
                bit_vector.BitVector = BitVector;
         
     | 
| 
       66 
68 
     | 
    
         
             
            })(bit_vector || (bit_vector = {}));
         
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
      
 69 
     | 
    
         
            +
            class fixed_point32 extends SuiBaseProcessor {
         
     | 
| 
       68 
70 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       69 
71 
     | 
    
         
             
                    super("fixed_point32", options);
         
     | 
| 
       70 
72 
     | 
    
         
             
                }
         
     | 
| 
         @@ -82,6 +84,7 @@ export class fixed_point32 extends SuiBaseProcessor { 
     | 
|
| 
       82 
84 
     | 
    
         
             
                    return this;
         
     | 
| 
       83 
85 
     | 
    
         
             
                }
         
     | 
| 
       84 
86 
     | 
    
         
             
            }
         
     | 
| 
      
 87 
     | 
    
         
            +
            export { fixed_point32 };
         
     | 
| 
       85 
88 
     | 
    
         
             
            (function (fixed_point32) {
         
     | 
| 
       86 
89 
     | 
    
         
             
                class FixedPoint32 {
         
     | 
| 
       87 
90 
     | 
    
         
             
                    static TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
         
     | 
| 
         @@ -89,7 +92,7 @@ export class fixed_point32 extends SuiBaseProcessor { 
     | 
|
| 
       89 
92 
     | 
    
         
             
                }
         
     | 
| 
       90 
93 
     | 
    
         
             
                fixed_point32.FixedPoint32 = FixedPoint32;
         
     | 
| 
       91 
94 
     | 
    
         
             
            })(fixed_point32 || (fixed_point32 = {}));
         
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
      
 95 
     | 
    
         
            +
            class string_ extends SuiBaseProcessor {
         
     | 
| 
       93 
96 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       94 
97 
     | 
    
         
             
                    super("string", options);
         
     | 
| 
       95 
98 
     | 
    
         
             
                }
         
     | 
| 
         @@ -107,6 +110,7 @@ export class string_ extends SuiBaseProcessor { 
     | 
|
| 
       107 
110 
     | 
    
         
             
                    return this;
         
     | 
| 
       108 
111 
     | 
    
         
             
                }
         
     | 
| 
       109 
112 
     | 
    
         
             
            }
         
     | 
| 
      
 113 
     | 
    
         
            +
            export { string_ };
         
     | 
| 
       110 
114 
     | 
    
         
             
            (function (string_) {
         
     | 
| 
       111 
115 
     | 
    
         
             
                class String {
         
     | 
| 
       112 
116 
     | 
    
         
             
                    static TYPE_QNAME = "0x1::string::String";
         
     | 
| 
         @@ -114,7 +118,7 @@ export class string_ extends SuiBaseProcessor { 
     | 
|
| 
       114 
118 
     | 
    
         
             
                }
         
     | 
| 
       115 
119 
     | 
    
         
             
                string_.String = String;
         
     | 
| 
       116 
120 
     | 
    
         
             
            })(string_ || (string_ = {}));
         
     | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
      
 121 
     | 
    
         
            +
            class type_name extends SuiBaseProcessor {
         
     | 
| 
       118 
122 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       119 
123 
     | 
    
         
             
                    super("type_name", options);
         
     | 
| 
       120 
124 
     | 
    
         
             
                }
         
     | 
| 
         @@ -132,6 +136,7 @@ export class type_name extends SuiBaseProcessor { 
     | 
|
| 
       132 
136 
     | 
    
         
             
                    return this;
         
     | 
| 
       133 
137 
     | 
    
         
             
                }
         
     | 
| 
       134 
138 
     | 
    
         
             
            }
         
     | 
| 
      
 139 
     | 
    
         
            +
            export { type_name };
         
     | 
| 
       135 
140 
     | 
    
         
             
            (function (type_name) {
         
     | 
| 
       136 
141 
     | 
    
         
             
                class TypeName {
         
     | 
| 
       137 
142 
     | 
    
         
             
                    static TYPE_QNAME = "0x1::type_name::TypeName";
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"0x1.js","sourceRoot":"","sources":["../../../src/sui/builtin/0x1.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AAKp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;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,6lnBAA6lnB,CAC9lnB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,KAAgB;IAC3C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QACtC,KAAK,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;KACtB;AACH,CAAC;AAED,YAAY,CAAC,gBAAgB,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\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[\"U64\"]}}},\"ascii\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"byte\",\"type\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[]},\"string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}]}}},\"bcs\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"to_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"length\",\"type\":\"U64\"},{\"name\":\"bit_field\",\"type\":{\"Vector\":\"Bool\"}}]}},\"exposedFunctions\":{\"is_index_set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"shift_left\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"unset\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]}}},\"debug\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"print\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[]}}},\"fixed_point32\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"value\",\"type\":\"U64\"}]}},\"exposedFunctions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]}}},\"hash\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"sha2_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[{\"constraints\":{\"abilities\":[]},\"isPhantom\":false}],\"fields\":[{\"name\":\"vec\",\"type\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposedFunctions\":{\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Vector\":\"U8\"}],\"return\":[]},\"bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"type_name\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"name\",\"type\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]}},\"exposedFunctions\":{\"borrow_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return\":[]},\"remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[]},\"singleton\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]}}}}'\n);\n\nexport function loadAllTypes(coder: MoveCoder) {\n  for (const m of Object.values(MODULES)) {\n    coder.load(m as any);\n  }\n}\n\nloadAllTypes(defaultMoveCoder());\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,MAAa,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,WAA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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\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"address\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[\"U64\"]}}},\"ascii\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"ascii\",\"friends\":[],\"structs\":{\"Char\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"byte\",\"type\":\"U8\"}]},\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"all_characters_printable\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"as_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"byte\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[\"U8\"]},\"char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"into_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Vector\":\"U8\"}]},\"is_printable_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"is_valid_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U8\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"pop_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}]},\"push_char\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"Char\",\"typeArguments\":[]}}],\"return\":[]},\"string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}]}}},\"bcs\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bcs\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"to_bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Vector\":\"U8\"}]}}},\"bit_vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"bit_vector\",\"friends\":[],\"structs\":{\"BitVector\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"length\",\"type\":\"U64\"},{\"name\":\"bit_field\",\"type\":{\"Vector\":\"Bool\"}}]}},\"exposedFunctions\":{\"is_index_set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"longest_set_sequence_starting_at\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[\"U64\"]},\"new\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}]},\"set\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"shift_left\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]},\"unset\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"bit_vector\",\"name\":\"BitVector\",\"typeArguments\":[]}}},\"U64\"],\"return\":[]}}},\"debug\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"debug\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"print\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"TypeParameter\":0}}],\"return\":[]},\"print_stack_trace\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[],\"return\":[]}}},\"fixed_point32\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"fixed_point32\",\"friends\":[],\"structs\":{\"FixedPoint32\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"value\",\"type\":\"U64\"}]}},\"exposedFunctions\":{\"create_from_rational\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"create_from_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}]},\"divide_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"get_raw_value\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]},\"is_zero\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"Bool\"]},\"multiply_u64\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"fixed_point32\",\"name\":\"FixedPoint32\",\"typeArguments\":[]}}],\"return\":[\"U64\"]}}},\"hash\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"hash\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"sha2_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]},\"sha3_256\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Vector\":\"U8\"}]}}},\"option\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"option\",\"friends\":[],\"structs\":{\"Option\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[{\"constraints\":{\"abilities\":[]},\"isPhantom\":false}],\"fields\":[{\"name\":\"vec\",\"type\":{\"Vector\":{\"TypeParameter\":0}}}]}},\"exposedFunctions\":{\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"borrow_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[]},\"destroy_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"TypeParameter\":0}]},\"destroy_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Drop\"]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"extract\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[{\"TypeParameter\":0}]},\"fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[]},\"get_with_default\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[\"Copy\",\"Drop\"]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"is_none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"is_some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}}],\"return\":[\"Bool\"]},\"none\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"some\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"TypeParameter\":0}]},\"swap_or_fill\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}},{\"TypeParameter\":0}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}]},\"to_vec\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"TypeParameter\":0}]}}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]}}},\"string\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"string\",\"friends\":[],\"structs\":{\"String\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"bytes\",\"type\":{\"Vector\":\"U8\"}}]}},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"append_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Vector\":\"U8\"}],\"return\":[]},\"bytes\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Vector\":\"U8\"}}]},\"from_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"MutableReference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}}],\"return\":[\"U64\"]},\"sub_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}},\"U64\",\"U64\"],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]},\"to_ascii\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"try_utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"option\",\"name\":\"Option\",\"typeArguments\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}]},\"utf8\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Vector\":\"U8\"}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"string\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"type_name\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"type_name\",\"friends\":[],\"structs\":{\"TypeName\":{\"abilities\":{\"abilities\":[\"Copy\",\"Drop\",\"Store\"]},\"typeParameters\":[],\"fields\":[{\"name\":\"name\",\"type\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]}},\"exposedFunctions\":{\"borrow_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}}]},\"get\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}]},\"get_address\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"get_module\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Reference\":{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]},\"into_string\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[],\"parameters\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"type_name\",\"name\":\"TypeName\",\"typeArguments\":[]}}],\"return\":[{\"Struct\":{\"address\":\"0x1\",\"module\":\"ascii\",\"name\":\"String\",\"typeArguments\":[]}}]}}},\"vector\":{\"fileFormatVersion\":6,\"address\":\"0x1\",\"name\":\"vector\",\"friends\":[],\"structs\":{},\"exposedFunctions\":{\"append\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"borrow\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"Reference\":{\"TypeParameter\":0}}]},\"borrow_mut\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"MutableReference\":{\"TypeParameter\":0}}]},\"contains\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\"]},\"destroy_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Vector\":{\"TypeParameter\":0}}],\"return\":[]},\"empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"index_of\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}},{\"Reference\":{\"TypeParameter\":0}}],\"return\":[\"Bool\",\"U64\"]},\"insert\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0},\"U64\"],\"return\":[]},\"is_empty\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"Bool\"]},\"length\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"Reference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[\"U64\"]},\"pop_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[{\"TypeParameter\":0}]},\"push_back\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},{\"TypeParameter\":0}],\"return\":[]},\"remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]},\"reverse\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}}],\"return\":[]},\"singleton\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"TypeParameter\":0}],\"return\":[{\"Vector\":{\"TypeParameter\":0}}]},\"swap\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\",\"U64\"],\"return\":[]},\"swap_remove\":{\"visibility\":\"Public\",\"isEntry\":false,\"typeParameters\":[{\"abilities\":[]}],\"parameters\":[{\"MutableReference\":{\"Vector\":{\"TypeParameter\":0}}},\"U64\"],\"return\":[{\"TypeParameter\":0}]}}}}'\n);\n\nexport function loadAllTypes(coder: MoveCoder) {\n  for (const m of Object.values(MODULES)) {\n    coder.load(m as any);\n  }\n}\n\nloadAllTypes(defaultMoveCoder());\n"]}
         
     |