Skip to content

Commit 7eca507

Browse files
committed
feat(statics): add polyx tokens
TICKET: WIN-7452
1 parent ca7d097 commit 7eca507

File tree

3 files changed

+41
-12
lines changed

3 files changed

+41
-12
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import {
3434
terc721,
3535
tflrErc20,
3636
topethErc20,
37-
tpolyxToken,
3837
tronToken,
3938
tstellarToken,
4039
tsuiToken,
@@ -101,7 +100,6 @@ import {
101100
POLYGON_FEATURES,
102101
POLYGON_TOKEN_FEATURES,
103102
POLYX_FEATURES,
104-
POLYX_TOKEN_FEATURES,
105103
RBTC_FEATURES,
106104
SEI_FEATURES,
107105
SGB_FEATURES,
@@ -4666,16 +4664,6 @@ export const allCoinsAndTokens = [
46664664
UnderlyingAsset['ttao:targon'],
46674665
TAO_TOKEN_FEATURES
46684666
),
4669-
tpolyxToken(
4670-
'a63b4f8d-84d6-45d3-bc67-625239e40811',
4671-
'tpolyx:nvbitgot',
4672-
'NVBITGOT Fungible Asset',
4673-
6,
4674-
'NVBITGOT',
4675-
'0x780602887b358cf48989d0d9aa6c8d28',
4676-
UnderlyingAsset['tpolyx:nvbitgot'],
4677-
POLYX_TOKEN_FEATURES
4678-
),
46794667
aptToken(
46804668
'e2a2d8fc-df3e-4bb7-b9c6-19092bb3369a',
46814669
'apt:usd1',

modules/statics/src/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,6 +3131,10 @@ export enum UnderlyingAsset {
31313131

31323132
// Polymesh testnet tokens
31333133
'tpolyx:nvbitgot' = 'tpolyx:nvbitgot',
3134+
'tpolyx:RAND176TM' = 'tpolyx:RAND176TM',
3135+
3136+
// Polymesh mainnet tokens
3137+
'polyx:0xa0ce6bc4c60981e08eca6504656c99e6' = 'polyx:0xa0ce6bc4c60981e08eca6504656c99e6',
31343138

31353139
// Hbar tokens
31363140
'hbar:karate' = 'hbar:karate',
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { tpolyxToken, polyxToken } from '../account';
2+
import { UnderlyingAsset } from '../base';
3+
import { POLYX_TOKEN_FEATURES } from '../coinFeatures';
4+
5+
// https://polymesh.protofire.io/asset/{assetId}
6+
export const polyxTokens = [
7+
tpolyxToken(
8+
'a63b4f8d-84d6-45d3-bc67-625239e40811',
9+
'tpolyx:nvbitgot',
10+
'NVBITGOT Fungible Asset',
11+
6,
12+
'NVBITGOT',
13+
'0x780602887b358cf48989d0d9aa6c8d28',
14+
UnderlyingAsset['tpolyx:nvbitgot'],
15+
POLYX_TOKEN_FEATURES
16+
),
17+
tpolyxToken(
18+
'd92f85d4-7d1a-4058-9972-66dbdfaddee2',
19+
'tpolyx:RAND176TM',
20+
'RAND176TM',
21+
6,
22+
'RAND176TM',
23+
'0x80c6b6e01589893ea70ef3d3789122d6',
24+
UnderlyingAsset['tpolyx:RAND176TM'],
25+
POLYX_TOKEN_FEATURES
26+
),
27+
polyxToken(
28+
'4121c583-2e0f-4d4c-95de-24b2a3f77181',
29+
'tpolyx:0xa0ce6bc4c60981e08eca6504656c99e6',
30+
'RAND175TM',
31+
6,
32+
'',
33+
'0xa0ce6bc4c60981e08eca6504656c99e6',
34+
UnderlyingAsset['polyx:0xa0ce6bc4c60981e08eca6504656c99e6'],
35+
POLYX_TOKEN_FEATURES
36+
),
37+
];

0 commit comments

Comments
 (0)