@1delta/margin-fetcher 0.0.408 → 0.0.410

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.
@@ -0,0 +1,5 @@
1
+ export { ccipRequest, offchainLookup, offchainLookupAbiItem, offchainLookupSignature } from './chunk-YILYOOYB.js';
2
+ import './chunk-BYTNVMX7.js';
3
+ import './chunk-PR4QN5HX.js';
4
+ //# sourceMappingURL=ccip-VK5PCUV6.js.map
5
+ //# sourceMappingURL=ccip-VK5PCUV6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-5UG36BRY.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-VK5PCUV6.js"}
@@ -1092,6 +1092,194 @@ var batchGatewayAbi = [
1092
1092
  ]
1093
1093
  }
1094
1094
  ];
1095
+ var erc20Abi = [
1096
+ {
1097
+ type: "event",
1098
+ name: "Approval",
1099
+ inputs: [
1100
+ {
1101
+ indexed: true,
1102
+ name: "owner",
1103
+ type: "address"
1104
+ },
1105
+ {
1106
+ indexed: true,
1107
+ name: "spender",
1108
+ type: "address"
1109
+ },
1110
+ {
1111
+ indexed: false,
1112
+ name: "value",
1113
+ type: "uint256"
1114
+ }
1115
+ ]
1116
+ },
1117
+ {
1118
+ type: "event",
1119
+ name: "Transfer",
1120
+ inputs: [
1121
+ {
1122
+ indexed: true,
1123
+ name: "from",
1124
+ type: "address"
1125
+ },
1126
+ {
1127
+ indexed: true,
1128
+ name: "to",
1129
+ type: "address"
1130
+ },
1131
+ {
1132
+ indexed: false,
1133
+ name: "value",
1134
+ type: "uint256"
1135
+ }
1136
+ ]
1137
+ },
1138
+ {
1139
+ type: "function",
1140
+ name: "allowance",
1141
+ stateMutability: "view",
1142
+ inputs: [
1143
+ {
1144
+ name: "owner",
1145
+ type: "address"
1146
+ },
1147
+ {
1148
+ name: "spender",
1149
+ type: "address"
1150
+ }
1151
+ ],
1152
+ outputs: [
1153
+ {
1154
+ type: "uint256"
1155
+ }
1156
+ ]
1157
+ },
1158
+ {
1159
+ type: "function",
1160
+ name: "approve",
1161
+ stateMutability: "nonpayable",
1162
+ inputs: [
1163
+ {
1164
+ name: "spender",
1165
+ type: "address"
1166
+ },
1167
+ {
1168
+ name: "amount",
1169
+ type: "uint256"
1170
+ }
1171
+ ],
1172
+ outputs: [
1173
+ {
1174
+ type: "bool"
1175
+ }
1176
+ ]
1177
+ },
1178
+ {
1179
+ type: "function",
1180
+ name: "balanceOf",
1181
+ stateMutability: "view",
1182
+ inputs: [
1183
+ {
1184
+ name: "account",
1185
+ type: "address"
1186
+ }
1187
+ ],
1188
+ outputs: [
1189
+ {
1190
+ type: "uint256"
1191
+ }
1192
+ ]
1193
+ },
1194
+ {
1195
+ type: "function",
1196
+ name: "decimals",
1197
+ stateMutability: "view",
1198
+ inputs: [],
1199
+ outputs: [
1200
+ {
1201
+ type: "uint8"
1202
+ }
1203
+ ]
1204
+ },
1205
+ {
1206
+ type: "function",
1207
+ name: "name",
1208
+ stateMutability: "view",
1209
+ inputs: [],
1210
+ outputs: [
1211
+ {
1212
+ type: "string"
1213
+ }
1214
+ ]
1215
+ },
1216
+ {
1217
+ type: "function",
1218
+ name: "symbol",
1219
+ stateMutability: "view",
1220
+ inputs: [],
1221
+ outputs: [
1222
+ {
1223
+ type: "string"
1224
+ }
1225
+ ]
1226
+ },
1227
+ {
1228
+ type: "function",
1229
+ name: "totalSupply",
1230
+ stateMutability: "view",
1231
+ inputs: [],
1232
+ outputs: [
1233
+ {
1234
+ type: "uint256"
1235
+ }
1236
+ ]
1237
+ },
1238
+ {
1239
+ type: "function",
1240
+ name: "transfer",
1241
+ stateMutability: "nonpayable",
1242
+ inputs: [
1243
+ {
1244
+ name: "recipient",
1245
+ type: "address"
1246
+ },
1247
+ {
1248
+ name: "amount",
1249
+ type: "uint256"
1250
+ }
1251
+ ],
1252
+ outputs: [
1253
+ {
1254
+ type: "bool"
1255
+ }
1256
+ ]
1257
+ },
1258
+ {
1259
+ type: "function",
1260
+ name: "transferFrom",
1261
+ stateMutability: "nonpayable",
1262
+ inputs: [
1263
+ {
1264
+ name: "sender",
1265
+ type: "address"
1266
+ },
1267
+ {
1268
+ name: "recipient",
1269
+ type: "address"
1270
+ },
1271
+ {
1272
+ name: "amount",
1273
+ type: "uint256"
1274
+ }
1275
+ ],
1276
+ outputs: [
1277
+ {
1278
+ type: "bool"
1279
+ }
1280
+ ]
1281
+ }
1282
+ ];
1095
1283
 
1096
1284
  // ../../node_modules/.pnpm/viem@2.45.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/constants/contract.js
1097
1285
  var aggregate3Signature = "0x82ad56cb";
@@ -1656,6 +1844,14 @@ function hexToNumber(hex, opts = {}) {
1656
1844
  });
1657
1845
  return number;
1658
1846
  }
1847
+ function hexToString(hex, opts = {}) {
1848
+ let bytes = hexToBytes(hex);
1849
+ if (opts.size) {
1850
+ assertSize2(bytes, { size: opts.size });
1851
+ bytes = trim2(bytes, { dir: "right" });
1852
+ }
1853
+ return new TextDecoder().decode(bytes);
1854
+ }
1659
1855
 
1660
1856
  // ../../node_modules/.pnpm/viem@2.45.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
1661
1857
  var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
@@ -3768,7 +3964,7 @@ async function call(client, args) {
3768
3964
  return { data: response };
3769
3965
  } catch (err) {
3770
3966
  const data2 = getRevertErrorData(err);
3771
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-5UG36BRY.js');
3967
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-VK5PCUV6.js');
3772
3968
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3773
3969
  return { data: await offchainLookup2(client, { data: data2, to }) };
3774
3970
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -4149,6 +4345,6 @@ async function ccipRequest({ data, sender, urls }) {
4149
4345
  throw error;
4150
4346
  }
4151
4347
 
4152
- export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, formatEther, formatUnits, getAddress, hexToBytes, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, slice, stringToHex, toBytes2 as toBytes };
4153
- //# sourceMappingURL=chunk-SRWUFRRR.js.map
4154
- //# sourceMappingURL=chunk-SRWUFRRR.js.map
4348
+ export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, erc20Abi, formatEther, formatUnits, getAddress, hexToBytes, hexToString, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, slice, stringToHex, toBytes2 as toBytes };
4349
+ //# sourceMappingURL=chunk-YILYOOYB.js.map
4350
+ //# sourceMappingURL=chunk-YILYOOYB.js.map