@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.mjs CHANGED
@@ -6397,6 +6397,19 @@ var RelayOracleV2_default = [
6397
6397
 
6398
6398
  // src/abis/RelayPriceOracle.sol/IPriceFeedAdapter.json
6399
6399
  var IPriceFeedAdapter_default = [
6400
+ {
6401
+ type: "function",
6402
+ name: "ORACLE",
6403
+ inputs: [],
6404
+ outputs: [
6405
+ {
6406
+ name: "",
6407
+ type: "address",
6408
+ internalType: "address"
6409
+ }
6410
+ ],
6411
+ stateMutability: "view"
6412
+ },
6400
6413
  {
6401
6414
  type: "function",
6402
6415
  name: "decodeAndVerify",
@@ -6440,6 +6453,28 @@ var IPriceFeedAdapter_default = [
6440
6453
  }
6441
6454
  ],
6442
6455
  stateMutability: "nonpayable"
6456
+ },
6457
+ {
6458
+ type: "error",
6459
+ name: "InvalidOracle",
6460
+ inputs: [
6461
+ {
6462
+ name: "oracle",
6463
+ type: "address",
6464
+ internalType: "address"
6465
+ }
6466
+ ]
6467
+ },
6468
+ {
6469
+ type: "error",
6470
+ name: "UnauthorizedCaller",
6471
+ inputs: [
6472
+ {
6473
+ name: "caller",
6474
+ type: "address",
6475
+ internalType: "address"
6476
+ }
6477
+ ]
6443
6478
  }
6444
6479
  ];
6445
6480
 
@@ -6456,6 +6491,32 @@ var RelayPriceOracle_default = [
6456
6491
  ],
6457
6492
  stateMutability: "nonpayable"
6458
6493
  },
6494
+ {
6495
+ type: "function",
6496
+ name: "MAX_AGE_SECONDS_UPPER_BOUND",
6497
+ inputs: [],
6498
+ outputs: [
6499
+ {
6500
+ name: "",
6501
+ type: "uint32",
6502
+ internalType: "uint32"
6503
+ }
6504
+ ],
6505
+ stateMutability: "view"
6506
+ },
6507
+ {
6508
+ type: "function",
6509
+ name: "MAX_FUTURE_SECONDS_UPPER_BOUND",
6510
+ inputs: [],
6511
+ outputs: [
6512
+ {
6513
+ name: "",
6514
+ type: "uint32",
6515
+ internalType: "uint32"
6516
+ }
6517
+ ],
6518
+ stateMutability: "view"
6519
+ },
6459
6520
  {
6460
6521
  type: "function",
6461
6522
  name: "MAX_PRICE_BATCH_SIZE",
@@ -6469,6 +6530,30 @@ var RelayPriceOracle_default = [
6469
6530
  ],
6470
6531
  stateMutability: "view"
6471
6532
  },
6533
+ {
6534
+ type: "function",
6535
+ name: "cachedPublishTimes",
6536
+ inputs: [
6537
+ {
6538
+ name: "providerId",
6539
+ type: "bytes32",
6540
+ internalType: "bytes32"
6541
+ },
6542
+ {
6543
+ name: "feedId",
6544
+ type: "bytes32",
6545
+ internalType: "bytes32"
6546
+ }
6547
+ ],
6548
+ outputs: [
6549
+ {
6550
+ name: "publishTime",
6551
+ type: "uint256",
6552
+ internalType: "uint256"
6553
+ }
6554
+ ],
6555
+ stateMutability: "view"
6556
+ },
6472
6557
  {
6473
6558
  type: "function",
6474
6559
  name: "currencyToTokenId",
@@ -6596,6 +6681,25 @@ var RelayPriceOracle_default = [
6596
6681
  ],
6597
6682
  stateMutability: "view"
6598
6683
  },
