@relay-protocol/settlement-abis 2.0.2 → 2.0.4

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/index.js CHANGED
@@ -6519,6 +6519,19 @@ var RelayOracleV2_default = [
6519
6519
 
6520
6520
  // src/abis/RelayPriceOracle.sol/IPriceFeedAdapter.json
6521
6521
  var IPriceFeedAdapter_default = [
6522
+ {
6523
+ type: "function",
6524
+ name: "ORACLE",
6525
+ inputs: [],
6526
+ outputs: [
6527
+ {
6528
+ name: "",
6529
+ type: "address",
6530
+ internalType: "address"
6531
+ }
6532
+ ],
6533
+ stateMutability: "view"
6534
+ },
6522
6535
  {
6523
6536
  type: "function",
6524
6537
  name: "decodeAndVerify",
@@ -6562,6 +6575,28 @@ var IPriceFeedAdapter_default = [
6562
6575
  }
6563
6576
  ],
6564
6577
  stateMutability: "nonpayable"
6578
+ },
6579
+ {
6580
+ type: "error",
6581
+ name: "InvalidOracle",
6582
+ inputs: [
6583
+ {
6584
+ name: "oracle",
6585
+ type: "address",
6586
+ internalType: "address"
6587
+ }
6588
+ ]
6589
+ },
6590
+ {
6591
+ type: "error",
6592
+ name: "UnauthorizedCaller",
6593
+ inputs: [
6594
+ {
6595
+ name: "caller",
6596
+ type: "address",
6597
+ internalType: "address"
6598
+ }
6599
+ ]
6565
6600
  }
6566
6601
  ];
6567
6602
 
@@ -6578,6 +6613,32 @@ var RelayPriceOracle_default = [
6578
6613
  ],
6579
6614
  stateMutability: "nonpayable"
6580
6615
  },
6616
+ {
6617
+ type: "function",
6618
+ name: "MAX_AGE_SECONDS_UPPER_BOUND",
6619
+ inputs: [],
6620
+ outputs: [
6621
+ {
6622
+ name: "",
6623
+ type: "uint32",
6624
+ internalType: "uint32"
6625
+ }
6626
+ ],
6627
+ stateMutability: "view"
6628
+ },
6629
+ {
6630
+ type: "function",
6631
+ name: "MAX_FUTURE_SECONDS_UPPER_BOUND",
6632
+ inputs: [],
6633
+ outputs: [
6634
+ {
6635
+ name: "",
6636
+ type: "uint32",
6637
+ internalType: "uint32"
6638
+ }
6639
+ ],
6640
+ stateMutability: "view"
6641
+ },
6581
6642
  {
6582
6643
  type: "function",
6583
6644
  name: "MAX_PRICE_BATCH_SIZE",
@@ -6591,6 +6652,30 @@ var RelayPriceOracle_default = [
6591
6652
  ],
6592
6653
  stateMutability: "view"
6593
6654
  },
6655
+ {
6656
+ type: "function",
6657
+ name: "cachedPublishTimes",
6658
+ inputs: [
6659
+ {
6660
+ name: "providerId",
6661
+ type: "bytes32",
6662
+ internalType: "bytes32"
6663
+ },
6664
+ {
6665
+ name: "feedId",
6666
+ type: "bytes32",
6667
+ internalType: "bytes32"
6668
+ }
6669
+ ],
6670
+ outputs: [
6671
+ {
6672
+ name: "publishTime",
6673
+ type: "uint256",
6674
+ internalType: "uint256"
6675
+ }
6676
+ ],
6677
+ stateMutability: "view"
6678
+ },
6594
6679
  {
6595
6680
  type: "function",
6596
6681
  name: "currencyToTokenId",
@@ -6718,6 +6803,25 @@ var RelayPriceOracle_default = [
6718
6803
  ],
6719
6804
  stateMutability: "view"
6720
6805
  },
