@relay-protocol/settlement-abis 2.0.8 → 2.0.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/index.js CHANGED
@@ -45,6 +45,7 @@ __export(index_exports, {
45
45
  GasPaidPayloadBuilder: () => GasPaidPayloadBuilder_default,
46
46
  GatewayEthereumVmDestinationPayloadBuilder: () => GatewayEthereumVmDestinationPayloadBuilder_default,
47
47
  GatewayVmPayloadBuilder: () => GatewayVmPayloadBuilder_default,
48
+ HederaVmPayloadBuilder: () => HederaVmPayloadBuilder_default,
48
49
  HyperliquidVmPayloadBuilder: () => HyperliquidVmPayloadBuilder_default,
49
50
  IBidAskOracle: () => IBidAskOracle_default,
50
51
  IBitcoinDepositSweepBuilder: () => IBitcoinDepositSweepBuilder_default,
@@ -82,6 +83,7 @@ __export(index_exports, {
82
83
  PoolDrawResolver: () => PoolDrawResolver_default,
83
84
  PoolResolverBase: () => PoolResolverBase_default,
84
85
  PriceOraclePrecompile: () => PriceOraclePrecompile_default,
86
+ Protobuf: () => Protobuf_default,
85
87
  RelayAllocator: () => RelayAllocator_default,
86
88
  RelayAmountRateLimiter: () => RelayAmountRateLimiter_default,
87
89
  RelayBpsFeeCalculator: () => RelayBpsFeeCalculator_default,
@@ -9798,6 +9800,22 @@ var PoolDrawResolver_default = [
9798
9800
  }
9799
9801
  ]
9800
9802
  },
9803
+ {
9804
+ type: "error",
9805
+ name: "PayloadCommitmentMismatch",
9806
+ inputs: [
9807
+ {
9808
+ name: "expected",
9809
+ type: "bytes32",
9810
+ internalType: "bytes32"
9811
+ },
9812
+ {
9813
+ name: "actual",
9814
+ type: "bytes32",
9815
+ internalType: "bytes32"
9816
+ }
9817
+ ]
9818
+ },
9801
9819
  {
9802
9820
  type: "error",
9803
9821
  name: "ReentrancyGuardReentrantCall",
@@ -10214,6 +10232,22 @@ var PoolResolverBase_default = [
10214
10232
  }
10215
10233
  ]
10216
10234
  },
10235
+ {
10236
+ type: "error",
10237
+ name: "PayloadCommitmentMismatch",
10238
+ inputs: [
10239
+ {
10240
+ name: "expected",
10241
+ type: "bytes32",
10242
+ internalType: "bytes32"
10243
+ },
10244
+ {
10245
+ name: "actual",
10246
+ type: "bytes32",
10247
+ internalType: "bytes32"
10248
+ }
10249
+ ]
10250
+ },
10217
10251
  {
10218
10252
  type: "error",
10219
10253
  name: "ReentrancyGuardReentrantCall",
@@ -18940,6 +18974,462 @@ var GatewayVmPayloadBuilder_default = [
18940
18974
  }
18941
18975
  ];
18942
18976
 
18977
+ // src/abis/payload-builders/HederaVmPayloadBuilder.sol/HederaVmPayloadBuilder.json
18978
+ var HederaVmPayloadBuilder_default = [
18979
+ {
18980
+ type: "constructor",
18981
+ inputs: [
18982
+ {
18983
+ name: "tokenNum",
18984
+ type: "uint64",
18985
+ internalType: "uint64"
18986
+ },
18987
+ {
18988
+ name: "gasPayer",
18989
+ type: "address",
18990
+ internalType: "address"
18991
+ }
18992
+ ],
18993
+ stateMutability: "nonpayable"
18994
+ },
18995
+ {
18996
+ type: "function",
18997
+ name: "GAS_PAYER",
18998
+ inputs: [],
18999
+ outputs: [
19000
+ {
19001
+ name: "",
19002
+ type: "address",
19003
+ internalType: "address"
19004
+ }
19005
+ ],
19006
+ stateMutability: "view"
19007
+ },
19008
+ {
19009
+ type: "function",
19010
+ name: "MAX_FEE",
19011
+ inputs: [],
19012
+ outputs: [
19013
+ {
19014
+ name: "",
19015
+ type: "uint64",
19016
+ internalType: "uint64"
19017
+ }
19018
+ ],
19019
+ stateMutability: "view"
19020
+ },
19021
+ {
19022
+ type: "function",
19023
+ name: "MAX_VALID_DURATION_SECONDS",
19024
+ inputs: [],
19025
+ outputs: [
19026
+ {
19027
+ name: "",
19028
+ type: "uint32",
19029
+ internalType: "uint32"
19030
+ }
19031
+ ],
19032
+ stateMutability: "view"
19033
+ },
19034
+ {
19035
+ type: "function",
19036
+ name: "TOKEN_NUM",
19037
+ inputs: [],
19038
+ outputs: [
19039
+ {
19040
+ name: "",
19041
+ type: "uint64",
19042
+ internalType: "uint64"
19043
+ }
19044
+ ],
19045
+ stateMutability: "view"
19046
+ },
19047
+ {
19048
+ type: "function",
19049
+ name: "buildPayload",
19050
+ inputs: [
19051
+ {
19052
+ name: "chainId",
19053
+ type: "string",
19054
+ internalType: "string"
19055
+ },
19056
+ {
19057
+ name: "depository",
19058
+ type: "bytes",
19059
+ internalType: "bytes"
19060
+ },
19061
+ {
19062
+ name: "params",
19063
+ type: "tuple",
19064
+ internalType: "struct BuildPayloadParams",
19065
+ components: [
19066
+ {
19067
+ name: "currency",
19068
+ type: "bytes",
19069
+ internalType: "bytes"
19070
+ },
19071
+ {
19072
+ name: "amount",
19073
+ type: "uint256",
19074
+ internalType: "uint256"
19075
+ },
19076
+ {
19077
+ name: "receiver",
19078
+ type: "bytes",
19079
+ internalType: "bytes"
19080
+ },
19081
+ {
19082
+ name: "nonce",
19083
+ type: "uint256",
19084
+ internalType: "uint256"
19085
+ },
19086
+ {
19087
+ name: "data",
19088
+ type: "bytes",
19089
+ internalType: "bytes"
19090
+ }
19091
+ ]
19092
+ }
19093
+ ],
19094
+ outputs: [
19095
+ {
19096
+ name: "payload",
19097
+ type: "bytes",
19098
+ internalType: "bytes"
19099
+ }
19100
+ ],
19101
+ stateMutability: "view"
19102
+ },
19103
+ {
19104
+ type: "function",
19105
+ name: "curve",
19106
+ inputs: [],
19107
+ outputs: [
19108
+ {
19109
+ name: "name",
19110
+ type: "string",
19111
+ internalType: "string"
19112
+ }
19113
+ ],
19114
+ stateMutability: "pure"
19115
+ },
19116
+ {
19117
+ type: "function",
19118
+ name: "family",
19119
+ inputs: [],
19120
+ outputs: [
19121
+ {
19122
+ name: "name",
19123
+ type: "string",
19124
+ internalType: "string"
19125
+ }
19126
+ ],
19127
+ stateMutability: "pure"
19128
+ },
19129
+ {
19130
+ type: "function",
19131
+ name: "hashesToSign",
19132
+ inputs: [
19133
+ {
19134
+ name: "",
19135
+ type: "string",
19136
+ internalType: "string"
19137
+ },
19138
+ {
19139
+ name: "",
19140
+ type: "bytes",
19141
+ internalType: "bytes"
19142
+ },
19143
+ {
19144
+ name: "payload",
19145
+ type: "bytes",
19146
+ internalType: "bytes"
19147
+ }
19148
+ ],
19149
+ outputs: [
19150
+ {
19151
+ name: "hashes",
19152
+ type: "bytes32[]",
19153
+ internalType: "bytes32[]"
19154
+ }
19155
+ ],
19156
+ stateMutability: "pure"
19157
+ },
19158
+ {
19159
+ type: "function",
19160
+ name: "transactionBody",
19161
+ inputs: [
19162
+ {
19163
+ name: "request",
19164
+ type: "tuple",
19165
+ internalType: "struct HederaTransferRequest",
19166
+ components: [
19167
+ {
19168
+ name: "payerNum",
19169
+ type: "uint64",
19170
+ internalType: "uint64"
19171
+ },
19172
+ {
19173
+ name: "receiverNum",
19174
+ type: "uint64",
19175
+ internalType: "uint64"
19176
+ },
19177
+ {
19178
+ name: "amount",
19179
+ type: "uint64",
19180
+ internalType: "uint64"
19181
+ },
19182
+ {
19183
+ name: "tokenNum",
19184
+ type: "uint64",
19185
+ internalType: "uint64"
19186
+ },
19187
+ {
19188
+ name: "nodeAccountNum",
19189
+ type: "uint64",
19190
+ internalType: "uint64"
19191
+ },
19192
+ {
19193
+ name: "validStartSeconds",
19194
+ type: "uint64",
19195
+ internalType: "uint64"
19196
+ },
19197
+ {
19198
+ name: "validStartNanos",
19199
+ type: "uint32",
19200
+ internalType: "uint32"
19201
+ },
19202
+ {
19203
+ name: "validDurationSeconds",
19204
+ type: "uint32",
19205
+ internalType: "uint32"
19206
+ },
19207
+ {
19208
+ name: "maxTransactionFee",
19209
+ type: "uint64",
19210
+ internalType: "uint64"
19211
+ }
19212
+ ]
19213
+ }
19214
+ ],
19215
+ outputs: [
19216
+ {
19217
+ name: "",
19218
+ type: "bytes",
19219
+ internalType: "bytes"
19220
+ }
19221
+ ],
19222
+ stateMutability: "pure"
19223
+ },
19224
+ {
19225
+ type: "error",
19226
+ name: "AmountExceedsMax",
19227
+ inputs: [
19228
+ {
19229
+ name: "amount",
19230
+ type: "uint256",
19231
+ internalType: "uint256"
19232
+ },
19233
+ {
19234
+ name: "maxAmount",
19235
+ type: "uint256",
19236
+ internalType: "uint256"
19237
+ }
19238
+ ]
19239
+ },
19240
+ {
19241
+ type: "error",
19242
+ name: "EntityNumExceedsMax",
19243
+ inputs: [
19244
+ {
19245
+ name: "num",
19246
+ type: "uint64",
19247
+ internalType: "uint64"
19248
+ }
19249
+ ]
19250
+ },
19251
+ {
19252
+ type: "error",
19253
+ name: "FeeExceedsMaxFee",
19254
+ inputs: [
19255
+ {
19256
+ name: "fee",
19257
+ type: "uint64",
19258
+ internalType: "uint64"
19259
+ },
19260
+ {
19261
+ name: "maxFee",
19262
+ type: "uint64",
19263
+ internalType: "uint64"
19264
+ }
19265
+ ]
19266
+ },
19267
+ {
19268
+ type: "error",
19269
+ name: "FeeExceedsPaidGas",
19270
+ inputs: [
19271
+ {
19272
+ name: "fee",
19273
+ type: "uint64",
19274
+ internalType: "uint64"
19275
+ },
19276
+ {
19277
+ name: "paidAmount",
19278
+ type: "uint256",
19279
+ internalType: "uint256"
19280
+ }
19281
+ ]
19282
+ },
19283
+ {
19284
+ type: "error",
19285
+ name: "FieldNumberTooLarge",
19286
+ inputs: [
19287
+ {
19288
+ name: "fieldNumber",
19289
+ type: "uint256",
19290
+ internalType: "uint256"
19291
+ }
19292
+ ]
19293
+ },
19294
+ {
19295
+ type: "error",
19296
+ name: "GasNotPaid",
19297
+ inputs: [
19298
+ {
19299
+ name: "withdrawParamsHash",
19300
+ type: "bytes32",
19301
+ internalType: "bytes32"
19302
+ }
19303
+ ]
19304
+ },
19305
+ {
19306
+ type: "error",
19307
+ name: "InvalidAccount",
19308
+ inputs: [
19309
+ {
19310
+ name: "accountNum",
19311
+ type: "uint64",
19312
+ internalType: "uint64"
19313
+ }
19314
+ ]
19315
+ },
19316
+ {
19317
+ type: "error",
19318
+ name: "InvalidAmount",
19319
+ inputs: [
19320
+ {
19321
+ name: "amount",
19322
+ type: "uint256",
19323
+ internalType: "uint256"
19324
+ }
19325
+ ]
19326
+ },
19327
+ {
19328
+ type: "error",
19329
+ name: "InvalidCurrencyLength",
19330
+ inputs: [
19331
+ {
19332
+ name: "length",
19333
+ type: "uint256",
19334
+ internalType: "uint256"
19335
+ }
19336
+ ]
19337
+ },
19338
+ {
19339
+ type: "error",
19340
+ name: "InvalidDepositoryLength",
19341
+ inputs: [
19342
+ {
19343
+ name: "length",
19344
+ type: "uint256",
19345
+ internalType: "uint256"
19346
+ }
19347
+ ]
19348
+ },
19349
+ {
19350
+ type: "error",
19351
+ name: "InvalidReceiverLength",
19352
+ inputs: [
19353
+ {
19354
+ name: "length",
19355
+ type: "uint256",
19356
+ internalType: "uint256"
19357
+ }
19358
+ ]
19359
+ },
19360
+ {
19361
+ type: "error",
19362
+ name: "InvalidTokenNum",
19363
+ inputs: [
19364
+ {
19365
+ name: "tokenNum",
19366
+ type: "uint64",
19367
+ internalType: "uint64"
19368
+ }
19369
+ ]
19370
+ },
19371
+ {
19372
+ type: "error",
19373
+ name: "InvalidValidDuration",
19374
+ inputs: [
19375
+ {
19376
+ name: "validDurationSeconds",
19377
+ type: "uint32",
19378
+ internalType: "uint32"
19379
+ }
19380
+ ]
19381
+ },
19382
+ {
19383
+ type: "error",
19384
+ name: "InvalidValidStartNanos",
19385
+ inputs: [
19386
+ {
19387
+ name: "nanos",
19388
+ type: "uint32",
19389
+ internalType: "uint32"
19390
+ }
19391
+ ]
19392
+ },
19393
+ {
19394
+ type: "error",
19395
+ name: "NotAnAccountId",
19396
+ inputs: [
19397
+ {
19398
+ name: "address_",
19399
+ type: "bytes20",
19400
+ internalType: "bytes20"
19401
+ }
19402
+ ]
19403
+ },
19404
+ {
19405
+ type: "error",
19406
+ name: "ReceiverIsPayer",
19407
+ inputs: [
19408
+ {
19409
+ name: "accountNum",
19410
+ type: "uint64",
19411
+ internalType: "uint64"
19412
+ }
19413
+ ]
19414
+ },
19415
+ {
19416
+ type: "error",
19417
+ name: "TransfersDoNotNetToZero",
19418
+ inputs: []
19419
+ },
19420
+ {
19421
+ type: "error",
19422
+ name: "UnsupportedCurrency",
19423
+ inputs: [
19424
+ {
19425
+ name: "tokenNum",
19426
+ type: "uint64",
19427
+ internalType: "uint64"
19428
+ }
19429
+ ]
19430
+ }
19431
+ ];
19432
+
18943
19433
  // src/abis/payload-builders/HyperliquidVmPayloadBuilder.sol/HyperliquidVmPayloadBuilder.json
18944
19434
  var HyperliquidVmPayloadBuilder_default = [
18945
19435
  {
@@ -19875,6 +20365,21 @@ var LighterVmPayloadBuilder_default = [
19875
20365
  }
19876
20366
  ];
19877
20367
 
20368
+ // src/abis/payload-builders/Protobuf.sol/Protobuf.json
20369
+ var Protobuf_default = [
20370
+ {
20371
+ type: "error",
20372
+ name: "FieldNumberTooLarge",
20373
+ inputs: [
20374
+ {
20375
+ name: "fieldNumber",
20376
+ type: "uint256",
20377
+ internalType: "uint256"
20378
+ }
20379
+ ]
20380
+ }
20381
+ ];
20382
+
19878
20383
  // src/abis/payload-builders/Sha512.sol/Sha512.json
19879
20384
  var Sha512_default = [];
19880
20385
 
@@ -28362,6 +28867,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
28362
28867
  GasPaidPayloadBuilder,
28363
28868
  GatewayEthereumVmDestinationPayloadBuilder,
28364
28869
  GatewayVmPayloadBuilder,
28870
+ HederaVmPayloadBuilder,
28365
28871
  HyperliquidVmPayloadBuilder,
28366
28872
  IBidAskOracle,
28367
28873
  IBitcoinDepositSweepBuilder,
@@ -28399,6 +28905,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
28399
28905
  PoolDrawResolver,
28400
28906
  PoolResolverBase,
28401
28907
  PriceOraclePrecompile,
28908
+ Protobuf,
28402
28909
  RelayAllocator,
28403
28910
  RelayAmountRateLimiter,
28404
28911
  RelayBpsFeeCalculator,