6684
+ {
6685
+ type: "function",
6686
+ name: "providerMaxFutureSeconds",
6687
+ inputs: [
6688
+ {
6689
+ name: "providerId",
6690
+ type: "bytes32",
6691
+ internalType: "bytes32"
6692
+ }
6693
+ ],
6694
+ outputs: [
6695
+ {
6696
+ name: "maxFutureSeconds",
6697
+ type: "uint32",
6698
+ internalType: "uint32"
6699
+ }
6700
+ ],
6701
+ stateMutability: "view"
6702
+ },
6599
6703
  {
6600
6704
  type: "function",
6601
6705
  name: "renounceOwnership",
@@ -7432,6 +7536,11 @@ var RelayPriceOracle_default = [
7432
7536
  name: "adapter",
7433
7537
  type: "address",
7434
7538
  internalType: "address"
7539
+ },
7540
+ {
7541
+ name: "maxFutureSeconds",
7542
+ type: "uint32",
7543
+ internalType: "uint32"
7435
7544
  }
7436
7545
  ],
7437
7546
  outputs: [],
@@ -7558,6 +7667,12 @@ var RelayPriceOracle_default = [
7558
7667
  type: "address",
7559
7668
  indexed: true,
7560
7669
  internalType: "address"
7670
+ },
7671
+ {
7672
+ name: "maxFutureSeconds",
7673
+ type: "uint32",
7674
+ indexed: false,
7675
+ internalType: "uint32"
7561
7676
  }
7562
7677
  ],
7563
7678
  anonymous: false
@@ -7609,6 +7724,38 @@ var RelayPriceOracle_default = [
7609
7724
  name: "InvalidFeedId",
7610
7725
  inputs: []
7611
7726
  },
7727
+ {
7728
+ type: "error",
7729
+ name: "InvalidMaxAgeSeconds",
7730
+ inputs: [
7731
+ {
7732
+ name: "maxAgeSeconds",
7733
+ type: "uint32",
7734
+ internalType: "uint32"
7735
+ },
7736
+ {
7737
+ name: "maxAgeSecondsUpperBound",
7738
+ type: "uint32",
7739
+ internalType: "uint32"
7740
+ }
7741
+ ]
7742
+ },
7743
+ {
7744
+ type: "error",
7745
+ name: "InvalidMaxFutureSeconds",
7746
+ inputs: [
7747
+ {
7748
+ name: "maxFutureSeconds",
7749
+ type: "uint32",
7750
+ internalType: "uint32"
7751
+ },
7752
+ {
7753
+ name: "maxFutureSecondsUpperBound",
7754
+ type: "uint32",
7755
+ internalType: "uint32"
7756
+ }
7757
+ ]
7758
+ },
7612
7759
  {
7613
7760
  type: "error",
7614
7761
  name: "InvalidPriceFeedAdapter",
@@ -7620,11 +7767,37 @@ var RelayPriceOracle_default = [
7620
7767
  }
7621
7768
  ]
7622
7769
  },
7770
+ {
7771
+ type: "error",
7772
+ name: "InvalidPriceFeedAdapterOracle",
7773
+ inputs: [
7774
+ {
7775
+ name: "adapter",
7776
+ type: "address",
7777
+ internalType: "address"
7778
+ },
7779
+ {
7780
+ name: "expectedOracle",
7781
+ type: "address",
7782
+ internalType: "address"
7783
+ },
7784
+ {
7785
+ name: "actualOracle",
7786
+ type: "address",
7787
+ internalType: "address"
7788
+ }
7789
+ ]
7790
+ },
7623
7791
  {
7624
7792
  type: "error",
7625
7793
  name: "InvalidProviderId",
7626
7794
  inputs: []
7627
7795
  },
7796
+ {
7797
+ type: "error",
7798
+ name: "InvalidPublishTime",
7799
+ inputs: []
7800
+ },
7628
7801
  {
7629
7802
  type: "error",
7630
7803
  name: "OwnableInvalidOwner",
@@ -7694,6 +7867,48 @@ var RelayPriceOracle_default = [
7694
7867
  type: "error",
7695
7868
  name: "PriceFeedCallFailed",
7696
7869
  inputs: []
7870
+ },
7871
+ {
7872
+ type: "error",
7873
+ name: "PriceTimestampRollback",
7874
+ inputs: [
7875
+ {
7876
+ name: "providerId",
7877
+ type: "bytes32",
7878
+ internalType: "bytes32"
7879
+ },
7880
+ {
7881
+ name: "feedId",
7882
+ type: "bytes32",
7883
+ internalType: "bytes32"
7884
+ },
7885
+ {
7886
+ name: "publishTime",
7887
+ type: "uint256",
7888
+ internalType: "uint256"
7889
+ },
7890
+ {
7891
+ name: "cachedPublishTime",
7892
+ type: "uint256",
7893
+ internalType: "uint256"
7894
+ }
7895
+ ]
7896
+ },
7897
+ {
7898
+ type: "error",
7899
+ name: "PriceTimestampTooFarInFuture",
7900
+ inputs: [
7901
+ {
7902
+ name: "publishTime",
7903
+ type: "uint256",
7904
+ internalType: "uint256"
7905
+ },
7906
+ {
7907
+ name: "maxPublishTime",
7908
+ type: "uint256",
7909
+ internalType: "uint256"
7910
+ }
7911
+ ]
7697
7912
  }
7698
7913
  ];
