@latticexyz/world-module-erc20 2.2.23-e76d72504e7ee51c76fa380bdc4a56f4815b7b59 → 2.2.23
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/{_esm-4QBXERIC.js → _esm-GD2BESU2.js} +36 -34
- package/dist/{_esm-4QBXERIC.js.map → _esm-GD2BESU2.js.map} +1 -1
- package/dist/{ccip-POWS7KFG.js → ccip-YKKDCE4N.js} +3 -3
- package/dist/{chunk-Y6LDJZ7L.js → chunk-EPZFKNND.js} +36 -235
- package/dist/chunk-EPZFKNND.js.map +1 -0
- package/dist/{chunk-5LBWQX65.js → chunk-OBYRQQ4V.js} +168 -135
- package/dist/chunk-OBYRQQ4V.js.map +1 -0
- package/dist/internal.js +2 -2
- package/dist/{secp256k1-QCGY4Z6Q.js → secp256k1-ELJ5HZRX.js} +1302 -909
- package/dist/secp256k1-ELJ5HZRX.js.map +1 -0
- package/package.json +8 -8
- package/dist/chunk-5LBWQX65.js.map +0 -1
- package/dist/chunk-Y6LDJZ7L.js.map +0 -1
- package/dist/secp256k1-QCGY4Z6Q.js.map +0 -1
- /package/dist/{ccip-POWS7KFG.js.map → ccip-YKKDCE4N.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
swap32IfBE,
|
|
15
15
|
toBytes,
|
|
16
16
|
u32
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EPZFKNND.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/.pnpm/abitype@1.0.8_typescript@5.4.2_zod@3.23.8/node_modules/abitype/dist/esm/version.js
|
|
20
20
|
var version = "1.0.8";
|
|
@@ -726,15 +726,15 @@ function parseAbi(signatures) {
|
|
|
726
726
|
return abi;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
729
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/version.js
|
|
730
730
|
var version2 = "0.1.1";
|
|
731
731
|
|
|
732
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
732
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/internal/errors.js
|
|
733
733
|
function getVersion() {
|
|
734
734
|
return version2;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
737
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/Errors.js
|
|
738
738
|
var BaseError2 = class _BaseError extends Error {
|
|
739
739
|
constructor(shortMessage, options = {}) {
|
|
740
740
|
const details = (() => {
|
|
@@ -827,7 +827,7 @@ function walk(err, fn) {
|
|
|
827
827
|
return fn ? null : err;
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
830
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/internal/hex.js
|
|
831
831
|
function pad(hex_, options = {}) {
|
|
832
832
|
const { dir, size: size3 = 32 } = options;
|
|
833
833
|
if (size3 === 0)
|
|
@@ -842,7 +842,7 @@ function pad(hex_, options = {}) {
|
|
|
842
842
|
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size3 * 2, "0")}`;
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
845
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/Hex.js
|
|
846
846
|
function fromNumber(value, options = {}) {
|
|
847
847
|
const { signed, size: size3 } = options;
|
|
848
848
|
const value_ = BigInt(value);
|
|
@@ -898,7 +898,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
900
|
|
|
901
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
901
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/Withdrawal.js
|
|
902
902
|
function toRpc(withdrawal) {
|
|
903
903
|
return {
|
|
904
904
|
address: withdrawal.address,
|
|
@@ -908,7 +908,7 @@ function toRpc(withdrawal) {
|
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
911
|
+
// ../../node_modules/.pnpm/ox@0.8.7_typescript@5.4.2_zod@3.23.8/node_modules/ox/_esm/core/BlockOverrides.js
|
|
912
912
|
function toRpc2(blockOverrides) {
|
|
913
913
|
return {
|
|
914
914
|
...typeof blockOverrides.baseFeePerGas === "bigint" && {
|
|
@@ -938,14 +938,14 @@ function toRpc2(blockOverrides) {
|
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
941
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
942
942
|
function parseAccount(account) {
|
|
943
943
|
if (typeof account === "string")
|
|
944
944
|
return { address: account, type: "json-rpc" };
|
|
945
945
|
return account;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
948
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/abis.js
|
|
949
949
|
var multicall3Abi = [
|
|
950
950
|
{
|
|
951
951
|
inputs: [
|
|
@@ -1042,24 +1042,53 @@ var batchGatewayAbi = [
|
|
|
1042
1042
|
];
|
|
1043
1043
|
var universalResolverErrors = [
|
|
1044
1044
|
{
|
|
1045
|
-
inputs: [
|
|
1046
|
-
|
|
1045
|
+
inputs: [
|
|
1046
|
+
{
|
|
1047
|
+
name: "dns",
|
|
1048
|
+
type: "bytes"
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
name: "DNSDecodingFailed",
|
|
1052
|
+
type: "error"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
inputs: [
|
|
1056
|
+
{
|
|
1057
|
+
name: "ens",
|
|
1058
|
+
type: "string"
|
|
1059
|
+
}
|
|
1060
|
+
],
|
|
1061
|
+
name: "DNSEncodingFailed",
|
|
1047
1062
|
type: "error"
|
|
1048
1063
|
},
|
|
1049
1064
|
{
|
|
1050
1065
|
inputs: [],
|
|
1051
|
-
name: "
|
|
1066
|
+
name: "EmptyAddress",
|
|
1067
|
+
type: "error"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
inputs: [
|
|
1071
|
+
{
|
|
1072
|
+
name: "status",
|
|
1073
|
+
type: "uint16"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
name: "message",
|
|
1077
|
+
type: "string"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
name: "HttpError",
|
|
1052
1081
|
type: "error"
|
|
1053
1082
|
},
|
|
1054
1083
|
{
|
|
1055
1084
|
inputs: [],
|
|
1056
|
-
name: "
|
|
1085
|
+
name: "InvalidBatchGatewayResponse",
|
|
1057
1086
|
type: "error"
|
|
1058
1087
|
},
|
|
1059
1088
|
{
|
|
1060
1089
|
inputs: [
|
|
1061
1090
|
{
|
|
1062
|
-
name: "
|
|
1091
|
+
name: "errorData",
|
|
1063
1092
|
type: "bytes"
|
|
1064
1093
|
}
|
|
1065
1094
|
],
|
|
@@ -1069,41 +1098,57 @@ var universalResolverErrors = [
|
|
|
1069
1098
|
{
|
|
1070
1099
|
inputs: [
|
|
1071
1100
|
{
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
name: "message",
|
|
1079
|
-
type: "string"
|
|
1080
|
-
}
|
|
1081
|
-
],
|
|
1082
|
-
name: "errors",
|
|
1083
|
-
type: "tuple[]"
|
|
1101
|
+
name: "name",
|
|
1102
|
+
type: "bytes"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "resolver",
|
|
1106
|
+
type: "address"
|
|
1084
1107
|
}
|
|
1085
1108
|
],
|
|
1086
|
-
name: "
|
|
1109
|
+
name: "ResolverNotContract",
|
|
1087
1110
|
type: "error"
|
|
1088
|
-
}
|
|
1089
|
-
];
|
|
1090
|
-
var universalResolverResolveAbi = [
|
|
1091
|
-
...universalResolverErrors,
|
|
1111
|
+
},
|
|
1092
1112
|
{
|
|
1093
|
-
name: "resolve",
|
|
1094
|
-
type: "function",
|
|
1095
|
-
stateMutability: "view",
|
|
1096
1113
|
inputs: [
|
|
1097
|
-
{
|
|
1098
|
-
|
|
1114
|
+
{
|
|
1115
|
+
name: "name",
|
|
1116
|
+
type: "bytes"
|
|
1117
|
+
}
|
|
1099
1118
|
],
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
{ name: "address", type: "address" }
|
|
1103
|
-
]
|
|
1119
|
+
name: "ResolverNotFound",
|
|
1120
|
+
type: "error"
|
|
1104
1121
|
},
|
|
1105
1122
|
{
|
|
1106
|
-
|
|
1123
|
+
inputs: [
|
|
1124
|
+
{
|
|
1125
|
+
name: "primary",
|
|
1126
|
+
type: "string"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
name: "primaryAddress",
|
|
1130
|
+
type: "bytes"
|
|
1131
|
+
}
|
|
1132
|
+
],
|
|
1133
|
+
name: "ReverseAddressMismatch",
|
|
1134
|
+
type: "error"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
inputs: [
|
|
1138
|
+
{
|
|
1139
|
+
internalType: "bytes4",
|
|
1140
|
+
name: "selector",
|
|
1141
|
+
type: "bytes4"
|
|
1142
|
+
}
|
|
1143
|
+
],
|
|
1144
|
+
name: "UnsupportedResolverProfile",
|
|
1145
|
+
type: "error"
|
|
1146
|
+
}
|
|
1147
|
+
];
|
|
1148
|
+
var universalResolverResolveAbi = [
|
|
1149
|
+
...universalResolverErrors,
|
|
1150
|
+
{
|
|
1151
|
+
name: "resolveWithGateways",
|
|
1107
1152
|
type: "function",
|
|
1108
1153
|
stateMutability: "view",
|
|
1109
1154
|
inputs: [
|
|
@@ -1120,45 +1165,33 @@ var universalResolverResolveAbi = [
|
|
|
1120
1165
|
var universalResolverReverseAbi = [
|
|
1121
1166
|
...universalResolverErrors,
|
|
1122
1167
|
{
|
|
1123
|
-
name: "
|
|
1124
|
-
type: "function",
|
|
1125
|
-
stateMutability: "view",
|
|
1126
|
-
inputs: [{ type: "bytes", name: "reverseName" }],
|
|
1127
|
-
outputs: [
|
|
1128
|
-
{ type: "string", name: "resolvedName" },
|
|
1129
|
-
{ type: "address", name: "resolvedAddress" },
|
|
1130
|
-
{ type: "address", name: "reverseResolver" },
|
|
1131
|
-
{ type: "address", name: "resolver" }
|
|
1132
|
-
]
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
name: "reverse",
|
|
1168
|
+
name: "reverseWithGateways",
|
|
1136
1169
|
type: "function",
|
|
1137
1170
|
stateMutability: "view",
|
|
1138
1171
|
inputs: [
|
|
1139
1172
|
{ type: "bytes", name: "reverseName" },
|
|
1173
|
+
{ type: "uint256", name: "coinType" },
|
|
1140
1174
|
{ type: "string[]", name: "gateways" }
|
|
1141
1175
|
],
|
|
1142
1176
|
outputs: [
|
|
1143
1177
|
{ type: "string", name: "resolvedName" },
|
|
1144
|
-
{ type: "address", name: "
|
|
1145
|
-
{ type: "address", name: "reverseResolver" }
|
|
1146
|
-
{ type: "address", name: "resolver" }
|
|
1178
|
+
{ type: "address", name: "resolver" },
|
|
1179
|
+
{ type: "address", name: "reverseResolver" }
|
|
1147
1180
|
]
|
|
1148
1181
|
}
|
|
1149
1182
|
];
|
|
1150
1183
|
|
|
1151
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1184
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/contract.js
|
|
1152
1185
|
var aggregate3Signature = "0x82ad56cb";
|
|
1153
1186
|
|
|
1154
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1187
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/contracts.js
|
|
1155
1188
|
var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
|
|
1156
1189
|
var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
|
|
1157
1190
|
|
|
1158
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1159
|
-
var version3 = "2.
|
|
1191
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js
|
|
1192
|
+
var version3 = "2.35.1";
|
|
1160
1193
|
|
|
1161
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1194
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js
|
|
1162
1195
|
var errorConfig = {
|
|
1163
1196
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
1164
1197
|
version: `viem@${version3}`
|
|
@@ -1242,7 +1275,7 @@ function walk2(err, fn) {
|
|
|
1242
1275
|
return fn ? null : err;
|
|
1243
1276
|
}
|
|
1244
1277
|
|
|
1245
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1278
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/chain.js
|
|
1246
1279
|
var ChainDoesNotSupportContract = class extends BaseError3 {
|
|
1247
1280
|
constructor({ blockNumber, chain, contract }) {
|
|
1248
1281
|
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
@@ -1266,7 +1299,7 @@ var ClientChainNotConfiguredError = class extends BaseError3 {
|
|
|
1266
1299
|
}
|
|
1267
1300
|
};
|
|
1268
1301
|
|
|
1269
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1302
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/solidity.js
|
|
1270
1303
|
var solidityError = {
|
|
1271
1304
|
inputs: [
|
|
1272
1305
|
{
|
|
@@ -1288,7 +1321,7 @@ var solidityPanic = {
|
|
|
1288
1321
|
type: "error"
|
|
1289
1322
|
};
|
|
1290
1323
|
|
|
1291
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1324
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
1292
1325
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
1293
1326
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
1294
1327
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -1306,7 +1339,7 @@ function formatAbiParam(param, { includeName }) {
|
|
|
1306
1339
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
1307
1340
|
}
|
|
1308
1341
|
|
|
1309
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1342
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js
|
|
1310
1343
|
function isHex(value, { strict = true } = {}) {
|
|
1311
1344
|
if (!value)
|
|
1312
1345
|
return false;
|
|
@@ -1315,14 +1348,14 @@ function isHex(value, { strict = true } = {}) {
|
|
|
1315
1348
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
1316
1349
|
}
|
|
1317
1350
|
|
|
1318
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1351
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/size.js
|
|
1319
1352
|
function size2(value) {
|
|
1320
1353
|
if (isHex(value, { strict: false }))
|
|
1321
1354
|
return Math.ceil((value.length - 2) / 2);
|
|
1322
1355
|
return value.length;
|
|
1323
1356
|
}
|
|
1324
1357
|
|
|
1325
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1358
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js
|
|
1326
1359
|
var AbiConstructorNotFoundError = class extends BaseError3 {
|
|
1327
1360
|
constructor({ docsPath: docsPath6 }) {
|
|
1328
1361
|
super([
|
|
@@ -1530,7 +1563,7 @@ var InvalidDefinitionTypeError = class extends BaseError3 {
|
|
|
1530
1563
|
}
|
|
1531
1564
|
};
|
|
1532
1565
|
|
|
1533
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1566
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js
|
|
1534
1567
|
var SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
|
|
1535
1568
|
constructor({ offset, position, size: size3 }) {
|
|
1536
1569
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size3}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
@@ -1547,7 +1580,7 @@ var InvalidBytesLengthError = class extends BaseError3 {
|
|
|
1547
1580
|
}
|
|
1548
1581
|
};
|
|
1549
1582
|
|
|
1550
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1583
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js
|
|
1551
1584
|
function slice(value, start, end, { strict } = {}) {
|
|
1552
1585
|
if (isHex(value, { strict: false }))
|
|
1553
1586
|
return sliceHex(value, start, end, {
|
|
@@ -1589,7 +1622,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1589
1622
|
return value;
|
|
1590
1623
|
}
|
|
1591
1624
|
|
|
1592
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1625
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js
|
|
1593
1626
|
function pad2(hexOrBytes, { dir, size: size3 = 32 } = {}) {
|
|
1594
1627
|
if (typeof hexOrBytes === "string")
|
|
1595
1628
|
return padHex(hexOrBytes, { dir, size: size3 });
|
|
@@ -1624,7 +1657,7 @@ function padBytes(bytes, { dir, size: size3 = 32 } = {}) {
|
|
|
1624
1657
|
return paddedBytes;
|
|
1625
1658
|
}
|
|
1626
1659
|
|
|
1627
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1660
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js
|
|
1628
1661
|
var IntegerOutOfRangeError2 = class extends BaseError3 {
|
|
1629
1662
|
constructor({ max, min, signed, size: size3, value }) {
|
|
1630
1663
|
super(`Number "${value}" is not in safe ${size3 ? `${size3 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
@@ -1643,7 +1676,7 @@ var SizeOverflowError2 = class extends BaseError3 {
|
|
|
1643
1676
|
}
|
|
1644
1677
|
};
|
|
1645
1678
|
|
|
1646
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1679
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/trim.js
|
|
1647
1680
|
function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
1648
1681
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
1649
1682
|
let sliceLength = 0;
|
|
@@ -1662,7 +1695,7 @@ function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
|
1662
1695
|
return data;
|
|
1663
1696
|
}
|
|
1664
1697
|
|
|
1665
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1698
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
1666
1699
|
function assertSize2(hexOrBytes, { size: size3 }) {
|
|
1667
1700
|
if (size2(hexOrBytes) > size3)
|
|
1668
1701
|
throw new SizeOverflowError2({
|
|
@@ -1687,7 +1720,7 @@ function hexToNumber(hex, opts = {}) {
|
|
|
1687
1720
|
return Number(hexToBigInt(hex, opts));
|
|
1688
1721
|
}
|
|
1689
1722
|
|
|
1690
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1723
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
1691
1724
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
1692
1725
|
function toHex(value, opts = {}) {
|
|
1693
1726
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1753,7 +1786,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
1753
1786
|
return bytesToHex(value, opts);
|
|
1754
1787
|
}
|
|
1755
1788
|
|
|
1756
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1789
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
1757
1790
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
1758
1791
|
function toBytes2(value, opts = {}) {
|
|
1759
1792
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -2005,7 +2038,7 @@ var Keccak = class _Keccak extends Hash {
|
|
|
2005
2038
|
var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
2006
2039
|
var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
2007
2040
|
|
|
2008
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2041
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
2009
2042
|
function keccak256(value, to_) {
|
|
2010
2043
|
const to = to_ || "hex";
|
|
2011
2044
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
|
|
@@ -2014,13 +2047,13 @@ function keccak256(value, to_) {
|
|
|
2014
2047
|
return toHex(bytes);
|
|
2015
2048
|
}
|
|
2016
2049
|
|
|
2017
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2050
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
2018
2051
|
var hash = (value) => keccak256(toBytes2(value));
|
|
2019
2052
|
function hashSignature(sig) {
|
|
2020
2053
|
return hash(sig);
|
|
2021
2054
|
}
|
|
2022
2055
|
|
|
2023
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2056
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
2024
2057
|
function normalizeSignature(signature) {
|
|
2025
2058
|
let active = true;
|
|
2026
2059
|
let current = "";
|
|
@@ -2064,7 +2097,7 @@ function normalizeSignature(signature) {
|
|
|
2064
2097
|
return result;
|
|
2065
2098
|
}
|
|
2066
2099
|
|
|
2067
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2100
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
2068
2101
|
var toSignature = (def) => {
|
|
2069
2102
|
const def_ = (() => {
|
|
2070
2103
|
if (typeof def === "string")
|
|
@@ -2074,15 +2107,15 @@ var toSignature = (def) => {
|
|
|
2074
2107
|
return normalizeSignature(def_);
|
|
2075
2108
|
};
|
|
2076
2109
|
|
|
2077
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2110
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
2078
2111
|
function toSignatureHash(fn) {
|
|
2079
2112
|
return hashSignature(toSignature(fn));
|
|
2080
2113
|
}
|
|
2081
2114
|
|
|
2082
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2115
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
2083
2116
|
var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
|
|
2084
2117
|
|
|
2085
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2118
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js
|
|
2086
2119
|
var InvalidAddressError = class extends BaseError3 {
|
|
2087
2120
|
constructor({ address }) {
|
|
2088
2121
|
super(`Address "${address}" is invalid.`, {
|
|
@@ -2095,7 +2128,7 @@ var InvalidAddressError = class extends BaseError3 {
|
|
|
2095
2128
|
}
|
|
2096
2129
|
};
|
|
2097
2130
|
|
|
2098
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2131
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js
|
|
2099
2132
|
var LruMap = class extends Map {
|
|
2100
2133
|
constructor(size3) {
|
|
2101
2134
|
super();
|
|
@@ -2126,7 +2159,7 @@ var LruMap = class extends Map {
|
|
|
2126
2159
|
}
|
|
2127
2160
|
};
|
|
2128
2161
|
|
|
2129
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2162
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js
|
|
2130
2163
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
2131
2164
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2132
2165
|
function isAddress(address, options) {
|
|
@@ -2147,7 +2180,7 @@ function isAddress(address, options) {
|
|
|
2147
2180
|
return result;
|
|
2148
2181
|
}
|
|
2149
2182
|
|
|
2150
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2183
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js
|
|
2151
2184
|
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2152
2185
|
function checksumAddress(address_, chainId) {
|
|
2153
2186
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
@@ -2168,7 +2201,7 @@ function checksumAddress(address_, chainId) {
|
|
|
2168
2201
|
return result;
|
|
2169
2202
|
}
|
|
2170
2203
|
|
|
2171
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2204
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/cursor.js
|
|
2172
2205
|
var NegativeOffsetError = class extends BaseError3 {
|
|
2173
2206
|
constructor({ offset }) {
|
|
2174
2207
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
@@ -2187,7 +2220,7 @@ var RecursiveReadLimitExceededError = class extends BaseError3 {
|
|
|
2187
2220
|
}
|
|
2188
2221
|
};
|
|
2189
2222
|
|
|
2190
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2223
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/cursor.js
|
|
2191
2224
|
var staticCursor = {
|
|
2192
2225
|
bytes: new Uint8Array(),
|
|
2193
2226
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -2356,7 +2389,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
2356
2389
|
return cursor;
|
|
2357
2390
|
}
|
|
2358
2391
|
|
|
2359
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2392
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
2360
2393
|
function bytesToBigInt(bytes, opts = {}) {
|
|
2361
2394
|
if (typeof opts.size !== "undefined")
|
|
2362
2395
|
assertSize2(bytes, { size: opts.size });
|
|
@@ -2388,7 +2421,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
2388
2421
|
return new TextDecoder().decode(bytes);
|
|
2389
2422
|
}
|
|
2390
2423
|
|
|
2391
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2424
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js
|
|
2392
2425
|
function concat(values) {
|
|
2393
2426
|
if (typeof values[0] === "string")
|
|
2394
2427
|
return concatHex(values);
|
|
@@ -2411,10 +2444,10 @@ function concatHex(values) {
|
|
|
2411
2444
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2412
2445
|
}
|
|
2413
2446
|
|
|
2414
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2447
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/regex.js
|
|
2415
2448
|
var integerRegex2 = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
2416
2449
|
|
|
2417
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2450
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
2418
2451
|
function encodeAbiParameters(params, values) {
|
|
2419
2452
|
if (params.length !== values.length)
|
|
2420
2453
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -2628,7 +2661,7 @@ function getArrayComponents(type) {
|
|
|
2628
2661
|
) : void 0;
|
|
2629
2662
|
}
|
|
2630
2663
|
|
|
2631
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2664
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
2632
2665
|
function decodeAbiParameters(params, data) {
|
|
2633
2666
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
2634
2667
|
const cursor = createCursor(bytes);
|
|
@@ -2815,7 +2848,7 @@ function hasDynamicChild(param) {
|
|
|
2815
2848
|
return false;
|
|
2816
2849
|
}
|
|
2817
2850
|
|
|
2818
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2851
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
2819
2852
|
function decodeErrorResult(parameters) {
|
|
2820
2853
|
const { abi, data } = parameters;
|
|
2821
2854
|
const signature = slice(data, 0, 4);
|
|
@@ -2834,16 +2867,16 @@ function decodeErrorResult(parameters) {
|
|
|
2834
2867
|
};
|
|
2835
2868
|
}
|
|
2836
2869
|
|
|
2837
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2870
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/stringify.js
|
|
2838
2871
|
var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
2839
2872
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
2840
2873
|
return typeof replacer === "function" ? replacer(key, value2) : value2;
|
|
2841
2874
|
}, space);
|
|
2842
2875
|
|
|
2843
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2876
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
2844
2877
|
var toEventSelector = toSignatureHash;
|
|
2845
2878
|
|
|
2846
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2879
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
2847
2880
|
function getAbiItem(parameters) {
|
|
2848
2881
|
const { abi, args = [], name } = parameters;
|
|
2849
2882
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -2955,7 +2988,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
2955
2988
|
return;
|
|
2956
2989
|
}
|
|
2957
2990
|
|
|
2958
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2991
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
|
|
2959
2992
|
var etherUnits = {
|
|
2960
2993
|
gwei: 9,
|
|
2961
2994
|
wei: 18
|
|
@@ -2965,7 +2998,7 @@ var gweiUnits = {
|
|
|
2965
2998
|
wei: 9
|
|
2966
2999
|
};
|
|
2967
3000
|
|
|
2968
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3001
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
2969
3002
|
function formatUnits(value, decimals) {
|
|
2970
3003
|
let display = value.toString();
|
|
2971
3004
|
const negative = display.startsWith("-");
|
|
@@ -2980,17 +3013,17 @@ function formatUnits(value, decimals) {
|
|
|
2980
3013
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
2981
3014
|
}
|
|
2982
3015
|
|
|
2983
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3016
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2984
3017
|
function formatEther(wei, unit = "wei") {
|
|
2985
3018
|
return formatUnits(wei, etherUnits[unit]);
|
|
2986
3019
|
}
|
|
2987
3020
|
|
|
2988
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3021
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2989
3022
|
function formatGwei(wei, unit = "wei") {
|
|
2990
3023
|
return formatUnits(wei, gweiUnits[unit]);
|
|
2991
3024
|
}
|
|
2992
3025
|
|
|
2993
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3026
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/stateOverride.js
|
|
2994
3027
|
var AccountStateConflictError = class extends BaseError3 {
|
|
2995
3028
|
constructor({ address }) {
|
|
2996
3029
|
super(`State for account "${address}" is set multiple times.`, {
|
|
@@ -3036,7 +3069,7 @@ function prettyStateOverride(stateOverride) {
|
|
|
3036
3069
|
}, " State Override:\n").slice(0, -1);
|
|
3037
3070
|
}
|
|
3038
3071
|
|
|
3039
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3072
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/transaction.js
|
|
3040
3073
|
function prettyPrint(args) {
|
|
3041
3074
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
3042
3075
|
if (value === void 0 || value === false)
|
|
@@ -3055,10 +3088,10 @@ var FeeConflictError = class extends BaseError3 {
|
|
|
3055
3088
|
}
|
|
3056
3089
|
};
|
|
3057
3090
|
|
|
3058
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3091
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/utils.js
|
|
3059
3092
|
var getUrl = (url) => url;
|
|
3060
3093
|
|
|
3061
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3094
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/contract.js
|
|
3062
3095
|
var CallExecutionError = class extends BaseError3 {
|
|
3063
3096
|
constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
3064
3097
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3127,7 +3160,7 @@ var RawContractError = class extends BaseError3 {
|
|
|
3127
3160
|
}
|
|
3128
3161
|
};
|
|
3129
3162
|
|
|
3130
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3163
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
3131
3164
|
var docsPath = "/docs/contract/decodeFunctionResult";
|
|
3132
3165
|
function decodeFunctionResult(parameters) {
|
|
3133
3166
|
const { abi, args, functionName, data } = parameters;
|
|
@@ -3150,7 +3183,7 @@ function decodeFunctionResult(parameters) {
|
|
|
3150
3183
|
return void 0;
|
|
3151
3184
|
}
|
|
3152
3185
|
|
|
3153
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3186
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeDeployData.js
|
|
3154
3187
|
var docsPath2 = "/docs/contract/encodeDeployData";
|
|
3155
3188
|
function encodeDeployData(parameters) {
|
|
3156
3189
|
const { abi, args, bytecode } = parameters;
|
|
@@ -3167,7 +3200,7 @@ function encodeDeployData(parameters) {
|
|
|
3167
3200
|
return concatHex([bytecode, data]);
|
|
3168
3201
|
}
|
|
3169
3202
|
|
|
3170
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3203
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
3171
3204
|
var docsPath3 = "/docs/contract/encodeFunctionData";
|
|
3172
3205
|
function prepareEncodeFunctionData(parameters) {
|
|
3173
3206
|
const { abi, args, functionName } = parameters;
|
|
@@ -3190,7 +3223,7 @@ function prepareEncodeFunctionData(parameters) {
|
|
|
3190
3223
|
};
|
|
3191
3224
|
}
|
|
3192
3225
|
|
|
3193
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3226
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
3194
3227
|
function encodeFunctionData(parameters) {
|
|
3195
3228
|
const { args } = parameters;
|
|
3196
3229
|
const { abi, functionName } = (() => {
|
|
@@ -3204,7 +3237,7 @@ function encodeFunctionData(parameters) {
|
|
|
3204
3237
|
return concatHex([signature, data ?? "0x"]);
|
|
3205
3238
|
}
|
|
3206
3239
|
|
|
3207
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3240
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
3208
3241
|
function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
3209
3242
|
const contract = chain?.contracts?.[name];
|
|
3210
3243
|
if (!contract)
|
|
@@ -3224,7 +3257,7 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
|
3224
3257
|
return contract.address;
|
|
3225
3258
|
}
|
|
3226
3259
|
|
|
3227
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3260
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/node.js
|
|
3228
3261
|
var ExecutionRevertedError = class extends BaseError3 {
|
|
3229
3262
|
constructor({ cause, message } = {}) {
|
|
3230
3263
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
@@ -3403,7 +3436,7 @@ var UnknownNodeError = class extends BaseError3 {
|
|
|
3403
3436
|
}
|
|
3404
3437
|
};
|
|
3405
3438
|
|
|
3406
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3439
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/request.js
|
|
3407
3440
|
var HttpRequestError = class extends BaseError3 {
|
|
3408
3441
|
constructor({ body, cause, details, headers, status, url }) {
|
|
3409
3442
|
super("HTTP request failed.", {
|
|
@@ -3447,7 +3480,7 @@ var HttpRequestError = class extends BaseError3 {
|
|
|
3447
3480
|
}
|
|
3448
3481
|
};
|
|
3449
3482
|
|
|
3450
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3483
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
3451
3484
|
function getNodeError(err, args) {
|
|
3452
3485
|
const message = (err.details || "").toLowerCase();
|
|
3453
3486
|
const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
|
|
@@ -3496,7 +3529,7 @@ function getNodeError(err, args) {
|
|
|
3496
3529
|
});
|
|
3497
3530
|
}
|
|
3498
3531
|
|
|
3499
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3532
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/errors/getCallError.js
|
|
3500
3533
|
function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
3501
3534
|
const cause = (() => {
|
|
3502
3535
|
const cause2 = getNodeError(err, args);
|
|
@@ -3510,7 +3543,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
|
3510
3543
|
});
|
|
3511
3544
|
}
|
|
3512
3545
|
|
|
3513
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3546
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/formatters/extract.js
|
|
3514
3547
|
function extract(value_, { format }) {
|
|
3515
3548
|
if (!format)
|
|
3516
3549
|
return {};
|
|
@@ -3529,7 +3562,7 @@ function extract(value_, { format }) {
|
|
|
3529
3562
|
return value;
|
|
3530
3563
|
}
|
|
3531
3564
|
|
|
3532
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3565
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
3533
3566
|
var rpcTransactionType = {
|
|
3534
3567
|
legacy: "0x0",
|
|
3535
3568
|
eip2930: "0x1",
|
|
@@ -3587,7 +3620,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
3587
3620
|
}));
|
|
3588
3621
|
}
|
|
3589
3622
|
|
|
3590
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3623
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/promise/withResolvers.js
|
|
3591
3624
|
function withResolvers() {
|
|
3592
3625
|
let resolve = () => void 0;
|
|
3593
3626
|
let reject = () => void 0;
|
|
@@ -3598,7 +3631,7 @@ function withResolvers() {
|
|
|
3598
3631
|
return { promise, resolve, reject };
|
|
3599
3632
|
}
|
|
3600
3633
|
|
|
3601
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3634
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
3602
3635
|
var schedulerCache = /* @__PURE__ */ new Map();
|
|
3603
3636
|
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
3604
3637
|
const exec = async () => {
|
|
@@ -3644,7 +3677,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
|
3644
3677
|
};
|
|
3645
3678
|
}
|
|
3646
3679
|
|
|
3647
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3680
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/stateOverride.js
|
|
3648
3681
|
function serializeStateMapping(stateMapping) {
|
|
3649
3682
|
if (!stateMapping || stateMapping.length === 0)
|
|
3650
3683
|
return void 0;
|
|
@@ -3697,7 +3730,7 @@ function serializeStateOverride(parameters) {
|
|
|
3697
3730
|
return rpcStateOverride;
|
|
3698
3731
|
}
|
|
3699
3732
|
|
|
3700
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3733
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/number.js
|
|
3701
3734
|
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
3702
3735
|
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
3703
3736
|
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
@@ -3795,7 +3828,7 @@ var maxUint240 = 2n ** 240n - 1n;
|
|
|
3795
3828
|
var maxUint248 = 2n ** 248n - 1n;
|
|
3796
3829
|
var maxUint256 = 2n ** 256n - 1n;
|
|
3797
3830
|
|
|
3798
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3831
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
3799
3832
|
function assertRequest(args) {
|
|
3800
3833
|
const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
3801
3834
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3811,9 +3844,9 @@ function assertRequest(args) {
|
|
|
3811
3844
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
3812
3845
|
}
|
|
3813
3846
|
|
|
3814
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3847
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/actions/public/call.js
|
|
3815
3848
|
async function call(client, args) {
|
|
3816
|
-
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
|
|
3849
|
+
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
|
|
3817
3850
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
3818
3851
|
if (code && (factory || factoryData))
|
|
3819
3852
|
throw new BaseError3("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
@@ -3896,7 +3929,7 @@ async function call(client, args) {
|
|
|
3896
3929
|
return { data: response };
|
|
3897
3930
|
} catch (err) {
|
|
3898
3931
|
const data2 = getRevertErrorData(err);
|
|
3899
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
3932
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-YKKDCE4N.js");
|
|
3900
3933
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3901
3934
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3902
3935
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -3922,7 +3955,7 @@ function shouldPerformMulticall({ request }) {
|
|
|
3922
3955
|
}
|
|
3923
3956
|
async function scheduleMulticall(client, args) {
|
|
3924
3957
|
const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
|
|
3925
|
-
const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
|
|
3958
|
+
const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, multicallAddress: multicallAddress_, to } = args;
|
|
3926
3959
|
let multicallAddress = multicallAddress_;
|
|
3927
3960
|
if (!multicallAddress) {
|
|
3928
3961
|
if (!client.chain)
|
|
@@ -4001,7 +4034,7 @@ function getRevertErrorData(err) {
|
|
|
4001
4034
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
4002
4035
|
}
|
|
4003
4036
|
|
|
4004
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4037
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/ccip.js
|
|
4005
4038
|
var OffchainLookupError = class extends BaseError3 {
|
|
4006
4039
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
4007
4040
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -4046,7 +4079,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError3 {
|
|
|
4046
4079
|
}
|
|
4047
4080
|
};
|
|
4048
4081
|
|
|
4049
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4082
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
4050
4083
|
function isAddressEqual(a, b) {
|
|
4051
4084
|
if (!isAddress(a, { strict: false }))
|
|
4052
4085
|
throw new InvalidAddressError({ address: a });
|
|
@@ -4055,7 +4088,7 @@ function isAddressEqual(a, b) {
|
|
|
4055
4088
|
return a.toLowerCase() === b.toLowerCase();
|
|
4056
4089
|
}
|
|
4057
4090
|
|
|
4058
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4091
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
|
|
4059
4092
|
function decodeFunctionData(parameters) {
|
|
4060
4093
|
const { abi, data } = parameters;
|
|
4061
4094
|
const signature = slice(data, 0, 4);
|
|
@@ -4070,7 +4103,7 @@ function decodeFunctionData(parameters) {
|
|
|
4070
4103
|
};
|
|
4071
4104
|
}
|
|
4072
4105
|
|
|
4073
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4106
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
|
|
4074
4107
|
var docsPath4 = "/docs/contract/encodeErrorResult";
|
|
4075
4108
|
function encodeErrorResult(parameters) {
|
|
4076
4109
|
const { abi, errorName, args } = parameters;
|
|
@@ -4094,7 +4127,7 @@ function encodeErrorResult(parameters) {
|
|
|
4094
4127
|
return concatHex([signature, data]);
|
|
4095
4128
|
}
|
|
4096
4129
|
|
|
4097
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4130
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
|
|
4098
4131
|
var docsPath5 = "/docs/contract/encodeFunctionResult";
|
|
4099
4132
|
function encodeFunctionResult(parameters) {
|
|
4100
4133
|
const { abi, functionName, result } = parameters;
|
|
@@ -4121,7 +4154,7 @@ function encodeFunctionResult(parameters) {
|
|
|
4121
4154
|
return encodeAbiParameters(abiItem.outputs, values);
|
|
4122
4155
|
}
|
|
4123
4156
|
|
|
4124
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4157
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
|
|
4125
4158
|
var localBatchGatewayUrl = "x-batch-gateway:true";
|
|
4126
4159
|
async function localBatchGatewayRequest(parameters) {
|
|
4127
4160
|
const { data, ccipRequest: ccipRequest2 } = parameters;
|
|
@@ -4130,7 +4163,7 @@ async function localBatchGatewayRequest(parameters) {
|
|
|
4130
4163
|
const responses = [];
|
|
4131
4164
|
await Promise.all(queries.map(async (query, i) => {
|
|
4132
4165
|
try {
|
|
4133
|
-
responses[i] = await ccipRequest2(query);
|
|
4166
|
+
responses[i] = query.urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({ data: query.data, ccipRequest: ccipRequest2 }) : await ccipRequest2(query);
|
|
4134
4167
|
failures[i] = false;
|
|
4135
4168
|
} catch (err) {
|
|
4136
4169
|
failures[i] = true;
|
|
@@ -4157,7 +4190,7 @@ function encodeError(error) {
|
|
|
4157
4190
|
});
|
|
4158
4191
|
}
|
|
4159
4192
|
|
|
4160
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4193
|
+
// ../../node_modules/.pnpm/viem@2.35.1_bufferutil@4.0.8_typescript@5.4.2_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/ccip.js
|
|
4161
4194
|
var offchainLookupSignature = "0x556f1830";
|
|
4162
4195
|
var offchainLookupAbiItem = {
|
|
4163
4196
|
name: "OffchainLookup",
|
|
@@ -4277,4 +4310,4 @@ export {
|
|
|
4277
4310
|
offchainLookup,
|
|
4278
4311
|
ccipRequest
|
|
4279
4312
|
};
|
|
4280
|
-
//# sourceMappingURL=chunk-
|
|
4313
|
+
//# sourceMappingURL=chunk-OBYRQQ4V.js.map
|