6806
+ {
6807
+ type: "function",
6808
+ name: "providerMaxFutureSeconds",
6809
+ inputs: [
6810
+ {
6811
+ name: "providerId",
6812
+ type: "bytes32",
6813
+ internalType: "bytes32"
6814
+ }
6815
+ ],
6816
+ outputs: [
6817
+ {
6818
+ name: "maxFutureSeconds",
6819
+ type: "uint32",
6820
+ internalType: "uint32"
6821
+ }
6822
+ ],
6823
+ stateMutability: "view"
6824
+ },
6721
6825
  {
6722
6826
  type: "function",
6723
6827
  name: "renounceOwnership",
@@ -7554,6 +7658,11 @@ var RelayPriceOracle_default = [
7554
7658
  name: "adapter",
7555
7659
  type: "address",
7556
7660
  internalType: "address"
7661
+ },
7662
+ {
7663
+ name: "maxFutureSeconds",
7664
+ type: "uint32",
7665
+ internalType: "uint32"
7557
7666
  }
7558
7667
  ],
7559
7668
  outputs: [],
@@ -7680,6 +7789,12 @@ var RelayPriceOracle_default = [
7680
7789
  type: "address",
7681
7790
  indexed: true,
7682
7791
  internalType: "address"
7792
+ },
7793
+ {
7794
+ name: "maxFutureSeconds",
7795
+ type: "uint32",
7796
+ indexed: false,
7797
+ internalType: "uint32"
7683
7798
  }
7684
7799
  ],
7685
7800
  anonymous: false
@@ -7731,6 +7846,38 @@ var RelayPriceOracle_default = [
7731
7846
  name: "InvalidFeedId",
7732
7847
  inputs: []
7733
7848
  },
7849
+ {
7850
+ type: "error",
7851
+ name: "InvalidMaxAgeSeconds",
7852
+ inputs: [
7853
+ {
7854
+ name: "maxAgeSeconds",
7855
+ type: "uint32",
7856
+ internalType: "uint32"
7857
+ },
7858
+ {
7859
+ name: "maxAgeSecondsUpperBound",
7860
+ type: "uint32",
7861
+ internalType: "uint32"
7862
+ }
7863
+ ]
7864
+ },
7865
+ {
7866
+ type: "error",
7867
+ name: "InvalidMaxFutureSeconds",
7868
+ inputs: [
7869
+ {
7870
+ name: "maxFutureSeconds",
7871
+ type: "uint32",
7872
+ internalType: "uint32"
7873
+ },
7874
+ {
7875
+ name: "maxFutureSecondsUpperBound",
7876
+ type: "uint32",
7877
+ internalType: "uint32"
7878
+ }
7879
+ ]
7880
+ },
7734
7881
  {
7735
7882
  type: "error",
7736
7883
  name: "InvalidPriceFeedAdapter",
@@ -7742,11 +7889,37 @@ var RelayPriceOracle_default = [
7742
7889
  }
7743
7890
  ]
7744
7891
  },
7892
+ {
7893
+ type: "error",
7894
+ name: "InvalidPriceFeedAdapterOracle",
7895
+ inputs: [
7896
+ {
7897
+ name: "adapter",
7898
+ type: "address",
7899
+ internalType: "address"
7900
+ },
7901
+ {
7902
+ name: "expectedOracle",
7903
+ type: "address",
7904
+ internalType: "address"
7905
+ },
7906
+ {
7907
+ name: "actualOracle",
7908
+ type: "address",
7909
+ internalType: "address"
7910
+ }
7911
+ ]
7912
+ },
7745
7913
  {
7746
7914
  type: "error",
7747
7915
  name: "InvalidProviderId",
7748
7916
  inputs: []
7749
7917
  },
7918
+ {
7919
+ type: "error",
7920
+ name: "InvalidPublishTime",
7921
+ inputs: []
7922
+ },
7750
7923
  {
7751
7924
  type: "error",
7752
7925
  name: "OwnableInvalidOwner",
@@ -7816,6 +7989,48 @@ var RelayPriceOracle_default = [
7816
7989
  type: "error",
7817
7990
  name: "PriceFeedCallFailed",
7818
7991
  inputs: []
7992
+ },
7993
+ {
7994
+ type: "error",
7995
+ name: "PriceTimestampRollback",
7996
+ inputs: [
7997
+ {
7998
+ name: "providerId",
7999
+ type: "bytes32",
8000
+ internalType: "bytes32"
8001
+ },
8002
+ {
8003
+ name: "feedId",
8004
+ type: "bytes32",
8005
+ internalType: "bytes32"
8006
+ },
8007
+ {
8008
+ name: "publishTime",
8009
+ type: "uint256",
8010
+ internalType: "uint256"
8011
+ },
8012
+ {
8013
+ name: "cachedPublishTime",
8014
+ type: "uint256",
8015
+ internalType: "uint256"
8016
+ }
8017
+ ]
8018
+ },
8019
+ {
8020
+ type: "error",
8021
+ name: "PriceTimestampTooFarInFuture",
8022
+ inputs: [
8023
+ {
8024
+ name: "publishTime",
8025
+ type: "uint256",
8026
+ internalType: "uint256"
8027
+ },
8028
+ {
8029
+ name: "maxPublishTime",
8030
+ type: "uint256",
8031
+ internalType: "uint256"
8032
+ }
8033
+ ]
7819
8034
  }
7820
8035
  ];