7699
7914
 
@@ -14671,6 +14886,30 @@ var EmptyPayloadBuilder_default = [
14671
14886
 
14672
14887
  // src/abis/mocks/MockPriceFeedAdapter.sol/MockPriceFeedAdapter.json
14673
14888
  var MockPriceFeedAdapter_default = [
14889
+ {
14890
+ type: "constructor",
14891
+ inputs: [
14892
+ {
14893
+ name: "_oracle",
14894
+ type: "address",
14895
+ internalType: "address"
14896
+ }
14897
+ ],
14898
+ stateMutability: "nonpayable"
14899
+ },
14900
+ {
14901
+ type: "function",
14902
+ name: "ORACLE",
14903
+ inputs: [],
14904
+ outputs: [
14905
+ {
14906
+ name: "",
14907
+ type: "address",
14908
+ internalType: "address"
14909
+ }
14910
+ ],
14911
+ stateMutability: "view"
14912
+ },
14674
14913
  {
14675
14914
  type: "function",
14676
14915
  name: "decodeAndVerify",
@@ -14713,7 +14952,7 @@ var MockPriceFeedAdapter_default = [
14713
14952
  internalType: "uint256"
14714
14953
  }
14715
14954
  ],
14716
- stateMutability: "pure"
14955
+ stateMutability: "view"
14717
14956
  },
14718
14957
  {
14719
14958
  type: "error",
@@ -14730,6 +14969,28 @@ var MockPriceFeedAdapter_default = [
14730
14969
  internalType: "bytes32"
14731
14970
  }
14732
14971
  ]
14972
+ },
14973
+ {
14974
+ type: "error",
14975
+ name: "InvalidOracle",
14976
+ inputs: [
14977
+ {
14978
+ name: "oracle",
14979
+ type: "address",
14980
+ internalType: "address"
14981
+ }
14982
+ ]
14983
+ },
14984
+ {
14985
+ type: "error",
14986
+ name: "UnauthorizedCaller",
14987
+ inputs: [
14988
+ {
14989
+ name: "caller",
14990
+ type: "address",
14991
+ internalType: "address"
14992
+ }
14993
+ ]
14733
14994
  }
14734
14995
  ];
14735
14996
 
