@sentio/sdk 1.26.4 → 1.27.1

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.
@@ -435,26 +435,29 @@ export declare namespace token_transfers {
435
435
  token_id: token.TokenId;
436
436
  }
437
437
  interface CancelOfferScriptPayload extends aptos.TypedEntryFunctionPayload<[
438
+ Address,
438
439
  Address,
439
440
  Address,
440
441
  string,
441
442
  string,
442
443
  bigint
443
444
  ]> {
444
- arguments_typed: [Address, Address, string, string, bigint];
445
+ arguments_typed: [Address, Address, Address, string, string, bigint];
445
446
  type_arguments: [];
446
447
  }
447
448
  interface ClaimScriptPayload extends aptos.TypedEntryFunctionPayload<[
449
+ Address,
448
450
  Address,
449
451
  Address,
450
452
  string,
451
453
  string,
452
454
  bigint
453
455
  ]> {
454
- arguments_typed: [Address, Address, string, string, bigint];
456
+ arguments_typed: [Address, Address, Address, string, string, bigint];
455
457
  type_arguments: [];
456
458
  }
457
459
  interface OfferScriptPayload extends aptos.TypedEntryFunctionPayload<[
460
+ Address,
458
461
  Address,
459
462
  Address,
460
463
  string,
@@ -462,7 +465,15 @@ export declare namespace token_transfers {
462
465
  bigint,
463
466
  bigint
464
467
  ]> {
465
- arguments_typed: [Address, Address, string, string, bigint, bigint];
468
+ arguments_typed: [
469
+ Address,
470
+ Address,
471
+ Address,
472
+ string,
473
+ string,
474
+ bigint,
475
+ bigint
476
+ ];
466
477
  type_arguments: [];
467
478
  }
468
479
  function loadTypes(_r: aptos.TypeRegistry): void;
@@ -1 +1 @@
1
- {"version":3,"file":"0x3.js","sourceRoot":"","sources":["../../../src/builtin/aptos/0x3.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,uCAAuC;AAEvC,qCAAoC;AAGpC,gCAA4D;AAE5D,MAAa,KAAM,SAAQ,WAAK,CAAC,kBAAkB;IACjD,YAAY,OAA+B;QACzC,KAAK,CAAC,OAAO,EAAE,OAA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CAAC,UAAU,GAAG,uCAAuC,CAAC;QAC5D,UAAU,CAAU;QACpB,QAAQ,CAAgB;QACxB,MAAM,CAAS;;IAJJ,+BAAe,kBAK3B,CAAA;IAQD,MAAa,YAAY;QACvB,MAAM,CAAC,UAAU,GAAG,oCAAoC,CAAC;QACzD,OAAO,CAAU;QACjB,QAAQ,CAAgB;;IAHb,4BAAY,eAIxB,CAAA;IA0BD,SAAgB,SAAS,CAAC,EAAsB;QAC9C,YAAY,CAAC,EAAE,CAAC,CAAC;IACnB,CAAC;IAFe,yBAAS,YAExB,CAAA;IACY,mBAAG,GAAe,IAAI,CAAC,KAAK,CACvC,09EAA09E,CAC39E,CAAC;AACJ,CAAC,EApFgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAoF/B;AAED,SAAS,YAAY,CAAC,EAAsB;IAC1C,YAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACpB,YAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACpB,iBAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACzB,gBAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAExB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC1B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAC7B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\n/* Generated modules for account 0x3 */\n\nimport { aptos } from \"@sentio/sdk\";\nimport { Address, MoveModule } from \"aptos-sdk/src/generated\";\n\nimport { table, event, simple_map, type_info } from \"./0x1\";\n\nexport class token extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token {\n return new token({ ...token.DEFAULT_OPTIONS, ...options });\n }\n\n onEntryBurn(\n func: (call: token.BurnPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::burn\",\n });\n return this;\n }\n\n onEntryBurnByCreator(\n func: (call: token.BurnByCreatorPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::burn_by_creator\",\n });\n return this;\n }\n\n onEntryCreateCollectionScript(\n func: (\n call: token.CreateCollectionScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::create_collection_script\",\n });\n return this;\n }\n\n onEntryCreateTokenScript(\n func: (\n call: token.CreateTokenScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::create_token_script\",\n });\n return this;\n }\n\n onEntryDirectTransferScript(\n func: (\n call: token.DirectTransferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::direct_transfer_script\",\n });\n return this;\n }\n\n onEntryInitializeTokenScript(\n func: (\n call: token.InitializeTokenScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::initialize_token_script\",\n });\n return this;\n }\n\n onEntryMintScript(\n func: (call: token.MintScriptPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::mint_script\",\n });\n return this;\n }\n\n onEntryMutateTokenProperties(\n func: (\n call: token.MutateTokenPropertiesPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::mutate_token_properties\",\n });\n return this;\n }\n\n onEntryOptInDirectTransfer(\n func: (\n call: token.OptInDirectTransferPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::opt_in_direct_transfer\",\n });\n return this;\n }\n\n onEventCreateCollectionEvent(\n func: (\n event: token.CreateCollectionEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::CreateCollectionEvent\",\n });\n return this;\n }\n\n onEventCreateTokenDataEvent(\n func: (\n event: token.CreateTokenDataEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::CreateTokenDataEvent\",\n });\n return this;\n }\n\n onEventMintTokenEvent(\n func: (event: token.MintTokenEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::MintTokenEvent\",\n });\n return this;\n }\n\n onEventDepositEvent(\n func: (event: token.DepositEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::DepositEvent\",\n });\n return this;\n }\n\n onEventWithdrawEvent(\n func: (event: token.WithdrawEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::WithdrawEvent\",\n });\n return this;\n }\n\n onEventBurnTokenEvent(\n func: (event: token.BurnTokenEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::BurnTokenEvent\",\n });\n return this;\n }\n\n onEventMutateTokenPropertyMapEvent(\n func: (\n event: token.MutateTokenPropertyMapEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::MutateTokenPropertyMapEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token {\n export class BurnTokenEvent {\n static TYPE_QNAME = \"0x3::token::BurnTokenEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface BurnTokenEventInstance\n extends aptos.TypedEventInstance<BurnTokenEvent> {\n data_typed: BurnTokenEvent;\n type_arguments: [];\n }\n\n export class CollectionData {\n static TYPE_QNAME = \"0x3::token::CollectionData\";\n description: string;\n name: string;\n uri: string;\n supply: bigint;\n maximum: bigint;\n mutability_config: token.CollectionMutabilityConfig;\n }\n\n export class CollectionMutabilityConfig {\n static TYPE_QNAME = \"0x3::token::CollectionMutabilityConfig\";\n description: Boolean;\n uri: Boolean;\n maximum: Boolean;\n }\n\n export class Collections {\n static TYPE_QNAME = \"0x3::token::Collections\";\n collection_data: table.Table<string, token.CollectionData>;\n token_data: table.Table<token.TokenDataId, token.TokenData>;\n create_collection_events: event.EventHandle<token.CreateCollectionEvent>;\n create_token_data_events: event.EventHandle<token.CreateTokenDataEvent>;\n mint_token_events: event.EventHandle<token.MintTokenEvent>;\n }\n\n export class CreateCollectionEvent {\n static TYPE_QNAME = \"0x3::token::CreateCollectionEvent\";\n creator: Address;\n collection_name: string;\n uri: string;\n description: string;\n maximum: bigint;\n }\n\n export interface CreateCollectionEventInstance\n extends aptos.TypedEventInstance<CreateCollectionEvent> {\n data_typed: CreateCollectionEvent;\n type_arguments: [];\n }\n\n export class CreateTokenDataEvent {\n static TYPE_QNAME = \"0x3::token::CreateTokenDataEvent\";\n id: token.TokenDataId;\n description: string;\n maximum: bigint;\n uri: string;\n royalty_payee_address: Address;\n royalty_points_denominator: bigint;\n royalty_points_numerator: bigint;\n name: string;\n mutability_config: token.TokenMutabilityConfig;\n property_keys: string[];\n property_values: string[];\n property_types: string[];\n }\n\n export interface CreateTokenDataEventInstance\n extends aptos.TypedEventInstance<CreateTokenDataEvent> {\n data_typed: CreateTokenDataEvent;\n type_arguments: [];\n }\n\n export class DepositEvent {\n static TYPE_QNAME = \"0x3::token::DepositEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface DepositEventInstance\n extends aptos.TypedEventInstance<DepositEvent> {\n data_typed: DepositEvent;\n type_arguments: [];\n }\n\n export class MintTokenEvent {\n static TYPE_QNAME = \"0x3::token::MintTokenEvent\";\n id: token.TokenDataId;\n amount: bigint;\n }\n\n export interface MintTokenEventInstance\n extends aptos.TypedEventInstance<MintTokenEvent> {\n data_typed: MintTokenEvent;\n type_arguments: [];\n }\n\n export class MutateTokenPropertyMapEvent {\n static TYPE_QNAME = \"0x3::token::MutateTokenPropertyMapEvent\";\n old_id: token.TokenId;\n new_id: token.TokenId;\n keys: string[];\n values: string[];\n types: string[];\n }\n\n export interface MutateTokenPropertyMapEventInstance\n extends aptos.TypedEventInstance<MutateTokenPropertyMapEvent> {\n data_typed: MutateTokenPropertyMapEvent;\n type_arguments: [];\n }\n\n export class Royalty {\n static TYPE_QNAME = \"0x3::token::Royalty\";\n royalty_points_numerator: bigint;\n royalty_points_denominator: bigint;\n payee_address: Address;\n }\n\n export class Token {\n static TYPE_QNAME = \"0x3::token::Token\";\n id: token.TokenId;\n amount: bigint;\n token_properties: property_map.PropertyMap;\n }\n\n export class TokenData {\n static TYPE_QNAME = \"0x3::token::TokenData\";\n maximum: bigint;\n largest_property_version: bigint;\n supply: bigint;\n uri: string;\n royalty: token.Royalty;\n name: string;\n description: string;\n default_properties: property_map.PropertyMap;\n mutability_config: token.TokenMutabilityConfig;\n }\n\n export class TokenDataId {\n static TYPE_QNAME = \"0x3::token::TokenDataId\";\n creator: Address;\n collection: string;\n name: string;\n }\n\n export class TokenId {\n static TYPE_QNAME = \"0x3::token::TokenId\";\n token_data_id: token.TokenDataId;\n property_version: bigint;\n }\n\n export class TokenMutabilityConfig {\n static TYPE_QNAME = \"0x3::token::TokenMutabilityConfig\";\n maximum: Boolean;\n uri: Boolean;\n royalty: Boolean;\n description: Boolean;\n properties: Boolean;\n }\n\n export class TokenStore {\n static TYPE_QNAME = \"0x3::token::TokenStore\";\n tokens: table.Table<token.TokenId, token.Token>;\n direct_transfer: Boolean;\n deposit_events: event.EventHandle<token.DepositEvent>;\n withdraw_events: event.EventHandle<token.WithdrawEvent>;\n burn_events: event.EventHandle<token.BurnTokenEvent>;\n mutate_token_property_events: event.EventHandle<token.MutateTokenPropertyMapEvent>;\n }\n\n export class WithdrawCapability {\n static TYPE_QNAME = \"0x3::token::WithdrawCapability\";\n token_owner: Address;\n token_id: token.TokenId;\n amount: bigint;\n expiration_sec: bigint;\n }\n\n export class WithdrawEvent {\n static TYPE_QNAME = \"0x3::token::WithdrawEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface WithdrawEventInstance\n extends aptos.TypedEventInstance<WithdrawEvent> {\n data_typed: WithdrawEvent;\n type_arguments: [];\n }\n\n export interface BurnPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface BurnByCreatorPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface CreateCollectionScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [string, string, string, bigint, Boolean[]]\n > {\n arguments_typed: [string, string, string, bigint, Boolean[]];\n type_arguments: [];\n }\n\n export interface CreateTokenScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [\n string,\n string,\n string,\n bigint,\n bigint,\n string,\n Address,\n bigint,\n bigint,\n Boolean[],\n string[],\n string[],\n string[]\n ]\n > {\n arguments_typed: [\n string,\n string,\n string,\n bigint,\n bigint,\n string,\n Address,\n bigint,\n bigint,\n Boolean[],\n string[],\n string[],\n string[]\n ];\n type_arguments: [];\n }\n\n export interface DirectTransferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface InitializeTokenScriptPayload\n extends aptos.TypedEntryFunctionPayload<[]> {\n arguments_typed: [];\n type_arguments: [];\n }\n\n export interface MintScriptPayload\n extends aptos.TypedEntryFunctionPayload<[Address, string, string, bigint]> {\n arguments_typed: [Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface MutateTokenPropertiesPayload\n extends aptos.TypedEntryFunctionPayload<\n [\n Address,\n Address,\n string,\n string,\n bigint,\n bigint,\n string[],\n string[],\n string[]\n ]\n > {\n arguments_typed: [\n Address,\n Address,\n string,\n string,\n bigint,\n bigint,\n string[],\n string[],\n string[]\n ];\n type_arguments: [];\n }\n\n export interface OptInDirectTransferPayload\n extends aptos.TypedEntryFunctionPayload<[Boolean]> {\n arguments_typed: [Boolean];\n type_arguments: [];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token\",\"friends\":[],\"exposed_functions\":[{\"name\":\"balance_of\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"u64\"]},{\"name\":\"burn\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"burn_by_creator\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"check_collection_exists\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"check_tokendata_exists\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"create_collection\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"vector<bool>\"],\"return\":[]},{\"name\":\"create_collection_mutability_config\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&vector<bool>\"],\"return\":[\"0x3::token::CollectionMutabilityConfig\"]},{\"name\":\"create_collection_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"vector<bool>\"],\"return\":[]},{\"name\":\"create_token_data_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"],\"return\":[\"0x3::token::TokenDataId\"]},{\"name\":\"create_token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::TokenDataId\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"create_token_id_raw\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"create_token_mutability_config\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&vector<bool>\"],\"return\":[\"0x3::token::TokenMutabilityConfig\"]},{\"name\":\"create_token_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"0x1::string::String\",\"address\",\"u64\",\"u64\",\"vector<bool>\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"create_tokendata\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"0x1::string::String\",\"address\",\"u64\",\"u64\",\"0x3::token::TokenMutabilityConfig\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::token::TokenDataId\"]},{\"name\":\"create_withdraw_capability\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\",\"u64\"],\"return\":[\"0x3::token::WithdrawCapability\"]},{\"name\":\"deposit_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"direct_deposit_with_opt_in\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"direct_transfer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"direct_transfer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"get_collection_supply\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\"],\"return\":[\"0x1::option::Option<u64>\"]},{\"name\":\"get_property_map\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"get_royalty\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::TokenId\"],\"return\":[\"0x3::token::Royalty\"]},{\"name\":\"get_royalty_denominator\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"u64\"]},{\"name\":\"get_royalty_numerator\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"u64\"]},{\"name\":\"get_royalty_payee\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"address\"]},{\"name\":\"get_token_amount\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"u64\"]},{\"name\":\"get_token_data_id_fields\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::TokenDataId\"],\"return\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"]},{\"name\":\"get_token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"get_token_id_fields\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::TokenId\"],\"return\":[\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"]},{\"name\":\"get_token_supply\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"0x1::option::Option<u64>\"]},{\"name\":\"get_tokendata_largest_property_version\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"u64\"]},{\"name\":\"get_tokendata_uri\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"has_token_store\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\"],\"return\":[\"bool\"]},{\"name\":\"initialize_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"initialize_token_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\"],\"return\":[]},{\"name\":\"initialize_token_store\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\"],\"return\":[]},{\"name\":\"merge\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::token::Token\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"mint_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"mint_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"mint_token_to\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenDataId\",\"u64\"],\"return\":[]},{\"name\":\"mutate_one_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"mutate_token_properties\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"mutate_tokendata_property\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"mutate_tokendata_uri\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"0x1::string::String\"],\"return\":[]},{\"name\":\"opt_in_direct_transfer\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"bool\"],\"return\":[]},{\"name\":\"split\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::token::Token\",\"u64\"],\"return\":[\"0x3::token::Token\"]},{\"name\":\"token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"&0x3::token::TokenId\"]},{\"name\":\"transfer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"address\",\"u64\"],\"return\":[]},{\"name\":\"withdraw_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[\"0x3::token::Token\"]},{\"name\":\"withdraw_with_capability\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::WithdrawCapability\"],\"return\":[\"0x3::token::Token\"]}],\"structs\":[{\"name\":\"BurnTokenEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"CollectionData\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"supply\",\"type\":\"u64\"},{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::CollectionMutabilityConfig\"}]},{\"name\":\"CollectionMutabilityConfig\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"description\",\"type\":\"bool\"},{\"name\":\"uri\",\"type\":\"bool\"},{\"name\":\"maximum\",\"type\":\"bool\"}]},{\"name\":\"Collections\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"collection_data\",\"type\":\"0x1::table::Table<0x1::string::String, 0x3::token::CollectionData>\"},{\"name\":\"token_data\",\"type\":\"0x1::table::Table<0x3::token::TokenDataId, 0x3::token::TokenData>\"},{\"name\":\"create_collection_events\",\"type\":\"0x1::event::EventHandle<0x3::token::CreateCollectionEvent>\"},{\"name\":\"create_token_data_events\",\"type\":\"0x1::event::EventHandle<0x3::token::CreateTokenDataEvent>\"},{\"name\":\"mint_token_events\",\"type\":\"0x1::event::EventHandle<0x3::token::MintTokenEvent>\"}]},{\"name\":\"CreateCollectionEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"creator\",\"type\":\"address\"},{\"name\":\"collection_name\",\"type\":\"0x1::string::String\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"maximum\",\"type\":\"u64\"}]},{\"name\":\"CreateTokenDataEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"royalty_payee_address\",\"type\":\"address\"},{\"name\":\"royalty_points_denominator\",\"type\":\"u64\"},{\"name\":\"royalty_points_numerator\",\"type\":\"u64\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::TokenMutabilityConfig\"},{\"name\":\"property_keys\",\"type\":\"vector<0x1::string::String>\"},{\"name\":\"property_values\",\"type\":\"vector<vector<u8>>\"},{\"name\":\"property_types\",\"type\":\"vector<0x1::string::String>\"}]},{\"name\":\"DepositEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"MintTokenEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"MutateTokenPropertyMapEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"old_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"new_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"keys\",\"type\":\"vector<0x1::string::String>\"},{\"name\":\"values\",\"type\":\"vector<vector<u8>>\"},{\"name\":\"types\",\"type\":\"vector<0x1::string::String>\"}]},{\"name\":\"Royalty\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"royalty_points_numerator\",\"type\":\"u64\"},{\"name\":\"royalty_points_denominator\",\"type\":\"u64\"},{\"name\":\"payee_address\",\"type\":\"address\"}]},{\"name\":\"Token\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"token_properties\",\"type\":\"0x3::property_map::PropertyMap\"}]},{\"name\":\"TokenData\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"largest_property_version\",\"type\":\"u64\"},{\"name\":\"supply\",\"type\":\"u64\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"royalty\",\"type\":\"0x3::token::Royalty\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"default_properties\",\"type\":\"0x3::property_map::PropertyMap\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::TokenMutabilityConfig\"}]},{\"name\":\"TokenDataId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"creator\",\"type\":\"address\"},{\"name\":\"collection\",\"type\":\"0x1::string::String\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"}]},{\"name\":\"TokenId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_data_id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"property_version\",\"type\":\"u64\"}]},{\"name\":\"TokenMutabilityConfig\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"maximum\",\"type\":\"bool\"},{\"name\":\"uri\",\"type\":\"bool\"},{\"name\":\"royalty\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"bool\"},{\"name\":\"properties\",\"type\":\"bool\"}]},{\"name\":\"TokenStore\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"tokens\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token::Token>\"},{\"name\":\"direct_transfer\",\"type\":\"bool\"},{\"name\":\"deposit_events\",\"type\":\"0x1::event::EventHandle<0x3::token::DepositEvent>\"},{\"name\":\"withdraw_events\",\"type\":\"0x1::event::EventHandle<0x3::token::WithdrawEvent>\"},{\"name\":\"burn_events\",\"type\":\"0x1::event::EventHandle<0x3::token::BurnTokenEvent>\"},{\"name\":\"mutate_token_property_events\",\"type\":\"0x1::event::EventHandle<0x3::token::MutateTokenPropertyMapEvent>\"}]},{\"name\":\"WithdrawCapability\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_owner\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"expiration_sec\",\"type\":\"u64\"}]},{\"name\":\"WithdrawEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]}]}'\n );\n}\n\nexport namespace property_map {\n export class PropertyMap {\n static TYPE_QNAME = \"0x3::property_map::PropertyMap\";\n map: simple_map.SimpleMap<string, property_map.PropertyValue>;\n }\n\n export class PropertyValue {\n static TYPE_QNAME = \"0x3::property_map::PropertyValue\";\n value: string;\n type: string;\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"property_map\",\"friends\":[],\"exposed_functions\":[{\"name\":\"add\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"0x1::string::String\",\"0x3::property_map::PropertyValue\"],\"return\":[]},{\"name\":\"borrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"&0x3::property_map::PropertyValue\"]},{\"name\":\"borrow_type\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyValue\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"borrow_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyValue\"],\"return\":[\"vector<u8>\"]},{\"name\":\"contains_key\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"create_property_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[\"copy\"]}],\"params\":[\"&T0\"],\"return\":[\"0x3::property_map::PropertyValue\"]},{\"name\":\"create_property_value_raw\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"vector<u8>\",\"0x1::string::String\"],\"return\":[\"0x3::property_map::PropertyValue\"]},{\"name\":\"empty\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"length\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\"],\"return\":[\"u64\"]},{\"name\":\"new\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"read_address\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"address\"]},{\"name\":\"read_bool\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"read_string\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"read_u128\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u128\"]},{\"name\":\"read_u64\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u64\"]},{\"name\":\"read_u8\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u8\"]},{\"name\":\"remove\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"0x1::string::String\",\"0x3::property_map::PropertyValue\"]},{\"name\":\"update_property_map\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"update_property_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"&0x1::string::String\",\"0x3::property_map::PropertyValue\"],\"return\":[]}],\"structs\":[{\"name\":\"PropertyMap\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"map\",\"type\":\"0x1::simple_map::SimpleMap<0x1::string::String, 0x3::property_map::PropertyValue>\"}]},{\"name\":\"PropertyValue\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"value\",\"type\":\"vector<u8>\"},{\"name\":\"type\",\"type\":\"0x1::string::String\"}]}]}'\n );\n}\n\nexport class token_coin_swap extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token_coin_swap\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token_coin_swap {\n return new token_coin_swap({\n ...token_coin_swap.DEFAULT_OPTIONS,\n ...options,\n });\n }\n\n onEntryListTokenForSwap(\n func: (\n call: token_coin_swap.ListTokenForSwapPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_coin_swap {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_coin_swap::list_token_for_swap\",\n });\n return this;\n }\n\n onEventTokenListingEvent(\n func: (\n event: token_coin_swap.TokenListingEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_coin_swap {\n this.onEvent(func, {\n type: \"token_coin_swap::TokenListingEvent\",\n });\n return this;\n }\n\n onEventTokenSwapEvent(\n func: (\n event: token_coin_swap.TokenSwapEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_coin_swap {\n this.onEvent(func, {\n type: \"token_coin_swap::TokenSwapEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token_coin_swap {\n export class TokenCoinSwap<T0> {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenCoinSwap\";\n token_amount: bigint;\n min_price_per_token: bigint;\n }\n\n export class TokenEscrow {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenEscrow\";\n token: token.Token;\n locked_until_secs: bigint;\n }\n\n export class TokenListingEvent {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenListingEvent\";\n token_id: token.TokenId;\n amount: bigint;\n min_price: bigint;\n locked_until_secs: bigint;\n coin_type_info: type_info.TypeInfo;\n }\n\n export interface TokenListingEventInstance\n extends aptos.TypedEventInstance<TokenListingEvent> {\n data_typed: TokenListingEvent;\n type_arguments: [];\n }\n\n export class TokenListings<T0> {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenListings\";\n listings: table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;\n listing_events: event.EventHandle<token_coin_swap.TokenListingEvent>;\n swap_events: event.EventHandle<token_coin_swap.TokenSwapEvent>;\n }\n\n export class TokenStoreEscrow {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenStoreEscrow\";\n token_escrows: table.Table<token.TokenId, token_coin_swap.TokenEscrow>;\n }\n\n export class TokenSwapEvent {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenSwapEvent\";\n token_id: token.TokenId;\n token_buyer: Address;\n token_amount: bigint;\n coin_amount: bigint;\n coin_type_info: type_info.TypeInfo;\n }\n\n export interface TokenSwapEventInstance\n extends aptos.TypedEventInstance<TokenSwapEvent> {\n data_typed: TokenSwapEvent;\n type_arguments: [];\n }\n\n export interface ListTokenForSwapPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];\n type_arguments: [string];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token_coin_swap\",\"friends\":[],\"exposed_functions\":[{\"name\":\"cancel_token_listing\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"deposit_token_to_escrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"0x3::token::Token\",\"u64\"],\"return\":[]},{\"name\":\"does_listing_exist\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"bool\"]},{\"name\":\"exchange_coin_for_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"u64\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"list_token_for_swap\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"withdraw_token_from_escrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[\"0x3::token::Token\"]}],\"structs\":[{\"name\":\"TokenCoinSwap\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[{\"constraints\":[]}],\"fields\":[{\"name\":\"token_amount\",\"type\":\"u64\"},{\"name\":\"min_price_per_token\",\"type\":\"u64\"}]},{\"name\":\"TokenEscrow\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token\",\"type\":\"0x3::token::Token\"},{\"name\":\"locked_until_secs\",\"type\":\"u64\"}]},{\"name\":\"TokenListingEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"min_price\",\"type\":\"u64\"},{\"name\":\"locked_until_secs\",\"type\":\"u64\"},{\"name\":\"coin_type_info\",\"type\":\"0x1::type_info::TypeInfo\"}]},{\"name\":\"TokenListings\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[{\"constraints\":[]}],\"fields\":[{\"name\":\"listings\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenCoinSwap<T0>>\"},{\"name\":\"listing_events\",\"type\":\"0x1::event::EventHandle<0x3::token_coin_swap::TokenListingEvent>\"},{\"name\":\"swap_events\",\"type\":\"0x1::event::EventHandle<0x3::token_coin_swap::TokenSwapEvent>\"}]},{\"name\":\"TokenStoreEscrow\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_escrows\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenEscrow>\"}]},{\"name\":\"TokenSwapEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"token_buyer\",\"type\":\"address\"},{\"name\":\"token_amount\",\"type\":\"u64\"},{\"name\":\"coin_amount\",\"type\":\"u64\"},{\"name\":\"coin_type_info\",\"type\":\"0x1::type_info::TypeInfo\"}]}]}'\n );\n}\n\nexport class token_transfers extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token_transfers\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token_transfers {\n return new token_transfers({\n ...token_transfers.DEFAULT_OPTIONS,\n ...options,\n });\n }\n\n onEntryCancelOfferScript(\n func: (\n call: token_transfers.CancelOfferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::cancel_offer_script\",\n });\n return this;\n }\n\n onEntryClaimScript(\n func: (\n call: token_transfers.ClaimScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::claim_script\",\n });\n return this;\n }\n\n onEntryOfferScript(\n func: (\n call: token_transfers.OfferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::offer_script\",\n });\n return this;\n }\n\n onEventTokenOfferEvent(\n func: (\n event: token_transfers.TokenOfferEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenOfferEvent\",\n });\n return this;\n }\n\n onEventTokenCancelOfferEvent(\n func: (\n event: token_transfers.TokenCancelOfferEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenCancelOfferEvent\",\n });\n return this;\n }\n\n onEventTokenClaimEvent(\n func: (\n event: token_transfers.TokenClaimEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenClaimEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token_transfers {\n export class PendingClaims {\n static TYPE_QNAME = \"0x3::token_transfers::PendingClaims\";\n pending_claims: table.Table<token_transfers.TokenOfferId, token.Token>;\n offer_events: event.EventHandle<token_transfers.TokenOfferEvent>;\n cancel_offer_events: event.EventHandle<token_transfers.TokenCancelOfferEvent>;\n claim_events: event.EventHandle<token_transfers.TokenClaimEvent>;\n }\n\n export class TokenCancelOfferEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenCancelOfferEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenCancelOfferEventInstance\n extends aptos.TypedEventInstance<TokenCancelOfferEvent> {\n data_typed: TokenCancelOfferEvent;\n type_arguments: [];\n }\n\n export class TokenClaimEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenClaimEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenClaimEventInstance\n extends aptos.TypedEventInstance<TokenClaimEvent> {\n data_typed: TokenClaimEvent;\n type_arguments: [];\n }\n\n export class TokenOfferEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenOfferEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenOfferEventInstance\n extends aptos.TypedEventInstance<TokenOfferEvent> {\n data_typed: TokenOfferEvent;\n type_arguments: [];\n }\n\n export class TokenOfferId {\n static TYPE_QNAME = \"0x3::token_transfers::TokenOfferId\";\n to_addr: Address;\n token_id: token.TokenId;\n }\n\n export interface CancelOfferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, string, string, bigint]\n > {\n arguments_typed: [Address, Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface ClaimScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, string, string, bigint]\n > {\n arguments_typed: [Address, Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface OfferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token_transfers\",\"friends\":[],\"exposed_functions\":[{\"name\":\"cancel_offer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"cancel_offer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"claim\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"claim_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"offer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"offer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]}],\"structs\":[{\"name\":\"PendingClaims\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"pending_claims\",\"type\":\"0x1::table::Table<0x3::token_transfers::TokenOfferId, 0x3::token::Token>\"},{\"name\":\"offer_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenOfferEvent>\"},{\"name\":\"cancel_offer_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenCancelOfferEvent>\"},{\"name\":\"claim_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenClaimEvent>\"}]},{\"name\":\"TokenCancelOfferEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenClaimEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenOfferEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenOfferId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_addr\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"}]}]}'\n );\n}\n\nfunction loadAllTypes(_r: aptos.TypeRegistry) {\n table.loadTypes(_r);\n event.loadTypes(_r);\n simple_map.loadTypes(_r);\n type_info.loadTypes(_r);\n\n _r.load(token.ABI);\n _r.load(property_map.ABI);\n _r.load(token_coin_swap.ABI);\n _r.load(token_transfers.ABI);\n}\n"]}
1
+ {"version":3,"file":"0x3.js","sourceRoot":"","sources":["../../../src/builtin/aptos/0x3.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,uCAAuC;AAEvC,qCAAoC;AAGpC,gCAA4D;AAE5D,MAAa,KAAM,SAAQ,WAAK,CAAC,kBAAkB;IACjD,YAAY,OAA+B;QACzC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,CAAC,eAAe,GAA2B;QAC/C,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,WAAK,CAAC,YAAY,CAAC,QAAQ;KACrC,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,UAA2C,EAAE;QACvD,OAAO,IAAI,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,WAAW,CACT,IAAgE,EAChE,MAAyB;QAEzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;YAC7B,GAAG,MAAM;YACT,QAAQ,EAAE,aAAa;SACxB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,oBAAoB,CAClB,IAAyE,EACzE,MAAyB;QAEzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;YAC7B,GAAG,MAAM;YACT,QAAQ,EAAE,wBAAwB;SACnC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,6BAA6B,CAC3B,IAGS,EACT,MAAyB;QAEzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;YAC7B,GAAG,MAAM;YACT,QAAQ,EAAE,iCAAiC;SAC5C,C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AAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC1B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAC7B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\n/* Generated modules for account 0x3 */\n\nimport { aptos } from \"@sentio/sdk\";\nimport { Address, MoveModule } from \"aptos-sdk/src/generated\";\n\nimport { table, event, simple_map, type_info } from \"./0x1\";\n\nexport class token extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token {\n return new token({ ...token.DEFAULT_OPTIONS, ...options });\n }\n\n onEntryBurn(\n func: (call: token.BurnPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::burn\",\n });\n return this;\n }\n\n onEntryBurnByCreator(\n func: (call: token.BurnByCreatorPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::burn_by_creator\",\n });\n return this;\n }\n\n onEntryCreateCollectionScript(\n func: (\n call: token.CreateCollectionScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::create_collection_script\",\n });\n return this;\n }\n\n onEntryCreateTokenScript(\n func: (\n call: token.CreateTokenScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::create_token_script\",\n });\n return this;\n }\n\n onEntryDirectTransferScript(\n func: (\n call: token.DirectTransferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::direct_transfer_script\",\n });\n return this;\n }\n\n onEntryInitializeTokenScript(\n func: (\n call: token.InitializeTokenScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::initialize_token_script\",\n });\n return this;\n }\n\n onEntryMintScript(\n func: (call: token.MintScriptPayload, ctx: aptos.AptosContext) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::mint_script\",\n });\n return this;\n }\n\n onEntryMutateTokenProperties(\n func: (\n call: token.MutateTokenPropertiesPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::mutate_token_properties\",\n });\n return this;\n }\n\n onEntryOptInDirectTransfer(\n func: (\n call: token.OptInDirectTransferPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token::opt_in_direct_transfer\",\n });\n return this;\n }\n\n onEventCreateCollectionEvent(\n func: (\n event: token.CreateCollectionEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::CreateCollectionEvent\",\n });\n return this;\n }\n\n onEventCreateTokenDataEvent(\n func: (\n event: token.CreateTokenDataEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::CreateTokenDataEvent\",\n });\n return this;\n }\n\n onEventMintTokenEvent(\n func: (event: token.MintTokenEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::MintTokenEvent\",\n });\n return this;\n }\n\n onEventDepositEvent(\n func: (event: token.DepositEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::DepositEvent\",\n });\n return this;\n }\n\n onEventWithdrawEvent(\n func: (event: token.WithdrawEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::WithdrawEvent\",\n });\n return this;\n }\n\n onEventBurnTokenEvent(\n func: (event: token.BurnTokenEventInstance, ctx: aptos.AptosContext) => void\n ): token {\n this.onEvent(func, {\n type: \"token::BurnTokenEvent\",\n });\n return this;\n }\n\n onEventMutateTokenPropertyMapEvent(\n func: (\n event: token.MutateTokenPropertyMapEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token {\n this.onEvent(func, {\n type: \"token::MutateTokenPropertyMapEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token {\n export class BurnTokenEvent {\n static TYPE_QNAME = \"0x3::token::BurnTokenEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface BurnTokenEventInstance\n extends aptos.TypedEventInstance<BurnTokenEvent> {\n data_typed: BurnTokenEvent;\n type_arguments: [];\n }\n\n export class CollectionData {\n static TYPE_QNAME = \"0x3::token::CollectionData\";\n description: string;\n name: string;\n uri: string;\n supply: bigint;\n maximum: bigint;\n mutability_config: token.CollectionMutabilityConfig;\n }\n\n export class CollectionMutabilityConfig {\n static TYPE_QNAME = \"0x3::token::CollectionMutabilityConfig\";\n description: Boolean;\n uri: Boolean;\n maximum: Boolean;\n }\n\n export class Collections {\n static TYPE_QNAME = \"0x3::token::Collections\";\n collection_data: table.Table<string, token.CollectionData>;\n token_data: table.Table<token.TokenDataId, token.TokenData>;\n create_collection_events: event.EventHandle<token.CreateCollectionEvent>;\n create_token_data_events: event.EventHandle<token.CreateTokenDataEvent>;\n mint_token_events: event.EventHandle<token.MintTokenEvent>;\n }\n\n export class CreateCollectionEvent {\n static TYPE_QNAME = \"0x3::token::CreateCollectionEvent\";\n creator: Address;\n collection_name: string;\n uri: string;\n description: string;\n maximum: bigint;\n }\n\n export interface CreateCollectionEventInstance\n extends aptos.TypedEventInstance<CreateCollectionEvent> {\n data_typed: CreateCollectionEvent;\n type_arguments: [];\n }\n\n export class CreateTokenDataEvent {\n static TYPE_QNAME = \"0x3::token::CreateTokenDataEvent\";\n id: token.TokenDataId;\n description: string;\n maximum: bigint;\n uri: string;\n royalty_payee_address: Address;\n royalty_points_denominator: bigint;\n royalty_points_numerator: bigint;\n name: string;\n mutability_config: token.TokenMutabilityConfig;\n property_keys: string[];\n property_values: string[];\n property_types: string[];\n }\n\n export interface CreateTokenDataEventInstance\n extends aptos.TypedEventInstance<CreateTokenDataEvent> {\n data_typed: CreateTokenDataEvent;\n type_arguments: [];\n }\n\n export class DepositEvent {\n static TYPE_QNAME = \"0x3::token::DepositEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface DepositEventInstance\n extends aptos.TypedEventInstance<DepositEvent> {\n data_typed: DepositEvent;\n type_arguments: [];\n }\n\n export class MintTokenEvent {\n static TYPE_QNAME = \"0x3::token::MintTokenEvent\";\n id: token.TokenDataId;\n amount: bigint;\n }\n\n export interface MintTokenEventInstance\n extends aptos.TypedEventInstance<MintTokenEvent> {\n data_typed: MintTokenEvent;\n type_arguments: [];\n }\n\n export class MutateTokenPropertyMapEvent {\n static TYPE_QNAME = \"0x3::token::MutateTokenPropertyMapEvent\";\n old_id: token.TokenId;\n new_id: token.TokenId;\n keys: string[];\n values: string[];\n types: string[];\n }\n\n export interface MutateTokenPropertyMapEventInstance\n extends aptos.TypedEventInstance<MutateTokenPropertyMapEvent> {\n data_typed: MutateTokenPropertyMapEvent;\n type_arguments: [];\n }\n\n export class Royalty {\n static TYPE_QNAME = \"0x3::token::Royalty\";\n royalty_points_numerator: bigint;\n royalty_points_denominator: bigint;\n payee_address: Address;\n }\n\n export class Token {\n static TYPE_QNAME = \"0x3::token::Token\";\n id: token.TokenId;\n amount: bigint;\n token_properties: property_map.PropertyMap;\n }\n\n export class TokenData {\n static TYPE_QNAME = \"0x3::token::TokenData\";\n maximum: bigint;\n largest_property_version: bigint;\n supply: bigint;\n uri: string;\n royalty: token.Royalty;\n name: string;\n description: string;\n default_properties: property_map.PropertyMap;\n mutability_config: token.TokenMutabilityConfig;\n }\n\n export class TokenDataId {\n static TYPE_QNAME = \"0x3::token::TokenDataId\";\n creator: Address;\n collection: string;\n name: string;\n }\n\n export class TokenId {\n static TYPE_QNAME = \"0x3::token::TokenId\";\n token_data_id: token.TokenDataId;\n property_version: bigint;\n }\n\n export class TokenMutabilityConfig {\n static TYPE_QNAME = \"0x3::token::TokenMutabilityConfig\";\n maximum: Boolean;\n uri: Boolean;\n royalty: Boolean;\n description: Boolean;\n properties: Boolean;\n }\n\n export class TokenStore {\n static TYPE_QNAME = \"0x3::token::TokenStore\";\n tokens: table.Table<token.TokenId, token.Token>;\n direct_transfer: Boolean;\n deposit_events: event.EventHandle<token.DepositEvent>;\n withdraw_events: event.EventHandle<token.WithdrawEvent>;\n burn_events: event.EventHandle<token.BurnTokenEvent>;\n mutate_token_property_events: event.EventHandle<token.MutateTokenPropertyMapEvent>;\n }\n\n export class WithdrawCapability {\n static TYPE_QNAME = \"0x3::token::WithdrawCapability\";\n token_owner: Address;\n token_id: token.TokenId;\n amount: bigint;\n expiration_sec: bigint;\n }\n\n export class WithdrawEvent {\n static TYPE_QNAME = \"0x3::token::WithdrawEvent\";\n id: token.TokenId;\n amount: bigint;\n }\n\n export interface WithdrawEventInstance\n extends aptos.TypedEventInstance<WithdrawEvent> {\n data_typed: WithdrawEvent;\n type_arguments: [];\n }\n\n export interface BurnPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface BurnByCreatorPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface CreateCollectionScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [string, string, string, bigint, Boolean[]]\n > {\n arguments_typed: [string, string, string, bigint, Boolean[]];\n type_arguments: [];\n }\n\n export interface CreateTokenScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [\n string,\n string,\n string,\n bigint,\n bigint,\n string,\n Address,\n bigint,\n bigint,\n Boolean[],\n string[],\n string[],\n string[]\n ]\n > {\n arguments_typed: [\n string,\n string,\n string,\n bigint,\n bigint,\n string,\n Address,\n bigint,\n bigint,\n Boolean[],\n string[],\n string[],\n string[]\n ];\n type_arguments: [];\n }\n\n export interface DirectTransferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, string, string, bigint, bigint]\n > {\n arguments_typed: [Address, Address, string, string, bigint, bigint];\n type_arguments: [];\n }\n\n export interface InitializeTokenScriptPayload\n extends aptos.TypedEntryFunctionPayload<[]> {\n arguments_typed: [];\n type_arguments: [];\n }\n\n export interface MintScriptPayload\n extends aptos.TypedEntryFunctionPayload<[Address, string, string, bigint]> {\n arguments_typed: [Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface MutateTokenPropertiesPayload\n extends aptos.TypedEntryFunctionPayload<\n [\n Address,\n Address,\n string,\n string,\n bigint,\n bigint,\n string[],\n string[],\n string[]\n ]\n > {\n arguments_typed: [\n Address,\n Address,\n string,\n string,\n bigint,\n bigint,\n string[],\n string[],\n string[]\n ];\n type_arguments: [];\n }\n\n export interface OptInDirectTransferPayload\n extends aptos.TypedEntryFunctionPayload<[Boolean]> {\n arguments_typed: [Boolean];\n type_arguments: [];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token\",\"friends\":[],\"exposed_functions\":[{\"name\":\"balance_of\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"u64\"]},{\"name\":\"burn\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"burn_by_creator\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"check_collection_exists\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"check_tokendata_exists\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"create_collection\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"vector<bool>\"],\"return\":[]},{\"name\":\"create_collection_mutability_config\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&vector<bool>\"],\"return\":[\"0x3::token::CollectionMutabilityConfig\"]},{\"name\":\"create_collection_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"vector<bool>\"],\"return\":[]},{\"name\":\"create_token_data_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"],\"return\":[\"0x3::token::TokenDataId\"]},{\"name\":\"create_token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::TokenDataId\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"create_token_id_raw\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"create_token_mutability_config\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&vector<bool>\"],\"return\":[\"0x3::token::TokenMutabilityConfig\"]},{\"name\":\"create_token_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"0x1::string::String\",\"address\",\"u64\",\"u64\",\"vector<bool>\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"create_tokendata\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x1::string::String\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"0x1::string::String\",\"address\",\"u64\",\"u64\",\"0x3::token::TokenMutabilityConfig\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::token::TokenDataId\"]},{\"name\":\"create_withdraw_capability\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\",\"u64\"],\"return\":[\"0x3::token::WithdrawCapability\"]},{\"name\":\"deposit_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"direct_deposit_with_opt_in\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"direct_transfer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"direct_transfer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"get_collection_supply\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x1::string::String\"],\"return\":[\"0x1::option::Option<u64>\"]},{\"name\":\"get_property_map\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"get_royalty\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::TokenId\"],\"return\":[\"0x3::token::Royalty\"]},{\"name\":\"get_royalty_denominator\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"u64\"]},{\"name\":\"get_royalty_numerator\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"u64\"]},{\"name\":\"get_royalty_payee\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Royalty\"],\"return\":[\"address\"]},{\"name\":\"get_token_amount\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"u64\"]},{\"name\":\"get_token_data_id_fields\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::TokenDataId\"],\"return\":[\"address\",\"0x1::string::String\",\"0x1::string::String\"]},{\"name\":\"get_token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"get_token_id_fields\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::TokenId\"],\"return\":[\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"]},{\"name\":\"get_token_supply\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"0x1::option::Option<u64>\"]},{\"name\":\"get_tokendata_largest_property_version\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"u64\"]},{\"name\":\"get_tokendata_uri\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\",\"0x3::token::TokenDataId\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"has_token_store\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"address\"],\"return\":[\"bool\"]},{\"name\":\"initialize_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"initialize_token_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\"],\"return\":[]},{\"name\":\"initialize_token_store\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\"],\"return\":[]},{\"name\":\"merge\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::token::Token\",\"0x3::token::Token\"],\"return\":[]},{\"name\":\"mint_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"mint_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"u64\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"mint_token_to\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenDataId\",\"u64\"],\"return\":[]},{\"name\":\"mutate_one_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::token::TokenId\"]},{\"name\":\"mutate_token_properties\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"mutate_tokendata_property\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"mutate_tokendata_uri\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenDataId\",\"0x1::string::String\"],\"return\":[]},{\"name\":\"opt_in_direct_transfer\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"&signer\",\"bool\"],\"return\":[]},{\"name\":\"split\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::token::Token\",\"u64\"],\"return\":[\"0x3::token::Token\"]},{\"name\":\"token_id\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::token::Token\"],\"return\":[\"&0x3::token::TokenId\"]},{\"name\":\"transfer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"address\",\"u64\"],\"return\":[]},{\"name\":\"withdraw_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[\"0x3::token::Token\"]},{\"name\":\"withdraw_with_capability\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"0x3::token::WithdrawCapability\"],\"return\":[\"0x3::token::Token\"]}],\"structs\":[{\"name\":\"BurnTokenEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"CollectionData\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"supply\",\"type\":\"u64\"},{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::CollectionMutabilityConfig\"}]},{\"name\":\"CollectionMutabilityConfig\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"description\",\"type\":\"bool\"},{\"name\":\"uri\",\"type\":\"bool\"},{\"name\":\"maximum\",\"type\":\"bool\"}]},{\"name\":\"Collections\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"collection_data\",\"type\":\"0x1::table::Table<0x1::string::String, 0x3::token::CollectionData>\"},{\"name\":\"token_data\",\"type\":\"0x1::table::Table<0x3::token::TokenDataId, 0x3::token::TokenData>\"},{\"name\":\"create_collection_events\",\"type\":\"0x1::event::EventHandle<0x3::token::CreateCollectionEvent>\"},{\"name\":\"create_token_data_events\",\"type\":\"0x1::event::EventHandle<0x3::token::CreateTokenDataEvent>\"},{\"name\":\"mint_token_events\",\"type\":\"0x1::event::EventHandle<0x3::token::MintTokenEvent>\"}]},{\"name\":\"CreateCollectionEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"creator\",\"type\":\"address\"},{\"name\":\"collection_name\",\"type\":\"0x1::string::String\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"maximum\",\"type\":\"u64\"}]},{\"name\":\"CreateTokenDataEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"royalty_payee_address\",\"type\":\"address\"},{\"name\":\"royalty_points_denominator\",\"type\":\"u64\"},{\"name\":\"royalty_points_numerator\",\"type\":\"u64\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::TokenMutabilityConfig\"},{\"name\":\"property_keys\",\"type\":\"vector<0x1::string::String>\"},{\"name\":\"property_values\",\"type\":\"vector<vector<u8>>\"},{\"name\":\"property_types\",\"type\":\"vector<0x1::string::String>\"}]},{\"name\":\"DepositEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"MintTokenEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"MutateTokenPropertyMapEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"old_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"new_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"keys\",\"type\":\"vector<0x1::string::String>\"},{\"name\":\"values\",\"type\":\"vector<vector<u8>>\"},{\"name\":\"types\",\"type\":\"vector<0x1::string::String>\"}]},{\"name\":\"Royalty\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"royalty_points_numerator\",\"type\":\"u64\"},{\"name\":\"royalty_points_denominator\",\"type\":\"u64\"},{\"name\":\"payee_address\",\"type\":\"address\"}]},{\"name\":\"Token\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"token_properties\",\"type\":\"0x3::property_map::PropertyMap\"}]},{\"name\":\"TokenData\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"maximum\",\"type\":\"u64\"},{\"name\":\"largest_property_version\",\"type\":\"u64\"},{\"name\":\"supply\",\"type\":\"u64\"},{\"name\":\"uri\",\"type\":\"0x1::string::String\"},{\"name\":\"royalty\",\"type\":\"0x3::token::Royalty\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"},{\"name\":\"description\",\"type\":\"0x1::string::String\"},{\"name\":\"default_properties\",\"type\":\"0x3::property_map::PropertyMap\"},{\"name\":\"mutability_config\",\"type\":\"0x3::token::TokenMutabilityConfig\"}]},{\"name\":\"TokenDataId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"creator\",\"type\":\"address\"},{\"name\":\"collection\",\"type\":\"0x1::string::String\"},{\"name\":\"name\",\"type\":\"0x1::string::String\"}]},{\"name\":\"TokenId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_data_id\",\"type\":\"0x3::token::TokenDataId\"},{\"name\":\"property_version\",\"type\":\"u64\"}]},{\"name\":\"TokenMutabilityConfig\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"maximum\",\"type\":\"bool\"},{\"name\":\"uri\",\"type\":\"bool\"},{\"name\":\"royalty\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"bool\"},{\"name\":\"properties\",\"type\":\"bool\"}]},{\"name\":\"TokenStore\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"tokens\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token::Token>\"},{\"name\":\"direct_transfer\",\"type\":\"bool\"},{\"name\":\"deposit_events\",\"type\":\"0x1::event::EventHandle<0x3::token::DepositEvent>\"},{\"name\":\"withdraw_events\",\"type\":\"0x1::event::EventHandle<0x3::token::WithdrawEvent>\"},{\"name\":\"burn_events\",\"type\":\"0x1::event::EventHandle<0x3::token::BurnTokenEvent>\"},{\"name\":\"mutate_token_property_events\",\"type\":\"0x1::event::EventHandle<0x3::token::MutateTokenPropertyMapEvent>\"}]},{\"name\":\"WithdrawCapability\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_owner\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"expiration_sec\",\"type\":\"u64\"}]},{\"name\":\"WithdrawEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]}]}'\n );\n}\n\nexport namespace property_map {\n export class PropertyMap {\n static TYPE_QNAME = \"0x3::property_map::PropertyMap\";\n map: simple_map.SimpleMap<string, property_map.PropertyValue>;\n }\n\n export class PropertyValue {\n static TYPE_QNAME = \"0x3::property_map::PropertyValue\";\n value: string;\n type: string;\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"property_map\",\"friends\":[],\"exposed_functions\":[{\"name\":\"add\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"0x1::string::String\",\"0x3::property_map::PropertyValue\"],\"return\":[]},{\"name\":\"borrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"&0x3::property_map::PropertyValue\"]},{\"name\":\"borrow_type\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyValue\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"borrow_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyValue\"],\"return\":[\"vector<u8>\"]},{\"name\":\"contains_key\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"create_property_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[\"copy\"]}],\"params\":[\"&T0\"],\"return\":[\"0x3::property_map::PropertyValue\"]},{\"name\":\"create_property_value_raw\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"vector<u8>\",\"0x1::string::String\"],\"return\":[\"0x3::property_map::PropertyValue\"]},{\"name\":\"empty\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"length\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\"],\"return\":[\"u64\"]},{\"name\":\"new\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[\"0x3::property_map::PropertyMap\"]},{\"name\":\"read_address\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"address\"]},{\"name\":\"read_bool\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"bool\"]},{\"name\":\"read_string\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"0x1::string::String\"]},{\"name\":\"read_u128\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u128\"]},{\"name\":\"read_u64\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u64\"]},{\"name\":\"read_u8\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"u8\"]},{\"name\":\"remove\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"&0x1::string::String\"],\"return\":[\"0x1::string::String\",\"0x3::property_map::PropertyValue\"]},{\"name\":\"update_property_map\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"vector<0x1::string::String>\",\"vector<vector<u8>>\",\"vector<0x1::string::String>\"],\"return\":[]},{\"name\":\"update_property_value\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&mut 0x3::property_map::PropertyMap\",\"&0x1::string::String\",\"0x3::property_map::PropertyValue\"],\"return\":[]}],\"structs\":[{\"name\":\"PropertyMap\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"map\",\"type\":\"0x1::simple_map::SimpleMap<0x1::string::String, 0x3::property_map::PropertyValue>\"}]},{\"name\":\"PropertyValue\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"value\",\"type\":\"vector<u8>\"},{\"name\":\"type\",\"type\":\"0x1::string::String\"}]}]}'\n );\n}\n\nexport class token_coin_swap extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token_coin_swap\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token_coin_swap {\n return new token_coin_swap({\n ...token_coin_swap.DEFAULT_OPTIONS,\n ...options,\n });\n }\n\n onEntryListTokenForSwap(\n func: (\n call: token_coin_swap.ListTokenForSwapPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_coin_swap {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_coin_swap::list_token_for_swap\",\n });\n return this;\n }\n\n onEventTokenListingEvent(\n func: (\n event: token_coin_swap.TokenListingEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_coin_swap {\n this.onEvent(func, {\n type: \"token_coin_swap::TokenListingEvent\",\n });\n return this;\n }\n\n onEventTokenSwapEvent(\n func: (\n event: token_coin_swap.TokenSwapEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_coin_swap {\n this.onEvent(func, {\n type: \"token_coin_swap::TokenSwapEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token_coin_swap {\n export class TokenCoinSwap<T0> {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenCoinSwap\";\n token_amount: bigint;\n min_price_per_token: bigint;\n }\n\n export class TokenEscrow {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenEscrow\";\n token: token.Token;\n locked_until_secs: bigint;\n }\n\n export class TokenListingEvent {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenListingEvent\";\n token_id: token.TokenId;\n amount: bigint;\n min_price: bigint;\n locked_until_secs: bigint;\n coin_type_info: type_info.TypeInfo;\n }\n\n export interface TokenListingEventInstance\n extends aptos.TypedEventInstance<TokenListingEvent> {\n data_typed: TokenListingEvent;\n type_arguments: [];\n }\n\n export class TokenListings<T0> {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenListings\";\n listings: table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;\n listing_events: event.EventHandle<token_coin_swap.TokenListingEvent>;\n swap_events: event.EventHandle<token_coin_swap.TokenSwapEvent>;\n }\n\n export class TokenStoreEscrow {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenStoreEscrow\";\n token_escrows: table.Table<token.TokenId, token_coin_swap.TokenEscrow>;\n }\n\n export class TokenSwapEvent {\n static TYPE_QNAME = \"0x3::token_coin_swap::TokenSwapEvent\";\n token_id: token.TokenId;\n token_buyer: Address;\n token_amount: bigint;\n coin_amount: bigint;\n coin_type_info: type_info.TypeInfo;\n }\n\n export interface TokenSwapEventInstance\n extends aptos.TypedEventInstance<TokenSwapEvent> {\n data_typed: TokenSwapEvent;\n type_arguments: [];\n }\n\n export interface ListTokenForSwapPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, string, string, bigint, bigint, bigint, bigint]\n > {\n arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];\n type_arguments: [string];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token_coin_swap\",\"friends\":[],\"exposed_functions\":[{\"name\":\"cancel_token_listing\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"deposit_token_to_escrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"0x3::token::Token\",\"u64\"],\"return\":[]},{\"name\":\"does_listing_exist\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"address\",\"0x3::token::TokenId\"],\"return\":[\"bool\"]},{\"name\":\"exchange_coin_for_token\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"u64\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"list_token_for_swap\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"&signer\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\",\"u64\",\"u64\"],\"return\":[]},{\"name\":\"withdraw_token_from_escrow\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"0x3::token::TokenId\",\"u64\"],\"return\":[\"0x3::token::Token\"]}],\"structs\":[{\"name\":\"TokenCoinSwap\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[{\"constraints\":[]}],\"fields\":[{\"name\":\"token_amount\",\"type\":\"u64\"},{\"name\":\"min_price_per_token\",\"type\":\"u64\"}]},{\"name\":\"TokenEscrow\",\"is_native\":false,\"abilities\":[\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token\",\"type\":\"0x3::token::Token\"},{\"name\":\"locked_until_secs\",\"type\":\"u64\"}]},{\"name\":\"TokenListingEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"min_price\",\"type\":\"u64\"},{\"name\":\"locked_until_secs\",\"type\":\"u64\"},{\"name\":\"coin_type_info\",\"type\":\"0x1::type_info::TypeInfo\"}]},{\"name\":\"TokenListings\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[{\"constraints\":[]}],\"fields\":[{\"name\":\"listings\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenCoinSwap<T0>>\"},{\"name\":\"listing_events\",\"type\":\"0x1::event::EventHandle<0x3::token_coin_swap::TokenListingEvent>\"},{\"name\":\"swap_events\",\"type\":\"0x1::event::EventHandle<0x3::token_coin_swap::TokenSwapEvent>\"}]},{\"name\":\"TokenStoreEscrow\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_escrows\",\"type\":\"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenEscrow>\"}]},{\"name\":\"TokenSwapEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"token_buyer\",\"type\":\"address\"},{\"name\":\"token_amount\",\"type\":\"u64\"},{\"name\":\"coin_amount\",\"type\":\"u64\"},{\"name\":\"coin_type_info\",\"type\":\"0x1::type_info::TypeInfo\"}]}]}'\n );\n}\n\nexport class token_transfers extends aptos.AptosBaseProcessor {\n constructor(options: aptos.AptosBindOptions) {\n super(\"token_transfers\", options);\n }\n static DEFAULT_OPTIONS: aptos.AptosBindOptions = {\n address: \"0x3\",\n network: aptos.AptosNetwork.MAIN_NET,\n };\n\n static bind(options: Partial<aptos.AptosBindOptions> = {}): token_transfers {\n return new token_transfers({\n ...token_transfers.DEFAULT_OPTIONS,\n ...options,\n });\n }\n\n onEntryCancelOfferScript(\n func: (\n call: token_transfers.CancelOfferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::cancel_offer_script\",\n });\n return this;\n }\n\n onEntryClaimScript(\n func: (\n call: token_transfers.ClaimScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::claim_script\",\n });\n return this;\n }\n\n onEntryOfferScript(\n func: (\n call: token_transfers.OfferScriptPayload,\n ctx: aptos.AptosContext\n ) => void,\n filter?: aptos.CallFilter\n ): token_transfers {\n this.onEntryFunctionCall(func, {\n ...filter,\n function: \"token_transfers::offer_script\",\n });\n return this;\n }\n\n onEventTokenOfferEvent(\n func: (\n event: token_transfers.TokenOfferEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenOfferEvent\",\n });\n return this;\n }\n\n onEventTokenCancelOfferEvent(\n func: (\n event: token_transfers.TokenCancelOfferEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenCancelOfferEvent\",\n });\n return this;\n }\n\n onEventTokenClaimEvent(\n func: (\n event: token_transfers.TokenClaimEventInstance,\n ctx: aptos.AptosContext\n ) => void\n ): token_transfers {\n this.onEvent(func, {\n type: \"token_transfers::TokenClaimEvent\",\n });\n return this;\n }\n\n loadTypesInternal(registry: aptos.TypeRegistry) {\n loadAllTypes(registry);\n }\n}\n\nexport namespace token_transfers {\n export class PendingClaims {\n static TYPE_QNAME = \"0x3::token_transfers::PendingClaims\";\n pending_claims: table.Table<token_transfers.TokenOfferId, token.Token>;\n offer_events: event.EventHandle<token_transfers.TokenOfferEvent>;\n cancel_offer_events: event.EventHandle<token_transfers.TokenCancelOfferEvent>;\n claim_events: event.EventHandle<token_transfers.TokenClaimEvent>;\n }\n\n export class TokenCancelOfferEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenCancelOfferEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenCancelOfferEventInstance\n extends aptos.TypedEventInstance<TokenCancelOfferEvent> {\n data_typed: TokenCancelOfferEvent;\n type_arguments: [];\n }\n\n export class TokenClaimEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenClaimEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenClaimEventInstance\n extends aptos.TypedEventInstance<TokenClaimEvent> {\n data_typed: TokenClaimEvent;\n type_arguments: [];\n }\n\n export class TokenOfferEvent {\n static TYPE_QNAME = \"0x3::token_transfers::TokenOfferEvent\";\n to_address: Address;\n token_id: token.TokenId;\n amount: bigint;\n }\n\n export interface TokenOfferEventInstance\n extends aptos.TypedEventInstance<TokenOfferEvent> {\n data_typed: TokenOfferEvent;\n type_arguments: [];\n }\n\n export class TokenOfferId {\n static TYPE_QNAME = \"0x3::token_transfers::TokenOfferId\";\n to_addr: Address;\n token_id: token.TokenId;\n }\n\n export interface CancelOfferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, Address, string, string, bigint]\n > {\n arguments_typed: [Address, Address, Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface ClaimScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, Address, string, string, bigint]\n > {\n arguments_typed: [Address, Address, Address, string, string, bigint];\n type_arguments: [];\n }\n\n export interface OfferScriptPayload\n extends aptos.TypedEntryFunctionPayload<\n [Address, Address, Address, string, string, bigint, bigint]\n > {\n arguments_typed: [\n Address,\n Address,\n Address,\n string,\n string,\n bigint,\n bigint\n ];\n type_arguments: [];\n }\n\n export function loadTypes(_r: aptos.TypeRegistry) {\n loadAllTypes(_r);\n }\n export const ABI: MoveModule = JSON.parse(\n '{\"address\":\"0x3\",\"name\":\"token_transfers\",\"friends\":[],\"exposed_functions\":[{\"name\":\"cancel_offer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"cancel_offer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"claim\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\"],\"return\":[]},{\"name\":\"claim_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\"],\"return\":[]},{\"name\":\"offer\",\"visibility\":\"public\",\"is_entry\":false,\"generic_type_params\":[],\"params\":[\"&signer\",\"address\",\"0x3::token::TokenId\",\"u64\"],\"return\":[]},{\"name\":\"offer_script\",\"visibility\":\"public\",\"is_entry\":true,\"generic_type_params\":[],\"params\":[\"signer\",\"address\",\"address\",\"0x1::string::String\",\"0x1::string::String\",\"u64\",\"u64\"],\"return\":[]}],\"structs\":[{\"name\":\"PendingClaims\",\"is_native\":false,\"abilities\":[\"key\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"pending_claims\",\"type\":\"0x1::table::Table<0x3::token_transfers::TokenOfferId, 0x3::token::Token>\"},{\"name\":\"offer_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenOfferEvent>\"},{\"name\":\"cancel_offer_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenCancelOfferEvent>\"},{\"name\":\"claim_events\",\"type\":\"0x1::event::EventHandle<0x3::token_transfers::TokenClaimEvent>\"}]},{\"name\":\"TokenCancelOfferEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenClaimEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenOfferEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_address\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"},{\"name\":\"amount\",\"type\":\"u64\"}]},{\"name\":\"TokenOfferId\",\"is_native\":false,\"abilities\":[\"copy\",\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"to_addr\",\"type\":\"address\"},{\"name\":\"token_id\",\"type\":\"0x3::token::TokenId\"}]}]}'\n );\n}\n\nfunction loadAllTypes(_r: aptos.TypeRegistry) {\n table.loadTypes(_r);\n event.loadTypes(_r);\n simple_map.loadTypes(_r);\n type_info.loadTypes(_r);\n\n _r.load(token.ABI);\n _r.load(property_map.ABI);\n _r.load(token_coin_swap.ABI);\n _r.load(token_transfers.ABI);\n}\n"]}
package/lib/cli/cli.js CHANGED
@@ -13,9 +13,9 @@ const config_1 = require("./config");
13
13
  const upload_1 = require("./upload");
