@relay-protocol/settlement-abis 2.0.18 → 2.0.19

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
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  AuroraSdk: () => AuroraSdk_default,
24
24
  AuroraXccUtils: () => AuroraXccUtils_default,
25
+ Base58: () => Base58_default,
25
26
  BasicCallResolver: () => BasicCallResolver_default,
26
27
  BasicPricingOracle: () => BasicPricingOracle_default,
27
28
  BitcoinVmPayloadBuilder: () => BitcoinVmPayloadBuilder_default,
@@ -41,6 +42,7 @@ __export(index_exports, {
41
42
  GatewayEthereumVmDestinationPayloadBuilder: () => GatewayEthereumVmDestinationPayloadBuilder_default,
42
43
  GatewayVmPayloadBuilder: () => GatewayVmPayloadBuilder_default,
43
44
  HederaVmPayloadBuilder: () => HederaVmPayloadBuilder_default,
45
+ HubAddressCodec: () => HubAddressCodec_default,
44
46
  HyperliquidVmPayloadBuilder: () => HyperliquidVmPayloadBuilder_default,
45
47
  IBidAskOracle: () => IBidAskOracle_default,
46
48
  ICallResolver: () => ICallResolver_default,
@@ -69,6 +71,7 @@ __export(index_exports, {
69
71
  MockStorkFastVerifier: () => MockStorkFastVerifier_default,
70
72
  MockVerifierProxy: () => MockVerifierProxy_default,
71
73
  MockWNEAR: () => MockWNEAR_default,
74
+ Multicall3: () => Multicall3_default,
72
75
  MulticallRouter: () => MulticallRouter_default,
73
76
  MyToken: () => MyToken_default,
74
77
  PoolDrawResolver: () => PoolDrawResolver_default,
@@ -86,6 +89,7 @@ __export(index_exports, {
86
89
  RelayGatewayDepository: () => RelayGatewayDepository_default,
87
90
  RelayGenericMapping: () => RelayGenericMapping_default,
88
91
  RelayHub: () => RelayHub_default,
92
+ RelayHubBalanceViewer: () => RelayHubBalanceViewer_default,
89
93
  RelayMultisigSigner: () => RelayMultisigSigner_default,
90
94
  RelayMultisigSignerHarness: () => RelayMultisigSignerHarness_default,
91
95
  RelayOracle: () => RelayOracle,
@@ -925,6 +929,485 @@ var IHub_default = [
925
929
  }
926
930
  ];
927
931
 
932
+ // src/abis/HubAddressCodec.sol/HubAddressCodec.json
933
+ var HubAddressCodec_default = [
934
+ {
935
+ type: "error",
936
+ name: "InvalidBase58Checksum",
937
+ inputs: [
938
+ {
939
+ name: "addr",
940
+ type: "string",
941
+ internalType: "string"
942
+ }
943
+ ]
944
+ },
945
+ {
946
+ type: "error",
947
+ name: "InvalidHexAddress",
948
+ inputs: [
949
+ {
950
+ name: "addr",
951
+ type: "string",
952
+ internalType: "string"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ type: "error",
958
+ name: "UnsupportedAddress",
959
+ inputs: [
960
+ {
961
+ name: "addr",
962
+ type: "string",
963
+ internalType: "string"
964
+ }
965
+ ]
966
+ }
967
+ ];
968
+
969
+ // src/abis/Multicall3.sol/Multicall3.json
970
+ var Multicall3_default = [
971
+ {
972
+ type: "function",
973
+ name: "aggregate",
974
+ inputs: [
975
+ {
976
+ name: "calls",
977
+ type: "tuple[]",
978
+ internalType: "struct Multicall3.Call[]",
979
+ components: [
980
+ {
981
+ name: "target",
982
+ type: "address",
983
+ internalType: "address"
984
+ },
985
+ {
986
+ name: "callData",
987
+ type: "bytes",
988
+ internalType: "bytes"
989
+ }
990
+ ]
991
+ }
992
+ ],
993
+ outputs: [
994
+ {
995
+ name: "blockNumber",
996
+ type: "uint256",
997
+ internalType: "uint256"
998
+ },
999
+ {
1000
+ name: "returnData",
1001
+ type: "bytes[]",
1002
+ internalType: "bytes[]"
1003
+ }
1004
+ ],
1005
+ stateMutability: "payable"
1006
+ },
1007
+ {
1008
+ type: "function",
1009
+ name: "aggregate3",
1010
+ inputs: [
1011
+ {
1012
+ name: "calls",
1013
+ type: "tuple[]",
1014
+ internalType: "struct Multicall3.Call3[]",
1015
+ components: [
1016
+ {
1017
+ name: "target",
1018
+ type: "address",
1019
+ internalType: "address"
1020
+ },
1021
+ {
1022
+ name: "allowFailure",
1023
+ type: "bool",
1024
+ internalType: "bool"
1025
+ },
1026
+ {
1027
+ name: "callData",
1028
+ type: "bytes",
1029
+ internalType: "bytes"
1030
+ }
1031
+ ]
1032
+ }
1033
+ ],
1034
+ outputs: [
1035
+ {
1036
+ name: "returnData",
1037
+ type: "tuple[]",
1038
+ internalType: "struct Multicall3.Result[]",
1039
+ components: [
1040
+ {
1041
+ name: "success",
1042
+ type: "bool",
1043
+ internalType: "bool"
1044
+ },
1045
+ {
1046
+ name: "returnData",
1047
+ type: "bytes",
1048
+ internalType: "bytes"
1049
+ }
1050
+ ]
1051
+ }
1052
+ ],
1053
+ stateMutability: "payable"
1054
+ },
1055
+ {
1056
+ type: "function",
1057
+ name: "aggregate3Value",
1058
+ inputs: [
1059
+ {
1060
+ name: "calls",
1061
+ type: "tuple[]",
1062
+ internalType: "struct Multicall3.Call3Value[]",
1063
+ components: [
1064
+ {
1065
+ name: "target",
1066
+ type: "address",
1067
+ internalType: "address"
1068
+ },
1069
+ {
1070
+ name: "allowFailure",
1071
+ type: "bool",
1072
+ internalType: "bool"
1073
+ },
1074
+ {
1075
+ name: "value",
1076
+ type: "uint256",
1077
+ internalType: "uint256"
1078
+ },
1079
+ {
1080
+ name: "callData",
1081
+ type: "bytes",
1082
+ internalType: "bytes"
1083
+ }
1084
+ ]
1085
+ }
1086
+ ],
1087
+ outputs: [
1088
+ {
1089
+ name: "returnData",
1090
+ type: "tuple[]",
1091
+ internalType: "struct Multicall3.Result[]",
1092
+ components: [
1093
+ {
1094
+ name: "success",
1095
+ type: "bool",
1096
+ internalType: "bool"
1097
+ },
1098
+ {
1099
+ name: "returnData",
1100
+ type: "bytes",
1101
+ internalType: "bytes"
1102
+ }
1103
+ ]
1104
+ }
1105
+ ],
1106
+ stateMutability: "payable"
1107
+ },
1108
+ {
1109
+ type: "function",
1110
+ name: "blockAndAggregate",
1111
+ inputs: [
1112
+ {
1113
+ name: "calls",
1114
+ type: "tuple[]",
1115
+ internalType: "struct Multicall3.Call[]",
1116
+ components: [
1117
+ {
1118
+ name: "target",
1119
+ type: "address",
1120
+ internalType: "address"
1121
+ },
1122
+ {
1123
+ name: "callData",
1124
+ type: "bytes",
1125
+ internalType: "bytes"
1126
+ }
1127
+ ]
1128
+ }
1129
+ ],
1130
+ outputs: [
1131
+ {
1132
+ name: "blockNumber",
1133
+ type: "uint256",
1134
+ internalType: "uint256"
1135
+ },
1136
+ {
1137
+ name: "blockHash",
1138
+ type: "bytes32",
1139
+ internalType: "bytes32"
1140
+ },
1141
+ {
1142
+ name: "returnData",
1143
+ type: "tuple[]",
1144
+ internalType: "struct Multicall3.Result[]",
1145
+ components: [
1146
+ {
1147
+ name: "success",
1148
+ type: "bool",
1149
+ internalType: "bool"
1150
+ },
1151
+ {
1152
+ name: "returnData",
1153
+ type: "bytes",
1154
+ internalType: "bytes"
1155
+ }
1156
+ ]
1157
+ }
1158
+ ],
1159
+ stateMutability: "payable"
1160
+ },
1161
+ {
1162
+ type: "function",
1163
+ name: "getBasefee",
1164
+ inputs: [],
1165
+ outputs: [
1166
+ {
1167
+ name: "basefee",
1168
+ type: "uint256",
1169
+ internalType: "uint256"
1170
+ }
1171
+ ],
1172
+ stateMutability: "view"
1173
+ },
1174
+ {
1175
+ type: "function",
1176
+ name: "getBlockHash",
1177
+ inputs: [
1178
+ {
1179
+ name: "blockNumber",
1180
+ type: "uint256",
1181
+ internalType: "uint256"
1182
+ }
1183
+ ],
1184
+ outputs: [
1185
+ {
1186
+ name: "blockHash",
1187
+ type: "bytes32",
1188
+ internalType: "bytes32"
1189
+ }
1190
+ ],
1191
+ stateMutability: "view"
1192
+ },
1193
+ {
1194
+ type: "function",
1195
+ name: "getBlockNumber",
1196
+ inputs: [],
1197
+ outputs: [
1198
+ {
1199
+ name: "blockNumber",
1200
+ type: "uint256",
1201
+ internalType: "uint256"
1202
+ }
1203
+ ],
1204
+ stateMutability: "view"
1205
+ },
1206
+ {
1207
+ type: "function",
1208
+ name: "getChainId",
1209
+ inputs: [],
1210
+ outputs: [
1211
+ {
1212
+ name: "chainId",
1213
+ type: "uint256",
1214
+ internalType: "uint256"
1215
+ }
1216
+ ],
1217
+ stateMutability: "view"
1218
+ },
1219
+ {
1220
+ type: "function",
1221
+ name: "getCurrentBlockCoinbase",
1222
+ inputs: [],
1223
+ outputs: [
1224
+ {
1225
+ name: "coinbase",
1226
+ type: "address",
1227
+ internalType: "address"
1228
+ }
1229
+ ],
1230
+ stateMutability: "view"
1231
+ },
1232
+ {
1233
+ type: "function",
1234
+ name: "getCurrentBlockDifficulty",
1235
+ inputs: [],
1236
+ outputs: [
1237
+ {
1238
+ name: "difficulty",
1239
+ type: "uint256",
1240
+ internalType: "uint256"
1241
+ }
1242
+ ],
1243
+ stateMutability: "view"
1244
+ },
1245
+ {
1246
+ type: "function",
1247
+ name: "getCurrentBlockGasLimit",
1248
+ inputs: [],
1249
+ outputs: [
1250
+ {
1251
+ name: "gaslimit",
1252
+ type: "uint256",
1253
+ internalType: "uint256"
1254
+ }
1255
+ ],
1256
+ stateMutability: "view"
1257
+ },
1258
+ {
1259
+ type: "function",
1260
+ name: "getCurrentBlockTimestamp",
1261
+ inputs: [],
1262
+ outputs: [
1263
+ {
1264
+ name: "timestamp",
1265
+ type: "uint256",
1266
+ internalType: "uint256"
1267
+ }
1268
+ ],
1269
+ stateMutability: "view"
1270
+ },
1271
+ {
1272
+ type: "function",
1273
+ name: "getEthBalance",
1274
+ inputs: [
1275
+ {
1276
+ name: "account",
1277
+ type: "address",
1278
+ internalType: "address"
1279
+ }
1280
+ ],
1281
+ outputs: [
1282
+ {
1283
+ name: "balance",
1284
+ type: "uint256",
1285
+ internalType: "uint256"
1286
+ }
1287
+ ],
1288
+ stateMutability: "view"
1289
+ },
1290
+ {
1291
+ type: "function",
1292
+ name: "getLastBlockHash",
1293
+ inputs: [],
1294
+ outputs: [
1295
+ {
1296
+ name: "blockHash",
1297
+ type: "bytes32",
1298
+ internalType: "bytes32"
1299
+ }
1300
+ ],
1301
+ stateMutability: "view"
1302
+ },
1303
+ {
1304
+ type: "function",
1305
+ name: "tryAggregate",
1306
+ inputs: [
1307
+ {
1308
+ name: "requireSuccess",
1309
+ type: "bool",
1310
+ internalType: "bool"
1311
+ },
1312
+ {
1313
+ name: "calls",
1314
+ type: "tuple[]",
1315
+ internalType: "struct Multicall3.Call[]",
1316
+ components: [
1317
+ {
1318
+ name: "target",
1319
+ type: "address",
1320
+ internalType: "address"
1321
+ },
1322
+ {
1323
+ name: "callData",
1324
+ type: "bytes",
1325
+ internalType: "bytes"
1326
+ }
1327
+ ]
1328
+ }
1329
+ ],
1330
+ outputs: [
1331
+ {
1332
+ name: "returnData",
1333
+ type: "tuple[]",
1334
+ internalType: "struct Multicall3.Result[]",
1335
+ components: [
1336
+ {
1337
+ name: "success",
1338
+ type: "bool",
1339
+ internalType: "bool"
1340
+ },
1341
+ {
1342
+ name: "returnData",
1343
+ type: "bytes",
1344
+ internalType: "bytes"
1345
+ }
1346
+ ]
1347
+ }
1348
+ ],
1349
+ stateMutability: "payable"
1350
+ },
1351
+ {
1352
+ type: "function",
1353
+ name: "tryBlockAndAggregate",
1354
+ inputs: [
1355
+ {
1356
+ name: "requireSuccess",
1357
+ type: "bool",
1358
+ internalType: "bool"
1359
+ },
1360
+ {
1361
+ name: "calls",
1362
+ type: "tuple[]",
1363
+ internalType: "struct Multicall3.Call[]",
1364
+ components: [
1365
+ {
1366
+ name: "target",
1367
+ type: "address",
1368
+ internalType: "address"
1369
+ },
1370
+ {
1371
+ name: "callData",
1372
+ type: "bytes",
1373
+ internalType: "bytes"
1374
+ }
1375
+ ]
1376
+ }
1377
+ ],
1378
+ outputs: [
1379
+ {
1380
+ name: "blockNumber",
1381
+ type: "uint256",
1382
+ internalType: "uint256"
1383
+ },
1384
+ {
1385
+ name: "blockHash",
1386
+ type: "bytes32",
1387
+ internalType: "bytes32"
1388
+ },
1389
+ {
1390
+ name: "returnData",
1391
+ type: "tuple[]",
1392
+ internalType: "struct Multicall3.Result[]",
1393
+ components: [
1394
+ {
1395
+ name: "success",
1396
+ type: "bool",
1397
+ internalType: "bool"
1398
+ },
1399
+ {
1400
+ name: "returnData",
1401
+ type: "bytes",
1402
+ internalType: "bytes"
1403
+ }
1404
+ ]
1405
+ }
1406
+ ],
1407
+ stateMutability: "payable"
1408
+ }
1409
+ ];
1410
+
928
1411
  // src/abis/RelayAllocator.sol/IPayloadBuilder.json
929
1412
  var IPayloadBuilder_default = [
930
1413
  {
@@ -4327,6 +4810,256 @@ var RelayHub_default = [
4327
4810
  }
4328
4811
  ];
4329
4812
 
4813
+ // src/abis/RelayHubBalanceViewer.sol/RelayHubBalanceViewer.json
4814
+ var RelayHubBalanceViewer_default = [
4815
+ {
4816
+ type: "constructor",
4817
+ inputs: [
4818
+ {
4819
+ name: "_hub",
4820
+ type: "address",
4821
+ internalType: "address"
4822
+ }
4823
+ ],
4824
+ stateMutability: "nonpayable"
4825
+ },
4826
+ {
4827
+ type: "function",
4828
+ name: "HUB",
4829
+ inputs: [],
4830
+ outputs: [
4831
+ {
4832
+ name: "",
4833
+ type: "address",
4834
+ internalType: "contract RelayHub"
4835
+ }
4836
+ ],
4837
+ stateMutability: "view"
4838
+ },
4839
+ {
4840
+ type: "function",
4841
+ name: "aliasOf",
4842
+ inputs: [
4843
+ {
4844
+ name: "chainId",
4845
+ type: "string",
4846
+ internalType: "string"
4847
+ },
4848
+ {
4849
+ name: "account",
4850
+ type: "string",
4851
+ internalType: "string"
4852
+ }
4853
+ ],
4854
+ outputs: [
4855
+ {
4856
+ name: "aliasAddress",
4857
+ type: "address",
4858
+ internalType: "address"
4859
+ }
4860
+ ],
4861
+ stateMutability: "pure"
4862
+ },
4863
+ {
4864
+ type: "function",
4865
+ name: "balanceOf",
4866
+ inputs: [
4867
+ {
4868
+ name: "chainId",
4869
+ type: "string",
4870
+ internalType: "string"
4871
+ },
4872
+ {
4873
+ name: "account",
4874
+ type: "string",
4875
+ internalType: "string"
4876
+ },
4877
+ {
4878
+ name: "token",
4879
+ type: "string",
4880
+ internalType: "string"
4881
+ }
4882
+ ],
4883
+ outputs: [
4884
+ {
4885
+ name: "aliasBalance",
4886
+ type: "uint256",
4887
+ internalType: "uint256"
4888
+ },
4889
+ {
4890
+ name: "accountBalance",
4891
+ type: "uint256",
4892
+ internalType: "uint256"
4893
+ }
4894
+ ],
4895
+ stateMutability: "view"
4896
+ },
4897
+ {
4898
+ type: "function",
4899
+ name: "balancesOf",
4900
+ inputs: [
4901
+ {
4902
+ name: "chainId",
4903
+ type: "string",
4904
+ internalType: "string"
4905
+ },
4906
+ {
4907
+ name: "account",
4908
+ type: "string",
4909
+ internalType: "string"
4910
+ },
4911
+ {
4912
+ name: "tokens",
4913
+ type: "string[]",
4914
+ internalType: "string[]"
4915
+ }
4916
+ ],
4917
+ outputs: [
4918
+ {
4919
+ name: "aliasBalances",
4920
+ type: "uint256[]",
4921
+ internalType: "uint256[]"
4922
+ },
4923
+ {
4924
+ name: "accountBalances",
4925
+ type: "uint256[]",
4926
+ internalType: "uint256[]"
4927
+ }
4928
+ ],
4929
+ stateMutability: "view"
4930
+ },
4931
+ {
4932
+ type: "function",
4933
+ name: "encodeAddress",
4934
+ inputs: [
4935
+ {
4936
+ name: "addr",
4937
+ type: "string",
4938
+ internalType: "string"
4939
+ }
4940
+ ],
4941
+ outputs: [
4942
+ {
4943
+ name: "encoded",
4944
+ type: "bytes",
4945
+ internalType: "bytes"
4946
+ }
4947
+ ],
4948
+ stateMutability: "pure"
4949
+ },
4950
+ {
4951
+ type: "function",
4952
+ name: "tokenIdOf",
4953
+ inputs: [
4954
+ {
4955
+ name: "chainId",
4956
+ type: "string",
4957
+ internalType: "string"
4958
+ },
4959
+ {
4960
+ name: "token",
4961
+ type: "string",
4962
+ internalType: "string"
4963
+ }
4964
+ ],
4965
+ outputs: [
4966
+ {
4967
+ name: "tokenId",
4968
+ type: "uint256",
4969
+ internalType: "uint256"
4970
+ }
4971
+ ],
4972
+ stateMutability: "pure"
4973
+ },
4974
+ {
4975
+ type: "function",
4976
+ name: "tokenInfo",
4977
+ inputs: [
4978
+ {
4979
+ name: "chainId",
4980
+ type: "string",
4981
+ internalType: "string"
4982
+ },
4983
+ {
4984
+ name: "token",
4985
+ type: "string",
4986
+ internalType: "string"
4987
+ }
4988
+ ],
4989
+ outputs: [
4990
+ {
4991
+ name: "tokenId",
4992
+ type: "uint256",
4993
+ internalType: "uint256"
4994
+ },
4995
+ {
4996
+ name: "erc20View",
4997
+ type: "address",
4998
+ internalType: "address"
4999
+ },
5000
+ {
5001
+ name: "name",
5002
+ type: "string",
5003
+ internalType: "string"
5004
+ },
5005
+ {
5006
+ name: "symbol",
5007
+ type: "string",
5008
+ internalType: "string"
5009
+ },
5010
+ {
5011
+ name: "decimals",
5012
+ type: "uint8",
5013
+ internalType: "uint8"
5014
+ },
5015
+ {
5016
+ name: "totalSupply",
5017
+ type: "uint256",
5018
+ internalType: "uint256"
5019
+ }
5020
+ ],
5021
+ stateMutability: "view"
5022
+ },
5023
+ {
5024
+ type: "error",
5025
+ name: "HubCannotBeZero",
5026
+ inputs: []
5027
+ },
5028
+ {
5029
+ type: "error",
5030
+ name: "InvalidBase58Checksum",
5031
+ inputs: [
5032
+ {
5033
+ name: "addr",
5034
+ type: "string",
5035
+ internalType: "string"
5036
+ }
5037
+ ]
5038
+ },
5039
+ {
5040
+ type: "error",
5041
+ name: "InvalidHexAddress",
5042
+ inputs: [
5043
+ {
5044
+ name: "addr",
5045
+ type: "string",
5046
+ internalType: "string"
5047
+ }
5048
+ ]
5049
+ },
5050
+ {
5051
+ type: "error",
5052
+ name: "UnsupportedAddress",
5053
+ inputs: [
5054
+ {
5055
+ name: "addr",
5056
+ type: "string",
5057
+ internalType: "string"
5058
+ }
5059
+ ]
5060
+ }
5061
+ ];
5062
+
4330
5063
  // src/abis/RelayMultisigSigner.sol/RelayMultisigSigner.json
4331
5064
  var RelayMultisigSigner_default = [
4332
5065
  {
@@ -23184,6 +23917,15 @@ var ERC20_default = [
23184
23917
  }
23185
23918
  ];
23186
23919
 
23920
+ // src/abis/solady/src/utils/Base58.sol/Base58.json
23921
+ var Base58_default = [
23922
+ {
23923
+ type: "error",
23924
+ name: "Base58DecodingError",
23925
+ inputs: []
23926
+ }
23927
+ ];
23928
+
23187
23929
  // src/abis/solady/src/utils/FixedPointMathLib.sol/FixedPointMathLib.json
23188
23930
  var FixedPointMathLib_default = [
23189
23931
  {
@@ -27405,6 +28147,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
27405
28147
  0 && (module.exports = {
27406
28148
  AuroraSdk,
27407
28149
  AuroraXccUtils,
28150
+ Base58,
27408
28151
  BasicCallResolver,
27409
28152
  BasicPricingOracle,
27410
28153
  BitcoinVmPayloadBuilder,
@@ -27424,6 +28167,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
27424
28167
  GatewayEthereumVmDestinationPayloadBuilder,
27425
28168
  GatewayVmPayloadBuilder,
27426
28169
  HederaVmPayloadBuilder,
28170
+ HubAddressCodec,
27427
28171
  HyperliquidVmPayloadBuilder,
27428
28172
  IBidAskOracle,
27429
28173
  ICallResolver,
@@ -27452,6 +28196,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
27452
28196
  MockStorkFastVerifier,
27453
28197
  MockVerifierProxy,
27454
28198
  MockWNEAR,
28199
+ Multicall3,
27455
28200
  MulticallRouter,
27456
28201
  MyToken,
27457
28202
  PoolDrawResolver,
@@ -27469,6 +28214,7 @@ var RelayOracle = mergeVersions(v1_default, v2_default);
27469
28214
  RelayGatewayDepository,
27470
28215
  RelayGenericMapping,
27471
28216
  RelayHub,
28217
+ RelayHubBalanceViewer,
27472
28218
  RelayMultisigSigner,
27473
28219
  RelayMultisigSignerHarness,
27474
28220
  RelayOracle,