@sentio/sdk 2.11.2 → 2.11.3-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/ext/coin.js +73 -96
- package/lib/aptos/ext/coin.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts +1 -0
- package/lib/move/abstract-codegen.js +2 -1
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +74 -40
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +190 -104
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.js +1 -0
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/models.d.ts +1 -1
- package/lib/sui/models.js.map +1 -1
- package/package.json +7 -5
- package/src/aptos/ext/coin.ts +73 -98
- package/src/move/abstract-codegen.ts +2 -1
- package/src/sui/builtin/0x2.ts +64 -40
- package/src/sui/builtin/0x3.ts +167 -102
- package/src/sui/codegen/codegen.ts +1 -0
- package/src/sui/models.ts +1 -1
package/lib/aptos/ext/coin.js
CHANGED
@@ -5,7 +5,7 @@ const WHITELISTED_COINS = new Map();
|
|
5
5
|
export async function initCoinList() {
|
6
6
|
let list = DEFAULT_LIST;
|
7
7
|
try {
|
8
|
-
const resp = await fetch('https://
|
8
|
+
const resp = await fetch('https://github.com/hippospace/aptos-coin-list/blob/main/src/permissionless.json');
|
9
9
|
list = (await resp.json());
|
10
10
|
}
|
11
11
|
catch (e) {
|
@@ -42,7 +42,7 @@ export function getCoinInfo(type) {
|
|
42
42
|
return {
|
43
43
|
token_type: { type: type, account_address: parts[0] },
|
44
44
|
symbol: parts[2],
|
45
|
-
decimals:
|
45
|
+
decimals: 8,
|
46
46
|
bridge: 'native',
|
47
47
|
};
|
48
48
|
}
|
@@ -119,6 +119,75 @@ const DEFAULT_LIST = [
|
|
119
119
|
hippo_symbol: 'MEE',
|
120
120
|
pancake_symbol: 'MEE',
|
121
121
|
},
|
122
|
+
{
|
123
|
+
name: 'Move Dollar',
|
124
|
+
symbol: 'MOD',
|
125
|
+
official_symbol: 'MOD',
|
126
|
+
coingecko_id: '',
|
127
|
+
decimals: 8,
|
128
|
+
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/MOD.svg',
|
129
|
+
project_url: 'https://www.thala.fi/',
|
130
|
+
token_type: {
|
131
|
+
type: '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD',
|
132
|
+
account_address: '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01',
|
133
|
+
module_name: 'mod_coin',
|
134
|
+
struct_name: 'MOD',
|
135
|
+
},
|
136
|
+
extensions: {
|
137
|
+
data: [],
|
138
|
+
},
|
139
|
+
unique_index: 128,
|
140
|
+
source: 'native',
|
141
|
+
permissioned_listing: true,
|
142
|
+
hippo_symbol: 'MOD',
|
143
|
+
pancake_symbol: 'MOD',
|
144
|
+
},
|
145
|
+
{
|
146
|
+
name: 'Thala Token',
|
147
|
+
symbol: 'THL',
|
148
|
+
official_symbol: 'THL',
|
149
|
+
coingecko_id: '',
|
150
|
+
decimals: 8,
|
151
|
+
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/THL.svg',
|
152
|
+
project_url: 'https://www.thala.fi/',
|
153
|
+
token_type: {
|
154
|
+
type: '0x07fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL',
|
155
|
+
account_address: '0x07fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615',
|
156
|
+
module_name: 'thl_coin',
|
157
|
+
struct_name: 'THL',
|
158
|
+
},
|
159
|
+
extensions: {
|
160
|
+
data: [],
|
161
|
+
},
|
162
|
+
unique_index: 129,
|
163
|
+
source: 'native',
|
164
|
+
permissioned_listing: true,
|
165
|
+
hippo_symbol: 'THL',
|
166
|
+
pancake_symbol: 'THL',
|
167
|
+
},
|
168
|
+
{
|
169
|
+
name: 'Aptopad Coin',
|
170
|
+
symbol: 'APD',
|
171
|
+
official_symbol: 'APD',
|
172
|
+
coingecko_id: '',
|
173
|
+
decimals: 8,
|
174
|
+
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/aptopad.png',
|
175
|
+
project_url: 'https://aptopad.io',
|
176
|
+
token_type: {
|
177
|
+
type: '0xcc78307c77f1c2c0fdfee17269bfca7876a0b35438c3442417480c0d5c370fbc::AptopadCoin::APD',
|
178
|
+
account_address: '0xcc78307c77f1c2c0fdfee17269bfca7876a0b35438c3442417480c0d5c370fbc',
|
179
|
+
module_name: 'AptopadCoin',
|
180
|
+
struct_name: 'APD',
|
181
|
+
},
|
182
|
+
extensions: {
|
183
|
+
data: [],
|
184
|
+
},
|
185
|
+
unique_index: 130,
|
186
|
+
source: 'native',
|
187
|
+
hippo_symbol: 'APD',
|
188
|
+
pancake_symbol: 'APD',
|
189
|
+
permissioned_listing: false,
|
190
|
+
},
|
122
191
|
{
|
123
192
|
name: 'Ditto Staked Aptos',
|
124
193
|
symbol: 'stAPT',
|
@@ -165,29 +234,6 @@ const DEFAULT_LIST = [
|
|
165
234
|
hippo_symbol: 'DTO',
|
166
235
|
pancake_symbol: 'DTO',
|
167
236
|
},
|
168
|
-
{
|
169
|
-
name: 'DAI',
|
170
|
-
symbol: 'devDAI',
|
171
|
-
official_symbol: 'DAI',
|
172
|
-
coingecko_id: 'dai',
|
173
|
-
decimals: 8,
|
174
|
-
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/DAI.webp',
|
175
|
-
project_url: 'project_url',
|
176
|
-
token_type: {
|
177
|
-
type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetDAI',
|
178
|
-
account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
|
179
|
-
module_name: 'devnet_coins',
|
180
|
-
struct_name: 'DevnetDAI',
|
181
|
-
},
|
182
|
-
extensions: {
|
183
|
-
data: [],
|
184
|
-
},
|
185
|
-
unique_index: 213,
|
186
|
-
source: 'native',
|
187
|
-
hippo_symbol: 'devDAI',
|
188
|
-
pancake_symbol: 'devDAI',
|
189
|
-
permissioned_listing: false,
|
190
|
-
},
|
191
237
|
{
|
192
238
|
name: 'Aptoge',
|
193
239
|
symbol: 'APTOGE',
|
@@ -349,29 +395,6 @@ const DEFAULT_LIST = [
|
|
349
395
|
pancake_symbol: 'MOJO',
|
350
396
|
permissioned_listing: false,
|
351
397
|
},
|
352
|
-
{
|
353
|
-
name: 'USD Coin',
|
354
|
-
symbol: 'devUSDC',
|
355
|
-
official_symbol: 'USDC',
|
356
|
-
coingecko_id: 'usd-coin',
|
357
|
-
decimals: 8,
|
358
|
-
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/USDC.webp',
|
359
|
-
project_url: 'project_url',
|
360
|
-
token_type: {
|
361
|
-
type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetUSDC',
|
362
|
-
account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
|
363
|
-
module_name: 'devnet_coins',
|
364
|
-
struct_name: 'DevnetUSDC',
|
365
|
-
},
|
366
|
-
extensions: {
|
367
|
-
data: [],
|
368
|
-
},
|
369
|
-
unique_index: 553,
|
370
|
-
source: 'native',
|
371
|
-
hippo_symbol: 'devUSDC',
|
372
|
-
pancake_symbol: 'devUSDC',
|
373
|
-
permissioned_listing: false,
|
374
|
-
},
|
375
398
|
{
|
376
399
|
name: 'Doglaika Coin',
|
377
400
|
symbol: 'DLC',
|
@@ -395,29 +418,6 @@ const DEFAULT_LIST = [
|
|
395
418
|
hippo_symbol: 'DLC',
|
396
419
|
pancake_symbol: 'DLC',
|
397
420
|
},
|
398
|
-
{
|
399
|
-
name: 'Bitcoin',
|
400
|
-
symbol: 'devBTC',
|
401
|
-
official_symbol: 'BTC',
|
402
|
-
coingecko_id: 'bitcoin',
|
403
|
-
decimals: 8,
|
404
|
-
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/BTC.webp',
|
405
|
-
project_url: 'project_url',
|
406
|
-
token_type: {
|
407
|
-
type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetBTC',
|
408
|
-
account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
|
409
|
-
module_name: 'devnet_coins',
|
410
|
-
struct_name: 'DevnetBTC',
|
411
|
-
},
|
412
|
-
extensions: {
|
413
|
-
data: [],
|
414
|
-
},
|
415
|
-
unique_index: 662,
|
416
|
-
source: 'native',
|
417
|
-
hippo_symbol: 'devBTC',
|
418
|
-
pancake_symbol: 'devBTC',
|
419
|
-
permissioned_listing: false,
|
420
|
-
},
|
421
421
|
{
|
422
422
|
name: 'The People',
|
423
423
|
symbol: 'People',
|
@@ -533,29 +533,6 @@ const DEFAULT_LIST = [
|
|
533
533
|
hippo_symbol: 'MOVE',
|
534
534
|
pancake_symbol: 'MOVE',
|
535
535
|
},
|
536
|
-
{
|
537
|
-
name: 'Tether',
|
538
|
-
symbol: 'devUSDT',
|
539
|
-
official_symbol: 'USDT',
|
540
|
-
coingecko_id: 'tether',
|
541
|
-
decimals: 8,
|
542
|
-
logo_url: 'https://raw.githubusercontent.com/hippospace/aptos-coin-list/main/icons/USDT.webp',
|
543
|
-
project_url: 'project_url',
|
544
|
-
token_type: {
|
545
|
-
type: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68::devnet_coins::DevnetUSDT',
|
546
|
-
account_address: '0x498d8926f16eb9ca90cab1b3a26aa6f97a080b3fcbe6e83ae150b7243a00fb68',
|
547
|
-
module_name: 'devnet_coins',
|
548
|
-
struct_name: 'DevnetUSDT',
|
549
|
-
},
|
550
|
-
extensions: {
|
551
|
-
data: [],
|
552
|
-
},
|
553
|
-
unique_index: 923,
|
554
|
-
source: 'native',
|
555
|
-
hippo_symbol: 'devUSDT',
|
556
|
-
pancake_symbol: 'devUSDT',
|
557
|
-
permissioned_listing: false,
|
558
|
-
},
|
559
536
|
{
|
560
537
|
name: 'AptosLaunch Token',
|
561
538
|
symbol: 'ALT',
|
@@ -590,8 +567,8 @@ const DEFAULT_LIST = [
|
|
590
567
|
token_type: {
|
591
568
|
type: '0x27975005fd8b836a905dc7f81c51f89e76091a4d0c4d694265f6eae0c05cb400::proton_a5d::PROTON_E54',
|
592
569
|
account_address: '0x27975005fd8b836a905dc7f81c51f89e76091a4d0c4d694265f6eae0c05cb400',
|
593
|
-
module_name: '
|
594
|
-
struct_name: '
|
570
|
+
module_name: 'proton_a5d',
|
571
|
+
struct_name: 'PROTON_E54',
|
595
572
|
},
|
596
573
|
extensions: {
|
597
574
|
data: [],
|