@d8x/perpetuals-sdk 0.9.9 → 0.9.10
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/cjs/config/defaultConfig.json +2 -2
- package/dist/cjs/config/priceFeedConfig.json +37 -1
- package/dist/cjs/config/symbolList.json +5 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/config/defaultConfig.json +2 -2
- package/dist/esm/config/priceFeedConfig.json +37 -1
- package/dist/esm/config/symbolList.json +5 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/package.json +1 -1
- package/src/config/defaultConfig.json +2 -2
- package/src/config/priceFeedConfig.json +37 -1
- package/src/config/symbolList.json +5 -1
- package/src/version.ts +1 -1
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "zkevm",
|
|
16
16
|
"chainId": 1101,
|
|
17
|
-
"version":
|
|
18
|
-
"proxyAddr": "",
|
|
17
|
+
"version": 1,
|
|
18
|
+
"proxyAddr": "0xaB7794EcD2c8e9Decc6B577864b40eBf9204720f",
|
|
19
19
|
"nodeURL": "https://zkevm-rpc.com",
|
|
20
20
|
"priceFeedConfigNetwork": "mainnet",
|
|
21
21
|
"shareTokenABILocation": "ShareToken.json",
|
|
@@ -55,6 +55,18 @@
|
|
|
55
55
|
"id": "0x20a938f54b68f1f2ef18ea0328f6dd0747f8ea11486d22b021e83a900be89776",
|
|
56
56
|
"type": "pyth",
|
|
57
57
|
"origin": "FX.USD/JPY"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"symbol": "stETH-USD",
|
|
61
|
+
"id": "0xb7abd25a76ddaffdf847224f03198ccb92723f90b2429cf33f0eecb96e352a86",
|
|
62
|
+
"type": "pyth",
|
|
63
|
+
"origin": "Crypto.STETH/USD"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"symbol": "agEUR-USD",
|
|
67
|
+
"id": "0x1c06615b7f8c0373adb47d341a825125c3c8db4c3861f2f0d89404038a0428b7",
|
|
68
|
+
"type": "pyth",
|
|
69
|
+
"origin": "Crypto.AGEUR/USD"
|
|
58
70
|
}
|
|
59
71
|
],
|
|
60
72
|
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes-beta.pyth.network/api" }]
|
|
@@ -92,13 +104,37 @@
|
|
|
92
104
|
"type": "pyth",
|
|
93
105
|
"origin": "FX.USD/CHF"
|
|
94
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"symbol": "EUR-USD",
|
|
109
|
+
"id": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
110
|
+
"type": "pyth",
|
|
111
|
+
"origin": "FX.EUR/USD"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"symbol": "GBP-USD",
|
|
115
|
+
"id": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
116
|
+
"type": "pyth",
|
|
117
|
+
"origin": "FX.GBP/USD"
|
|
118
|
+
},
|
|
95
119
|
{
|
|
96
120
|
"symbol": "XAU-USD",
|
|
97
121
|
"id": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2",
|
|
98
122
|
"type": "pyth",
|
|
99
123
|
"origin": "Metal.XAU/USD"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"symbol": "stETH-USD",
|
|
127
|
+
"id": "0x846ae1bdb6300b817cee5fdee2a6da192775030db5615b94a465f53bd40850b5",
|
|
128
|
+
"type": "pyth",
|
|
129
|
+
"origin": "Crypto.STETH/USD"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"symbol": "agEUR-USD",
|
|
133
|
+
"id": "0x3b670a7aa22cf0dc3b76b42dc2e26a85bac35eafc5a5ae2defd6d98201b1b997",
|
|
134
|
+
"type": "pyth",
|
|
135
|
+
"origin": "Crypto.AGEUR/USD"
|
|
100
136
|
}
|
|
101
137
|
],
|
|
102
|
-
"endpoints": [{ "type": "pyth", "endpoint": "https://
|
|
138
|
+
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes.pyth.network/api" }]
|
|
103
139
|
}
|
|
104
140
|
]
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const D8X_SDK_VERSION = "0.9.
|
|
1
|
+
export declare const D8X_SDK_VERSION = "0.9.10";
|
package/dist/cjs/version.js
CHANGED
package/dist/cjs/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,QAAQ,CAAC"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "zkevm",
|
|
16
16
|
"chainId": 1101,
|
|
17
|
-
"version":
|
|
18
|
-
"proxyAddr": "",
|
|
17
|
+
"version": 1,
|
|
18
|
+
"proxyAddr": "0xaB7794EcD2c8e9Decc6B577864b40eBf9204720f",
|
|
19
19
|
"nodeURL": "https://zkevm-rpc.com",
|
|
20
20
|
"priceFeedConfigNetwork": "mainnet",
|
|
21
21
|
"shareTokenABILocation": "ShareToken.json",
|
|
@@ -55,6 +55,18 @@
|
|
|
55
55
|
"id": "0x20a938f54b68f1f2ef18ea0328f6dd0747f8ea11486d22b021e83a900be89776",
|
|
56
56
|
"type": "pyth",
|
|
57
57
|
"origin": "FX.USD/JPY"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"symbol": "stETH-USD",
|
|
61
|
+
"id": "0xb7abd25a76ddaffdf847224f03198ccb92723f90b2429cf33f0eecb96e352a86",
|
|
62
|
+
"type": "pyth",
|
|
63
|
+
"origin": "Crypto.STETH/USD"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"symbol": "agEUR-USD",
|
|
67
|
+
"id": "0x1c06615b7f8c0373adb47d341a825125c3c8db4c3861f2f0d89404038a0428b7",
|
|
68
|
+
"type": "pyth",
|
|
69
|
+
"origin": "Crypto.AGEUR/USD"
|
|
58
70
|
}
|
|
59
71
|
],
|
|
60
72
|
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes-beta.pyth.network/api" }]
|
|
@@ -92,13 +104,37 @@
|
|
|
92
104
|
"type": "pyth",
|
|
93
105
|
"origin": "FX.USD/CHF"
|
|
94
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"symbol": "EUR-USD",
|
|
109
|
+
"id": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
110
|
+
"type": "pyth",
|
|
111
|
+
"origin": "FX.EUR/USD"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"symbol": "GBP-USD",
|
|
115
|
+
"id": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
116
|
+
"type": "pyth",
|
|
117
|
+
"origin": "FX.GBP/USD"
|
|
118
|
+
},
|
|
95
119
|
{
|
|
96
120
|
"symbol": "XAU-USD",
|
|
97
121
|
"id": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2",
|
|
98
122
|
"type": "pyth",
|
|
99
123
|
"origin": "Metal.XAU/USD"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"symbol": "stETH-USD",
|
|
127
|
+
"id": "0x846ae1bdb6300b817cee5fdee2a6da192775030db5615b94a465f53bd40850b5",
|
|
128
|
+
"type": "pyth",
|
|
129
|
+
"origin": "Crypto.STETH/USD"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"symbol": "agEUR-USD",
|
|
133
|
+
"id": "0x3b670a7aa22cf0dc3b76b42dc2e26a85bac35eafc5a5ae2defd6d98201b1b997",
|
|
134
|
+
"type": "pyth",
|
|
135
|
+
"origin": "Crypto.AGEUR/USD"
|
|
100
136
|
}
|
|
101
137
|
],
|
|
102
|
-
"endpoints": [{ "type": "pyth", "endpoint": "https://
|
|
138
|
+
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes.pyth.network/api" }]
|
|
103
139
|
}
|
|
104
140
|
]
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const D8X_SDK_VERSION = "0.9.
|
|
1
|
+
export declare const D8X_SDK_VERSION = "0.9.10";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const D8X_SDK_VERSION = "0.9.
|
|
1
|
+
export const D8X_SDK_VERSION = "0.9.10";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "zkevm",
|
|
16
16
|
"chainId": 1101,
|
|
17
|
-
"version":
|
|
18
|
-
"proxyAddr": "",
|
|
17
|
+
"version": 1,
|
|
18
|
+
"proxyAddr": "0xaB7794EcD2c8e9Decc6B577864b40eBf9204720f",
|
|
19
19
|
"nodeURL": "https://zkevm-rpc.com",
|
|
20
20
|
"priceFeedConfigNetwork": "mainnet",
|
|
21
21
|
"shareTokenABILocation": "ShareToken.json",
|
|
@@ -55,6 +55,18 @@
|
|
|
55
55
|
"id": "0x20a938f54b68f1f2ef18ea0328f6dd0747f8ea11486d22b021e83a900be89776",
|
|
56
56
|
"type": "pyth",
|
|
57
57
|
"origin": "FX.USD/JPY"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"symbol": "stETH-USD",
|
|
61
|
+
"id": "0xb7abd25a76ddaffdf847224f03198ccb92723f90b2429cf33f0eecb96e352a86",
|
|
62
|
+
"type": "pyth",
|
|
63
|
+
"origin": "Crypto.STETH/USD"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"symbol": "agEUR-USD",
|
|
67
|
+
"id": "0x1c06615b7f8c0373adb47d341a825125c3c8db4c3861f2f0d89404038a0428b7",
|
|
68
|
+
"type": "pyth",
|
|
69
|
+
"origin": "Crypto.AGEUR/USD"
|
|
58
70
|
}
|
|
59
71
|
],
|
|
60
72
|
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes-beta.pyth.network/api" }]
|
|
@@ -92,13 +104,37 @@
|
|
|
92
104
|
"type": "pyth",
|
|
93
105
|
"origin": "FX.USD/CHF"
|
|
94
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"symbol": "EUR-USD",
|
|
109
|
+
"id": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
110
|
+
"type": "pyth",
|
|
111
|
+
"origin": "FX.EUR/USD"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"symbol": "GBP-USD",
|
|
115
|
+
"id": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
116
|
+
"type": "pyth",
|
|
117
|
+
"origin": "FX.GBP/USD"
|
|
118
|
+
},
|
|
95
119
|
{
|
|
96
120
|
"symbol": "XAU-USD",
|
|
97
121
|
"id": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2",
|
|
98
122
|
"type": "pyth",
|
|
99
123
|
"origin": "Metal.XAU/USD"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"symbol": "stETH-USD",
|
|
127
|
+
"id": "0x846ae1bdb6300b817cee5fdee2a6da192775030db5615b94a465f53bd40850b5",
|
|
128
|
+
"type": "pyth",
|
|
129
|
+
"origin": "Crypto.STETH/USD"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"symbol": "agEUR-USD",
|
|
133
|
+
"id": "0x3b670a7aa22cf0dc3b76b42dc2e26a85bac35eafc5a5ae2defd6d98201b1b997",
|
|
134
|
+
"type": "pyth",
|
|
135
|
+
"origin": "Crypto.AGEUR/USD"
|
|
100
136
|
}
|
|
101
137
|
],
|
|
102
|
-
"endpoints": [{ "type": "pyth", "endpoint": "https://
|
|
138
|
+
"endpoints": [{ "type": "pyth", "endpoint": "https://hermes.pyth.network/api" }]
|
|
103
139
|
}
|
|
104
140
|
]
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const D8X_SDK_VERSION = "0.9.
|
|
1
|
+
export const D8X_SDK_VERSION = "0.9.10";
|