7821
8036
 
@@ -14793,6 +15008,30 @@ var EmptyPayloadBuilder_default = [
14793
15008
 
14794
15009
  // src/abis/mocks/MockPriceFeedAdapter.sol/MockPriceFeedAdapter.json
14795
15010
  var MockPriceFeedAdapter_default = [
15011
+ {
15012
+ type: "constructor",
15013
+ inputs: [
15014
+ {
15015
+ name: "_oracle",
15016
+ type: "address",
15017
+ internalType: "address"
15018
+ }
15019
+ ],
15020
+ stateMutability: "nonpayable"
15021
+ },
15022
+ {
15023
+ type: "function",
15024
+ name: "ORACLE",
15025
+ inputs: [],
15026
+ outputs: [
15027
+ {
15028
+ name: "",
15029
+ type: "address",
15030
+ internalType: "address"
15031
+ }
15032
+ ],
15033
+ stateMutability: "view"
15034
+ },
14796
15035
  {
14797
15036
  type: "function",
14798
15037
  name: "decodeAndVerify",
@@ -14835,7 +15074,7 @@ var MockPriceFeedAdapter_default = [
14835
15074
  internalType: "uint256"
14836
15075
  }
14837
15076
  ],
14838
- stateMutability: "pure"
15077
+ stateMutability: "view"
14839
15078
  },
14840
15079
  {
14841
15080
  type: "error",
@@ -14852,6 +15091,28 @@ var MockPriceFeedAdapter_default = [
14852
15091
  internalType: "bytes32"
14853
15092
  }
14854
15093
  ]
15094
+ },
15095
+ {
15096
+ type: "error",
15097
+ name: "InvalidOracle",
15098
+ inputs: [
15099
+ {
15100
+ name: "oracle",
15101
+ type: "address",
15102
+ internalType: "address"
15103
+ }
15104
+ ]
15105
+ },
15106
+ {
15107
+ type: "error",
15108
+ name: "UnauthorizedCaller",
15109
+ inputs: [
15110
+ {
15111
+ name: "caller",
15112
+ type: "address",
15113
+ internalType: "address"
15114
+ }
15115
+ ]
14855
15116
  }
14856
15117
  ];
14857
15118
 
