@sentio/sdk 2.45.1-rc.1 → 2.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,28 +5,9 @@ import { AptosNetwork, getClient } from '../network.js'
5
5
  import { coin } from '../builtin/0x1.js'
6
6
  import { MoveStructId } from '@aptos-labs/ts-sdk'
7
7
  import { AptosChainId } from '@sentio/chain'
8
- import DEFAULT_TOKEN_LIST from './token-list.json' assert { type: 'json' }
8
+ import { DEFAULT_TOKEN_LIST, InternalTokenInfo } from './token-list.js'
9
9
  import { BaseCoinInfo } from '../../move/ext/index.js'
10
10
 
11
- type InternalTokenInfo = {
12
- chainId: number
13
- tokenAddress: `0x${string}` | null
14
- faAddress: `0x${string}` | null
15
- name: string
16
- symbol: string
17
- decimals: number
18
- bridge: 'LayerZero' | 'Wormhole' | 'Celer' | null
19
- panoraSymbol: string
20
- logoUrl: string | null
21
- websiteUrl: string | null
22
- category: 'Native' | 'Bridged' | 'Meme'
23
- isInPanoraTokenList: boolean
24
- isBanned: boolean
25
- panoraOrderIndex: number | null
26
- coinGeckoId: string | null
27
- coinMarketCapId: number | null
28
- }
29
-
30
11
  export interface TokenInfo extends BaseCoinInfo {
31
12
  type: `0x${string}` // either tokenAddress or faAddress
32
13
  tokenAddress?: `0x${string}`
@@ -34,7 +15,7 @@ export interface TokenInfo extends BaseCoinInfo {
34
15
  name: string
35
16
  symbol: string
36
17
  decimals: number
37
- bridge: 'LayerZero' | 'Wormhole' | 'Celer' | 'Native'
18
+ bridge: 'LayerZero' | 'Wormhole' | 'Celer' | 'Echo' | 'Native'
38
19
  logoUrl?: string
39
20
  websiteUrl?: string
40
21
  category: 'Native' | 'Bridged' | 'Meme'
@@ -45,7 +26,7 @@ export interface TokenInfo extends BaseCoinInfo {
45
26
  const TOKEN_MAP = new Map<string, TokenInfo>()
46
27
 
47
28
  export async function initTokenList() {
48
- let list = DEFAULT_TOKEN_LIST as InternalTokenInfo[]
29
+ let list = DEFAULT_TOKEN_LIST
49
30
  try {
50
31
  const resp = await fetch(
51
32
  'https://raw.githubusercontent.com/PanoraExchange/Aptos-Tokens/refs/heads/main/token-list.json'