@relay-protocol/settlement-abis 2.0.9 → 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.d.mts +477 -1
- package/dist/index.d.ts +477 -1
- package/dist/index.js +475 -0
- package/dist/index.mjs +473 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18851,6 +18851,462 @@ var GatewayVmPayloadBuilder_default = [
|
|
|
18851
18851
|
}
|
|
18852
18852
|
];
|
|
18853
18853
|
|
|
18854
|
+
// src/abis/payload-builders/HederaVmPayloadBuilder.sol/HederaVmPayloadBuilder.json
|
|
18855
|
+
var HederaVmPayloadBuilder_default = [
|
|
18856
|
+
{
|
|
18857
|
+
type: "constructor",
|
|
18858
|
+
inputs: [
|
|
18859
|
+
{
|
|
18860
|
+
name: "tokenNum",
|
|
18861
|
+
type: "uint64",
|
|
18862
|
+
internalType: "uint64"
|
|
18863
|
+
},
|
|
18864
|
+
{
|
|
18865
|
+
name: "gasPayer",
|
|
18866
|
+
type: "address",
|
|
18867
|
+
internalType: "address"
|
|
18868
|
+
}
|
|
18869
|
+
],
|
|
18870
|
+
stateMutability: "nonpayable"
|
|
18871
|
+
},
|
|
18872
|
+
{
|
|
18873
|
+
type: "function",
|
|
18874
|
+
name: "GAS_PAYER",
|
|
18875
|
+
inputs: [],
|
|
18876
|
+
outputs: [
|
|
18877
|
+
{
|
|
18878
|
+
name: "",
|
|
18879
|
+
type: "address",
|
|
18880
|
+
internalType: "address"
|
|
18881
|
+
}
|
|
18882
|
+
],
|
|
18883
|
+
stateMutability: "view"
|
|
18884
|
+
},
|
|
18885
|
+
{
|
|
18886
|
+
type: "function",
|
|
18887
|
+
name: "MAX_FEE",
|
|
18888
|
+
inputs: [],
|
|
18889
|
+
outputs: [
|
|
18890
|
+
{
|
|
18891
|
+
name: "",
|
|
18892
|
+
type: "uint64",
|
|
18893
|
+
internalType: "uint64"
|
|
18894
|
+
}
|
|
18895
|
+
],
|
|
18896
|
+
stateMutability: "view"
|
|
18897
|
+
},
|
|
18898
|
+
{
|
|
18899
|
+
type: "function",
|
|
18900
|
+
name: "MAX_VALID_DURATION_SECONDS",
|
|
18901
|
+
inputs: [],
|
|
18902
|
+
outputs: [
|
|
18903
|
+
{
|
|
18904
|
+
name: "",
|
|
18905
|
+
type: "uint32",
|
|
18906
|
+
internalType: "uint32"
|
|
18907
|
+
}
|
|
18908
|
+
],
|
|
18909
|
+
stateMutability: "view"
|
|
18910
|
+
},
|
|
18911
|
+
{
|
|
18912
|
+
type: "function",
|
|
18913
|
+
name: "TOKEN_NUM",
|
|
18914
|
+
inputs: [],
|
|
18915
|
+
outputs: [
|
|
18916
|
+
{
|
|
18917
|
+
name: "",
|
|
18918
|
+
type: "uint64",
|
|
18919
|
+
internalType: "uint64"
|
|
18920
|
+
}
|
|
18921
|
+
],
|
|
18922
|
+
stateMutability: "view"
|
|
18923
|
+
},
|
|
18924
|
+
{
|
|
18925
|
+
type: "function",
|
|
18926
|
+
name: "buildPayload",
|
|
18927
|
+
inputs: [
|
|
18928
|
+
{
|
|
18929
|
+
name: "chainId",
|
|
18930
|
+
type: "string",
|
|
18931
|
+
internalType: "string"
|
|
18932
|
+
},
|
|
18933
|
+
{
|
|
18934
|
+
name: "depository",
|
|
18935
|
+
type: "bytes",
|
|
18936
|
+
internalType: "bytes"
|
|
18937
|
+
},
|
|
18938
|
+
{
|
|
18939
|
+
name: "params",
|
|
18940
|
+
type: "tuple",
|
|
18941
|
+
internalType: "struct BuildPayloadParams",
|
|
18942
|
+
components: [
|
|
18943
|
+
{
|
|
18944
|
+
name: "currency",
|
|
18945
|
+
type: "bytes",
|
|
18946
|
+
internalType: "bytes"
|
|
18947
|
+
},
|
|
18948
|
+
{
|
|
18949
|
+
name: "amount",
|
|
18950
|
+
type: "uint256",
|
|
18951
|
+
internalType: "uint256"
|
|
18952
|
+
},
|
|
18953
|
+
{
|
|
18954
|
+
name: "receiver",
|
|
18955
|
+
type: "bytes",
|
|
18956
|
+
internalType: "bytes"
|
|
18957
|
+
},
|
|
18958
|
+
{
|
|
18959
|
+
name: "nonce",
|
|
18960
|
+
type: "uint256",
|
|
18961
|
+
internalType: "uint256"
|
|
18962
|
+
},
|
|
18963
|
+
{
|
|
18964
|
+
name: "data",
|
|
18965
|
+
type: "bytes",
|
|
18966
|
+
internalType: "bytes"
|
|
18967
|
+
}
|
|
18968
|
+
]
|
|
18969
|
+
}
|
|
18970
|
+
],
|
|
18971
|
+
outputs: [
|
|
18972
|
+
{
|
|
18973
|
+
name: "payload",
|
|
18974
|
+
type: "bytes",
|
|
18975
|
+
internalType: "bytes"
|
|
18976
|
+
}
|
|
18977
|
+
],
|
|
18978
|
+
stateMutability: "view"
|
|
18979
|
+
},
|
|
18980
|
+
{
|
|
18981
|
+
type: "function",
|
|
18982
|
+
name: "curve",
|
|
18983
|
+
inputs: [],
|
|
18984
|
+
outputs: [
|
|
18985
|
+
{
|
|
18986
|
+
name: "name",
|
|
18987
|
+
type: "string",
|
|
18988
|
+
internalType: "string"
|
|
18989
|
+
}
|
|
18990
|
+
],
|
|
18991
|
+
stateMutability: "pure"
|
|
18992
|
+
},
|
|
18993
|
+
{
|
|
18994
|
+
type: "function",
|
|
18995
|
+
name: "family",
|
|
18996
|
+
inputs: [],
|
|
18997
|
+
outputs: [
|
|
18998
|
+
{
|
|
18999
|
+
name: "name",
|
|
19000
|
+
type: "string",
|
|
19001
|
+
internalType: "string"
|
|
19002
|
+
}
|
|
19003
|
+
],
|
|
19004
|
+
stateMutability: "pure"
|
|
19005
|
+
},
|
|
19006
|
+
{
|
|
19007
|
+
type: "function",
|
|
19008
|
+
name: "hashesToSign",
|
|
19009
|
+
inputs: [
|
|
19010
|
+
{
|
|
19011
|
+
name: "",
|
|
19012
|
+
type: "string",
|
|
19013
|
+
internalType: "string"
|
|
19014
|
+
},
|
|
19015
|
+
{
|
|
19016
|
+
name: "",
|
|
19017
|
+
type: "bytes",
|
|
19018
|
+
internalType: "bytes"
|
|
19019
|
+
},
|
|
19020
|
+
{
|
|
19021
|
+
name: "payload",
|
|
19022
|
+
type: "bytes",
|
|
19023
|
+
internalType: "bytes"
|
|
19024
|
+
}
|
|
19025
|
+
],
|
|
19026
|
+
outputs: [
|
|
19027
|
+
{
|
|
19028
|
+
name: "hashes",
|
|
19029
|
+
type: "bytes32[]",
|
|
19030
|
+
internalType: "bytes32[]"
|
|
19031
|
+
}
|
|
19032
|
+
],
|
|
19033
|
+
stateMutability: "pure"
|
|
19034
|
+
},
|
|
19035
|
+
{
|
|
19036
|
+
type: "function",
|
|
19037
|
+
name: "transactionBody",
|
|
19038
|
+
inputs: [
|
|
19039
|
+
{
|
|
19040
|
+
name: "request",
|
|
19041
|
+
type: "tuple",
|
|
19042
|
+
internalType: "struct HederaTransferRequest",
|
|
19043
|
+
components: [
|
|
19044
|
+
{
|
|
19045
|
+
name: "payerNum",
|
|
19046
|
+
type: "uint64",
|
|
19047
|
+
internalType: "uint64"
|
|
19048
|
+
},
|
|
19049
|
+
{
|
|
19050
|
+
name: "receiverNum",
|
|
19051
|
+
type: "uint64",
|
|
19052
|
+
internalType: "uint64"
|
|
19053
|
+
},
|
|
19054
|
+
{
|
|
19055
|
+
name: "amount",
|
|
19056
|
+
type: "uint64",
|
|
19057
|
+
internalType: "uint64"
|
|
19058
|
+
},
|
|
19059
|
+
{
|
|
19060
|
+
name: "tokenNum",
|
|
19061
|
+
type: "uint64",
|
|
19062
|
+
internalType: "uint64"
|
|
19063
|
+
},
|
|
19064
|
+
{
|
|
19065
|
+
name: "nodeAccountNum",
|
|
19066
|
+
type: "uint64",
|
|
19067
|
+
internalType: "uint64"
|
|
19068
|
+
},
|
|
19069
|
+
{
|
|
19070
|
+
name: "validStartSeconds",
|
|
19071
|
+
type: "uint64",
|
|
19072
|
+
internalType: "uint64"
|
|
19073
|
+
},
|
|
19074
|
+
{
|
|
19075
|
+
name: "validStartNanos",
|
|
19076
|
+
type: "uint32",
|
|
19077
|
+
internalType: "uint32"
|
|
19078
|
+
},
|
|
19079
|
+
{
|
|
19080
|
+
name: "validDurationSeconds",
|
|
19081
|
+
type: "uint32",
|
|
19082
|
+
internalType: "uint32"
|
|
19083
|
+
},
|
|
19084
|
+
{
|
|
19085
|
+
name: "maxTransactionFee",
|
|
19086
|
+
type: "uint64",
|
|
19087
|
+
internalType: "uint64"
|
|
19088
|
+
}
|
|
19089
|
+
]
|
|
19090
|
+
}
|
|
19091
|
+
],
|
|
19092
|
+
outputs: [
|
|
19093
|
+
{
|
|
19094
|
+
name: "",
|
|
19095
|
+
type: "bytes",
|
|
19096
|
+
internalType: "bytes"
|
|
19097
|
+
}
|
|
19098
|
+
],
|
|
19099
|
+
stateMutability: "pure"
|
|
19100
|
+
},
|
|
19101
|
+
{
|
|
19102
|
+
type: "error",
|
|
19103
|
+
name: "AmountExceedsMax",
|
|
19104
|
+
inputs: [
|
|
19105
|
+
{
|
|
19106
|
+
name: "amount",
|
|
19107
|
+
type: "uint256",
|
|
19108
|
+
internalType: "uint256"
|
|
19109
|
+
},
|
|
19110
|
+
{
|
|
19111
|
+
name: "maxAmount",
|
|
19112
|
+
type: "uint256",
|
|
19113
|
+
internalType: "uint256"
|
|
19114
|
+
}
|
|
19115
|
+
]
|
|
19116
|
+
},
|
|
19117
|
+
{
|
|
19118
|
+
type: "error",
|
|
19119
|
+
name: "EntityNumExceedsMax",
|
|
19120
|
+
inputs: [
|
|
19121
|
+
{
|
|
19122
|
+
name: "num",
|
|
19123
|
+
type: "uint64",
|
|
19124
|
+
internalType: "uint64"
|
|
19125
|
+
}
|
|
19126
|
+
]
|
|
19127
|
+
},
|
|
19128
|
+
{
|
|
19129
|
+
type: "error",
|
|
19130
|
+
name: "FeeExceedsMaxFee",
|
|
19131
|
+
inputs: [
|
|
19132
|
+
{
|
|
19133
|
+
name: "fee",
|
|
19134
|
+
type: "uint64",
|
|
19135
|
+
internalType: "uint64"
|
|
19136
|
+
},
|
|
19137
|
+
{
|
|
19138
|
+
name: "maxFee",
|
|
19139
|
+
type: "uint64",
|
|
19140
|
+
internalType: "uint64"
|
|
19141
|
+
}
|
|
19142
|
+
]
|
|
19143
|
+
},
|
|
19144
|
+
{
|
|
19145
|
+
type: "error",
|
|
19146
|
+
name: "FeeExceedsPaidGas",
|
|
19147
|
+
inputs: [
|
|
19148
|
+
{
|
|
19149
|
+
name: "fee",
|
|
19150
|
+
type: "uint64",
|
|
19151
|
+
internalType: "uint64"
|
|
19152
|
+
},
|
|
19153
|
+
{
|
|
19154
|
+
name: "paidAmount",
|
|
19155
|
+
type: "uint256",
|
|
19156
|
+
internalType: "uint256"
|
|
19157
|
+
}
|
|
19158
|
+
]
|
|
19159
|
+
},
|
|
19160
|
+
{
|
|
19161
|
+
type: "error",
|
|
19162
|
+
name: "FieldNumberTooLarge",
|
|
19163
|
+
inputs: [
|
|
19164
|
+
{
|
|
19165
|
+
name: "fieldNumber",
|
|
19166
|
+
type: "uint256",
|
|
19167
|
+
internalType: "uint256"
|
|
19168
|
+
}
|
|
19169
|
+
]
|
|
19170
|
+
},
|
|
19171
|
+
{
|
|
19172
|
+
type: "error",
|
|
19173
|
+
name: "GasNotPaid",
|
|
19174
|
+
inputs: [
|
|
19175
|
+
{
|
|
19176
|
+
name: "withdrawParamsHash",
|
|
19177
|
+
type: "bytes32",
|
|
19178
|
+
internalType: "bytes32"
|
|
19179
|
+
}
|
|
19180
|
+
]
|
|
19181
|
+
},
|
|
19182
|
+
{
|
|
19183
|
+
type: "error",
|
|
19184
|
+
name: "InvalidAccount",
|
|
19185
|
+
inputs: [
|
|
19186
|
+
{
|
|
19187
|
+
name: "accountNum",
|
|
19188
|
+
type: "uint64",
|
|
19189
|
+
internalType: "uint64"
|
|
19190
|
+
}
|
|
19191
|
+
]
|
|
19192
|
+
},
|
|
19193
|
+
{
|
|
19194
|
+
type: "error",
|
|
19195
|
+
name: "InvalidAmount",
|
|
19196
|
+
inputs: [
|
|
19197
|
+
{
|
|
19198
|
+
name: "amount",
|
|
19199
|
+
type: "uint256",
|
|
19200
|
+
internalType: "uint256"
|
|
19201
|
+
}
|
|
19202
|
+
]
|
|
19203
|
+
},
|
|
19204
|
+
{
|
|
19205
|
+
type: "error",
|
|
19206
|
+
name: "InvalidCurrencyLength",
|
|
19207
|
+
inputs: [
|
|
19208
|
+
{
|
|
19209
|
+
name: "length",
|
|
19210
|
+
type: "uint256",
|
|
19211
|
+
internalType: "uint256"
|
|
19212
|
+
}
|
|
19213
|
+
]
|
|
19214
|
+
},
|
|
19215
|
+
{
|
|
19216
|
+
type: "error",
|
|
19217
|
+
name: "InvalidDepositoryLength",
|
|
19218
|
+
inputs: [
|
|
19219
|
+
{
|
|
19220
|
+
name: "length",
|
|
19221
|
+
type: "uint256",
|
|
19222
|
+
internalType: "uint256"
|
|
19223
|
+
}
|
|
19224
|
+
]
|
|
19225
|
+
},
|
|
19226
|
+
{
|
|
19227
|
+
type: "error",
|
|
19228
|
+
name: "InvalidReceiverLength",
|
|
19229
|
+
inputs: [
|
|
19230
|
+
{
|
|
19231
|
+
name: "length",
|
|
19232
|
+
type: "uint256",
|
|
19233
|
+
internalType: "uint256"
|
|
19234
|
+
}
|
|
19235
|
+
]
|
|
19236
|
+
},
|
|
19237
|
+
{
|
|
19238
|
+
type: "error",
|
|
19239
|
+
name: "InvalidTokenNum",
|
|
19240
|
+
inputs: [
|
|
19241
|
+
{
|
|
19242
|
+
name: "tokenNum",
|
|
19243
|
+
type: "uint64",
|
|
19244
|
+
internalType: "uint64"
|
|
19245
|
+
}
|
|
19246
|
+
]
|
|
19247
|
+
},
|
|
19248
|
+
{
|
|
19249
|
+
type: "error",
|
|
19250
|
+
name: "InvalidValidDuration",
|
|
19251
|
+
inputs: [
|
|
19252
|
+
{
|
|
19253
|
+
name: "validDurationSeconds",
|
|
19254
|
+
type: "uint32",
|
|
19255
|
+
internalType: "uint32"
|
|
19256
|
+
}
|
|
19257
|
+
]
|
|
19258
|
+
},
|
|
19259
|
+
{
|
|
19260
|
+
type: "error",
|
|
19261
|
+
name: "InvalidValidStartNanos",
|
|
19262
|
+
inputs: [
|
|
19263
|
+
{
|
|
19264
|
+
name: "nanos",
|
|
19265
|
+
type: "uint32",
|
|
19266
|
+
internalType: "uint32"
|
|
19267
|
+
}
|
|
19268
|
+
]
|
|
19269
|
+
},
|
|
19270
|
+
{
|
|
19271
|
+
type: "error",
|
|
19272
|
+
name: "NotAnAccountId",
|
|
19273
|
+
inputs: [
|
|
19274
|
+
{
|
|
19275
|
+
name: "address_",
|
|
19276
|
+
type: "bytes20",
|
|
19277
|
+
internalType: "bytes20"
|
|
19278
|
+
}
|
|
19279
|
+
]
|
|
19280
|
+
},
|
|
19281
|
+
{
|
|
19282
|
+
type: "error",
|
|
19283
|
+
name: "ReceiverIsPayer",
|
|
19284
|
+
inputs: [
|
|
19285
|
+
{
|
|
19286
|
+
name: "accountNum",
|
|
19287
|
+
type: "uint64",
|
|
19288
|
+
internalType: "uint64"
|
|
19289
|
+
}
|
|
19290
|
+
]
|
|
19291
|
+
},
|
|
19292
|
+
{
|
|
19293
|
+
type: "error",
|
|
19294
|
+
name: "TransfersDoNotNetToZero",
|
|
19295
|
+
inputs: []
|
|
19296
|
+
},
|
|
19297
|
+
{
|
|
19298
|
+
type: "error",
|
|
19299
|
+
name: "UnsupportedCurrency",
|
|
19300
|
+
inputs: [
|
|
19301
|
+
{
|
|
19302
|
+
name: "tokenNum",
|
|
19303
|
+
type: "uint64",
|
|
19304
|
+
internalType: "uint64"
|
|
19305
|
+
}
|
|
19306
|
+
]
|
|
19307
|
+
}
|
|
19308
|
+
];
|
|
19309
|
+
|
|
18854
19310
|
// src/abis/payload-builders/HyperliquidVmPayloadBuilder.sol/HyperliquidVmPayloadBuilder.json
|
|
18855
19311
|
var HyperliquidVmPayloadBuilder_default = [
|
|
18856
19312
|
{
|
|
@@ -19786,6 +20242,21 @@ var LighterVmPayloadBuilder_default = [
|
|
|
19786
20242
|
}
|
|
19787
20243
|
];
|
|
19788
20244
|
|
|
20245
|
+
// src/abis/payload-builders/Protobuf.sol/Protobuf.json
|
|
20246
|
+
var Protobuf_default = [
|
|
20247
|
+
{
|
|
20248
|
+
type: "error",
|
|
20249
|
+
name: "FieldNumberTooLarge",
|
|
20250
|
+
inputs: [
|
|
20251
|
+
{
|
|
20252
|
+
name: "fieldNumber",
|
|
20253
|
+
type: "uint256",
|
|
20254
|
+
internalType: "uint256"
|
|
20255
|
+
}
|
|
20256
|
+
]
|
|
20257
|
+
}
|
|
20258
|
+
];
|
|
20259
|
+
|
|
19789
20260
|
// src/abis/payload-builders/Sha512.sol/Sha512.json
|
|
19790
20261
|
var Sha512_default = [];
|
|
19791
20262
|
|
|
@@ -28272,6 +28743,7 @@ export {
|
|
|
28272
28743
|
GasPaidPayloadBuilder_default as GasPaidPayloadBuilder,
|
|
28273
28744
|
GatewayEthereumVmDestinationPayloadBuilder_default as GatewayEthereumVmDestinationPayloadBuilder,
|
|
28274
28745
|
GatewayVmPayloadBuilder_default as GatewayVmPayloadBuilder,
|
|
28746
|
+
HederaVmPayloadBuilder_default as HederaVmPayloadBuilder,
|
|
28275
28747
|
HyperliquidVmPayloadBuilder_default as HyperliquidVmPayloadBuilder,
|
|
28276
28748
|
IBidAskOracle_default as IBidAskOracle,
|
|
28277
28749
|
IBitcoinDepositSweepBuilder_default as IBitcoinDepositSweepBuilder,
|
|
@@ -28309,6 +28781,7 @@ export {
|
|
|
28309
28781
|
PoolDrawResolver_default as PoolDrawResolver,
|
|
28310
28782
|
PoolResolverBase_default as PoolResolverBase,
|
|
28311
28783
|
PriceOraclePrecompile_default as PriceOraclePrecompile,
|
|
28784
|
+
Protobuf_default as Protobuf,
|
|
28312
28785
|
RelayAllocator_default as RelayAllocator,
|
|
28313
28786
|
RelayAmountRateLimiter_default as RelayAmountRateLimiter,
|
|
28314
28787
|
RelayBpsFeeCalculator_default as RelayBpsFeeCalculator,
|