Skip to content

Commit fd94f73

Browse files
committed
refactor: change startTime and endTime types to uint64 in MockPyth and related ABIs
1 parent 83ad4d6 commit fd94f73

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

target_chains/ethereum/sdk/solidity/MockPyth.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ contract MockPyth is AbstractPyth {
236236
*/
237237
function createTwapPriceFeedUpdateData(
238238
bytes32 id,
239-
uint startTime,
240-
uint endTime,
239+
uint64 startTime,
240+
uint64 endTime,
241241
int64 price,
242242
uint64 conf,
243243
int32 expo,

target_chains/ethereum/sdk/solidity/PythStructs.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ contract PythStructs {
3535
// The price ID.
3636
bytes32 id;
3737
// Start time of the TWAP
38-
uint startTime;
38+
uint64 startTime;
3939
// End time of the TWAP
40-
uint endTime;
40+
uint64 endTime;
4141
// TWAP price
4242
Price twap;
4343
// Down slot ratio represents the ratio of price feed updates that were missed or unavailable

target_chains/ethereum/sdk/solidity/abis/AbstractPyth.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,14 +589,14 @@
589589
"type": "bytes32"
590590
},
591591
{
592-
"internalType": "uint256",
592+
"internalType": "uint64",
593593
"name": "startTime",
594-
"type": "uint256"
594+
"type": "uint64"
595595
},
596596
{
597-
"internalType": "uint256",
597+
"internalType": "uint64",
598598
"name": "endTime",
599-
"type": "uint256"
599+
"type": "uint64"
600600
},
601601
{
602602
"components": [

target_chains/ethereum/sdk/solidity/abis/IPyth.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,14 @@
479479
"type": "bytes32"
480480
},
481481
{
482-
"internalType": "uint256",
482+
"internalType": "uint64",
483483
"name": "startTime",
484-
"type": "uint256"
484+
"type": "uint64"
485485
},
486486
{
487-
"internalType": "uint256",
487+
"internalType": "uint64",
488488
"name": "endTime",
489-
"type": "uint256"
489+
"type": "uint64"
490490
},
491491
{
492492
"components": [

target_chains/ethereum/sdk/solidity/abis/MockPyth.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
"name": "InvalidTwapUpdateDataSet",
3131
"type": "error"
3232
},
33-
{
34-
"inputs": [],
35-
"name": "InvalidUpdateData",
36-
"type": "error"
37-
},
3833
{
3934
"inputs": [],
4035
"name": "NoFreshUpdate",
@@ -190,6 +185,16 @@
190185
"name": "id",
191186
"type": "bytes32"
192187
},
188+
{
189+
"internalType": "uint64",
190+
"name": "startTime",
191+
"type": "uint64"
192+
},
193+
{
194+
"internalType": "uint64",
195+
"name": "endTime",
196+
"type": "uint64"
197+
},
193198
{
194199
"internalType": "int64",
195200
"name": "price",
@@ -206,14 +211,9 @@
206211
"type": "int32"
207212
},
208213
{
209-
"internalType": "uint64",
210-
"name": "publishTime",
211-
"type": "uint64"
212-
},
213-
{
214-
"internalType": "uint64",
215-
"name": "publishSlot",
216-
"type": "uint64"
214+
"internalType": "uint32",
215+
"name": "downSlotsRatio",
216+
"type": "uint32"
217217
}
218218
],
219219
"name": "createTwapPriceFeedUpdateData",
@@ -728,14 +728,14 @@
728728
"type": "bytes32"
729729
},
730730
{
731-
"internalType": "uint256",
731+
"internalType": "uint64",
732732
"name": "startTime",
733-
"type": "uint256"
733+
"type": "uint64"
734734
},
735735
{
736-
"internalType": "uint256",
736+
"internalType": "uint64",
737737
"name": "endTime",
738-
"type": "uint256"
738+
"type": "uint64"
739739
},
740740
{
741741
"components": [

target_chains/ethereum/sdk/solidity/abis/PythUtils.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@
101101
"type": "bytes32"
102102
},
103103
{
104-
"internalType": "uint256",
104+
"internalType": "uint64",
105105
"name": "startTime",
106-
"type": "uint256"
106+
"type": "uint64"
107107
},
108108
{
109-
"internalType": "uint256",
109+
"internalType": "uint64",
110110
"name": "endTime",
111-
"type": "uint256"
111+
"type": "uint64"
112112
},
113113
{
114114
"components": [

0 commit comments

Comments
 (0)