@@ -20284,6 +20545,11 @@ var ChainlinkDataStreamsAdapter_default = [
20284
20545
  {
20285
20546
  type: "constructor",
20286
20547
  inputs: [
20548
+ {
20549
+ name: "_oracle",
20550
+ type: "address",
20551
+ internalType: "address"
20552
+ },
20287
20553
  {
20288
20554
  name: "verifierProxy",
20289
20555
  type: "address",
@@ -20310,6 +20576,19 @@ var ChainlinkDataStreamsAdapter_default = [
20310
20576
  ],
20311
20577
  stateMutability: "view"
20312
20578
  },
20579
+ {
20580
+ type: "function",
20581
+ name: "ORACLE",
20582
+ inputs: [],
20583
+ outputs: [
20584
+ {
20585
+ name: "",
20586
+ type: "address",
20587
+ internalType: "address"
20588
+ }
20589
+ ],
20590
+ stateMutability: "view"
20591
+ },
20313
20592
  {
20314
20593
  type: "function",
20315
20594
  name: "REPORT_V3_SCHEMA",
@@ -20370,6 +20649,11 @@ var ChainlinkDataStreamsAdapter_default = [
20370
20649
  type: "int192",
20371
20650
  internalType: "int192"
20372
20651
  },
20652
+ {
20653
+ name: "validFromTimestamp",
20654
+ type: "uint32",
20655
+ internalType: "uint32"
20656
+ },
20373
20657
  {
20374
20658
  name: "observationsTimestamp",
20375
20659
  type: "uint32",
@@ -20453,6 +20737,59 @@ var ChainlinkDataStreamsAdapter_default = [
20453
20737
  }
20454
20738
  ]
20455
20739
  },
20740
+ {
20741
+ type: "error",
20742
+ name: "InvalidBidAsk",
20743
+ inputs: [
20744
+ {
20745
+ name: "benchmarkPrice",
20746
+ type: "int192",
20747
+ internalType: "int192"
20748
+ },
20749
+ {
20750
+ name: "bid",
20751
+ type: "int192",
20752
+ internalType: "int192"
20753
+ },
20754
+ {
20755
+ name: "ask",
20756
+ type: "int192",
20757
+ internalType: "int192"
20758
+ }
20759
+ ]
20760
+ },
20761
+ {
20762
+ type: "error",
20763
+ name: "InvalidOracle",
20764
+ inputs: [
20765
+ {
20766
+ name: "oracle",
20767
+ type: "address",
20768
+ internalType: "address"
20769
+ }
20770
+ ]
20771
+ },
20772
+ {
20773
+ type: "error",
20774
+ name: "InvalidReportTimeRange",
20775
+ inputs: [
20776
+ {
20777
+ name: "validFromTimestamp",
20778
+ type: "uint32",
20779
+ internalType: "uint32"
20780
+ },
20781
+ {
20782
+ name: "observationsTimestamp",
20783
+ type: "uint32",
20784
+ internalType: "uint32"
20785
+ },
20786
+ {
20787
+ name: "expiresAt",
20788
+ type: "uint32",
20789
+ internalType: "uint32"
20790
+ }
20791
+ ]
20792
+ },
20456
20793
  {
20457
20794
  type: "error",
20458
20795
  name: "InvalidVerifierProxy",
@@ -20485,6 +20822,38 @@ var ChainlinkDataStreamsAdapter_default = [
20485
20822
  }
20486
20823
  ]
20487
20824
  },
20825
+ {
20826
+ type: "error",
20827
+ name: "TimestampRollback",
20828
+ inputs: [
20829
+ {
20830
+ name: "feedId",
20831
+ type: "bytes32",
20832
+ internalType: "bytes32"
20833
+ },
20834
+ {
20835
+ name: "observationsTimestamp",
20836
+ type: "uint32",
20837
+ internalType: "uint32"
20838
+ },
20839
+ {
20840
+ name: "latestObservationsTimestamp",
20841
+ type: "uint32",
20842
+ internalType: "uint32"
20843
+ }
20844
+ ]
20845
+ },
20846
+ {
20847
+ type: "error",
20848
+ name: "UnauthorizedCaller",
20849
+ inputs: [
20850
+ {
20851
+ name: "caller",
20852
+ type: "address",
20853
+ internalType: "address"
20854
+ }
20855
+ ]
20856
+ },
20488
20857
  {
20489
20858
  type: "error",
20490
20859
  name: "UnsupportedReportSchema",
@@ -20578,6 +20947,11 @@ var StorkFastAdapter_default = [
20578
20947
  {
20579
20948
  type: "constructor",
20580
20949
  inputs: [
20950
+ {
20951
+ name: "_oracle",
20952
+ type: "address",
20953
+ internalType: "address"
20954
+ },
20581
20955
  {
20582
20956
  name: "storkFastVerifier",
20583
20957
  type: "address",
@@ -20586,6 +20960,19 @@ var StorkFastAdapter_default = [
20586
20960
  ],
20587
20961
  stateMutability: "nonpayable"
20588
20962
  },
20963
+ {
20964
+ type: "function",
20965
+ name: "ORACLE",
20966
+ inputs: [],
20967
+ outputs: [
20968
+ {
20969
+ name: "",
20970
+ type: "address",
20971
+ internalType: "address"
20972
+ }
20973
+ ],
20974
+ stateMutability: "view"
20975
+ },
20589
20976
  {
20590
20977
  type: "function",
20591
20978
  name: "STORK_FAST_VERIFIER",
@@ -20614,27 +21001,35 @@ var StorkFastAdapter_default = [
20614
21001
  },
20615
21002
  {
20616
21003
  type: "function",
20617
- name: "cachedReports",
20618
- inputs: [
21004
+ name: "cachedReportHash",
21005
+ inputs: [],
21006
+ outputs: [
20619
21007
  {
20620
- name: "feedId",
21008
+ name: "",
20621
21009
  type: "bytes32",
20622
21010
  internalType: "bytes32"
20623
21011
  }
20624
21012
  ],
20625
- outputs: [
21013
+ stateMutability: "view"
21014
+ },
21015
+ {
21016
+ type: "function",
21017
+ name: "cachedReportValues",
21018
+ inputs: [
20626
21019
  {
20627
- name: "reportHash",
21020
+ name: "feedId",
20628
21021
  type: "bytes32",
20629
21022
  internalType: "bytes32"
20630
- },
21023
+ }
21024
+ ],
21025
+ outputs: [
20631
21026
  {
20632
21027
  name: "quantizedValue",
20633
21028
  type: "int192",
20634
21029
  internalType: "int192"
20635
21030
  },
20636
21031
  {
20637
- name: "publishTime",
21032
+ name: "timestampNs",
20638
21033
  type: "uint64",
20639
21034
  internalType: "uint64"
20640
21035
  }
@@ -20709,6 +21104,43 @@ var StorkFastAdapter_default = [
20709
21104
  ],
20710
21105
  stateMutability: "nonpayable"
20711
21106
  },
21107
+ {
21108
+ type: "error",
21109
+ name: "ConflictingPriceAtTimestamp",
21110
+ inputs: [
21111
+ {
21112
+ name: "feedId",
21113
+ type: "bytes32",
21114
+ internalType: "bytes32"
21115
+ },
21116
+ {
21117
+ name: "timestampNs",
21118
+ type: "uint64",
21119
+ internalType: "uint64"
21120
+ },
21121
+ {
21122
+ name: "latestValue",
21123
+ type: "int192",
21124
+ internalType: "int192"
21125
+ },
21126
+ {
21127
+ name: "newValue",
21128
+ type: "int192",
21129
+ internalType: "int192"
21130
+ }
21131
+ ]
21132
+ },
21133
+ {
21134
+ type: "error",
21135
+ name: "DuplicateAssetId",
21136
+ inputs: [
21137
+ {
21138
+ name: "assetId",
21139
+ type: "uint16",
21140
+ internalType: "uint16"
21141
+ }
21142
+ ]
21143
+ },
20712
21144
  {
20713
21145
  type: "error",
20714
21146
  name: "FeedNotInPayload",
@@ -20720,6 +21152,17 @@ var StorkFastAdapter_default = [
20720
21152
  }
20721
21153
  ]
20722
21154
  },
21155
+ {
21156
+ type: "error",
21157
+ name: "InvalidOracle",
21158
+ inputs: [
21159
+ {
21160
+ name: "oracle",
21161
+ type: "address",
21162
+ internalType: "address"
21163
+ }
21164
+ ]
21165
+ },
20723
21166
  {
20724
21167
  type: "error",
20725
21168
  name: "InvalidStorkFastVerifier",
@@ -20735,6 +21178,38 @@ var StorkFastAdapter_default = [
20735
21178
  internalType: "int192"
20736
21179
  }
20737
21180
  ]
21181
+ },
21182
+ {
21183
+ type: "error",
21184
+ name: "TimestampRollback",
21185
+ inputs: [
21186
+ {
21187
+ name: "feedId",
21188
+ type: "bytes32",
21189
+ internalType: "bytes32"
21190
+ },
21191
+ {
21192
+ name: "timestampNs",
21193
+ type: "uint64",
21194
+ internalType: "uint64"
21195
+ },
21196
+ {
21197
+ name: "latestTimestampNs",
21198
+ type: "uint64",
21199
+ internalType: "uint64"
21200
+ }
21201
+ ]
21202
+ },
21203
+ {
21204
+ type: "error",
21205
+ name: "UnauthorizedCaller",
21206
+ inputs: [
21207
+ {
21208
+ name: "caller",
21209
+ type: "address",
21210
+ internalType: "address"
21211
+ }
21212
+ ]
20738
21213
  }
20739
21214
  ];
20740
21215