@@ -20162,6 +20423,11 @@ var ChainlinkDataStreamsAdapter_default = [
20162
20423
  {
20163
20424
  type: "constructor",
20164
20425
  inputs: [
20426
+ {
20427
+ name: "_oracle",
20428
+ type: "address",
20429
+ internalType: "address"
20430
+ },
20165
20431
  {
20166
20432
  name: "verifierProxy",
20167
20433
  type: "address",
@@ -20188,6 +20454,19 @@ var ChainlinkDataStreamsAdapter_default = [
20188
20454
  ],
20189
20455
  stateMutability: "view"
20190
20456
  },
20457
+ {
20458
+ type: "function",
20459
+ name: "ORACLE",
20460
+ inputs: [],
20461
+ outputs: [
20462
+ {
20463
+ name: "",
20464
+ type: "address",
20465
+ internalType: "address"
20466
+ }
20467
+ ],
20468
+ stateMutability: "view"
20469
+ },
20191
20470
  {
20192
20471
  type: "function",
20193
20472
  name: "REPORT_V3_SCHEMA",
@@ -20248,6 +20527,11 @@ var ChainlinkDataStreamsAdapter_default = [
20248
20527
  type: "int192",
20249
20528
  internalType: "int192"
20250
20529
  },
20530
+ {
20531
+ name: "validFromTimestamp",
20532
+ type: "uint32",
20533
+ internalType: "uint32"
20534
+ },
20251
20535
  {
20252
20536
  name: "observationsTimestamp",
20253
20537
  type: "uint32",
@@ -20331,6 +20615,59 @@ var ChainlinkDataStreamsAdapter_default = [
20331
20615
  }
20332
20616
  ]
20333
20617
  },
20618
+ {
20619
+ type: "error",
20620
+ name: "InvalidBidAsk",
20621
+ inputs: [
20622
+ {
20623
+ name: "benchmarkPrice",
20624
+ type: "int192",
20625
+ internalType: "int192"
20626
+ },
20627
+ {
20628
+ name: "bid",
20629
+ type: "int192",
20630
+ internalType: "int192"
20631
+ },
20632
+ {
20633
+ name: "ask",
20634
+ type: "int192",
20635
+ internalType: "int192"
20636
+ }
20637
+ ]
20638
+ },
20639
+ {
20640
+ type: "error",
20641
+ name: "InvalidOracle",
20642
+ inputs: [
20643
+ {
20644
+ name: "oracle",
20645
+ type: "address",
20646
+ internalType: "address"
20647
+ }
20648
+ ]
20649
+ },
20650
+ {
20651
+ type: "error",
20652
+ name: "InvalidReportTimeRange",
20653
+ inputs: [
20654
+ {
20655
+ name: "validFromTimestamp",
20656
+ type: "uint32",
20657
+ internalType: "uint32"
20658
+ },
20659
+ {
20660
+ name: "observationsTimestamp",
20661
+ type: "uint32",
20662
+ internalType: "uint32"
20663
+ },
20664
+ {
20665
+ name: "expiresAt",
20666
+ type: "uint32",
20667
+ internalType: "uint32"
20668
+ }
20669
+ ]
20670
+ },
20334
20671
  {
20335
20672
  type: "error",
20336
20673
  name: "InvalidVerifierProxy",
@@ -20363,6 +20700,38 @@ var ChainlinkDataStreamsAdapter_default = [
20363
20700
  }
20364
20701
  ]
20365
20702
  },
20703
+ {
20704
+ type: "error",
20705
+ name: "TimestampRollback",
20706
+ inputs: [
20707
+ {
20708
+ name: "feedId",
20709
+ type: "bytes32",
20710
+ internalType: "bytes32"
20711
+ },
20712
+ {
20713
+ name: "observationsTimestamp",
20714
+ type: "uint32",
20715
+ internalType: "uint32"
20716
+ },
20717
+ {
20718
+ name: "latestObservationsTimestamp",
20719
+ type: "uint32",
20720
+ internalType: "uint32"
20721
+ }
20722
+ ]
20723
+ },
20724
+ {
20725
+ type: "error",
20726
+ name: "UnauthorizedCaller",
20727
+ inputs: [
20728
+ {
20729
+ name: "caller",
20730
+ type: "address",
20731
+ internalType: "address"
20732
+ }
20733
+ ]
20734
+ },
20366
20735
  {
20367
20736
  type: "error",
20368
20737
  name: "UnsupportedReportSchema",
@@ -20456,6 +20825,11 @@ var StorkFastAdapter_default = [
20456
20825
  {
20457
20826
  type: "constructor",
20458
20827
  inputs: [
20828
+ {
20829
+ name: "_oracle",
20830
+ type: "address",
20831
+ internalType: "address"
20832
+ },
20459
20833
  {
20460
20834
  name: "storkFastVerifier",
20461
20835
  type: "address",
@@ -20464,6 +20838,19 @@ var StorkFastAdapter_default = [
20464
20838
  ],
20465
20839
  stateMutability: "nonpayable"
20466
20840
  },
20841
+ {
20842
+ type: "function",
20843
+ name: "ORACLE",
20844
+ inputs: [],
20845
+ outputs: [
20846
+ {
20847
+ name: "",
20848
+ type: "address",
20849
+ internalType: "address"
20850
+ }
20851
+ ],
20852
+ stateMutability: "view"
20853
+ },
20467
20854
  {
20468
20855
  type: "function",
20469
20856
  name: "STORK_FAST_VERIFIER",
@@ -20492,27 +20879,35 @@ var StorkFastAdapter_default = [
20492
20879
  },
20493
20880
  {
20494
20881
  type: "function",
20495
- name: "cachedReports",
20496
- inputs: [
20882
+ name: "cachedReportHash",
20883
+ inputs: [],
20884
+ outputs: [
20497
20885
  {
20498
- name: "feedId",
20886
+ name: "",
20499
20887
  type: "bytes32",
20500
20888
  internalType: "bytes32"
20501
20889
  }
20502
20890
  ],
20503
- outputs: [
20891
+ stateMutability: "view"
20892
+ },
20893
+ {
20894
+ type: "function",
20895
+ name: "cachedReportValues",
20896
+ inputs: [
20504
20897
  {
20505
- name: "reportHash",
20898
+ name: "feedId",
20506
20899
  type: "bytes32",
20507
20900
  internalType: "bytes32"
20508
- },
20901
+ }
20902
+ ],
20903
+ outputs: [
20509
20904
  {
20510
20905
  name: "quantizedValue",
20511
20906
  type: "int192",
20512
20907
  internalType: "int192"
20513
20908
  },
20514
20909
  {
20515
- name: "publishTime",
20910
+ name: "timestampNs",
20516
20911
  type: "uint64",
20517
20912
  internalType: "uint64"
20518
20913
  }
@@ -20587,6 +20982,43 @@ var StorkFastAdapter_default = [
20587
20982
  ],
20588
20983
  stateMutability: "nonpayable"
20589
20984
  },
20985
+ {
20986
+ type: "error",
20987
+ name: "ConflictingPriceAtTimestamp",
20988
+ inputs: [
20989
+ {
20990
+ name: "feedId",
20991
+ type: "bytes32",
20992
+ internalType: "bytes32"
20993
+ },
20994
+ {
20995
+ name: "timestampNs",
20996
+ type: "uint64",
20997
+ internalType: "uint64"
20998
+ },
20999
+ {
21000
+ name: "latestValue",
21001
+ type: "int192",
21002
+ internalType: "int192"
21003
+ },
21004
+ {
21005
+ name: "newValue",
21006
+ type: "int192",
21007
+ internalType: "int192"
21008
+ }
21009
+ ]
21010
+ },
21011
+ {
21012
+ type: "error",
21013
+ name: "DuplicateAssetId",
21014
+ inputs: [
21015
+ {
21016
+ name: "assetId",
21017
+ type: "uint16",
21018
+ internalType: "uint16"
21019
+ }
21020
+ ]
21021
+ },
20590
21022
  {
20591
21023
  type: "error",
20592
21024
  name: "FeedNotInPayload",
@@ -20598,6 +21030,17 @@ var StorkFastAdapter_default = [
20598
21030
  }
20599
21031
  ]
20600
21032
  },
21033
+ {
21034
+ type: "error",
21035
+ name: "InvalidOracle",
21036
+ inputs: [
21037
+ {
21038
+ name: "oracle",
21039
+ type: "address",
21040
+ internalType: "address"
21041
+ }
21042
+ ]
21043
+ },
20601
21044
  {
20602
21045
  type: "error",
20603
21046
  name: "InvalidStorkFastVerifier",
@@ -20613,6 +21056,38 @@ var StorkFastAdapter_default = [
20613
21056
  internalType: "int192"
20614
21057
  }
20615
21058
  ]
21059
+ },
21060
+ {
21061
+ type: "error",
21062
+ name: "TimestampRollback",
21063
+ inputs: [
21064
+ {
21065
+ name: "feedId",
21066
+ type: "bytes32",
21067
+ internalType: "bytes32"
21068
+ },
21069
+ {
21070
+ name: "timestampNs",
21071
+ type: "uint64",
21072
+ internalType: "uint64"
21073
+ },
21074
+ {
21075
+ name: "latestTimestampNs",
21076
+ type: "uint64",
21077
+ internalType: "uint64"
21078
+ }
21079
+ ]
21080
+ },
21081
+ {
21082
+ type: "error",
21083
+ name: "UnauthorizedCaller",
21084
+ inputs: [
21085
+ {
21086
+ name: "caller",
21087
+ type: "address",
21088
+ internalType: "address"
21089
+ }
21090
+ ]
20616
21091
  }
20617
21092
  ];
20618
21093
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relay-protocol/settlement-abis",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Relay protocol contract ABIs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",