14
14
  const chalk_1 = __importDefault(require("chalk"));
15
15
  const build_1 = require("./build");
16
- const run_login_1 = require("./commands/run-login");
17
16
  const run_create_1 = require("./commands/run-create");
18
17
  const run_version_1 = require("./commands/run-version");
18
+ const run_login_1 = require("./commands/run-login");
19
19
  const mainDefinitions = [{ name: 'command', defaultOption: true }];
20
20
  const mainOptions = (0, command_line_args_1.default)(mainDefinitions, {
21
21
  stopAtFirstUnknown: true,
@@ -160,12 +160,12 @@ function usage() {
160
160
  header: 'Usage',
161
161
  content: [
162
162
  'sentio <command> --help\t\tshow detail usage of specific command',
163
- 'sentio login --api-key=xx\t\tsave credential to local',
163
+ 'sentio login\t\t\t\tlogin to sentio',
164
164
  'sentio create\t\t\t\tcreate a template project',
165
165
  'sentio upload\t\t\t\tbuild and upload processor to sentio',
166
166
  'sentio gen\t\t\t\tgenerate abi',
167
167
  'sentio build\t\t\t\tgenerate abi and build',
168
- 'sentio version\t\t\t\tcurrent cli version',
168
+ 'sentio version\t\t\tcurrent cli version',
169
169
  ],
170
170
  },
171
171
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":";;;;;;AAEA,0EAA+C;AAC/C,4EAAiD;AACjD,4CAAmB;AACnB,gDAAuB;AAEvB,sDAA0B;AAC1B,qCAAiF;AACjF,qCAAqC;AACrC,kDAAyB;AACzB,mCAAwC;AACxC,oDAA+C;AAC/C,sDAAiD;AACjD,wDAAmD;AAEnD,MAAM,eAAe,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAClE,MAAM,WAAW,GAAG,IAAA,2BAAe,EAAC,eAAe,EAAE;IACnD,kBAAkB,EAAE,IAAI;CACzB,CAAC,CAAA;AACF,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,IAAI,EAAE,CAAA;AAEvC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,CAAA;CACR;AAED,IAAI,WAAW,CAAC,OAAO,KAAK,OAAO,EAAE;IACnC,IAAA,oBAAQ,EAAC,IAAI,CAAC,CAAA;CACf;KAAM,IAAI,WAAW,CAAC,OAAO,KAAK,QAAQ,EAAE;IAC3C,IAAA,sBAAS,EAAC,IAAI,CAAC,CAAA;CAChB;KAAM,IAAI,WAAW,CAAC,OAAO,KAAK,SAAS,EAAE;IAC5C,IAAA,wBAAU,EAAC,IAAI,CAAC,CAAA;CACjB;KAAM;IACL,sDAAsD;IACtD,sCAAsC;IAEtC,kBAAkB;IAClB,IAAI,eAAe,GAAwB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACjF,yCAAyC;IACzC,IAAI;QACF,OA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;YACD,IAAA,qBAAY,EAAC,eAAe,CAAC,CAAA;YAC7B,IAAA,4BAAmB,EAAC,eAAe,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;YACnD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;YAE5B,IAAI,WAAW,GAAG,SAAS,CAAA;YAC3B,IAAI,OAAO,CAAC,SAAS,CAAC,EAAE;gBACtB,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;aACjC;YACD,IAAA,mBAAU,EAAC,eAAe,EAAE,WAAW,CAAC,CAAA;SACzC;KACF;SAAM,IAAI,WAAW,CAAC,OAAO,KAAK,OAAO,EAAE;QAC1C,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAA;KACtB;SAAM,IAAI,WAAW,CAAC,OAAO,KAAK,KAAK,EAAE;QACxC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAA;KACrB;SAAM;QACL,KAAK,EAAE,CAAA;KACR;CACF;AAED,SAAS,KAAK;IACZ,MAAM,KAAK,GAAG,IAAA,4BAAgB,EAAC;QAC7B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,8CAA8C;SACxD;QACD;YACE,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,kEAAkE;gBAClE,uDAAuD;gBACvD,gDAAgD;gBAChD,2DAA2D;gBAC3D,gCAAgC;gBAChC,4CAA4C;gBAC5C,2CAA2C;aAC5C;SACF;KACF,CAAC,CAAA;IACF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC","sourcesContent":["#!/usr/bin/env node\n\nimport commandLineArgs from 'command-line-args'\nimport commandLineUsage from 'command-line-usage'\nimport fs from 'fs'\nimport path from 'path'\n\nimport yaml from 'js-yaml'\nimport { finalizeHost, FinalizeProjectName, SentioProjectConfig } from './config'\nimport { uploadFile } from './upload'\nimport chalk from 'chalk'\nimport { buildProcessor } from './build'\nimport { runLogin } from './commands/run-login'\nimport { runCreate } from './commands/run-create'\nimport { runVersion } from './commands/run-version'\n\nconst mainDefinitions = [{ name: 'command', defaultOption: true }]\nconst mainOptions = commandLineArgs(mainDefinitions, {\n stopAtFirstUnknown: true,\n})\nconst argv = mainOptions._unknown || []\n\nif (!mainOptions.command) {\n usage()\n}\n\nif (mainOptions.command === 'login') {\n runLogin(argv)\n} else if (mainOptions.command === 'create') {\n runCreate(argv)\n} else if (mainOptions.command === 'version') {\n runVersion(argv)\n} else {\n // For all the commands that need read project configs\n // TODO move them to their own modules\n\n // Process configs\n let processorConfig: SentioProjectConfig = { host: '', project: '', build: true }\n // Fist step, read from project yaml file\n try {\n console.log(chalk.blue('Loading Process config'))\n // TODO correctly located sentio.yaml\n const pwd = process.cwd()\n const packageJson = path.join(pwd, 'package.json')\n if (!fs.existsSync(packageJson)) {\n console.error('package.json not found, please run this command in the root of your project')\n process.exit(1)\n }\n\n const yamlPath = path.join(pwd, 'sentio.yaml')\n if (!fs.existsSync(yamlPath)) {\n console.error('sentio.yaml not found, please create one according to: TODO docs')\n process.exit(1)\n }\n\n processorConfig = yaml.load(fs.readFileSync('sentio.yaml', 'utf8')) as SentioProjectConfig\n if (!processorConfig.project === undefined) {\n console.error('Config yaml must have contain a valid project identifier')\n process.exit(1)\n }\n if (processorConfig.build === undefined) {\n processorConfig.build = true\n }\n if (!processorConfig.host) {\n processorConfig.host = 'prod'\n }\n\n // if (!processorConfig.source) {\n // processorConfig.source = 'src/processor.ts'\n // }\n // if (!processorConfig.targets) {\n // console.warn('targets is not defined, use EVM as the default target')\n // processorConfig.targets = []\n // }\n // if (processorConfig.targets.length === 0) {\n // // By default evm\n // processorConfig.targets.push({ chain: EVM })\n // }\n } catch (e) {\n console.error(e)\n process.exit(1)\n }\n\n if (mainOptions.command === 'upload') {\n const optionDefinitions = [\n {\n name: 'help',\n alias: 'h',\n type: Boolean,\n description: 'Display this usage guide.',\n },\n {\n name: 'api-key',\n type: String,\n description: '(Optional) Manually provide API key rather than use saved credential',\n },\n {\n name: 'host',\n description: '(Optional) Override Sentio Host name',\n type: String,\n },\n {\n name: 'owner',\n description: '(Optional) Override Project owner',\n type: String,\n },\n {\n name: 'nobuild',\n description: '(Optional) Skip build & pack file before uploading, default false',\n type: Boolean,\n },\n ]\n const options = commandLineArgs(optionDefinitions, { argv })\n if (options.help) {\n const usage = commandLineUsage([\n {\n header: 'Sentio upload',\n content: 'sentio upload',\n },\n {\n header: 'Options',\n optionList: optionDefinitions,\n },\n ])\n console.log(usage)\n } else {\n if (options.host) {\n processorConfig.host = options.host\n }\n if (options.nobuild) {\n processorConfig.build = false\n }\n finalizeHost(processorConfig)\n FinalizeProjectName(processorConfig, options.owner)\n console.log(processorConfig)\n\n let apiOverride = undefined\n if (options['api-key']) {\n apiOverride = options['api-key']\n }\n uploadFile(processorConfig, apiOverride)\n }\n } else if (mainOptions.command === 'build') {\n buildProcessor(false)\n } else if (mainOptions.command === 'gen') {\n buildProcessor(true)\n } else {\n usage()\n }\n}\n\nfunction usage() {\n const usage = commandLineUsage([\n {\n header: 'Sentio',\n content: 'Login & Manage your project files to Sentio.',\n },\n {\n header: 'Usage',\n content: [\n 'sentio <command> --help\\t\\tshow detail usage of specific command',\n 'sentio login --api-key=xx\\t\\tsave credential to local',\n 'sentio create\\t\\t\\t\\tcreate a template project',\n 'sentio upload\\t\\t\\t\\tbuild and upload processor to sentio',\n 'sentio gen\\t\\t\\t\\tgenerate abi',\n 'sentio build\\t\\t\\t\\tgenerate abi and build',\n 'sentio version\\t\\t\\t\\tcurrent cli version',\n ],\n },\n ])\n console.log(usage)\n process.exit(1)\n}\n"]}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":";;;;;;AAEA,0EAA+C;AAC/C,4EAAiD;AACjD,4CAAmB;AACnB,gDAAuB;AAEvB,sDAA0B;AAC1B,qCAAiF;AACjF,qCAAqC;AACrC,kDAAyB;AACzB,mCAA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IAAI,WAAW,CAAC,OAAO,KAAK,OAAO,EAAE;QAC1C,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAA;KACtB;SAAM,IAAI,WAAW,CAAC,OAAO,KAAK,KAAK,EAAE;QACxC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAA;KACrB;SAAM;QACL,KAAK,EAAE,CAAA;KACR;CACF;AAED,SAAS,KAAK;IACZ,MAAM,KAAK,GAAG,IAAA,4BAAgB,EAAC;QAC7B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,8CAA8C;SACxD;QACD;YACE,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,kEAAkE;gBAClE,qCAAqC;gBACrC,gDAAgD;gBAChD,2DAA2D;gBAC3D,gCAAgC;gBAChC,4CAA4C;gBAC5C,yCAAyC;aAC1C;SACF;KACF,CAAC,CAAA;IACF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC","sourcesContent":["#!/usr/bin/env node\n\nimport commandLineArgs from 'command-line-args'\nimport commandLineUsage from 'command-line-usage'\nimport fs from 'fs'\nimport path from 'path'\n\nimport yaml from 'js-yaml'\nimport { finalizeHost, FinalizeProjectName, SentioProjectConfig } from './config'\nimport { uploadFile } from './upload'\nimport chalk from 'chalk'\nimport { buildProcessor } from './build'\nimport { runCreate } from './commands/run-create'\nimport { runVersion } from './commands/run-version'\nimport { runLogin } from './commands/run-login'\n\nconst mainDefinitions = [{ name: 'command', defaultOption: true }]\nconst mainOptions = commandLineArgs(mainDefinitions, {\n stopAtFirstUnknown: true,\n})\nconst argv = mainOptions._unknown || []\n\nif (!mainOptions.command) {\n usage()\n}\n\nif (mainOptions.command === 'login') {\n runLogin(argv)\n} else if (mainOptions.command === 'create') {\n runCreate(argv)\n} else if (mainOptions.command === 'version') {\n runVersion(argv)\n} else {\n // For all the commands that need read project configs\n // TODO move them to their own modules\n\n // Process configs\n let processorConfig: SentioProjectConfig = { host: '', project: '', build: true }\n // Fist step, read from project yaml file\n try {\n console.log(chalk.blue('Loading Process config'))\n // TODO correctly located sentio.yaml\n const pwd = process.cwd()\n const packageJson = path.join(pwd, 'package.json')\n if (!fs.existsSync(packageJson)) {\n console.error('package.json not found, please run this command in the root of your project')\n process.exit(1)\n }\n\n const yamlPath = path.join(pwd, 'sentio.yaml')\n if (!fs.existsSync(yamlPath)) {\n console.error('sentio.yaml not found, please create one according to: TODO docs')\n process.exit(1)\n }\n\n processorConfig = yaml.load(fs.readFileSync('sentio.yaml', 'utf8')) as SentioProjectConfig\n if (!processorConfig.project === undefined) {\n console.error('Config yaml must have contain a valid project identifier')\n process.exit(1)\n }\n if (processorConfig.build === undefined) {\n processorConfig.build = true\n }\n if (!processorConfig.host) {\n processorConfig.host = 'prod'\n }\n\n // if (!processorConfig.source) {\n // processorConfig.source = 'src/processor.ts'\n // }\n // if (!processorConfig.targets) {\n // console.warn('targets is not defined, use EVM as the default target')\n // processorConfig.targets = []\n // }\n // if (processorConfig.targets.length === 0) {\n // // By default evm\n // processorConfig.targets.push({ chain: EVM })\n // }\n } catch (e) {\n console.error(e)\n process.exit(1)\n }\n\n if (mainOptions.command === 'upload') {\n const optionDefinitions = [\n {\n name: 'help',\n alias: 'h',\n type: Boolean,\n description: 'Display this usage guide.',\n },\n {\n name: 'api-key',\n type: String,\n description: '(Optional) Manually provide API key rather than use saved credential',\n },\n {\n name: 'host',\n description: '(Optional) Override Sentio Host name',\n type: String,\n },\n {\n name: 'owner',\n description: '(Optional) Override Project owner',\n type: String,\n },\n {\n name: 'nobuild',\n description: '(Optional) Skip build & pack file before uploading, default false',\n type: Boolean,\n },\n ]\n const options = commandLineArgs(optionDefinitions, { argv })\n if (options.help) {\n const usage = commandLineUsage([\n {\n header: 'Sentio upload',\n content: 'sentio upload',\n },\n {\n header: 'Options',\n optionList: optionDefinitions,\n },\n ])\n console.log(usage)\n } else {\n if (options.host) {\n processorConfig.host = options.host\n }\n if (options.nobuild) {\n processorConfig.build = false\n }\n finalizeHost(processorConfig)\n FinalizeProjectName(processorConfig, options.owner)\n console.log(processorConfig)\n\n let apiOverride = undefined\n if (options['api-key']) {\n apiOverride = options['api-key']\n }\n uploadFile(processorConfig, apiOverride)\n }\n } else if (mainOptions.command === 'build') {\n buildProcessor(false)\n } else if (mainOptions.command === 'gen') {\n buildProcessor(true)\n } else {\n usage()\n }\n}\n\nfunction usage() {\n const usage = commandLineUsage([\n {\n header: 'Sentio',\n content: 'Login & Manage your project files to Sentio.',\n },\n {\n header: 'Usage',\n content: [\n 'sentio <command> --help\\t\\tshow detail usage of specific command',\n 'sentio login\\t\\t\\t\\tlogin to sentio',\n 'sentio create\\t\\t\\t\\tcreate a template project',\n 'sentio upload\\t\\t\\t\\tbuild and upload processor to sentio',\n 'sentio gen\\t\\t\\t\\tgenerate abi',\n 'sentio build\\t\\t\\t\\tgenerate abi and build',\n 'sentio version\\t\\t\\tcurrent cli version',\n ],\n },\n ])\n console.log(usage)\n process.exit(1)\n}\n"]}
@@ -0,0 +1,7 @@
1
+ interface AuthParams {
2
+ serverPort: number;
3
+ sentioHost: string;
4
+ codeVerifier: string;
5
+ }
6
+ export declare function startServer(params: AuthParams): void;
7
+ export {};