@pythnetwork/price-pusher 10.2.0 → 10.3.0
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/aptos.js → dist/aptos/aptos.cjs} +80 -76
- package/{lib → dist}/aptos/aptos.d.ts +5 -5
- package/{lib/aptos/balance-tracker.js → dist/aptos/balance-tracker.cjs} +37 -25
- package/{lib → dist}/aptos/balance-tracker.d.ts +9 -9
- package/dist/aptos/command.cjs +161 -0
- package/{lib → dist}/aptos/command.d.ts +1 -2
- package/dist/common.cjs +4 -0
- package/{lib → dist}/common.d.ts +0 -1
- package/{lib/controller.js → dist/controller.cjs} +35 -33
- package/{lib → dist}/controller.d.ts +5 -6
- package/dist/evm/balance-tracker.cjs +58 -0
- package/{lib → dist}/evm/balance-tracker.d.ts +10 -10
- package/dist/evm/command.cjs +205 -0
- package/{lib → dist}/evm/command.d.ts +1 -2
- package/dist/evm/custom-gas-station.cjs +54 -0
- package/{lib → dist}/evm/custom-gas-station.d.ts +1 -2
- package/dist/evm/evm.cjs +287 -0
- package/{lib → dist}/evm/evm.d.ts +8 -7
- package/{lib/evm/pyth-abi.js → dist/evm/pyth-abi.cjs} +181 -160
- package/{lib → dist}/evm/pyth-abi.d.ts +0 -1
- package/dist/evm/pyth-contract.cjs +17 -0
- package/{lib → dist}/evm/pyth-contract.d.ts +3 -4
- package/dist/evm/super-wallet.cjs +90 -0
- package/{lib → dist}/evm/super-wallet.d.ts +1 -2
- package/dist/fuel/command.cjs +135 -0
- package/{lib → dist}/fuel/command.d.ts +1 -2
- package/dist/fuel/fuel.cjs +108 -0
- package/{lib → dist}/fuel/fuel.d.ts +5 -5
- package/dist/index.cjs +25 -0
- package/dist/index.d.ts +1 -0
- package/dist/injective/command.cjs +150 -0
- package/{lib → dist}/injective/command.d.ts +1 -2
- package/{lib/injective/injective.js → dist/injective/injective.cjs} +100 -98
- package/{lib → dist}/injective/injective.d.ts +7 -6
- package/dist/interface.cjs +142 -0
- package/{lib → dist}/interface.d.ts +12 -13
- package/dist/metrics.cjs +218 -0
- package/{lib → dist}/metrics.d.ts +10 -11
- package/dist/near/command.cjs +129 -0
- package/{lib → dist}/near/command.d.ts +1 -2
- package/dist/near/near.cjs +183 -0
- package/{lib → dist}/near/near.d.ts +5 -5
- package/dist/options.cjs +132 -0
- package/{lib → dist}/options.d.ts +1 -2
- package/dist/package.json +1 -0
- package/dist/price-config.cjs +104 -0
- package/{lib → dist}/price-config.d.ts +5 -6
- package/{lib/pyth-price-listener.js → dist/pyth-price-listener.cjs} +30 -24
- package/{lib → dist}/pyth-price-listener.d.ts +4 -4
- package/dist/solana/balance-tracker.cjs +60 -0
- package/{lib → dist}/solana/balance-tracker.d.ts +9 -9
- package/dist/solana/command.cjs +259 -0
- package/{lib → dist}/solana/command.d.ts +2 -3
- package/{lib/solana/solana.js → dist/solana/solana.cjs} +90 -78
- package/{lib → dist}/solana/solana.d.ts +6 -6
- package/dist/sui/balance-tracker.cjs +58 -0
- package/{lib → dist}/sui/balance-tracker.d.ts +9 -9
- package/dist/sui/command.cjs +190 -0
- package/{lib → dist}/sui/command.d.ts +1 -2
- package/{lib/sui/sui.js → dist/sui/sui.cjs} +145 -133
- package/{lib → dist}/sui/sui.d.ts +7 -8
- package/dist/ton/command.cjs +137 -0
- package/{lib → dist}/ton/command.d.ts +1 -2
- package/dist/ton/ton.cjs +103 -0
- package/{lib → dist}/ton/ton.d.ts +7 -6
- package/dist/utils.cjs +102 -0
- package/{lib → dist}/utils.d.ts +4 -4
- package/package.json +161 -20
- package/lib/aptos/aptos.d.ts.map +0 -1
- package/lib/aptos/balance-tracker.d.ts.map +0 -1
- package/lib/aptos/command.d.ts.map +0 -1
- package/lib/aptos/command.js +0 -126
- package/lib/common.d.ts.map +0 -1
- package/lib/common.js +0 -2
- package/lib/controller.d.ts.map +0 -1
- package/lib/evm/balance-tracker.d.ts.map +0 -1
- package/lib/evm/balance-tracker.js +0 -49
- package/lib/evm/command.d.ts.map +0 -1
- package/lib/evm/command.js +0 -178
- package/lib/evm/custom-gas-station.d.ts.map +0 -1
- package/lib/evm/custom-gas-station.js +0 -40
- package/lib/evm/evm.d.ts.map +0 -1
- package/lib/evm/evm.js +0 -270
- package/lib/evm/pyth-abi.d.ts.map +0 -1
- package/lib/evm/pyth-contract.d.ts.map +0 -1
- package/lib/evm/pyth-contract.js +0 -11
- package/lib/evm/super-wallet.d.ts.map +0 -1
- package/lib/evm/super-wallet.js +0 -73
- package/lib/fuel/command.d.ts.map +0 -1
- package/lib/fuel/command.js +0 -98
- package/lib/fuel/fuel.d.ts.map +0 -1
- package/lib/fuel/fuel.js +0 -101
- package/lib/index.d.ts +0 -3
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -34
- package/lib/injective/command.d.ts.map +0 -1
- package/lib/injective/command.js +0 -119
- package/lib/injective/injective.d.ts.map +0 -1
- package/lib/interface.d.ts.map +0 -1
- package/lib/interface.js +0 -122
- package/lib/metrics.d.ts.map +0 -1
- package/lib/metrics.js +0 -152
- package/lib/near/command.d.ts.map +0 -1
- package/lib/near/command.js +0 -103
- package/lib/near/near.d.ts.map +0 -1
- package/lib/near/near.js +0 -168
- package/lib/options.d.ts.map +0 -1
- package/lib/options.js +0 -84
- package/lib/price-config.d.ts.map +0 -1
- package/lib/price-config.js +0 -114
- package/lib/pyth-price-listener.d.ts.map +0 -1
- package/lib/solana/balance-tracker.d.ts.map +0 -1
- package/lib/solana/balance-tracker.js +0 -51
- package/lib/solana/command.d.ts.map +0 -1
- package/lib/solana/command.js +0 -223
- package/lib/solana/solana.d.ts.map +0 -1
- package/lib/sui/balance-tracker.d.ts.map +0 -1
- package/lib/sui/balance-tracker.js +0 -49
- package/lib/sui/command.d.ts.map +0 -1
- package/lib/sui/command.js +0 -160
- package/lib/sui/sui.d.ts.map +0 -1
- package/lib/ton/command.d.ts.map +0 -1
- package/lib/ton/command.js +0 -99
- package/lib/ton/ton.d.ts.map +0 -1
- package/lib/ton/ton.js +0 -97
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js +0 -61
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get IPythAbi () {
|
|
13
|
+
return IPythAbi;
|
|
14
|
+
},
|
|
15
|
+
get IPythEventsAbi () {
|
|
16
|
+
return IPythEventsAbi;
|
|
17
|
+
},
|
|
18
|
+
get PythAbi () {
|
|
19
|
+
return PythAbi;
|
|
20
|
+
},
|
|
21
|
+
get PythErrorsAbi () {
|
|
22
|
+
return PythErrorsAbi;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const IPythAbi = [
|
|
5
26
|
{
|
|
6
27
|
anonymous: false,
|
|
7
28
|
inputs: [
|
|
@@ -9,37 +30,37 @@ exports.IPythAbi = [
|
|
|
9
30
|
indexed: true,
|
|
10
31
|
internalType: "bytes32",
|
|
11
32
|
name: "id",
|
|
12
|
-
type: "bytes32"
|
|
33
|
+
type: "bytes32"
|
|
13
34
|
},
|
|
14
35
|
{
|
|
15
36
|
indexed: false,
|
|
16
37
|
internalType: "uint64",
|
|
17
38
|
name: "publishTime",
|
|
18
|
-
type: "uint64"
|
|
39
|
+
type: "uint64"
|
|
19
40
|
},
|
|
20
41
|
{
|
|
21
42
|
indexed: false,
|
|
22
43
|
internalType: "int64",
|
|
23
44
|
name: "price",
|
|
24
|
-
type: "int64"
|
|
45
|
+
type: "int64"
|
|
25
46
|
},
|
|
26
47
|
{
|
|
27
48
|
indexed: false,
|
|
28
49
|
internalType: "uint64",
|
|
29
50
|
name: "conf",
|
|
30
|
-
type: "uint64"
|
|
31
|
-
}
|
|
51
|
+
type: "uint64"
|
|
52
|
+
}
|
|
32
53
|
],
|
|
33
54
|
name: "PriceFeedUpdate",
|
|
34
|
-
type: "event"
|
|
55
|
+
type: "event"
|
|
35
56
|
},
|
|
36
57
|
{
|
|
37
58
|
inputs: [
|
|
38
59
|
{
|
|
39
60
|
internalType: "bytes32",
|
|
40
61
|
name: "id",
|
|
41
|
-
type: "bytes32"
|
|
42
|
-
}
|
|
62
|
+
type: "bytes32"
|
|
63
|
+
}
|
|
43
64
|
],
|
|
44
65
|
name: "getEmaPrice",
|
|
45
66
|
outputs: [
|
|
@@ -48,44 +69,44 @@ exports.IPythAbi = [
|
|
|
48
69
|
{
|
|
49
70
|
internalType: "int64",
|
|
50
71
|
name: "price",
|
|
51
|
-
type: "int64"
|
|
72
|
+
type: "int64"
|
|
52
73
|
},
|
|
53
74
|
{
|
|
54
75
|
internalType: "uint64",
|
|
55
76
|
name: "conf",
|
|
56
|
-
type: "uint64"
|
|
77
|
+
type: "uint64"
|
|
57
78
|
},
|
|
58
79
|
{
|
|
59
80
|
internalType: "int32",
|
|
60
81
|
name: "expo",
|
|
61
|
-
type: "int32"
|
|
82
|
+
type: "int32"
|
|
62
83
|
},
|
|
63
84
|
{
|
|
64
85
|
internalType: "uint256",
|
|
65
86
|
name: "publishTime",
|
|
66
|
-
type: "uint256"
|
|
67
|
-
}
|
|
87
|
+
type: "uint256"
|
|
88
|
+
}
|
|
68
89
|
],
|
|
69
90
|
internalType: "struct PythStructs.Price",
|
|
70
91
|
name: "price",
|
|
71
|
-
type: "tuple"
|
|
72
|
-
}
|
|
92
|
+
type: "tuple"
|
|
93
|
+
}
|
|
73
94
|
],
|
|
74
95
|
stateMutability: "view",
|
|
75
|
-
type: "function"
|
|
96
|
+
type: "function"
|
|
76
97
|
},
|
|
77
98
|
{
|
|
78
99
|
inputs: [
|
|
79
100
|
{
|
|
80
101
|
internalType: "bytes32",
|
|
81
102
|
name: "id",
|
|
82
|
-
type: "bytes32"
|
|
103
|
+
type: "bytes32"
|
|
83
104
|
},
|
|
84
105
|
{
|
|
85
106
|
internalType: "uint256",
|
|
86
107
|
name: "age",
|
|
87
|
-
type: "uint256"
|
|
88
|
-
}
|
|
108
|
+
type: "uint256"
|
|
109
|
+
}
|
|
89
110
|
],
|
|
90
111
|
name: "getEmaPriceNoOlderThan",
|
|
91
112
|
outputs: [
|
|
@@ -94,39 +115,39 @@ exports.IPythAbi = [
|
|
|
94
115
|
{
|
|
95
116
|
internalType: "int64",
|
|
96
117
|
name: "price",
|
|
97
|
-
type: "int64"
|
|
118
|
+
type: "int64"
|
|
98
119
|
},
|
|
99
120
|
{
|
|
100
121
|
internalType: "uint64",
|
|
101
122
|
name: "conf",
|
|
102
|
-
type: "uint64"
|
|
123
|
+
type: "uint64"
|
|
103
124
|
},
|
|
104
125
|
{
|
|
105
126
|
internalType: "int32",
|
|
106
127
|
name: "expo",
|
|
107
|
-
type: "int32"
|
|
128
|
+
type: "int32"
|
|
108
129
|
},
|
|
109
130
|
{
|
|
110
131
|
internalType: "uint256",
|
|
111
132
|
name: "publishTime",
|
|
112
|
-
type: "uint256"
|
|
113
|
-
}
|
|
133
|
+
type: "uint256"
|
|
134
|
+
}
|
|
114
135
|
],
|
|
115
136
|
internalType: "struct PythStructs.Price",
|
|
116
137
|
name: "price",
|
|
117
|
-
type: "tuple"
|
|
118
|
-
}
|
|
138
|
+
type: "tuple"
|
|
139
|
+
}
|
|
119
140
|
],
|
|
120
141
|
stateMutability: "view",
|
|
121
|
-
type: "function"
|
|
142
|
+
type: "function"
|
|
122
143
|
},
|
|
123
144
|
{
|
|
124
145
|
inputs: [
|
|
125
146
|
{
|
|
126
147
|
internalType: "bytes32",
|
|
127
148
|
name: "id",
|
|
128
|
-
type: "bytes32"
|
|
129
|
-
}
|
|
149
|
+
type: "bytes32"
|
|
150
|
+
}
|
|
130
151
|
],
|
|
131
152
|
name: "getEmaPriceUnsafe",
|
|
132
153
|
outputs: [
|
|
@@ -135,39 +156,39 @@ exports.IPythAbi = [
|
|
|
135
156
|
{
|
|
136
157
|
internalType: "int64",
|
|
137
158
|
name: "price",
|
|
138
|
-
type: "int64"
|
|
159
|
+
type: "int64"
|
|
139
160
|
},
|
|
140
161
|
{
|
|
141
162
|
internalType: "uint64",
|
|
142
163
|
name: "conf",
|
|
143
|
-
type: "uint64"
|
|
164
|
+
type: "uint64"
|
|
144
165
|
},
|
|
145
166
|
{
|
|
146
167
|
internalType: "int32",
|
|
147
168
|
name: "expo",
|
|
148
|
-
type: "int32"
|
|
169
|
+
type: "int32"
|
|
149
170
|
},
|
|
150
171
|
{
|
|
151
172
|
internalType: "uint256",
|
|
152
173
|
name: "publishTime",
|
|
153
|
-
type: "uint256"
|
|
154
|
-
}
|
|
174
|
+
type: "uint256"
|
|
175
|
+
}
|
|
155
176
|
],
|
|
156
177
|
internalType: "struct PythStructs.Price",
|
|
157
178
|
name: "price",
|
|
158
|
-
type: "tuple"
|
|
159
|
-
}
|
|
179
|
+
type: "tuple"
|
|
180
|
+
}
|
|
160
181
|
],
|
|
161
182
|
stateMutability: "view",
|
|
162
|
-
type: "function"
|
|
183
|
+
type: "function"
|
|
163
184
|
},
|
|
164
185
|
{
|
|
165
186
|
inputs: [
|
|
166
187
|
{
|
|
167
188
|
internalType: "bytes32",
|
|
168
189
|
name: "id",
|
|
169
|
-
type: "bytes32"
|
|
170
|
-
}
|
|
190
|
+
type: "bytes32"
|
|
191
|
+
}
|
|
171
192
|
],
|
|
172
193
|
name: "getPrice",
|
|
173
194
|
outputs: [
|
|
@@ -176,44 +197,44 @@ exports.IPythAbi = [
|
|
|
176
197
|
{
|
|
177
198
|
internalType: "int64",
|
|
178
199
|
name: "price",
|
|
179
|
-
type: "int64"
|
|
200
|
+
type: "int64"
|
|
180
201
|
},
|
|
181
202
|
{
|
|
182
203
|
internalType: "uint64",
|
|
183
204
|
name: "conf",
|
|
184
|
-
type: "uint64"
|
|
205
|
+
type: "uint64"
|
|
185
206
|
},
|
|
186
207
|
{
|
|
187
208
|
internalType: "int32",
|
|
188
209
|
name: "expo",
|
|
189
|
-
type: "int32"
|
|
210
|
+
type: "int32"
|
|
190
211
|
},
|
|
191
212
|
{
|
|
192
213
|
internalType: "uint256",
|
|
193
214
|
name: "publishTime",
|
|
194
|
-
type: "uint256"
|
|
195
|
-
}
|
|
215
|
+
type: "uint256"
|
|
216
|
+
}
|
|
196
217
|
],
|
|
197
218
|
internalType: "struct PythStructs.Price",
|
|
198
219
|
name: "price",
|
|
199
|
-
type: "tuple"
|
|
200
|
-
}
|
|
220
|
+
type: "tuple"
|
|
221
|
+
}
|
|
201
222
|
],
|
|
202
223
|
stateMutability: "view",
|
|
203
|
-
type: "function"
|
|
224
|
+
type: "function"
|
|
204
225
|
},
|
|
205
226
|
{
|
|
206
227
|
inputs: [
|
|
207
228
|
{
|
|
208
229
|
internalType: "bytes32",
|
|
209
230
|
name: "id",
|
|
210
|
-
type: "bytes32"
|
|
231
|
+
type: "bytes32"
|
|
211
232
|
},
|
|
212
233
|
{
|
|
213
234
|
internalType: "uint256",
|
|
214
235
|
name: "age",
|
|
215
|
-
type: "uint256"
|
|
216
|
-
}
|
|
236
|
+
type: "uint256"
|
|
237
|
+
}
|
|
217
238
|
],
|
|
218
239
|
name: "getPriceNoOlderThan",
|
|
219
240
|
outputs: [
|
|
@@ -222,39 +243,39 @@ exports.IPythAbi = [
|
|
|
222
243
|
{
|
|
223
244
|
internalType: "int64",
|
|
224
245
|
name: "price",
|
|
225
|
-
type: "int64"
|
|
246
|
+
type: "int64"
|
|
226
247
|
},
|
|
227
248
|
{
|
|
228
249
|
internalType: "uint64",
|
|
229
250
|
name: "conf",
|
|
230
|
-
type: "uint64"
|
|
251
|
+
type: "uint64"
|
|
231
252
|
},
|
|
232
253
|
{
|
|
233
254
|
internalType: "int32",
|
|
234
255
|
name: "expo",
|
|
235
|
-
type: "int32"
|
|
256
|
+
type: "int32"
|
|
236
257
|
},
|
|
237
258
|
{
|
|
238
259
|
internalType: "uint256",
|
|
239
260
|
name: "publishTime",
|
|
240
|
-
type: "uint256"
|
|
241
|
-
}
|
|
261
|
+
type: "uint256"
|
|
262
|
+
}
|
|
242
263
|
],
|
|
243
264
|
internalType: "struct PythStructs.Price",
|
|
244
265
|
name: "price",
|
|
245
|
-
type: "tuple"
|
|
246
|
-
}
|
|
266
|
+
type: "tuple"
|
|
267
|
+
}
|
|
247
268
|
],
|
|
248
269
|
stateMutability: "view",
|
|
249
|
-
type: "function"
|
|
270
|
+
type: "function"
|
|
250
271
|
},
|
|
251
272
|
{
|
|
252
273
|
inputs: [
|
|
253
274
|
{
|
|
254
275
|
internalType: "bytes32",
|
|
255
276
|
name: "id",
|
|
256
|
-
type: "bytes32"
|
|
257
|
-
}
|
|
277
|
+
type: "bytes32"
|
|
278
|
+
}
|
|
258
279
|
],
|
|
259
280
|
name: "getPriceUnsafe",
|
|
260
281
|
outputs: [
|
|
@@ -263,50 +284,50 @@ exports.IPythAbi = [
|
|
|
263
284
|
{
|
|
264
285
|
internalType: "int64",
|
|
265
286
|
name: "price",
|
|
266
|
-
type: "int64"
|
|
287
|
+
type: "int64"
|
|
267
288
|
},
|
|
268
289
|
{
|
|
269
290
|
internalType: "uint64",
|
|
270
291
|
name: "conf",
|
|
271
|
-
type: "uint64"
|
|
292
|
+
type: "uint64"
|
|
272
293
|
},
|
|
273
294
|
{
|
|
274
295
|
internalType: "int32",
|
|
275
296
|
name: "expo",
|
|
276
|
-
type: "int32"
|
|
297
|
+
type: "int32"
|
|
277
298
|
},
|
|
278
299
|
{
|
|
279
300
|
internalType: "uint256",
|
|
280
301
|
name: "publishTime",
|
|
281
|
-
type: "uint256"
|
|
282
|
-
}
|
|
302
|
+
type: "uint256"
|
|
303
|
+
}
|
|
283
304
|
],
|
|
284
305
|
internalType: "struct PythStructs.Price",
|
|
285
306
|
name: "price",
|
|
286
|
-
type: "tuple"
|
|
287
|
-
}
|
|
307
|
+
type: "tuple"
|
|
308
|
+
}
|
|
288
309
|
],
|
|
289
310
|
stateMutability: "view",
|
|
290
|
-
type: "function"
|
|
311
|
+
type: "function"
|
|
291
312
|
},
|
|
292
313
|
{
|
|
293
314
|
inputs: [
|
|
294
315
|
{
|
|
295
316
|
internalType: "bytes[]",
|
|
296
317
|
name: "updateData",
|
|
297
|
-
type: "bytes[]"
|
|
298
|
-
}
|
|
318
|
+
type: "bytes[]"
|
|
319
|
+
}
|
|
299
320
|
],
|
|
300
321
|
name: "getUpdateFee",
|
|
301
322
|
outputs: [
|
|
302
323
|
{
|
|
303
324
|
internalType: "uint256",
|
|
304
325
|
name: "feeAmount",
|
|
305
|
-
type: "uint256"
|
|
306
|
-
}
|
|
326
|
+
type: "uint256"
|
|
327
|
+
}
|
|
307
328
|
],
|
|
308
329
|
stateMutability: "view",
|
|
309
|
-
type: "function"
|
|
330
|
+
type: "function"
|
|
310
331
|
},
|
|
311
332
|
{
|
|
312
333
|
inputs: [],
|
|
@@ -315,34 +336,34 @@ exports.IPythAbi = [
|
|
|
315
336
|
{
|
|
316
337
|
internalType: "uint256",
|
|
317
338
|
name: "validTimePeriod",
|
|
318
|
-
type: "uint256"
|
|
319
|
-
}
|
|
339
|
+
type: "uint256"
|
|
340
|
+
}
|
|
320
341
|
],
|
|
321
342
|
stateMutability: "view",
|
|
322
|
-
type: "function"
|
|
343
|
+
type: "function"
|
|
323
344
|
},
|
|
324
345
|
{
|
|
325
346
|
inputs: [
|
|
326
347
|
{
|
|
327
348
|
internalType: "bytes[]",
|
|
328
349
|
name: "updateData",
|
|
329
|
-
type: "bytes[]"
|
|
350
|
+
type: "bytes[]"
|
|
330
351
|
},
|
|
331
352
|
{
|
|
332
353
|
internalType: "bytes32[]",
|
|
333
354
|
name: "priceIds",
|
|
334
|
-
type: "bytes32[]"
|
|
355
|
+
type: "bytes32[]"
|
|
335
356
|
},
|
|
336
357
|
{
|
|
337
358
|
internalType: "uint64",
|
|
338
359
|
name: "minPublishTime",
|
|
339
|
-
type: "uint64"
|
|
360
|
+
type: "uint64"
|
|
340
361
|
},
|
|
341
362
|
{
|
|
342
363
|
internalType: "uint64",
|
|
343
364
|
name: "maxPublishTime",
|
|
344
|
-
type: "uint64"
|
|
345
|
-
}
|
|
365
|
+
type: "uint64"
|
|
366
|
+
}
|
|
346
367
|
],
|
|
347
368
|
name: "parsePriceFeedUpdates",
|
|
348
369
|
outputs: [
|
|
@@ -351,93 +372,93 @@ exports.IPythAbi = [
|
|
|
351
372
|
{
|
|
352
373
|
internalType: "bytes32",
|
|
353
374
|
name: "id",
|
|
354
|
-
type: "bytes32"
|
|
375
|
+
type: "bytes32"
|
|
355
376
|
},
|
|
356
377
|
{
|
|
357
378
|
components: [
|
|
358
379
|
{
|
|
359
380
|
internalType: "int64",
|
|
360
381
|
name: "price",
|
|
361
|
-
type: "int64"
|
|
382
|
+
type: "int64"
|
|
362
383
|
},
|
|
363
384
|
{
|
|
364
385
|
internalType: "uint64",
|
|
365
386
|
name: "conf",
|
|
366
|
-
type: "uint64"
|
|
387
|
+
type: "uint64"
|
|
367
388
|
},
|
|
368
389
|
{
|
|
369
390
|
internalType: "int32",
|
|
370
391
|
name: "expo",
|
|
371
|
-
type: "int32"
|
|
392
|
+
type: "int32"
|
|
372
393
|
},
|
|
373
394
|
{
|
|
374
395
|
internalType: "uint256",
|
|
375
396
|
name: "publishTime",
|
|
376
|
-
type: "uint256"
|
|
377
|
-
}
|
|
397
|
+
type: "uint256"
|
|
398
|
+
}
|
|
378
399
|
],
|
|
379
400
|
internalType: "struct PythStructs.Price",
|
|
380
401
|
name: "price",
|
|
381
|
-
type: "tuple"
|
|
402
|
+
type: "tuple"
|
|
382
403
|
},
|
|
383
404
|
{
|
|
384
405
|
components: [
|
|
385
406
|
{
|
|
386
407
|
internalType: "int64",
|
|
387
408
|
name: "price",
|
|
388
|
-
type: "int64"
|
|
409
|
+
type: "int64"
|
|
389
410
|
},
|
|
390
411
|
{
|
|
391
412
|
internalType: "uint64",
|
|
392
413
|
name: "conf",
|
|
393
|
-
type: "uint64"
|
|
414
|
+
type: "uint64"
|
|
394
415
|
},
|
|
395
416
|
{
|
|
396
417
|
internalType: "int32",
|
|
397
418
|
name: "expo",
|
|
398
|
-
type: "int32"
|
|
419
|
+
type: "int32"
|
|
399
420
|
},
|
|
400
421
|
{
|
|
401
422
|
internalType: "uint256",
|
|
402
423
|
name: "publishTime",
|
|
403
|
-
type: "uint256"
|
|
404
|
-
}
|
|
424
|
+
type: "uint256"
|
|
425
|
+
}
|
|
405
426
|
],
|
|
406
427
|
internalType: "struct PythStructs.Price",
|
|
407
428
|
name: "emaPrice",
|
|
408
|
-
type: "tuple"
|
|
409
|
-
}
|
|
429
|
+
type: "tuple"
|
|
430
|
+
}
|
|
410
431
|
],
|
|
411
432
|
internalType: "struct PythStructs.PriceFeed[]",
|
|
412
433
|
name: "priceFeeds",
|
|
413
|
-
type: "tuple[]"
|
|
414
|
-
}
|
|
434
|
+
type: "tuple[]"
|
|
435
|
+
}
|
|
415
436
|
],
|
|
416
437
|
stateMutability: "payable",
|
|
417
|
-
type: "function"
|
|
438
|
+
type: "function"
|
|
418
439
|
},
|
|
419
440
|
{
|
|
420
441
|
inputs: [
|
|
421
442
|
{
|
|
422
443
|
internalType: "bytes[]",
|
|
423
444
|
name: "updateData",
|
|
424
|
-
type: "bytes[]"
|
|
445
|
+
type: "bytes[]"
|
|
425
446
|
},
|
|
426
447
|
{
|
|
427
448
|
internalType: "bytes32[]",
|
|
428
449
|
name: "priceIds",
|
|
429
|
-
type: "bytes32[]"
|
|
450
|
+
type: "bytes32[]"
|
|
430
451
|
},
|
|
431
452
|
{
|
|
432
453
|
internalType: "uint64",
|
|
433
454
|
name: "minPublishTime",
|
|
434
|
-
type: "uint64"
|
|
455
|
+
type: "uint64"
|
|
435
456
|
},
|
|
436
457
|
{
|
|
437
458
|
internalType: "uint64",
|
|
438
459
|
name: "maxPublishTime",
|
|
439
|
-
type: "uint64"
|
|
440
|
-
}
|
|
460
|
+
type: "uint64"
|
|
461
|
+
}
|
|
441
462
|
],
|
|
442
463
|
name: "parsePriceFeedUpdatesUnique",
|
|
443
464
|
outputs: [
|
|
@@ -446,109 +467,109 @@ exports.IPythAbi = [
|
|
|
446
467
|
{
|
|
447
468
|
internalType: "bytes32",
|
|
448
469
|
name: "id",
|
|
449
|
-
type: "bytes32"
|
|
470
|
+
type: "bytes32"
|
|
450
471
|
},
|
|
451
472
|
{
|
|
452
473
|
components: [
|
|
453
474
|
{
|
|
454
475
|
internalType: "int64",
|
|
455
476
|
name: "price",
|
|
456
|
-
type: "int64"
|
|
477
|
+
type: "int64"
|
|
457
478
|
},
|
|
458
479
|
{
|
|
459
480
|
internalType: "uint64",
|
|
460
481
|
name: "conf",
|
|
461
|
-
type: "uint64"
|
|
482
|
+
type: "uint64"
|
|
462
483
|
},
|
|
463
484
|
{
|
|
464
485
|
internalType: "int32",
|
|
465
486
|
name: "expo",
|
|
466
|
-
type: "int32"
|
|
487
|
+
type: "int32"
|
|
467
488
|
},
|
|
468
489
|
{
|
|
469
490
|
internalType: "uint256",
|
|
470
491
|
name: "publishTime",
|
|
471
|
-
type: "uint256"
|
|
472
|
-
}
|
|
492
|
+
type: "uint256"
|
|
493
|
+
}
|
|
473
494
|
],
|
|
474
495
|
internalType: "struct PythStructs.Price",
|
|
475
496
|
name: "price",
|
|
476
|
-
type: "tuple"
|
|
497
|
+
type: "tuple"
|
|
477
498
|
},
|
|
478
499
|
{
|
|
479
500
|
components: [
|
|
480
501
|
{
|
|
481
502
|
internalType: "int64",
|
|
482
503
|
name: "price",
|
|
483
|
-
type: "int64"
|
|
504
|
+
type: "int64"
|
|
484
505
|
},
|
|
485
506
|
{
|
|
486
507
|
internalType: "uint64",
|
|
487
508
|
name: "conf",
|
|
488
|
-
type: "uint64"
|
|
509
|
+
type: "uint64"
|
|
489
510
|
},
|
|
490
511
|
{
|
|
491
512
|
internalType: "int32",
|
|
492
513
|
name: "expo",
|
|
493
|
-
type: "int32"
|
|
514
|
+
type: "int32"
|
|
494
515
|
},
|
|
495
516
|
{
|
|
496
517
|
internalType: "uint256",
|
|
497
518
|
name: "publishTime",
|
|
498
|
-
type: "uint256"
|
|
499
|
-
}
|
|
519
|
+
type: "uint256"
|
|
520
|
+
}
|
|
500
521
|
],
|
|
501
522
|
internalType: "struct PythStructs.Price",
|
|
502
523
|
name: "emaPrice",
|
|
503
|
-
type: "tuple"
|
|
504
|
-
}
|
|
524
|
+
type: "tuple"
|
|
525
|
+
}
|
|
505
526
|
],
|
|
506
527
|
internalType: "struct PythStructs.PriceFeed[]",
|
|
507
528
|
name: "priceFeeds",
|
|
508
|
-
type: "tuple[]"
|
|
509
|
-
}
|
|
529
|
+
type: "tuple[]"
|
|
530
|
+
}
|
|
510
531
|
],
|
|
511
532
|
stateMutability: "payable",
|
|
512
|
-
type: "function"
|
|
533
|
+
type: "function"
|
|
513
534
|
},
|
|
514
535
|
{
|
|
515
536
|
inputs: [
|
|
516
537
|
{
|
|
517
538
|
internalType: "bytes[]",
|
|
518
539
|
name: "updateData",
|
|
519
|
-
type: "bytes[]"
|
|
520
|
-
}
|
|
540
|
+
type: "bytes[]"
|
|
541
|
+
}
|
|
521
542
|
],
|
|
522
543
|
name: "updatePriceFeeds",
|
|
523
544
|
outputs: [],
|
|
524
545
|
stateMutability: "payable",
|
|
525
|
-
type: "function"
|
|
546
|
+
type: "function"
|
|
526
547
|
},
|
|
527
548
|
{
|
|
528
549
|
inputs: [
|
|
529
550
|
{
|
|
530
551
|
internalType: "bytes[]",
|
|
531
552
|
name: "updateData",
|
|
532
|
-
type: "bytes[]"
|
|
553
|
+
type: "bytes[]"
|
|
533
554
|
},
|
|
534
555
|
{
|
|
535
556
|
internalType: "bytes32[]",
|
|
536
557
|
name: "priceIds",
|
|
537
|
-
type: "bytes32[]"
|
|
558
|
+
type: "bytes32[]"
|
|
538
559
|
},
|
|
539
560
|
{
|
|
540
561
|
internalType: "uint64[]",
|
|
541
562
|
name: "publishTimes",
|
|
542
|
-
type: "uint64[]"
|
|
543
|
-
}
|
|
563
|
+
type: "uint64[]"
|
|
564
|
+
}
|
|
544
565
|
],
|
|
545
566
|
name: "updatePriceFeedsIfNecessary",
|
|
546
567
|
outputs: [],
|
|
547
568
|
stateMutability: "payable",
|
|
548
|
-
type: "function"
|
|
549
|
-
}
|
|
569
|
+
type: "function"
|
|
570
|
+
}
|
|
550
571
|
];
|
|
551
|
-
|
|
572
|
+
const IPythEventsAbi = [
|
|
552
573
|
{
|
|
553
574
|
anonymous: false,
|
|
554
575
|
inputs: [
|
|
@@ -556,105 +577,105 @@ exports.IPythEventsAbi = [
|
|
|
556
577
|
indexed: true,
|
|
557
578
|
internalType: "bytes32",
|
|
558
579
|
name: "id",
|
|
559
|
-
type: "bytes32"
|
|
580
|
+
type: "bytes32"
|
|
560
581
|
},
|
|
561
582
|
{
|
|
562
583
|
indexed: false,
|
|
563
584
|
internalType: "uint64",
|
|
564
585
|
name: "publishTime",
|
|
565
|
-
type: "uint64"
|
|
586
|
+
type: "uint64"
|
|
566
587
|
},
|
|
567
588
|
{
|
|
568
589
|
indexed: false,
|
|
569
590
|
internalType: "int64",
|
|
570
591
|
name: "price",
|
|
571
|
-
type: "int64"
|
|
592
|
+
type: "int64"
|
|
572
593
|
},
|
|
573
594
|
{
|
|
574
595
|
indexed: false,
|
|
575
596
|
internalType: "uint64",
|
|
576
597
|
name: "conf",
|
|
577
|
-
type: "uint64"
|
|
578
|
-
}
|
|
598
|
+
type: "uint64"
|
|
599
|
+
}
|
|
579
600
|
],
|
|
580
601
|
name: "PriceFeedUpdate",
|
|
581
|
-
type: "event"
|
|
582
|
-
}
|
|
602
|
+
type: "event"
|
|
603
|
+
}
|
|
583
604
|
];
|
|
584
|
-
|
|
605
|
+
const PythErrorsAbi = [
|
|
585
606
|
{
|
|
586
607
|
inputs: [],
|
|
587
608
|
name: "InsufficientFee",
|
|
588
|
-
type: "error"
|
|
609
|
+
type: "error"
|
|
589
610
|
},
|
|
590
611
|
{
|
|
591
612
|
inputs: [],
|
|
592
613
|
name: "InvalidArgument",
|
|
593
|
-
type: "error"
|
|
614
|
+
type: "error"
|
|
594
615
|
},
|
|
595
616
|
{
|
|
596
617
|
inputs: [],
|
|
597
618
|
name: "InvalidGovernanceDataSource",
|
|
598
|
-
type: "error"
|
|
619
|
+
type: "error"
|
|
599
620
|
},
|
|
600
621
|
{
|
|
601
622
|
inputs: [],
|
|
602
623
|
name: "InvalidGovernanceMessage",
|
|
603
|
-
type: "error"
|
|
624
|
+
type: "error"
|
|
604
625
|
},
|
|
605
626
|
{
|
|
606
627
|
inputs: [],
|
|
607
628
|
name: "InvalidGovernanceTarget",
|
|
608
|
-
type: "error"
|
|
629
|
+
type: "error"
|
|
609
630
|
},
|
|
610
631
|
{
|
|
611
632
|
inputs: [],
|
|
612
633
|
name: "InvalidUpdateData",
|
|
613
|
-
type: "error"
|
|
634
|
+
type: "error"
|
|
614
635
|
},
|
|
615
636
|
{
|
|
616
637
|
inputs: [],
|
|
617
638
|
name: "InvalidUpdateDataSource",
|
|
618
|
-
type: "error"
|
|
639
|
+
type: "error"
|
|
619
640
|
},
|
|
620
641
|
{
|
|
621
642
|
inputs: [],
|
|
622
643
|
name: "InvalidWormholeAddressToSet",
|
|
623
|
-
type: "error"
|
|
644
|
+
type: "error"
|
|
624
645
|
},
|
|
625
646
|
{
|
|
626
647
|
inputs: [],
|
|
627
648
|
name: "InvalidWormholeVaa",
|
|
628
|
-
type: "error"
|
|
649
|
+
type: "error"
|
|
629
650
|
},
|
|
630
651
|
{
|
|
631
652
|
inputs: [],
|
|
632
653
|
name: "NoFreshUpdate",
|
|
633
|
-
type: "error"
|
|
654
|
+
type: "error"
|
|
634
655
|
},
|
|
635
656
|
{
|
|
636
657
|
inputs: [],
|
|
637
658
|
name: "OldGovernanceMessage",
|
|
638
|
-
type: "error"
|
|
659
|
+
type: "error"
|
|
639
660
|
},
|
|
640
661
|
{
|
|
641
662
|
inputs: [],
|
|
642
663
|
name: "PriceFeedNotFound",
|
|
643
|
-
type: "error"
|
|
664
|
+
type: "error"
|
|
644
665
|
},
|
|
645
666
|
{
|
|
646
667
|
inputs: [],
|
|
647
668
|
name: "PriceFeedNotFoundWithinRange",
|
|
648
|
-
type: "error"
|
|
669
|
+
type: "error"
|
|
649
670
|
},
|
|
650
671
|
{
|
|
651
672
|
inputs: [],
|
|
652
673
|
name: "StalePrice",
|
|
653
|
-
type: "error"
|
|
654
|
-
}
|
|
674
|
+
type: "error"
|
|
675
|
+
}
|
|
655
676
|
];
|
|
656
|
-
|
|
657
|
-
...
|
|
658
|
-
...
|
|
659
|
-
...
|
|
677
|
+
const PythAbi = [
|
|
678
|
+
...IPythAbi,
|
|
679
|
+
...IPythEventsAbi,
|
|
680
|
+
...PythErrorsAbi
|
|
660
681
|
];
|