@sentio/sdk 2.0.0-rc.14 → 2.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/api.d.ts +5 -0
- package/lib/aptos/api.js +21 -0
- package/lib/aptos/api.js.map +1 -0
- package/lib/aptos/aptos-plugin.d.ts +14 -0
- package/lib/aptos/aptos-plugin.js +146 -0
- package/lib/aptos/aptos-plugin.js.map +1 -0
- package/lib/aptos/aptos-processor.d.ts +72 -0
- package/lib/aptos/aptos-processor.js +201 -0
- package/lib/aptos/aptos-processor.js.map +1 -0
- package/lib/aptos/builtin/0x1.d.ts +2140 -0
- package/lib/aptos/builtin/0x1.js +2727 -0
- package/lib/aptos/builtin/0x1.js.map +1 -0
- package/lib/aptos/builtin/0x3.d.ts +573 -0
- package/lib/aptos/builtin/0x3.js +496 -0
- package/lib/aptos/builtin/0x3.js.map +1 -0
- package/lib/aptos/builtin/index.d.ts +2 -0
- package/lib/aptos/builtin/index.js +6 -0
- package/lib/aptos/builtin/index.js.map +1 -0
- package/lib/aptos/codegen/codegen.d.ts +23 -0
- package/lib/aptos/codegen/codegen.js +388 -0
- package/lib/aptos/codegen/codegen.js.map +1 -0
- package/lib/aptos/codegen/index.d.ts +1 -0
- package/lib/aptos/codegen/index.js +2 -0
- package/lib/aptos/codegen/index.js.map +1 -0
- package/lib/aptos/codegen/typegen.d.ts +18 -0
- package/lib/aptos/codegen/typegen.js +145 -0
- package/lib/aptos/codegen/typegen.js.map +1 -0
- package/lib/aptos/codegen/typegen.test.d.ts +1 -0
- package/lib/aptos/codegen/typegen.test.js.map +1 -0
- package/lib/aptos/context.d.ts +21 -0
- package/lib/aptos/context.js +59 -0
- package/lib/aptos/context.js.map +1 -0
- package/lib/aptos/index.d.ts +9 -0
- package/lib/aptos/index.js +8 -0
- package/lib/aptos/index.js.map +1 -0
- package/lib/aptos/models.d.ts +37 -0
- package/lib/aptos/models.js +2 -0
- package/lib/aptos/models.js.map +1 -0
- package/lib/aptos/move-coder.d.ts +22 -0
- package/lib/aptos/move-coder.js +164 -0
- package/lib/aptos/move-coder.js.map +1 -0
- package/lib/aptos/move-types.d.ts +10 -0
- package/lib/aptos/move-types.js +2 -0
- package/lib/aptos/move-types.js.map +1 -0
- package/lib/aptos/network.d.ts +11 -0
- package/lib/aptos/network.js +27 -0
- package/lib/aptos/network.js.map +1 -0
- package/lib/aptos/run-codegen.d.ts +1 -0
- package/lib/aptos/run-codegen.js +12 -0
- package/lib/aptos/run-codegen.js.map +1 -0
- package/lib/aptos/tests/aptos.test.d.ts +1 -0
- package/lib/aptos/tests/aptos.test.js.map +1 -0
- package/lib/aptos/tests/souffl3.d.ts +1 -0
- package/lib/aptos/tests/souffl3.js +44 -0
- package/lib/aptos/tests/souffl3.js.map +1 -0
- package/lib/aptos/tests/types/index.d.ts +3 -0
- package/lib/aptos/tests/types/index.js +7 -0
- package/lib/aptos/tests/types/index.js.map +1 -0
- package/lib/aptos/tests/types/reserved.d.ts +445 -0
- package/lib/aptos/tests/types/reserved.js +301 -0
- package/lib/aptos/tests/types/reserved.js.map +1 -0
- package/lib/aptos/tests/types/soffl3.d.ts +1065 -0
- package/lib/aptos/tests/types/soffl3.js +548 -0
- package/lib/aptos/tests/types/soffl3.js.map +1 -0
- package/lib/aptos/tests/types/souffle.d.ts +440 -0
- package/lib/aptos/tests/types/souffle.js +295 -0
- package/lib/aptos/tests/types/souffle.js.map +1 -0
- package/lib/aptos/types.d.ts +9 -0
- package/lib/aptos/types.js +130 -0
- package/lib/aptos/types.js.map +1 -0
- package/lib/aptos/types.test.d.ts +1 -0
- package/lib/aptos/types.test.js.map +1 -0
- package/lib/aptos/utils.d.ts +7 -0
- package/lib/aptos/utils.js +20 -0
- package/lib/aptos/utils.js.map +1 -0
- package/lib/{utils/chain.d.ts → chain.d.ts} +0 -0
- package/lib/{utils/chain.js → chain.js} +0 -0
- package/lib/chain.js.map +1 -0
- package/lib/core/context.js +1 -1
- package/lib/core/context.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/solana/builtin/index.d.ts +1 -0
- package/lib/solana/builtin/index.js +2 -0
- package/lib/solana/builtin/index.js.map +1 -0
- package/lib/solana/builtin/spl-token-processor.d.ts +39 -0
- package/lib/solana/builtin/spl-token-processor.js +254 -0
- package/lib/solana/builtin/spl-token-processor.js.map +1 -0
- package/lib/solana/builtin/types.d.ts +427 -0
- package/lib/solana/builtin/types.js +200 -0
- package/lib/solana/builtin/types.js.map +1 -0
- package/lib/solana/codegen/codegen.d.ts +1 -0
- package/lib/solana/codegen/codegen.js +122 -0
- package/lib/solana/codegen/codegen.js.map +1 -0
- package/lib/solana/codegen/index.d.ts +1 -0
- package/lib/solana/codegen/index.js +2 -0
- package/lib/solana/codegen/index.js.map +1 -0
- package/lib/solana/index.d.ts +4 -0
- package/lib/solana/index.js +5 -0
- package/lib/solana/index.js.map +1 -0
- package/lib/solana/run-codegen.d.ts +2 -0
- package/lib/solana/run-codegen.js +12 -0
- package/lib/solana/run-codegen.js.map +1 -0
- package/lib/solana/solana-context.d.ts +9 -0
- package/lib/solana/solana-context.js +28 -0
- package/lib/solana/solana-context.js.map +1 -0
- package/lib/solana/solana-options.d.ts +10 -0
- package/lib/solana/solana-options.js +10 -0
- package/lib/solana/solana-options.js.map +1 -0
- package/lib/solana/solana-plugin.d.ts +9 -0
- package/lib/solana/solana-plugin.js +87 -0
- package/lib/solana/solana-plugin.js.map +1 -0
- package/lib/solana/solana-processor.d.ts +43 -0
- package/lib/solana/solana-processor.js +72 -0
- package/lib/solana/solana-processor.js.map +1 -0
- package/lib/solana/tests/solana.test.d.ts +1 -0
- package/lib/solana/tests/solana.test.js.map +1 -0
- package/lib/solana/tests/types/basic_1.d.ts +26 -0
- package/lib/solana/tests/types/basic_1.js +63 -0
- package/lib/solana/tests/types/basic_1.js.map +1 -0
- package/lib/solana/tests/types/basic_1_processor.d.ts +21 -0
- package/lib/solana/tests/types/basic_1_processor.js +35 -0
- package/lib/solana/tests/types/basic_1_processor.js.map +1 -0
- package/lib/solana/tests/types/token_bridge.d.ts +29 -0
- package/lib/solana/tests/types/token_bridge.js +938 -0
- package/lib/solana/tests/types/token_bridge.js.map +1 -0
- package/lib/solana/tests/types/token_bridge_processor.d.ts +212 -0
- package/lib/solana/tests/types/token_bridge_processor.js +134 -0
- package/lib/solana/tests/types/token_bridge_processor.js.map +1 -0
- package/lib/solana/tests/wormhole-token-bridge.d.ts +15 -0
- package/lib/solana/tests/wormhole-token-bridge.js +79 -0
- package/lib/solana/tests/wormhole-token-bridge.js.map +1 -0
- package/lib/testing/test-processor-server.js +1 -1
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +1 -1
- package/lib/testing/test-provider.js.map +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +33 -11
- package/src/aptos/abis/0x1.json +9205 -0
- package/src/aptos/abis/0x3.json +1515 -0
- package/src/aptos/api.ts +23 -0
- package/src/aptos/aptos-plugin.ts +183 -0
- package/src/aptos/aptos-processor.ts +331 -0
- package/src/aptos/builtin/0x1.ts +4911 -0
- package/src/aptos/builtin/0x3.ts +1092 -0
- package/src/aptos/builtin/index.ts +5 -0
- package/src/aptos/codegen/codegen.ts +470 -0
- package/src/aptos/codegen/index.ts +1 -0
- package/src/aptos/codegen/tsconfig.json +8 -0
- package/src/aptos/codegen/typegen.ts +165 -0
- package/src/aptos/context.ts +72 -0
- package/src/aptos/index.ts +10 -0
- package/src/aptos/models.ts +47 -0
- package/src/aptos/move-coder.ts +201 -0
- package/src/aptos/move-types.ts +11 -0
- package/src/aptos/network.ts +29 -0
- package/src/aptos/run-codegen.ts +13 -0
- package/src/aptos/tests/abis/reserved.json +402 -0
- package/src/aptos/tests/abis/soffl3.json +1411 -0
- package/src/aptos/tests/abis/souffle.json +389 -0
- package/src/aptos/tests/souffl3.ts +57 -0
- package/src/aptos/tests/types/index.ts +6 -0
- package/src/aptos/tests/types/reserved.ts +881 -0
- package/src/aptos/tests/types/soffl3.ts +1820 -0
- package/src/aptos/tests/types/souffle.ts +880 -0
- package/src/aptos/types.ts +149 -0
- package/src/aptos/utils.ts +26 -0
- package/src/{utils/chain.ts → chain.ts} +0 -0
- package/src/core/context.ts +1 -1
- package/src/core/sui-plugin.ts +1 -1
- package/src/index.ts +1 -1
- package/src/solana/builtin/index.ts +1 -0
- package/src/solana/builtin/spl-token-processor.ts +298 -0
- package/src/solana/builtin/types.ts +279 -0
- package/src/solana/codegen/codegen.ts +140 -0
- package/src/solana/codegen/index.ts +1 -0
- package/src/solana/codegen/tsconfig.json +8 -0
- package/src/solana/index.ts +4 -0
- package/src/solana/run-codegen.ts +13 -0
- package/src/solana/solana-context.ts +30 -0
- package/src/solana/solana-options.ts +11 -0
- package/src/solana/solana-plugin.ts +103 -0
- package/src/solana/solana-processor.ts +102 -0
- package/src/solana/tests/abis/basic_1.json +62 -0
- package/src/solana/tests/abis/token_bridge.json +937 -0
- package/src/solana/tests/types/basic_1.ts +62 -0
- package/src/solana/tests/types/basic_1_processor.ts +42 -0
- package/src/solana/tests/types/token_bridge.ts +937 -0
- package/src/solana/tests/types/token_bridge_processor.ts +150 -0
- package/src/solana/tests/wormhole-token-bridge.ts +96 -0
- package/src/testing/test-processor-server.ts +1 -1
- package/src/testing/test-provider.ts +1 -1
- package/src/utils/index.ts +0 -1
- package/lib/utils/chain.js.map +0 -1
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/* Generated modules for account 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4 */
|
|
5
|
+
import { AptosBaseProcessor, AptosNetwork, } from "@sentio/sdk/aptos";
|
|
6
|
+
import { _0x3 } from "@sentio/sdk/aptos/builtin";
|
|
7
|
+
import { _0x1 } from "@sentio/sdk/aptos/builtin";
|
|
8
|
+
export class Aggregator extends AptosBaseProcessor {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
super("Aggregator", options);
|
|
11
|
+
}
|
|
12
|
+
static DEFAULT_OPTIONS = {
|
|
13
|
+
address: "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
|
|
14
|
+
network: AptosNetwork.MAIN_NET,
|
|
15
|
+
};
|
|
16
|
+
static bind(options = {}) {
|
|
17
|
+
return new Aggregator({ ...Aggregator.DEFAULT_OPTIONS, ...options });
|
|
18
|
+
}
|
|
19
|
+
onEntryBatchBuyScriptV1(func, filter, fetchConfig) {
|
|
20
|
+
this.onEntryFunctionCall(func, {
|
|
21
|
+
...filter,
|
|
22
|
+
function: "Aggregator::batch_buy_script_V1",
|
|
23
|
+
}, fetchConfig);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
onEntryBatchChangePriceScriptV1(func, filter, fetchConfig) {
|
|
27
|
+
this.onEntryFunctionCall(func, {
|
|
28
|
+
...filter,
|
|
29
|
+
function: "Aggregator::batch_change_price_script_V1",
|
|
30
|
+
}, fetchConfig);
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
onEntryBatchDelistScriptV1(func, filter, fetchConfig) {
|
|
34
|
+
this.onEntryFunctionCall(func, {
|
|
35
|
+
...filter,
|
|
36
|
+
function: "Aggregator::batch_delist_script_V1",
|
|
37
|
+
}, fetchConfig);
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
loadTypesInternal(registry) {
|
|
41
|
+
loadAllTypes(registry);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
(function (Aggregator) {
|
|
45
|
+
class BlueMove_V2_batch_buy_script {
|
|
46
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::BlueMove_V2_batch_buy_script";
|
|
47
|
+
creators;
|
|
48
|
+
collections;
|
|
49
|
+
names;
|
|
50
|
+
prices;
|
|
51
|
+
}
|
|
52
|
+
Aggregator.BlueMove_V2_batch_buy_script = BlueMove_V2_batch_buy_script;
|
|
53
|
+
class BlueMove_V2_batch_delist_sciprt {
|
|
54
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::BlueMove_V2_batch_delist_sciprt";
|
|
55
|
+
creators;
|
|
56
|
+
collections;
|
|
57
|
+
names;
|
|
58
|
+
property_versions;
|
|
59
|
+
}
|
|
60
|
+
Aggregator.BlueMove_V2_batch_delist_sciprt = BlueMove_V2_batch_delist_sciprt;
|
|
61
|
+
class Souffl3_batch_buy_script {
|
|
62
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_buy_script";
|
|
63
|
+
creator_lists;
|
|
64
|
+
collection_lists;
|
|
65
|
+
name_lists;
|
|
66
|
+
property_version_lists;
|
|
67
|
+
token_amount_lists;
|
|
68
|
+
coin_amount_lists;
|
|
69
|
+
market_address_lists;
|
|
70
|
+
market_name_lists;
|
|
71
|
+
}
|
|
72
|
+
Aggregator.Souffl3_batch_buy_script = Souffl3_batch_buy_script;
|
|
73
|
+
class Souffl3_batch_change_price_script {
|
|
74
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_change_price_script";
|
|
75
|
+
creator_lists;
|
|
76
|
+
collection_lists;
|
|
77
|
+
name_lists;
|
|
78
|
+
property_version_lists;
|
|
79
|
+
token_amount_lists;
|
|
80
|
+
coin_per_token_lists;
|
|
81
|
+
locked_until_secs_lists;
|
|
82
|
+
market_address_lists;
|
|
83
|
+
market_name_lists;
|
|
84
|
+
}
|
|
85
|
+
Aggregator.Souffl3_batch_change_price_script = Souffl3_batch_change_price_script;
|
|
86
|
+
class Souffl3_batch_delist_sciprt {
|
|
87
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_delist_sciprt";
|
|
88
|
+
creator_lists;
|
|
89
|
+
collection_lists;
|
|
90
|
+
name_lists;
|
|
91
|
+
property_version_lists;
|
|
92
|
+
token_amount_lists;
|
|
93
|
+
market_address_lists;
|
|
94
|
+
market_name_lists;
|
|
95
|
+
}
|
|
96
|
+
Aggregator.Souffl3_batch_delist_sciprt = Souffl3_batch_delist_sciprt;
|
|
97
|
+
class Souffl3_batch_list_script {
|
|
98
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_list_script";
|
|
99
|
+
creator_lists;
|
|
100
|
+
collection_lists;
|
|
101
|
+
name_lists;
|
|
102
|
+
property_version_lists;
|
|
103
|
+
token_amount_lists;
|
|
104
|
+
coin_amount_lists;
|
|
105
|
+
locked_until_secs_lists;
|
|
106
|
+
market_address_lists;
|
|
107
|
+
market_name_lists;
|
|
108
|
+
}
|
|
109
|
+
Aggregator.Souffl3_batch_list_script = Souffl3_batch_list_script;
|
|
110
|
+
class Topaz_V2_buy_many {
|
|
111
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Topaz_V2_buy_many";
|
|
112
|
+
listers;
|
|
113
|
+
prices;
|
|
114
|
+
amounts;
|
|
115
|
+
creators;
|
|
116
|
+
collections;
|
|
117
|
+
names;
|
|
118
|
+
property_versions;
|
|
119
|
+
}
|
|
120
|
+
Aggregator.Topaz_V2_buy_many = Topaz_V2_buy_many;
|
|
121
|
+
class Topaz_V2_delist {
|
|
122
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Topaz_V2_delist";
|
|
123
|
+
amounts;
|
|
124
|
+
creators;
|
|
125
|
+
collections;
|
|
126
|
+
names;
|
|
127
|
+
property_versions;
|
|
128
|
+
}
|
|
129
|
+
Aggregator.Topaz_V2_delist = Topaz_V2_delist;
|
|
130
|
+
function loadTypes(_r) {
|
|
131
|
+
loadAllTypes(_r);
|
|
132
|
+
}
|
|
133
|
+
Aggregator.loadTypes = loadTypes;
|
|
134
|
+
Aggregator.ABI = JSON.parse('{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"Aggregator","friends":[],"exposed_functions":[{"name":"batch_buy_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<address>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_delist_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]}],"structs":[{"name":"BlueMove_V2_batch_buy_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"prices","type":"vector<u64>"}]},{"name":"BlueMove_V2_batch_delist_sciprt","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]},{"name":"Souffl3_batch_buy_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_amount_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_change_price_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_per_token_lists","type":"vector<u64>"},{"name":"locked_until_secs_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_delist_sciprt","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_list_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_amount_lists","type":"vector<u64>"},{"name":"locked_until_secs_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Topaz_V2_buy_many","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"listers","type":"vector<address>"},{"name":"prices","type":"vector<u64>"},{"name":"amounts","type":"vector<u64>"},{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]},{"name":"Topaz_V2_delist","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"amounts","type":"vector<u64>"},{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]}]}');
|
|
135
|
+
})(Aggregator || (Aggregator = {}));
|
|
136
|
+
export class token_coin_swap extends AptosBaseProcessor {
|
|
137
|
+
constructor(options) {
|
|
138
|
+
super("token_coin_swap", options);
|
|
139
|
+
}
|
|
140
|
+
static DEFAULT_OPTIONS = {
|
|
141
|
+
address: "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
|
|
142
|
+
network: AptosNetwork.MAIN_NET,
|
|
143
|
+
};
|
|
144
|
+
static bind(options = {}) {
|
|
145
|
+
return new token_coin_swap({
|
|
146
|
+
...token_coin_swap.DEFAULT_OPTIONS,
|
|
147
|
+
...options,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
onEntryListTokenForSwap(func, filter, fetchConfig) {
|
|
151
|
+
this.onEntryFunctionCall(func, {
|
|
152
|
+
...filter,
|
|
153
|
+
function: "token_coin_swap::list_token_for_swap",
|
|
154
|
+
}, fetchConfig);
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
157
|
+
onEventTokenListingEvent(func, fetchConfig) {
|
|
158
|
+
this.onEvent(func, {
|
|
159
|
+
type: "token_coin_swap::TokenListingEvent",
|
|
160
|
+
}, fetchConfig);
|
|
161
|
+
return this;
|
|
162
|
+
}
|
|
163
|
+
onEventTokenSwapEvent(func, fetchConfig) {
|
|
164
|
+
this.onEvent(func, {
|
|
165
|
+
type: "token_coin_swap::TokenSwapEvent",
|
|
166
|
+
}, fetchConfig);
|
|
167
|
+
return this;
|
|
168
|
+
}
|
|
169
|
+
loadTypesInternal(registry) {
|
|
170
|
+
loadAllTypes(registry);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
(function (token_coin_swap) {
|
|
174
|
+
class TokenCoinSwap {
|
|
175
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenCoinSwap";
|
|
176
|
+
token_amount;
|
|
177
|
+
min_price_per_token;
|
|
178
|
+
}
|
|
179
|
+
token_coin_swap.TokenCoinSwap = TokenCoinSwap;
|
|
180
|
+
class TokenEscrow {
|
|
181
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenEscrow";
|
|
182
|
+
token;
|
|
183
|
+
locked_until_secs;
|
|
184
|
+
}
|
|
185
|
+
token_coin_swap.TokenEscrow = TokenEscrow;
|
|
186
|
+
class TokenListingEvent {
|
|
187
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListingEvent";
|
|
188
|
+
token_id;
|
|
189
|
+
amount;
|
|
190
|
+
min_price;
|
|
191
|
+
locked_until_secs;
|
|
192
|
+
coin_type_info;
|
|
193
|
+
}
|
|
194
|
+
token_coin_swap.TokenListingEvent = TokenListingEvent;
|
|
195
|
+
class TokenListings {
|
|
196
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListings";
|
|
197
|
+
listings;
|
|
198
|
+
listing_events;
|
|
199
|
+
swap_events;
|
|
200
|
+
}
|
|
201
|
+
token_coin_swap.TokenListings = TokenListings;
|
|
202
|
+
class TokenStoreEscrow {
|
|
203
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenStoreEscrow";
|
|
204
|
+
token_escrows;
|
|
205
|
+
}
|
|
206
|
+
token_coin_swap.TokenStoreEscrow = TokenStoreEscrow;
|
|
207
|
+
class TokenSwapEvent {
|
|
208
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenSwapEvent";
|
|
209
|
+
token_id;
|
|
210
|
+
token_buyer;
|
|
211
|
+
token_amount;
|
|
212
|
+
coin_amount;
|
|
213
|
+
coin_type_info;
|
|
214
|
+
}
|
|
215
|
+
token_coin_swap.TokenSwapEvent = TokenSwapEvent;
|
|
216
|
+
function loadTypes(_r) {
|
|
217
|
+
loadAllTypes(_r);
|
|
218
|
+
}
|
|
219
|
+
token_coin_swap.loadTypes = loadTypes;
|
|
220
|
+
token_coin_swap.ABI = JSON.parse('{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","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, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenCoinSwap<T0>>"},{"name":"listing_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListingEvent>"},{"name":"swap_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::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, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::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"}]}]}');
|
|
221
|
+
})(token_coin_swap || (token_coin_swap = {}));
|
|
222
|
+
export class FixedPriceMarket extends AptosBaseProcessor {
|
|
223
|
+
constructor(options) {
|
|
224
|
+
super("FixedPriceMarket", options);
|
|
225
|
+
}
|
|
226
|
+
static DEFAULT_OPTIONS = {
|
|
227
|
+
address: "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
|
|
228
|
+
network: AptosNetwork.MAIN_NET,
|
|
229
|
+
};
|
|
230
|
+
static bind(options = {}) {
|
|
231
|
+
return new FixedPriceMarket({
|
|
232
|
+
...FixedPriceMarket.DEFAULT_OPTIONS,
|
|
233
|
+
...options,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
onEntryAddAcl(func, filter, fetchConfig) {
|
|
237
|
+
this.onEntryFunctionCall(func, {
|
|
238
|
+
...filter,
|
|
239
|
+
function: "FixedPriceMarket::add_acl",
|
|
240
|
+
}, fetchConfig);
|
|
241
|
+
return this;
|
|
242
|
+
}
|
|
243
|
+
onEntryBatchBuyScript(func, filter, fetchConfig) {
|
|
244
|
+
this.onEntryFunctionCall(func, {
|
|
245
|
+
...filter,
|
|
246
|
+
function: "FixedPriceMarket::batch_buy_script",
|
|
247
|
+
}, fetchConfig);
|
|
248
|
+
return this;
|
|
249
|
+
}
|
|
250
|
+
onEntryBatchCancelListScript(func, filter, fetchConfig) {
|
|
251
|
+
this.onEntryFunctionCall(func, {
|
|
252
|
+
...filter,
|
|
253
|
+
function: "FixedPriceMarket::batch_cancel_list_script",
|
|
254
|
+
}, fetchConfig);
|
|
255
|
+
return this;
|
|
256
|
+
}
|
|
257
|
+
onEntryBatchChangePriceScript(func, filter, fetchConfig) {
|
|
258
|
+
this.onEntryFunctionCall(func, {
|
|
259
|
+
...filter,
|
|
260
|
+
function: "FixedPriceMarket::batch_change_price_script",
|
|
261
|
+
}, fetchConfig);
|
|
262
|
+
return this;
|
|
263
|
+
}
|
|
264
|
+
onEntryBatchListScript(func, filter, fetchConfig) {
|
|
265
|
+
this.onEntryFunctionCall(func, {
|
|
266
|
+
...filter,
|
|
267
|
+
function: "FixedPriceMarket::batch_list_script",
|
|
268
|
+
}, fetchConfig);
|
|
269
|
+
return this;
|
|
270
|
+
}
|
|
271
|
+
onEntryBuyScript(func, filter, fetchConfig) {
|
|
272
|
+
this.onEntryFunctionCall(func, {
|
|
273
|
+
...filter,
|
|
274
|
+
function: "FixedPriceMarket::buy_script",
|
|
275
|
+
}, fetchConfig);
|
|
276
|
+
return this;
|
|
277
|
+
}
|
|
278
|
+
onEntryCancelListScript(func, filter, fetchConfig) {
|
|
279
|
+
this.onEntryFunctionCall(func, {
|
|
280
|
+
...filter,
|
|
281
|
+
function: "FixedPriceMarket::cancel_list_script",
|
|
282
|
+
}, fetchConfig);
|
|
283
|
+
return this;
|
|
284
|
+
}
|
|
285
|
+
onEntryChangePriceScript(func, filter, fetchConfig) {
|
|
286
|
+
this.onEntryFunctionCall(func, {
|
|
287
|
+
...filter,
|
|
288
|
+
function: "FixedPriceMarket::change_price_script",
|
|
289
|
+
}, fetchConfig);
|
|
290
|
+
return this;
|
|
291
|
+
}
|
|
292
|
+
onEntryCreateMarket(func, filter, fetchConfig) {
|
|
293
|
+
this.onEntryFunctionCall(func, {
|
|
294
|
+
...filter,
|
|
295
|
+
function: "FixedPriceMarket::create_market",
|
|
296
|
+
}, fetchConfig);
|
|
297
|
+
return this;
|
|
298
|
+
}
|
|
299
|
+
onEntryListScript(func, filter, fetchConfig) {
|
|
300
|
+
this.onEntryFunctionCall(func, {
|
|
301
|
+
...filter,
|
|
302
|
+
function: "FixedPriceMarket::list_script",
|
|
303
|
+
}, fetchConfig);
|
|
304
|
+
return this;
|
|
305
|
+
}
|
|
306
|
+
onEntryTransferEscrow(func, filter, fetchConfig) {
|
|
307
|
+
this.onEntryFunctionCall(func, {
|
|
308
|
+
...filter,
|
|
309
|
+
function: "FixedPriceMarket::transfer_escrow",
|
|
310
|
+
}, fetchConfig);
|
|
311
|
+
return this;
|
|
312
|
+
}
|
|
313
|
+
onEntryUpdateMarket(func, filter, fetchConfig) {
|
|
314
|
+
this.onEntryFunctionCall(func, {
|
|
315
|
+
...filter,
|
|
316
|
+
function: "FixedPriceMarket::update_market",
|
|
317
|
+
}, fetchConfig);
|
|
318
|
+
return this;
|
|
319
|
+
}
|
|
320
|
+
onEntryWithdrawFeeToPayee(func, filter, fetchConfig) {
|
|
321
|
+
this.onEntryFunctionCall(func, {
|
|
322
|
+
...filter,
|
|
323
|
+
function: "FixedPriceMarket::withdraw_fee_to_payee",
|
|
324
|
+
}, fetchConfig);
|
|
325
|
+
return this;
|
|
326
|
+
}
|
|
327
|
+
onEventCreateMarketEvent(func, fetchConfig) {
|
|
328
|
+
this.onEvent(func, {
|
|
329
|
+
type: "FixedPriceMarket::CreateMarketEvent",
|
|
330
|
+
}, fetchConfig);
|
|
331
|
+
return this;
|
|
332
|
+
}
|
|
333
|
+
onEventListTokenEvent(func, fetchConfig) {
|
|
334
|
+
this.onEvent(func, {
|
|
335
|
+
type: "FixedPriceMarket::ListTokenEvent",
|
|
336
|
+
}, fetchConfig);
|
|
337
|
+
return this;
|
|
338
|
+
}
|
|
339
|
+
onEventCancelListTokenEvent(func, fetchConfig) {
|
|
340
|
+
this.onEvent(func, {
|
|
341
|
+
type: "FixedPriceMarket::CancelListTokenEvent",
|
|
342
|
+
}, fetchConfig);
|
|
343
|
+
return this;
|
|
344
|
+
}
|
|
345
|
+
onEventBuyTokenEvent(func, fetchConfig) {
|
|
346
|
+
this.onEvent(func, {
|
|
347
|
+
type: "FixedPriceMarket::BuyTokenEvent",
|
|
348
|
+
}, fetchConfig);
|
|
349
|
+
return this;
|
|
350
|
+
}
|
|
351
|
+
loadTypesInternal(registry) {
|
|
352
|
+
loadAllTypes(registry);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
(function (FixedPriceMarket) {
|
|
356
|
+
class ACLBox {
|
|
357
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ACLBox";
|
|
358
|
+
box;
|
|
359
|
+
}
|
|
360
|
+
FixedPriceMarket.ACLBox = ACLBox;
|
|
361
|
+
class BuyTokenEvent {
|
|
362
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::BuyTokenEvent";
|
|
363
|
+
id;
|
|
364
|
+
token_id;
|
|
365
|
+
token_amount;
|
|
366
|
+
buyer;
|
|
367
|
+
token_owner;
|
|
368
|
+
coin_per_token;
|
|
369
|
+
}
|
|
370
|
+
FixedPriceMarket.BuyTokenEvent = BuyTokenEvent;
|
|
371
|
+
class CancelListTokenEvent {
|
|
372
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CancelListTokenEvent";
|
|
373
|
+
id;
|
|
374
|
+
token_id;
|
|
375
|
+
token_amount;
|
|
376
|
+
}
|
|
377
|
+
FixedPriceMarket.CancelListTokenEvent = CancelListTokenEvent;
|
|
378
|
+
class CreateMarketEvent {
|
|
379
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CreateMarketEvent";
|
|
380
|
+
id;
|
|
381
|
+
market_fee_point;
|
|
382
|
+
fee_payee;
|
|
383
|
+
}
|
|
384
|
+
FixedPriceMarket.CreateMarketEvent = CreateMarketEvent;
|
|
385
|
+
class ListTokenEvent {
|
|
386
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ListTokenEvent";
|
|
387
|
+
id;
|
|
388
|
+
token_id;
|
|
389
|
+
token_owner;
|
|
390
|
+
token_amount;
|
|
391
|
+
coin_per_token;
|
|
392
|
+
}
|
|
393
|
+
FixedPriceMarket.ListTokenEvent = ListTokenEvent;
|
|
394
|
+
class MarketConfig {
|
|
395
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketConfig";
|
|
396
|
+
market_fee_point;
|
|
397
|
+
fee_payee;
|
|
398
|
+
}
|
|
399
|
+
FixedPriceMarket.MarketConfig = MarketConfig;
|
|
400
|
+
class MarketId {
|
|
401
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId";
|
|
402
|
+
market_address;
|
|
403
|
+
name;
|
|
404
|
+
}
|
|
405
|
+
FixedPriceMarket.MarketId = MarketId;
|
|
406
|
+
class MarketRecords {
|
|
407
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketRecords";
|
|
408
|
+
records;
|
|
409
|
+
create_market_events;
|
|
410
|
+
list_token_events;
|
|
411
|
+
cancel_list_evnets;
|
|
412
|
+
buy_token_events;
|
|
413
|
+
}
|
|
414
|
+
FixedPriceMarket.MarketRecords = MarketRecords;
|
|
415
|
+
class ResoureAccountCap {
|
|
416
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ResoureAccountCap";
|
|
417
|
+
cap;
|
|
418
|
+
}
|
|
419
|
+
FixedPriceMarket.ResoureAccountCap = ResoureAccountCap;
|
|
420
|
+
class Ticket {
|
|
421
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::Ticket";
|
|
422
|
+
market;
|
|
423
|
+
token_owner;
|
|
424
|
+
coin_per_token;
|
|
425
|
+
}
|
|
426
|
+
FixedPriceMarket.Ticket = Ticket;
|
|
427
|
+
class TicketPack {
|
|
428
|
+
static TYPE_QNAME = "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::TicketPack";
|
|
429
|
+
tickets;
|
|
430
|
+
}
|
|
431
|
+
FixedPriceMarket.TicketPack = TicketPack;
|
|
432
|
+
function loadTypes(_r) {
|
|
433
|
+
loadAllTypes(_r);
|
|
434
|
+
}
|
|
435
|
+
FixedPriceMarket.loadTypes = loadTypes;
|
|
436
|
+
FixedPriceMarket.ABI = JSON.parse('{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"FixedPriceMarket","friends":[],"exposed_functions":[{"name":"add_acl","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"batch_buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"buy","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"cancel_list","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x3::token::TokenId","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>","u64"],"return":[]},{"name":"cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","address","0x1::string::String"],"return":[]},{"name":"change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"create_market","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","0x1::string::String"],"return":[]},{"name":"create_market_id_raw","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x1::string::String"],"return":["0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"]},{"name":"is_ticket_exsit","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x3::token::TokenId"],"return":["bool"]},{"name":"list","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"transfer_escrow","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"update_market","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","0x1::string::String"],"return":[]},{"name":"withdraw_fee_to_payee","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String"],"return":[]}],"structs":[{"name":"ACLBox","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[],"fields":[{"name":"box","type":"0x1::acl::ACL"}]},{"name":"BuyTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_amount","type":"u64"},{"name":"buyer","type":"address"},{"name":"token_owner","type":"address"},{"name":"coin_per_token","type":"u64"}]},{"name":"CancelListTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_amount","type":"u64"}]},{"name":"CreateMarketEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"market_fee_point","type":"u64"},{"name":"fee_payee","type":"address"}]},{"name":"ListTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_owner","type":"address"},{"name":"token_amount","type":"u64"},{"name":"coin_per_token","type":"u64"}]},{"name":"MarketConfig","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market_fee_point","type":"u64"},{"name":"fee_payee","type":"address"}]},{"name":"MarketId","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market_address","type":"address"},{"name":"name","type":"0x1::string::String"}]},{"name":"MarketRecords","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"records","type":"0x1::table::Table<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketConfig<T0>>"},{"name":"create_market_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CreateMarketEvent<T0>>"},{"name":"list_token_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ListTokenEvent<T0>>"},{"name":"cancel_list_evnets","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CancelListTokenEvent<T0>>"},{"name":"buy_token_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::BuyTokenEvent<T0>>"}]},{"name":"ResoureAccountCap","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"cap","type":"0x1::account::SignerCapability"}]},{"name":"Ticket","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_owner","type":"address"},{"name":"coin_per_token","type":"u64"}]},{"name":"TicketPack","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"tickets","type":"0x1::table::Table<0x3::token::TokenId, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::Ticket<T0>>"}]}]}');
|
|
437
|
+
})(FixedPriceMarket || (FixedPriceMarket = {}));
|
|
438
|
+
export class FixedPriceMarketScript extends AptosBaseProcessor {
|
|
439
|
+
constructor(options) {
|
|
440
|
+
super("FixedPriceMarketScript", options);
|
|
441
|
+
}
|
|
442
|
+
static DEFAULT_OPTIONS = {
|
|
443
|
+
address: "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
|
|
444
|
+
network: AptosNetwork.MAIN_NET,
|
|
445
|
+
};
|
|
446
|
+
static bind(options = {}) {
|
|
447
|
+
return new FixedPriceMarketScript({
|
|
448
|
+
...FixedPriceMarketScript.DEFAULT_OPTIONS,
|
|
449
|
+
...options,
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
onEntryBatchBuyScript(func, filter, fetchConfig) {
|
|
453
|
+
this.onEntryFunctionCall(func, {
|
|
454
|
+
...filter,
|
|
455
|
+
function: "FixedPriceMarketScript::batch_buy_script",
|
|
456
|
+
}, fetchConfig);
|
|
457
|
+
return this;
|
|
458
|
+
}
|
|
459
|
+
onEntryBatchCancelListScript(func, filter, fetchConfig) {
|
|
460
|
+
this.onEntryFunctionCall(func, {
|
|
461
|
+
...filter,
|
|
462
|
+
function: "FixedPriceMarketScript::batch_cancel_list_script",
|
|
463
|
+
}, fetchConfig);
|
|
464
|
+
return this;
|
|
465
|
+
}
|
|
466
|
+
onEntryBatchChangePriceScript(func, filter, fetchConfig) {
|
|
467
|
+
this.onEntryFunctionCall(func, {
|
|
468
|
+
...filter,
|
|
469
|
+
function: "FixedPriceMarketScript::batch_change_price_script",
|
|
470
|
+
}, fetchConfig);
|
|
471
|
+
return this;
|
|
472
|
+
}
|
|
473
|
+
onEntryBatchListScript(func, filter, fetchConfig) {
|
|
474
|
+
this.onEntryFunctionCall(func, {
|
|
475
|
+
...filter,
|
|
476
|
+
function: "FixedPriceMarketScript::batch_list_script",
|
|
477
|
+
}, fetchConfig);
|
|
478
|
+
return this;
|
|
479
|
+
}
|
|
480
|
+
onEntryBatchTransferEscrow(func, filter, fetchConfig) {
|
|
481
|
+
this.onEntryFunctionCall(func, {
|
|
482
|
+
...filter,
|
|
483
|
+
function: "FixedPriceMarketScript::batch_transfer_escrow",
|
|
484
|
+
}, fetchConfig);
|
|
485
|
+
return this;
|
|
486
|
+
}
|
|
487
|
+
onEntryBatchTransferTokens(func, filter, fetchConfig) {
|
|
488
|
+
this.onEntryFunctionCall(func, {
|
|
489
|
+
...filter,
|
|
490
|
+
function: "FixedPriceMarketScript::batch_transfer_tokens",
|
|
491
|
+
}, fetchConfig);
|
|
492
|
+
return this;
|
|
493
|
+
}
|
|
494
|
+
onEntryBuyScript(func, filter, fetchConfig) {
|
|
495
|
+
this.onEntryFunctionCall(func, {
|
|
496
|
+
...filter,
|
|
497
|
+
function: "FixedPriceMarketScript::buy_script",
|
|
498
|
+
}, fetchConfig);
|
|
499
|
+
return this;
|
|
500
|
+
}
|
|
501
|
+
onEntryCancelListScript(func, filter, fetchConfig) {
|
|
502
|
+
this.onEntryFunctionCall(func, {
|
|
503
|
+
...filter,
|
|
504
|
+
function: "FixedPriceMarketScript::cancel_list_script",
|
|
505
|
+
}, fetchConfig);
|
|
506
|
+
return this;
|
|
507
|
+
}
|
|
508
|
+
onEntryChangePriceScript(func, filter, fetchConfig) {
|
|
509
|
+
this.onEntryFunctionCall(func, {
|
|
510
|
+
...filter,
|
|
511
|
+
function: "FixedPriceMarketScript::change_price_script",
|
|
512
|
+
}, fetchConfig);
|
|
513
|
+
return this;
|
|
514
|
+
}
|
|
515
|
+
onEntryListScript(func, filter, fetchConfig) {
|
|
516
|
+
this.onEntryFunctionCall(func, {
|
|
517
|
+
...filter,
|
|
518
|
+
function: "FixedPriceMarketScript::list_script",
|
|
519
|
+
}, fetchConfig);
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
onEntryOptInDirectTransfer(func, filter, fetchConfig) {
|
|
523
|
+
this.onEntryFunctionCall(func, {
|
|
524
|
+
...filter,
|
|
525
|
+
function: "FixedPriceMarketScript::opt_in_direct_transfer",
|
|
526
|
+
}, fetchConfig);
|
|
527
|
+
return this;
|
|
528
|
+
}
|
|
529
|
+
loadTypesInternal(registry) {
|
|
530
|
+
loadAllTypes(registry);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
(function (FixedPriceMarketScript) {
|
|
534
|
+
function loadTypes(_r) {
|
|
535
|
+
loadAllTypes(_r);
|
|
536
|
+
}
|
|
537
|
+
FixedPriceMarketScript.loadTypes = loadTypes;
|
|
538
|
+
FixedPriceMarketScript.ABI = JSON.parse('{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"FixedPriceMarketScript","friends":[],"exposed_functions":[{"name":"batch_buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_transfer_escrow","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_transfer_tokens","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>"],"return":[]},{"name":"buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","address","0x1::string::String"],"return":[]},{"name":"change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"opt_in_direct_transfer","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","bool"],"return":[]}],"structs":[]}');
|
|
539
|
+
})(FixedPriceMarketScript || (FixedPriceMarketScript = {}));
|
|
540
|
+
export function loadAllTypes(_r) {
|
|
541
|
+
_0x3.loadAllTypes(_r);
|
|
542
|
+
_0x1.loadAllTypes(_r);
|
|
543
|
+
_r.load(Aggregator.ABI);
|
|
544
|
+
_r.load(token_coin_swap.ABI);
|
|
545
|
+
_r.load(FixedPriceMarket.ABI);
|
|
546
|
+
_r.load(FixedPriceMarketScript.ABI);
|
|
547
|
+
}
|
|
548
|
+
//# sourceMappingURL=soffl3.js.map
|