@sentio/sdk 1.26.2 → 1.26.4

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.
@@ -81,12 +81,6 @@ class token extends sdk_1.aptos.AptosBaseProcessor {
81
81
  });
82
82
  return this;
83
83
  }
84
- onEventBurnTokenEvent(func) {
85
- this.onEvent(func, {
86
- type: "token::BurnTokenEvent",
87
- });
88
- return this;
89
- }
90
84
  onEventCreateCollectionEvent(func) {
91
85
  this.onEvent(func, {
92
86
  type: "token::CreateCollectionEvent",
@@ -99,27 +93,33 @@ class token extends sdk_1.aptos.AptosBaseProcessor {
99
93
  });
100
94
  return this;
101
95
  }
96
+ onEventMintTokenEvent(func) {
97
+ this.onEvent(func, {
98
+ type: "token::MintTokenEvent",
99
+ });
100
+ return this;
101
+ }
102
102
  onEventDepositEvent(func) {
103
103
  this.onEvent(func, {
104
104
  type: "token::DepositEvent",
105
105
  });
106
106
  return this;
107
107
  }
108
- onEventMintTokenEvent(func) {
108
+ onEventWithdrawEvent(func) {
109
109
  this.onEvent(func, {
110
- type: "token::MintTokenEvent",
110
+ type: "token::WithdrawEvent",
111
111
  });
112
112
  return this;
113
113
  }
114
- onEventMutateTokenPropertyMapEvent(func) {
114
+ onEventBurnTokenEvent(func) {
115
115
  this.onEvent(func, {
116
- type: "token::MutateTokenPropertyMapEvent",
116
+ type: "token::BurnTokenEvent",
117
117
  });
118
118
  return this;
119
119
  }
120
- onEventWithdrawEvent(func) {
120
+ onEventMutateTokenPropertyMapEvent(func) {
121
121
  this.onEvent(func, {
122
- type: "token::WithdrawEvent",
122
+ type: "token::MutateTokenPropertyMapEvent",
123
123
  });
124
124
  return this;
125
125
  }
@@ -130,13 +130,13 @@ class token extends sdk_1.aptos.AptosBaseProcessor {
130
130
  exports.token = token;
131
131
  (function (token) {
132
132
  class BurnTokenEvent {
133
- static TYPE_NAME = "0x3::token::BurnTokenEvent";
133
+ static TYPE_QNAME = "0x3::token::BurnTokenEvent";
134
134
  id;
135
135
  amount;
136
136
  }
137
137
  token.BurnTokenEvent = BurnTokenEvent;
138
138
  class CollectionData {
139
- static TYPE_NAME = "0x3::token::CollectionData";
139
+ static TYPE_QNAME = "0x3::token::CollectionData";
140
140
  description;
141
141
  name;
142
142
  uri;
@@ -146,14 +146,14 @@ exports.token = token;
146
146
  }
147
147
  token.CollectionData = CollectionData;
148
148
  class CollectionMutabilityConfig {
149
- static TYPE_NAME = "0x3::token::CollectionMutabilityConfig";
149
+ static TYPE_QNAME = "0x3::token::CollectionMutabilityConfig";
150
150
  description;
151
151
  uri;
152
152
  maximum;
153
153
  }
154
154
  token.CollectionMutabilityConfig = CollectionMutabilityConfig;
155
155
  class Collections {
156
- static TYPE_NAME = "0x3::token::Collections";
156
+ static TYPE_QNAME = "0x3::token::Collections";
157
157
  collection_data;
158
158
  token_data;
159
159
  create_collection_events;
@@ -162,7 +162,7 @@ exports.token = token;
162
162
  }
163
163
  token.Collections = Collections;
164
164
  class CreateCollectionEvent {
165
- static TYPE_NAME = "0x3::token::CreateCollectionEvent";
165
+ static TYPE_QNAME = "0x3::token::CreateCollectionEvent";
166
166
  creator;
167
167
  collection_name;
168
168
  uri;
@@ -171,7 +171,7 @@ exports.token = token;
171
171
  }
172
172
  token.CreateCollectionEvent = CreateCollectionEvent;
173
173
  class CreateTokenDataEvent {
174
- static TYPE_NAME = "0x3::token::CreateTokenDataEvent";
174
+ static TYPE_QNAME = "0x3::token::CreateTokenDataEvent";
175
175
  id;
176
176
  description;
177
177
  maximum;
@@ -187,19 +187,19 @@ exports.token = token;
187
187
  }
188
188
  token.CreateTokenDataEvent = CreateTokenDataEvent;
189
189
  class DepositEvent {
190
- static TYPE_NAME = "0x3::token::DepositEvent";
190
+ static TYPE_QNAME = "0x3::token::DepositEvent";
191
191
  id;
192
192
  amount;
193
193
  }
194
194
  token.DepositEvent = DepositEvent;
195
195
  class MintTokenEvent {
196
- static TYPE_NAME = "0x3::token::MintTokenEvent";
196
+ static TYPE_QNAME = "0x3::token::MintTokenEvent";
197
197
  id;
198
198
  amount;
199
199
  }
200
200
  token.MintTokenEvent = MintTokenEvent;
201
201
  class MutateTokenPropertyMapEvent {
202
- static TYPE_NAME = "0x3::token::MutateTokenPropertyMapEvent";
202
+ static TYPE_QNAME = "0x3::token::MutateTokenPropertyMapEvent";
203
203
  old_id;
204
204
  new_id;
205
205
  keys;
@@ -208,21 +208,21 @@ exports.token = token;
208
208
  }
209
209
  token.MutateTokenPropertyMapEvent = MutateTokenPropertyMapEvent;
210
210
  class Royalty {
211
- static TYPE_NAME = "0x3::token::Royalty";
211
+ static TYPE_QNAME = "0x3::token::Royalty";
212
212
  royalty_points_numerator;
213
213
  royalty_points_denominator;
214
214
  payee_address;
215
215
  }
216
216
  token.Royalty = Royalty;
217
217
  class Token {
218
- static TYPE_NAME = "0x3::token::Token";
218
+ static TYPE_QNAME = "0x3::token::Token";
219
219
  id;
220
220
  amount;
221
221
  token_properties;
222
222
  }
223
223
  token.Token = Token;
224
224
  class TokenData {
225
- static TYPE_NAME = "0x3::token::TokenData";
225
+ static TYPE_QNAME = "0x3::token::TokenData";
226
226
  maximum;
227
227
  largest_property_version;
228
228
  supply;
@@ -235,20 +235,20 @@ exports.token = token;
235
235
  }
236
236
  token.TokenData = TokenData;
237
237
  class TokenDataId {
238
- static TYPE_NAME = "0x3::token::TokenDataId";
238
+ static TYPE_QNAME = "0x3::token::TokenDataId";
239
239
  creator;
240
240
  collection;
241
241
  name;
242
242
  }
243
243
  token.TokenDataId = TokenDataId;
244
244
  class TokenId {
245
- static TYPE_NAME = "0x3::token::TokenId";
245
+ static TYPE_QNAME = "0x3::token::TokenId";
246
246
  token_data_id;
247
247
  property_version;
248
248
  }
249
249
  token.TokenId = TokenId;
250
250
  class TokenMutabilityConfig {
251
- static TYPE_NAME = "0x3::token::TokenMutabilityConfig";
251
+ static TYPE_QNAME = "0x3::token::TokenMutabilityConfig";
252
252
  maximum;
253
253
  uri;
254
254
  royalty;
@@ -257,7 +257,7 @@ exports.token = token;
257
257
  }
258
258
  token.TokenMutabilityConfig = TokenMutabilityConfig;
259
259
  class TokenStore {
260
- static TYPE_NAME = "0x3::token::TokenStore";
260
+ static TYPE_QNAME = "0x3::token::TokenStore";
261
261
  tokens;
262
262
  direct_transfer;
263
263
  deposit_events;
@@ -267,7 +267,7 @@ exports.token = token;
267
267
  }
268
268
  token.TokenStore = TokenStore;
269
269
  class WithdrawCapability {
270
- static TYPE_NAME = "0x3::token::WithdrawCapability";
270
+ static TYPE_QNAME = "0x3::token::WithdrawCapability";
271
271
  token_owner;
272
272
  token_id;
273
273
  amount;
@@ -275,13 +275,13 @@ exports.token = token;
275
275
  }
276
276
  token.WithdrawCapability = WithdrawCapability;
277
277
  class WithdrawEvent {
278
- static TYPE_NAME = "0x3::token::WithdrawEvent";
278
+ static TYPE_QNAME = "0x3::token::WithdrawEvent";
279
279
  id;
280
280
  amount;
281
281
  }
282
282
  token.WithdrawEvent = WithdrawEvent;
283
- function loadTypes(registry) {
284
- loadAllTypes(registry);
283
+ function loadTypes(_r) {
284
+ loadAllTypes(_r);
285
285
  }
286
286
  token.loadTypes = loadTypes;
287
287
  token.ABI = JSON.parse('{"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"}]}]}');
@@ -289,18 +289,18 @@ exports.token = token;
289
289
  var property_map;
290
290
  (function (property_map) {
291
291
  class PropertyMap {
292
- static TYPE_NAME = "0x3::property_map::PropertyMap";
292
+ static TYPE_QNAME = "0x3::property_map::PropertyMap";
293
293
  map;
294
294
  }
295
295
  property_map.PropertyMap = PropertyMap;
296
296
  class PropertyValue {
297
- static TYPE_NAME = "0x3::property_map::PropertyValue";
297
+ static TYPE_QNAME = "0x3::property_map::PropertyValue";
298
298
  value;
299
299
  type;
300
300
  }
301
301
  property_map.PropertyValue = PropertyValue;
302
- function loadTypes(registry) {
303
- loadAllTypes(registry);
302
+ function loadTypes(_r) {
303
+ loadAllTypes(_r);
304
304
  }
305
305
  property_map.loadTypes = loadTypes;
306
306
  property_map.ABI = JSON.parse('{"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"}]}]}');
@@ -345,19 +345,19 @@ class token_coin_swap extends sdk_1.aptos.AptosBaseProcessor {
345
345
  exports.token_coin_swap = token_coin_swap;
346
346
  (function (token_coin_swap) {
347
347
  class TokenCoinSwap {
348
- static TYPE_NAME = "0x3::token_coin_swap::TokenCoinSwap";
348
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenCoinSwap";
349
349
  token_amount;
350
350
  min_price_per_token;
351
351
  }
352
352
  token_coin_swap.TokenCoinSwap = TokenCoinSwap;
353
353
  class TokenEscrow {
354
- static TYPE_NAME = "0x3::token_coin_swap::TokenEscrow";
354
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenEscrow";
355
355
  token;
356
356
  locked_until_secs;
357
357
  }
358
358
  token_coin_swap.TokenEscrow = TokenEscrow;
359
359
  class TokenListingEvent {
360
- static TYPE_NAME = "0x3::token_coin_swap::TokenListingEvent";
360
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenListingEvent";
361
361
  token_id;
362
362
  amount;
363
363
  min_price;
@@ -366,19 +366,19 @@ exports.token_coin_swap = token_coin_swap;
366
366
  }
367
367
  token_coin_swap.TokenListingEvent = TokenListingEvent;
368
368
  class TokenListings {
369
- static TYPE_NAME = "0x3::token_coin_swap::TokenListings";
369
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenListings";
370
370
  listings;
371
371
  listing_events;
372
372
  swap_events;
373
373
  }
374
374
  token_coin_swap.TokenListings = TokenListings;
375
375
  class TokenStoreEscrow {
376
- static TYPE_NAME = "0x3::token_coin_swap::TokenStoreEscrow";
376
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenStoreEscrow";
377
377
  token_escrows;
378
378
  }
379
379
  token_coin_swap.TokenStoreEscrow = TokenStoreEscrow;
380
380
  class TokenSwapEvent {
381
- static TYPE_NAME = "0x3::token_coin_swap::TokenSwapEvent";
381
+ static TYPE_QNAME = "0x3::token_coin_swap::TokenSwapEvent";
382
382
  token_id;
383
383
  token_buyer;
384
384
  token_amount;
@@ -386,8 +386,8 @@ exports.token_coin_swap = token_coin_swap;
386
386
  coin_type_info;
387
387
  }
388
388
  token_coin_swap.TokenSwapEvent = TokenSwapEvent;
389
- function loadTypes(registry) {
390
- loadAllTypes(registry);
389
+ function loadTypes(_r) {
390
+ loadAllTypes(_r);
391
391
  }
392
392
  token_coin_swap.loadTypes = loadTypes;
393
393
  token_coin_swap.ABI = JSON.parse('{"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"}]}]}');
@@ -427,21 +427,21 @@ class token_transfers extends sdk_1.aptos.AptosBaseProcessor {
427
427
  });
428
428
  return this;
429
429
  }
430
- onEventTokenCancelOfferEvent(func) {
430
+ onEventTokenOfferEvent(func) {
431
431
  this.onEvent(func, {
432
- type: "token_transfers::TokenCancelOfferEvent",
432
+ type: "token_transfers::TokenOfferEvent",
433
433
  });
434
434
  return this;
435
435
  }
436
- onEventTokenClaimEvent(func) {
436
+ onEventTokenCancelOfferEvent(func) {
437
437
  this.onEvent(func, {
438
- type: "token_transfers::TokenClaimEvent",
438
+ type: "token_transfers::TokenCancelOfferEvent",
439
439
  });
440
440
  return this;
441
441
  }
442
- onEventTokenOfferEvent(func) {
442
+ onEventTokenClaimEvent(func) {
443
443
  this.onEvent(func, {
444
- type: "token_transfers::TokenOfferEvent",
444
+ type: "token_transfers::TokenClaimEvent",
445
445
  });
446
446
  return this;
447
447
  }
@@ -452,7 +452,7 @@ class token_transfers extends sdk_1.aptos.AptosBaseProcessor {
452
452
  exports.token_transfers = token_transfers;
453
453
  (function (token_transfers) {
454
454
  class PendingClaims {
455
- static TYPE_NAME = "0x3::token_transfers::PendingClaims";
455
+ static TYPE_QNAME = "0x3::token_transfers::PendingClaims";
456
456
  pending_claims;
457
457
  offer_events;
458
458
  cancel_offer_events;
@@ -460,46 +460,46 @@ exports.token_transfers = token_transfers;
460
460
  }
461
461
  token_transfers.PendingClaims = PendingClaims;
462
462
  class TokenCancelOfferEvent {
463
- static TYPE_NAME = "0x3::token_transfers::TokenCancelOfferEvent";
463
+ static TYPE_QNAME = "0x3::token_transfers::TokenCancelOfferEvent";
464
464
  to_address;
465
465
  token_id;
466
466
  amount;
467
467
  }
468
468
  token_transfers.TokenCancelOfferEvent = TokenCancelOfferEvent;
469
469
  class TokenClaimEvent {
470
- static TYPE_NAME = "0x3::token_transfers::TokenClaimEvent";
470
+ static TYPE_QNAME = "0x3::token_transfers::TokenClaimEvent";
471
471
  to_address;
472
472
  token_id;
473
473
  amount;
474
474
  }
475
475
  token_transfers.TokenClaimEvent = TokenClaimEvent;
476
476
  class TokenOfferEvent {
477
- static TYPE_NAME = "0x3::token_transfers::TokenOfferEvent";
477
+ static TYPE_QNAME = "0x3::token_transfers::TokenOfferEvent";
478
478
  to_address;
479
479
  token_id;
480
480
  amount;
481
481
  }
482
482
  token_transfers.TokenOfferEvent = TokenOfferEvent;
483
483
  class TokenOfferId {
484
- static TYPE_NAME = "0x3::token_transfers::TokenOfferId";
484
+ static TYPE_QNAME = "0x3::token_transfers::TokenOfferId";
485
485
  to_addr;
486
486
  token_id;
487
487
  }
488
488
  token_transfers.TokenOfferId = TokenOfferId;
489
- function loadTypes(registry) {
490
- loadAllTypes(registry);
489
+ function loadTypes(_r) {
490
+ loadAllTypes(_r);
491
491
  }
492
492
  token_transfers.loadTypes = loadTypes;
493
493
  token_transfers.ABI = JSON.parse('{"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"}]}]}');
494
494
  })(token_transfers = exports.token_transfers || (exports.token_transfers = {}));
495
- function loadAllTypes(registry) {
496
- _0x1_1.table.loadTypes(registry);
497
- _0x1_1.event.loadTypes(registry);
498
- _0x1_1.simple_map.loadTypes(registry);
499
- _0x1_1.type_info.loadTypes(registry);
500
- registry.load(token.ABI);
501
- registry.load(property_map.ABI);
502
- registry.load(token_coin_swap.ABI);
503
- registry.load(token_transfers.ABI);
495
+ function loadAllTypes(_r) {
496
+ _0x1_1.table.loadTypes(_r);
497
+ _0x1_1.event.loadTypes(_r);
498
+ _0x1_1.simple_map.loadTypes(_r);
499
+ _0x1_1.type_info.loadTypes(_r);
500
+ _r.load(token.ABI);
501
+ _r.load(property_map.ABI);
502
+ _r.load(token_coin_swap.ABI);
503
+ _r.load(token_transfers.ABI);
504
504
  }
505
505
  //# sourceMappingURL=0x3.js.map