@aurigami/sdk 0.5.6 → 0.6.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.
- package/dist/sdk.cjs.development.js +33 -37
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +33 -37
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +20 -24
- package/src/decimals.ts +13 -14
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.6.1",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typescript": "^4.5.4"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@aurigami/contracts": "^2.
|
|
60
|
+
"@aurigami/contracts": "^2.2.0",
|
|
61
61
|
"axios": "^0.24.0",
|
|
62
62
|
"bignumber.js": "^9.0.2",
|
|
63
63
|
"dotenv": "^16.0.0",
|
package/src/constants.ts
CHANGED
|
@@ -18,49 +18,45 @@ export type NetworkAddresses = {
|
|
|
18
18
|
export const networkAddresses: NetworkAddresses = {
|
|
19
19
|
auTokens: [
|
|
20
20
|
{
|
|
21
|
-
address: '
|
|
22
|
-
underlying: '
|
|
21
|
+
address: '0x1c7EB2ADdC2df2F28E9631cce970D2E2DF22429A'.toLowerCase(),
|
|
22
|
+
underlying: '0x3dcB6AdF46E4d854E94719b6ed9cfab6939cC1Cb'.toLowerCase()
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
address: '
|
|
25
|
+
address: '0xdaE860b77c26498e7Bd8e16Fb80AD572FaB9688f'.toLowerCase(),
|
|
26
26
|
underlying: ETHAddress.toLowerCase()
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
address: '
|
|
30
|
-
underlying: '
|
|
29
|
+
address: '0x5329f32A9dDaC3d274Cc670B284561b0086D2244'.toLowerCase(),
|
|
30
|
+
underlying: '0x6fF98E346Ba4C56fBc3Ebc3f92477ffCe09D96AB'.toLowerCase()
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
address: '
|
|
34
|
-
underlying: '
|
|
33
|
+
address: '0x57E15Bf9Bc4c8a7AFd3C8DBE153ED29eC90B68Fa'.toLowerCase(),
|
|
34
|
+
underlying: '0x05b8777B6c280DB4E61CF0F63d59b4Ac8ec70538'.toLowerCase()
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
address: '
|
|
38
|
-
underlying: '
|
|
37
|
+
address: '0xdCdA4c7eF408961200193d7180357AEC404C267A'.toLowerCase(),
|
|
38
|
+
underlying: '0xd94951E6B276fD4327FFBD3253b6307d112403e2'.toLowerCase()
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
address: '
|
|
42
|
-
underlying: '
|
|
41
|
+
address: '0xa8474c18f502551937367120a6D8453dA785f1DD'.toLowerCase(),
|
|
42
|
+
underlying: '0x84B5C41DC786316c5aA319B5A22CA77472e1d31f'.toLowerCase()
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
address: '
|
|
46
|
-
underlying: '
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
address: '0xb00f53F708235Ba28664D56AF6be1a8254060cB9'.toLowerCase(),
|
|
50
|
-
underlying: '0xd3F181B767cbb4e399ABbf4c2d42AEF19E177D30'.toLowerCase()
|
|
45
|
+
address: '0x2Db190F0Db94E78B87D805e022D2a07803652211'.toLowerCase(),
|
|
46
|
+
underlying: '0xb2cBCe33a6fb7D2efFb1cF73A654a4c0c9255874'.toLowerCase()
|
|
51
47
|
}
|
|
52
48
|
],
|
|
53
49
|
misc: {
|
|
54
|
-
COMPTROLLER: "
|
|
55
|
-
oracle: "
|
|
56
|
-
AURIFAIRLAUNCH: "
|
|
57
|
-
AURILENS: '
|
|
58
|
-
TOKENLOCK: '
|
|
59
|
-
FAUCET: '
|
|
50
|
+
COMPTROLLER: "0x1626d7941DF19781657a921014597c449F86941e".toLowerCase(),
|
|
51
|
+
oracle: "0xe0E2Bb669a75Ae2384371cB4c4c95ff6fC1581b0".toLowerCase(),
|
|
52
|
+
AURIFAIRLAUNCH: "0x4e91CdfeA23f44D4269E66494fe532867a0fAe5E".toLowerCase(),
|
|
53
|
+
AURILENS: '0x680e15080Df9ff61131499D21aa5Ca9Bd05E60e0'.toLowerCase(),
|
|
54
|
+
TOKENLOCK: '0xc77E562C41ec3Ce860b5424758B77ad0aDb1bB93'.toLowerCase(),
|
|
55
|
+
FAUCET: '0x8F791d611D71699B76C03857A51D7B7E5E66f01E'.toLowerCase()
|
|
60
56
|
},
|
|
61
57
|
tokens: {
|
|
62
58
|
AURORA: "0xd3F181B767cbb4e399ABbf4c2d42AEF19E177D30".toLowerCase(),
|
|
63
|
-
PLY: "
|
|
59
|
+
PLY: "0x84B5C41DC786316c5aA319B5A22CA77472e1d31f".toLowerCase(),
|
|
64
60
|
AURPLY: dummyAddress.toLowerCase() // This is dummy
|
|
65
61
|
}
|
|
66
62
|
}
|
package/src/decimals.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
export const decimalRecords: Record<string, number> = {
|
|
2
2
|
'0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee': 18,
|
|
3
|
-
'
|
|
4
|
-
'
|
|
3
|
+
'0xa8474c18f502551937367120a6d8453da785f1dd': 8,
|
|
4
|
+
'0x2db190f0db94e78b87d805e022d2a07803652211': 8,
|
|
5
|
+
'0xdae860b77c26498e7bd8e16fb80ad572fab9688f': 8,
|
|
6
|
+
'0x84b5c41dc786316c5aa319b5a22ca77472e1d31f': 18,
|
|
7
|
+
'0xb2cbce33a6fb7d2effb1cf73a654a4c0c9255874': 24,
|
|
8
|
+
'0x05b8777b6c280db4e61cf0f63d59b4ac8ec70538': 6,
|
|
9
|
+
'0x6ff98e346ba4c56fbc3ebc3f92477ffce09d96ab': 8,
|
|
10
|
+
'0x3dcb6adf46e4d854e94719b6ed9cfab6939cc1cb': 6,
|
|
5
11
|
'0xd3f181b767cbb4e399abbf4c2d42aef19e177d30': 18,
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'0xfc122c37852ed59c1e2cdce80e7b4e0f78d298c6': 18,
|
|
12
|
-
'0x54c79f4b3d0b98c72574ba3475c30f9900c52c2d': 18,
|
|
13
|
-
'0x4d203df433a0bb355ec1343a90ddccd658d443ac': 8,
|
|
14
|
-
'0x84f759c1f3a6fd2618f5c049480760a4d4512e9a': 8,
|
|
15
|
-
'0xba76bdb6f393f9097025f5fad6bf18a6b65768fb': 18,
|
|
16
|
-
'0x7dd3ec297d0580d4894c73ae78748af7dee962e2': 8,
|
|
17
|
-
'0xe82df480f3d7597dcfeab5925efd7c491b35e512': 8
|
|
12
|
+
'0xdcda4c7ef408961200193d7180357aec404c267a': 8,
|
|
13
|
+
'0x1c7eb2addc2df2f28e9631cce970d2e2df22429a': 8,
|
|
14
|
+
'0x5329f32a9ddac3d274cc670b284561b0086d2244': 8,
|
|
15
|
+
'0xd94951e6b276fd4327ffbd3253b6307d112403e2': 18,
|
|
16
|
+
'0x57e15bf9bc4c8a7afd3c8dbe153ed29ec90b68fa': 8
|
|
18
17
|
}
|