@dvmkit/dvm-cli 0.1.4 → 0.2.0
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/README.md +14 -0
- package/dist/{_esm-M2HUAA3B.js → _esm-MN4BUYV6.js} +56 -54
- package/dist/{accounts-S747UW3A.js → accounts-2WZE4N5F.js} +5 -5
- package/dist/actions-LR65XILR.js +244 -0
- package/dist/{ccip-XZ5F5J6R.js → ccip-JXYJSXTW.js} +3 -3
- package/dist/{chains-PINFXYUE.js → chains-LJ7XK6H3.js} +8 -8
- package/dist/{chunk-YZUBKHHA.js → chunk-2VVVWBQA.js} +471 -471
- package/dist/chunk-3SWX5BQP.js +66 -0
- package/dist/chunk-4JXFXP4Y.js +757 -0
- package/dist/{chunk-GIDSTROG.js → chunk-4NWEJTAW.js} +160 -158
- package/dist/{chunk-UXQCP26E.js → chunk-65EY7CT4.js} +2 -2
- package/dist/{chunk-6UGZAFIR.js → chunk-6CC6JGEU.js} +348 -18
- package/dist/{chunk-PHZHPRQE.js → chunk-6O27TEXD.js} +173 -173
- package/dist/{chunk-HPRIQEJS.js → chunk-7OK7MBT6.js} +19 -19
- package/dist/{chunk-7UPZZGC5.js → chunk-BECPI5H5.js} +193 -193
- package/dist/chunk-CJTE5TS3.js +1298 -0
- package/dist/{chunk-RWBYCM47.js → chunk-ECEM3ZAS.js} +10 -10
- package/dist/{chunk-ACNNU5RY.js → chunk-ECK465AY.js} +694 -565
- package/dist/{chunk-XGABM4H5.js → chunk-EGY4KDBW.js} +3822 -2012
- package/dist/{chunk-SLDVIXCS.js → chunk-EVQERRCP.js} +12 -12
- package/dist/{chunk-4AQ4G7L5.js → chunk-EZHT2RLJ.js} +383 -383
- package/dist/{chunk-IC6OXFYW.js → chunk-F55NNH2F.js} +63 -63
- package/dist/chunk-G5C6E6PJ.js +9063 -0
- package/dist/{chunk-6AJ7H2VX.js → chunk-GZWKCIYN.js} +213 -1281
- package/dist/{chunk-ZGXCK43G.js → chunk-LH3QPVN6.js} +8499 -8498
- package/dist/{chunk-MMJR6N3J.js → chunk-MLDUKBU3.js} +1368 -1368
- package/dist/chunk-N3UJT2NJ.js +3 -0
- package/dist/chunk-N7MGIK2U.js +61408 -0
- package/dist/{chunk-BZNZWRBB.js → chunk-OWJZYYMG.js} +11 -15
- package/dist/chunk-ZJYO7OLO.js +514 -0
- package/dist/{client-D3XFLWOK.js → client-OWIOFBKS.js} +18 -16
- package/dist/{dist-7MMV3EZA.js → dist-2G3QBGID.js} +11 -10
- package/dist/dvm.js +27046 -4414
- package/dist/esm-RQLHAH2K.js +5183 -0
- package/dist/internal-JDG52DJH.js +1230 -0
- package/dist/payout-reporter-3UB5WRCV-XTVZFIAO.js +17 -0
- package/dist/{pocket-refill-GDYSTECR.js → pocket-refill-QJMMD6QN.js} +29 -30
- package/dist/revenue-reporter-JIKUPXOK-TYUBTF4P.js +11 -0
- package/dist/{secp256k1-4YWQEMGF.js → secp256k1-JLZEQ2H7.js} +2 -2
- package/dist/tempo-lifecycle-SQL3KLEZ-AATA2SKI.js +28 -0
- package/dist/{tempo-wallet-5FEOI4CF.js → tempo-wallet-QOLEIPCV-SWCXRBDS.js} +2 -4
- package/dist/{x402-VNFA3DBY.js → x402-FTG2GRAQ-UGAUMUL6.js} +13 -24
- package/package.json +2 -10
- package/skills/dvm/SKILL.md +2 -1
- package/dist/channel-store-GOV7TEDN.js +0 -62
- package/dist/chunk-3PPOU55E.js +0 -312
- package/dist/chunk-3TBULV3F.js +0 -551
- package/dist/chunk-5BUV73FO.js +0 -2351
- package/dist/chunk-EY5K4BM3.js +0 -1780
- package/dist/chunk-G3RLVJF5.js +0 -19
- package/dist/chunk-KC4UPK44.js +0 -113
- package/dist/chunk-MTBCEXJ6.js +0 -4602
- package/dist/chunk-ONQMRWY3.js +0 -83
- package/dist/chunk-TO47XRK7.js +0 -24890
- package/dist/chunk-U5TNSUYW.js +0 -1757
- package/dist/chunk-UU6QMSTQ.js +0 -171
- package/dist/chunk-ZELLQI7F.js +0 -248
- package/dist/lifecycle-5RLM5JMN.js +0 -29
- package/dist/tempo-lifecycle-DHZPQTSB.js +0 -31
- package/dist/wallet-G3VOUCL4.js +0 -30
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire as __dvmCreateRequire } from "node:module";
|
|
3
3
|
const require = __dvmCreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
|
-
FeeCapTooHighError,
|
|
6
|
-
InvalidChainIdError,
|
|
5
|
+
FeeCapTooHighError as FeeCapTooHighError2,
|
|
6
|
+
InvalidChainIdError as InvalidChainIdError2,
|
|
7
7
|
InvalidSerializedError,
|
|
8
|
-
TipAboveFeeCapError,
|
|
8
|
+
TipAboveFeeCapError as TipAboveFeeCapError2,
|
|
9
9
|
fromRpc as fromRpc2,
|
|
10
10
|
fromRpc2 as fromRpc3,
|
|
11
11
|
fromRpcType,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
toTupleList,
|
|
22
22
|
verify as verify2,
|
|
23
23
|
verify2 as verify3
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EZHT2RLJ.js";
|
|
25
25
|
import {
|
|
26
26
|
AccountNotFoundError,
|
|
27
27
|
assert2,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
formatTransaction,
|
|
38
38
|
formatTransactionReceipt,
|
|
39
39
|
from2,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
from3,
|
|
41
|
+
from4,
|
|
42
42
|
fromHex,
|
|
43
43
|
fromHex2,
|
|
44
44
|
fromHex3,
|
|
@@ -50,18 +50,18 @@ import {
|
|
|
50
50
|
getPublicKey,
|
|
51
51
|
getSelector,
|
|
52
52
|
isEqual,
|
|
53
|
-
keccak256,
|
|
53
|
+
keccak256 as keccak2562,
|
|
54
54
|
parseEventLogs,
|
|
55
55
|
parseTransaction,
|
|
56
56
|
readContract,
|
|
57
|
-
recoverAddress,
|
|
58
|
-
recoverPublicKey,
|
|
57
|
+
recoverAddress2 as recoverAddress,
|
|
58
|
+
recoverPublicKey2 as recoverPublicKey,
|
|
59
59
|
sendTransaction,
|
|
60
60
|
sendTransactionSync,
|
|
61
61
|
sign,
|
|
62
|
-
toHex,
|
|
63
|
-
toHex2,
|
|
64
|
-
toHex3,
|
|
62
|
+
toHex as toHex2,
|
|
63
|
+
toHex2 as toHex3,
|
|
64
|
+
toHex3 as toHex4,
|
|
65
65
|
toRpc,
|
|
66
66
|
toTuple,
|
|
67
67
|
validate2,
|
|
@@ -71,65 +71,65 @@ import {
|
|
|
71
71
|
writeContract,
|
|
72
72
|
writeContractSync,
|
|
73
73
|
yParityToV
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LH3QPVN6.js";
|
|
75
75
|
import {
|
|
76
|
-
|
|
76
|
+
getTransactionType,
|
|
77
|
+
hashAuthorization,
|
|
78
|
+
hashMessage,
|
|
79
|
+
hashTypedData,
|
|
80
|
+
serializeAccessList,
|
|
81
|
+
serializeTransaction,
|
|
82
|
+
sha256,
|
|
83
|
+
toRlp,
|
|
84
|
+
toYParitySignatureArray
|
|
85
|
+
} from "./chunk-6O27TEXD.js";
|
|
86
|
+
import {
|
|
87
|
+
BaseError as BaseError2,
|
|
77
88
|
assert,
|
|
78
89
|
assertRequest,
|
|
79
|
-
concat,
|
|
90
|
+
concat2 as concat,
|
|
80
91
|
defineTransactionRequest,
|
|
81
92
|
encodeFunctionData,
|
|
82
93
|
extract,
|
|
83
94
|
formatTransactionRequest,
|
|
84
|
-
from,
|
|
85
|
-
fromBytes,
|
|
86
|
-
fromNumber,
|
|
87
|
-
fromString,
|
|
95
|
+
from2 as from,
|
|
96
|
+
fromBytes2 as fromBytes,
|
|
97
|
+
fromNumber2 as fromNumber,
|
|
98
|
+
fromString2 as fromString,
|
|
88
99
|
getCallError,
|
|
89
100
|
isAddressEqual,
|
|
90
101
|
padLeft,
|
|
91
102
|
padLeft2,
|
|
92
|
-
random,
|
|
93
|
-
size,
|
|
94
|
-
slice,
|
|
103
|
+
random2 as random,
|
|
104
|
+
size2 as size,
|
|
105
|
+
slice2 as slice,
|
|
95
106
|
stringify,
|
|
96
|
-
toBigInt,
|
|
97
|
-
toNumber,
|
|
98
|
-
toString,
|
|
99
|
-
validate
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
getTransactionType,
|
|
103
|
-
hashAuthorization,
|
|
104
|
-
hashMessage,
|
|
105
|
-
hashTypedData,
|
|
106
|
-
serializeAccessList,
|
|
107
|
-
serializeTransaction,
|
|
108
|
-
sha256,
|
|
109
|
-
toRlp,
|
|
110
|
-
toYParitySignatureArray
|
|
111
|
-
} from "./chunk-PHZHPRQE.js";
|
|
107
|
+
toBigInt2 as toBigInt,
|
|
108
|
+
toNumber2 as toNumber,
|
|
109
|
+
toString2 as toString,
|
|
110
|
+
validate2 as validate
|
|
111
|
+
} from "./chunk-F55NNH2F.js";
|
|
112
112
|
import {
|
|
113
|
-
BaseError
|
|
114
|
-
FeeCapTooHighError
|
|
113
|
+
BaseError,
|
|
114
|
+
FeeCapTooHighError,
|
|
115
115
|
InvalidAddressError,
|
|
116
|
-
InvalidChainIdError
|
|
117
|
-
TipAboveFeeCapError
|
|
116
|
+
InvalidChainIdError,
|
|
117
|
+
TipAboveFeeCapError,
|
|
118
118
|
concatHex,
|
|
119
119
|
hexToBigInt,
|
|
120
120
|
hexToBytes,
|
|
121
121
|
hexToNumber,
|
|
122
122
|
isAddress,
|
|
123
|
-
keccak256
|
|
123
|
+
keccak256,
|
|
124
124
|
maxUint16,
|
|
125
125
|
maxUint256,
|
|
126
126
|
numberToHex,
|
|
127
127
|
pad,
|
|
128
128
|
parseAccount,
|
|
129
129
|
toBytes,
|
|
130
|
-
toHex
|
|
130
|
+
toHex,
|
|
131
131
|
trim
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-MLDUKBU3.js";
|
|
133
133
|
import {
|
|
134
134
|
__export
|
|
135
135
|
} from "./chunk-IYHTITNZ.js";
|
|
@@ -1062,7 +1062,7 @@ var formatters = {
|
|
|
1062
1062
|
if (args.gasPerPubdata || args.paymaster && args.paymasterInput || args.factoryDeps || args.customSignature)
|
|
1063
1063
|
return {
|
|
1064
1064
|
eip712Meta: {
|
|
1065
|
-
...args.gasPerPubdata ? { gasPerPubdata:
|
|
1065
|
+
...args.gasPerPubdata ? { gasPerPubdata: toHex(args.gasPerPubdata) } : { gasPerPubdata: toHex(gasPerPubdataDefault) },
|
|
1066
1066
|
...args.paymaster && args.paymasterInput ? {
|
|
1067
1067
|
paymasterParams: {
|
|
1068
1068
|
paymaster: args.paymaster,
|
|
@@ -1084,7 +1084,7 @@ var formatters = {
|
|
|
1084
1084
|
};
|
|
1085
1085
|
|
|
1086
1086
|
// node_modules/viem/_esm/zksync/errors/transaction.js
|
|
1087
|
-
var InvalidEip712TransactionError = class extends
|
|
1087
|
+
var InvalidEip712TransactionError = class extends BaseError {
|
|
1088
1088
|
constructor() {
|
|
1089
1089
|
super([
|
|
1090
1090
|
"Transaction is not an EIP712 transaction.",
|
|
@@ -1111,7 +1111,7 @@ function assertEip712Transaction(transaction) {
|
|
|
1111
1111
|
if (!isEIP712Transaction(transaction))
|
|
1112
1112
|
throw new InvalidEip712TransactionError();
|
|
1113
1113
|
if (!chainId || chainId <= 0)
|
|
1114
|
-
throw new
|
|
1114
|
+
throw new InvalidChainIdError({ chainId });
|
|
1115
1115
|
if (to && !isAddress(to))
|
|
1116
1116
|
throw new InvalidAddressError({ address: to });
|
|
1117
1117
|
if (from16 && !isAddress(from16))
|
|
@@ -1119,10 +1119,10 @@ function assertEip712Transaction(transaction) {
|
|
|
1119
1119
|
if (paymaster && !isAddress(paymaster))
|
|
1120
1120
|
throw new InvalidAddressError({ address: paymaster });
|
|
1121
1121
|
if (paymaster && !paymasterInput) {
|
|
1122
|
-
throw new
|
|
1122
|
+
throw new BaseError("`paymasterInput` must be provided when `paymaster` is defined");
|
|
1123
1123
|
}
|
|
1124
1124
|
if (!paymaster && paymasterInput) {
|
|
1125
|
-
throw new
|
|
1125
|
+
throw new BaseError("`paymaster` must be provided when `paymasterInput` is defined");
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
@@ -1139,19 +1139,19 @@ function serializeTransactionEIP712(transaction) {
|
|
|
1139
1139
|
const { chainId, gas, nonce: nonce2, to, from: from16, value, maxFeePerGas, maxPriorityFeePerGas, customSignature, factoryDeps, paymaster, paymasterInput, gasPerPubdata, data } = transaction;
|
|
1140
1140
|
assertEip712Transaction(transaction);
|
|
1141
1141
|
const serializedTransaction = [
|
|
1142
|
-
nonce2 ?
|
|
1143
|
-
maxPriorityFeePerGas ?
|
|
1144
|
-
maxFeePerGas ?
|
|
1145
|
-
gas ?
|
|
1142
|
+
nonce2 ? toHex(nonce2) : "0x",
|
|
1143
|
+
maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
|
|
1144
|
+
maxFeePerGas ? toHex(maxFeePerGas) : "0x",
|
|
1145
|
+
gas ? toHex(gas) : "0x",
|
|
1146
1146
|
to ?? "0x",
|
|
1147
|
-
value ?
|
|
1147
|
+
value ? toHex(value) : "0x",
|
|
1148
1148
|
data ?? "0x",
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1149
|
+
toHex(chainId),
|
|
1150
|
+
toHex(""),
|
|
1151
|
+
toHex(""),
|
|
1152
|
+
toHex(chainId),
|
|
1153
1153
|
from16 ?? "0x",
|
|
1154
|
-
gasPerPubdata ?
|
|
1154
|
+
gasPerPubdata ? toHex(gasPerPubdata) : toHex(gasPerPubdataDefault),
|
|
1155
1155
|
factoryDeps ?? [],
|
|
1156
1156
|
customSignature ?? "0x",
|
|
1157
1157
|
// EIP712 signature
|
|
@@ -1164,17 +1164,17 @@ function serializeTransactionEIP712(transaction) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
// node_modules/viem/_esm/zksync/errors/bytecode.js
|
|
1167
|
-
var BytecodeLengthExceedsMaxSizeError = class extends
|
|
1167
|
+
var BytecodeLengthExceedsMaxSizeError = class extends BaseError {
|
|
1168
1168
|
constructor({ givenLength, maxBytecodeSize: maxBytecodeSize2 }) {
|
|
1169
1169
|
super(`Bytecode cannot be longer than ${maxBytecodeSize2} bytes. Given length: ${givenLength}`, { name: "BytecodeLengthExceedsMaxSizeError" });
|
|
1170
1170
|
}
|
|
1171
1171
|
};
|
|
1172
|
-
var BytecodeLengthInWordsMustBeOddError = class extends
|
|
1172
|
+
var BytecodeLengthInWordsMustBeOddError = class extends BaseError {
|
|
1173
1173
|
constructor({ givenLengthInWords }) {
|
|
1174
1174
|
super(`Bytecode length in 32-byte words must be odd. Given length in words: ${givenLengthInWords}`, { name: "BytecodeLengthInWordsMustBeOddError" });
|
|
1175
1175
|
}
|
|
1176
1176
|
};
|
|
1177
|
-
var BytecodeLengthMustBeDivisibleBy32Error = class extends
|
|
1177
|
+
var BytecodeLengthMustBeDivisibleBy32Error = class extends BaseError {
|
|
1178
1178
|
constructor({ givenLength }) {
|
|
1179
1179
|
super(`The bytecode length in bytes must be divisible by 32. Given length: ${givenLength}`, { name: "BytecodeLengthMustBeDivisibleBy32Error" });
|
|
1180
1180
|
}
|
|
@@ -1253,7 +1253,7 @@ function transactionToMessage(transaction) {
|
|
|
1253
1253
|
nonce: nonce2 ? BigInt(nonce2) : 0n,
|
|
1254
1254
|
value: value ?? 0n,
|
|
1255
1255
|
data: data ?? "0x",
|
|
1256
|
-
factoryDeps: factoryDeps?.map((dep) =>
|
|
1256
|
+
factoryDeps: factoryDeps?.map((dep) => toHex(hashBytecode(dep))) ?? [],
|
|
1257
1257
|
paymasterInput: paymasterInput ? paymasterInput : "0x"
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
@@ -1672,9 +1672,9 @@ function serializeTransactionDeposit(transaction) {
|
|
|
1672
1672
|
sourceHash,
|
|
1673
1673
|
from16,
|
|
1674
1674
|
to ?? "0x",
|
|
1675
|
-
mint2 ?
|
|
1676
|
-
value ?
|
|
1677
|
-
gas ?
|
|
1675
|
+
mint2 ? toHex(mint2) : "0x",
|
|
1676
|
+
value ? toHex(value) : "0x",
|
|
1677
|
+
gas ? toHex(gas) : "0x",
|
|
1678
1678
|
isSystemTx ? "0x1" : "0x",
|
|
1679
1679
|
data ?? "0x"
|
|
1680
1680
|
];
|
|
@@ -4070,13 +4070,13 @@ function serializeTransactionCIP64(transaction, signature) {
|
|
|
4070
4070
|
assertTransactionCIP64(transaction);
|
|
4071
4071
|
const { chainId, gas, nonce: nonce2, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, feeCurrency, data } = transaction;
|
|
4072
4072
|
const serializedTransaction = [
|
|
4073
|
-
|
|
4074
|
-
nonce2 ?
|
|
4075
|
-
maxPriorityFeePerGas ?
|
|
4076
|
-
maxFeePerGas ?
|
|
4077
|
-
gas ?
|
|
4073
|
+
toHex(chainId),
|
|
4074
|
+
nonce2 ? toHex(nonce2) : "0x",
|
|
4075
|
+
maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
|
|
4076
|
+
maxFeePerGas ? toHex(maxFeePerGas) : "0x",
|
|
4077
|
+
gas ? toHex(gas) : "0x",
|
|
4078
4078
|
to ?? "0x",
|
|
4079
|
-
value ?
|
|
4079
|
+
value ? toHex(value) : "0x",
|
|
4080
4080
|
data ?? "0x",
|
|
4081
4081
|
serializeAccessList(accessList),
|
|
4082
4082
|
feeCurrency,
|
|
@@ -4091,20 +4091,20 @@ var MAX_MAX_FEE_PER_GAS = maxUint256;
|
|
|
4091
4091
|
function assertTransactionCIP64(transaction) {
|
|
4092
4092
|
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to, feeCurrency } = transaction;
|
|
4093
4093
|
if (chainId <= 0)
|
|
4094
|
-
throw new
|
|
4094
|
+
throw new InvalidChainIdError({ chainId });
|
|
4095
4095
|
if (to && !isAddress(to))
|
|
4096
4096
|
throw new InvalidAddressError({ address: to });
|
|
4097
4097
|
if (gasPrice)
|
|
4098
|
-
throw new
|
|
4098
|
+
throw new BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");
|
|
4099
4099
|
if (isPresent(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
|
4100
|
-
throw new
|
|
4100
|
+
throw new FeeCapTooHighError({ maxFeePerGas });
|
|
4101
4101
|
if (isPresent(maxPriorityFeePerGas) && isPresent(maxFeePerGas) && maxPriorityFeePerGas > maxFeePerGas)
|
|
4102
|
-
throw new
|
|
4102
|
+
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
4103
4103
|
if (isPresent(feeCurrency) && !isAddress(feeCurrency)) {
|
|
4104
|
-
throw new
|
|
4104
|
+
throw new BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");
|
|
4105
4105
|
}
|
|
4106
4106
|
if (isEmpty(feeCurrency)) {
|
|
4107
|
-
throw new
|
|
4107
|
+
throw new BaseError("`feeCurrency` must be provided for CIP-64 transactions.");
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
4110
4110
|
|
|
@@ -17693,7 +17693,7 @@ function assert4(config) {
|
|
|
17693
17693
|
function from5(config) {
|
|
17694
17694
|
const owners = [...config.owners].sort((a, b) => toBigInt(a.owner) < toBigInt(b.owner) ? -1 : 1);
|
|
17695
17695
|
const normalized = {
|
|
17696
|
-
salt: config.salt ?
|
|
17696
|
+
salt: config.salt ? padLeft2(config.salt, 32) : zeroSalt,
|
|
17697
17697
|
threshold: config.threshold,
|
|
17698
17698
|
owners
|
|
17699
17699
|
};
|
|
@@ -17703,7 +17703,7 @@ function from5(config) {
|
|
|
17703
17703
|
function fromTuple2(tuple) {
|
|
17704
17704
|
const [salt, threshold, owners] = tuple;
|
|
17705
17705
|
return {
|
|
17706
|
-
salt: salt && salt !== "0x" ?
|
|
17706
|
+
salt: salt && salt !== "0x" ? padLeft2(salt, 32) : zeroSalt,
|
|
17707
17707
|
threshold: threshold === "0x" ? 0 : toNumber(threshold),
|
|
17708
17708
|
owners: owners.map((owner) => {
|
|
17709
17709
|
const [ownerAddress, weight] = owner;
|
|
@@ -17716,7 +17716,7 @@ function fromTuple2(tuple) {
|
|
|
17716
17716
|
}
|
|
17717
17717
|
function getAddress(config) {
|
|
17718
17718
|
assert4(config);
|
|
17719
|
-
const hash4 =
|
|
17719
|
+
const hash4 = keccak2562(concat(fromString(accountDomain), padLeft2(config.salt ?? zeroSalt, 32), fromNumber(config.threshold, { size: 1 }), fromNumber(config.owners.length, { size: 1 }), ...config.owners.flatMap((owner) => [
|
|
17720
17720
|
owner.owner,
|
|
17721
17721
|
fromNumber(owner.weight, { size: 1 })
|
|
17722
17722
|
])));
|
|
@@ -17728,12 +17728,12 @@ function getAddress(config) {
|
|
|
17728
17728
|
function getSignPayload2(value) {
|
|
17729
17729
|
const { payload } = value;
|
|
17730
17730
|
const account = "account" in value && value.account ? value.account : getAddress(value.genesisConfig);
|
|
17731
|
-
return
|
|
17731
|
+
return keccak2562(concat(fromString(signatureDomain), from(payload), account));
|
|
17732
17732
|
}
|
|
17733
17733
|
function toTuple2(config) {
|
|
17734
17734
|
assert4(config);
|
|
17735
17735
|
const owners = config.owners.map((owner) => [owner.owner, fromNumber(owner.weight)]);
|
|
17736
|
-
const salt = config.salt ?
|
|
17736
|
+
const salt = config.salt ? padLeft2(config.salt, 32) : zeroSalt;
|
|
17737
17737
|
return [salt, fromNumber(config.threshold), owners];
|
|
17738
17738
|
}
|
|
17739
17739
|
function validate3(config) {
|
|
@@ -17744,7 +17744,7 @@ function validate3(config) {
|
|
|
17744
17744
|
return false;
|
|
17745
17745
|
}
|
|
17746
17746
|
}
|
|
17747
|
-
var InvalidConfigError = class extends
|
|
17747
|
+
var InvalidConfigError = class extends BaseError2 {
|
|
17748
17748
|
constructor({ reason }) {
|
|
17749
17749
|
super(`Invalid native multisig config: ${reason}.`);
|
|
17750
17750
|
Object.defineProperty(this, "name", {
|
|
@@ -18013,7 +18013,7 @@ function deserialize_(value, multisigDepth) {
|
|
|
18013
18013
|
reason: `multisig nesting depth exceeds ${maxNestingDepth}`,
|
|
18014
18014
|
serialized
|
|
18015
18015
|
});
|
|
18016
|
-
const decoded =
|
|
18016
|
+
const decoded = toHex3(data);
|
|
18017
18017
|
if (!Array.isArray(decoded) || decoded.length !== 2)
|
|
18018
18018
|
throw new InvalidSerializedError2({
|
|
18019
18019
|
reason: "invalid multisig wire shape: expected exactly two fields",
|
|
@@ -18235,7 +18235,7 @@ function serialize(envelope, options = {}) {
|
|
|
18235
18235
|
const type2 = getType(envelope);
|
|
18236
18236
|
if (type2 === "secp256k1") {
|
|
18237
18237
|
const secp256k1 = envelope;
|
|
18238
|
-
return concat(
|
|
18238
|
+
return concat(toHex4(secp256k1.signature), options.magic ? magicBytes : "0x");
|
|
18239
18239
|
}
|
|
18240
18240
|
if (type2 === "p256") {
|
|
18241
18241
|
const p256 = envelope;
|
|
@@ -18390,7 +18390,7 @@ function verify4(signature, parameters) {
|
|
|
18390
18390
|
}
|
|
18391
18391
|
throw new VerificationError(`Unable to verify signature envelope of type "${envelope.type}".`);
|
|
18392
18392
|
}
|
|
18393
|
-
var CoercionError = class extends
|
|
18393
|
+
var CoercionError = class extends BaseError2 {
|
|
18394
18394
|
constructor({ envelope }) {
|
|
18395
18395
|
super(`Unable to coerce value (\`${stringify(envelope)}\`) to a valid signature envelope.`);
|
|
18396
18396
|
Object.defineProperty(this, "name", {
|
|
@@ -18401,7 +18401,7 @@ var CoercionError = class extends BaseError {
|
|
|
18401
18401
|
});
|
|
18402
18402
|
}
|
|
18403
18403
|
};
|
|
18404
|
-
var MissingPropertiesError = class extends
|
|
18404
|
+
var MissingPropertiesError = class extends BaseError2 {
|
|
18405
18405
|
constructor({ envelope, missing, type: type2 }) {
|
|
18406
18406
|
super(`Signature envelope of type "${type2}" is missing required properties: ${missing.map((m) => `\`${m}\``).join(", ")}.
|
|
18407
18407
|
|
|
@@ -18414,7 +18414,7 @@ Provided: ${stringify(envelope)}`);
|
|
|
18414
18414
|
});
|
|
18415
18415
|
}
|
|
18416
18416
|
};
|
|
18417
|
-
var InvalidSerializedError2 = class extends
|
|
18417
|
+
var InvalidSerializedError2 = class extends BaseError2 {
|
|
18418
18418
|
constructor({ reason, serialized }) {
|
|
18419
18419
|
super(`Unable to deserialize signature envelope: ${reason}`, {
|
|
18420
18420
|
metaMessages: [`Serialized: ${serialized}`]
|
|
@@ -18427,7 +18427,7 @@ var InvalidSerializedError2 = class extends BaseError {
|
|
|
18427
18427
|
});
|
|
18428
18428
|
}
|
|
18429
18429
|
};
|
|
18430
|
-
var InvalidMultisigApprovalError = class extends
|
|
18430
|
+
var InvalidMultisigApprovalError = class extends BaseError2 {
|
|
18431
18431
|
constructor({ reason }) {
|
|
18432
18432
|
super(`Invalid native multisig owner approval: ${reason}.`);
|
|
18433
18433
|
Object.defineProperty(this, "name", {
|
|
@@ -18438,7 +18438,7 @@ var InvalidMultisigApprovalError = class extends BaseError {
|
|
|
18438
18438
|
});
|
|
18439
18439
|
}
|
|
18440
18440
|
};
|
|
18441
|
-
var VerificationError = class extends
|
|
18441
|
+
var VerificationError = class extends BaseError2 {
|
|
18442
18442
|
constructor() {
|
|
18443
18443
|
super(...arguments);
|
|
18444
18444
|
Object.defineProperty(this, "name", {
|
|
@@ -18464,7 +18464,7 @@ function parse(tempoAddress) {
|
|
|
18464
18464
|
const address2 = checksum(hex);
|
|
18465
18465
|
return { address: address2 };
|
|
18466
18466
|
}
|
|
18467
|
-
var InvalidPrefixError = class extends
|
|
18467
|
+
var InvalidPrefixError = class extends BaseError2 {
|
|
18468
18468
|
constructor({ address: address2 }) {
|
|
18469
18469
|
super(`Tempo address "${address2}" has an invalid prefix. Expected "tempox".`);
|
|
18470
18470
|
Object.defineProperty(this, "name", {
|
|
@@ -18592,7 +18592,7 @@ function toAddress(tokenId) {
|
|
|
18592
18592
|
return concat(tip20Prefix, tokenIdHex);
|
|
18593
18593
|
}
|
|
18594
18594
|
function compute(value) {
|
|
18595
|
-
const hash4 =
|
|
18595
|
+
const hash4 = keccak2562(encode(from3("address, bytes32"), [
|
|
18596
18596
|
resolve(value.sender),
|
|
18597
18597
|
value.salt
|
|
18598
18598
|
]));
|
|
@@ -18603,13 +18603,13 @@ function compute(value) {
|
|
|
18603
18603
|
var channelIdParameters = from3("address, address, address, address, bytes32, address, bytes32, address, uint256");
|
|
18604
18604
|
var domainSeparatorParameters = from3("bytes32, bytes32, bytes32, uint256, address");
|
|
18605
18605
|
var voucherHashParameters = from3("bytes32, bytes32, uint96");
|
|
18606
|
-
var eip712DomainTypehash =
|
|
18607
|
-
var nameHash =
|
|
18608
|
-
var versionHash =
|
|
18606
|
+
var eip712DomainTypehash = keccak2562(fromString("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"));
|
|
18607
|
+
var nameHash = keccak2562(fromString("TIP20 Channel Reserve"));
|
|
18608
|
+
var versionHash = keccak2562(fromString("1"));
|
|
18609
18609
|
var zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
18610
18610
|
var address = "0x4d50500000000000000000000000000000000000";
|
|
18611
18611
|
var closeGracePeriod = 900n;
|
|
18612
|
-
var voucherTypehash =
|
|
18612
|
+
var voucherTypehash = keccak2562(fromString("Voucher(bytes32 channelId,uint96 cumulativeAmount)"));
|
|
18613
18613
|
function from9(value) {
|
|
18614
18614
|
const { authorizedSigner = zeroAddress, expiringNonceHash, operator = zeroAddress, payee, payer, salt, token } = value;
|
|
18615
18615
|
return {
|
|
@@ -18624,7 +18624,7 @@ function from9(value) {
|
|
|
18624
18624
|
}
|
|
18625
18625
|
function computeId(channel, options) {
|
|
18626
18626
|
const channel_ = from9(channel);
|
|
18627
|
-
return
|
|
18627
|
+
return keccak2562(encode(channelIdParameters, [
|
|
18628
18628
|
channel_.payer,
|
|
18629
18629
|
channel_.payee,
|
|
18630
18630
|
channel_.operator,
|
|
@@ -18637,7 +18637,7 @@ function computeId(channel, options) {
|
|
|
18637
18637
|
]));
|
|
18638
18638
|
}
|
|
18639
18639
|
function domainSeparator(value) {
|
|
18640
|
-
return
|
|
18640
|
+
return keccak2562(encode(domainSeparatorParameters, [
|
|
18641
18641
|
eip712DomainTypehash,
|
|
18642
18642
|
nameHash,
|
|
18643
18643
|
versionHash,
|
|
@@ -18646,12 +18646,12 @@ function domainSeparator(value) {
|
|
|
18646
18646
|
]));
|
|
18647
18647
|
}
|
|
18648
18648
|
function getVoucherSignPayload(value) {
|
|
18649
|
-
const voucherHash =
|
|
18649
|
+
const voucherHash = keccak2562(encode(voucherHashParameters, [
|
|
18650
18650
|
voucherTypehash,
|
|
18651
18651
|
value.channelId,
|
|
18652
18652
|
value.cumulativeAmount
|
|
18653
18653
|
]));
|
|
18654
|
-
return
|
|
18654
|
+
return keccak2562(concat("0x1901", domainSeparator({ chainId: value.chainId }), voucherHash));
|
|
18655
18655
|
}
|
|
18656
18656
|
function resolveAddress(address2) {
|
|
18657
18657
|
return from2(address2);
|
|
@@ -18695,7 +18695,7 @@ function minimumOutput(expectedAmount, slippageBps) {
|
|
|
18695
18695
|
const bounded = expectedAmount * (scale - BigInt(slippageBps)) / scale;
|
|
18696
18696
|
return bounded === 0n ? 1n : bounded;
|
|
18697
18697
|
}
|
|
18698
|
-
var InvalidExpectedOutputError = class extends
|
|
18698
|
+
var InvalidExpectedOutputError = class extends BaseError2 {
|
|
18699
18699
|
constructor(options) {
|
|
18700
18700
|
super(`Expected output \`${options.expectedAmount}\` must be greater than zero.`);
|
|
18701
18701
|
Object.defineProperty(this, "name", {
|
|
@@ -18706,7 +18706,7 @@ var InvalidExpectedOutputError = class extends BaseError {
|
|
|
18706
18706
|
});
|
|
18707
18707
|
}
|
|
18708
18708
|
};
|
|
18709
|
-
var InvalidSlippageError = class extends
|
|
18709
|
+
var InvalidSlippageError = class extends BaseError2 {
|
|
18710
18710
|
constructor(options) {
|
|
18711
18711
|
super(`Slippage tolerance \`${options.slippageBps}\` is invalid.`, {
|
|
18712
18712
|
metaMessages: [
|
|
@@ -18883,13 +18883,13 @@ function getSignPayload3(authorization) {
|
|
|
18883
18883
|
return hash(authorization);
|
|
18884
18884
|
}
|
|
18885
18885
|
function deserialize2(serialized) {
|
|
18886
|
-
const tuple =
|
|
18886
|
+
const tuple = toHex3(serialized);
|
|
18887
18887
|
return fromTuple4(tuple);
|
|
18888
18888
|
}
|
|
18889
18889
|
function hash(authorization) {
|
|
18890
18890
|
const [authorizationTuple] = toTuple4(authorization);
|
|
18891
18891
|
const serialized = fromHex2(authorizationTuple);
|
|
18892
|
-
return
|
|
18892
|
+
return keccak2562(serialized);
|
|
18893
18893
|
}
|
|
18894
18894
|
function serialize2(authorization) {
|
|
18895
18895
|
const tuple = toTuple4(authorization);
|
|
@@ -19090,7 +19090,7 @@ __export(PoolId_exports, {
|
|
|
19090
19090
|
from: () => from11
|
|
19091
19091
|
});
|
|
19092
19092
|
function from11(value) {
|
|
19093
|
-
return
|
|
19093
|
+
return keccak2562(concat(padLeft2(toAddress(value.userToken), 32), padLeft2(toAddress(value.validatorToken), 32)));
|
|
19094
19094
|
}
|
|
19095
19095
|
|
|
19096
19096
|
// node_modules/ox/_esm/tempo/TokenRole.js
|
|
@@ -19117,7 +19117,7 @@ var toPreHashed = {
|
|
|
19117
19117
|
function serialize3(role) {
|
|
19118
19118
|
if (role === "defaultAdmin")
|
|
19119
19119
|
return "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
19120
|
-
return
|
|
19120
|
+
return keccak2562(fromString(toPreHashed[role] ?? role));
|
|
19121
19121
|
}
|
|
19122
19122
|
|
|
19123
19123
|
// node_modules/ox/_esm/tempo/Transaction.js
|
|
@@ -19318,19 +19318,19 @@ function assert6(envelope) {
|
|
|
19318
19318
|
assert2(call.to, { strict: false });
|
|
19319
19319
|
}
|
|
19320
19320
|
if (chainId <= 0)
|
|
19321
|
-
throw new
|
|
19321
|
+
throw new InvalidChainIdError2({ chainId });
|
|
19322
19322
|
if (maxFeePerGas && BigInt(maxFeePerGas) > 2n ** 256n - 1n)
|
|
19323
|
-
throw new
|
|
19323
|
+
throw new FeeCapTooHighError2({
|
|
19324
19324
|
feeCap: maxFeePerGas
|
|
19325
19325
|
});
|
|
19326
19326
|
if (maxPriorityFeePerGas && maxFeePerGas && maxPriorityFeePerGas > maxFeePerGas)
|
|
19327
|
-
throw new
|
|
19327
|
+
throw new TipAboveFeeCapError2({
|
|
19328
19328
|
maxFeePerGas,
|
|
19329
19329
|
maxPriorityFeePerGas
|
|
19330
19330
|
});
|
|
19331
19331
|
}
|
|
19332
19332
|
function deserialize3(serialized) {
|
|
19333
|
-
const transactionArray =
|
|
19333
|
+
const transactionArray = toHex3(slice(serialized, 1));
|
|
19334
19334
|
const [chainId, maxPriorityFeePerGas, maxFeePerGas, gas, calls, accessList, nonceKey, nonce2, validBefore, validAfter, feeToken, feePayerSignatureOrSender, authorizationList, keyAuthorizationOrSignature, maybeSignature] = transactionArray;
|
|
19335
19335
|
const keyAuthorization = Array.isArray(keyAuthorizationOrSignature) ? keyAuthorizationOrSignature : void 0;
|
|
19336
19336
|
const signature = keyAuthorization ? maybeSignature : keyAuthorizationOrSignature;
|
|
@@ -19510,12 +19510,12 @@ function encodeForSigning(envelope) {
|
|
|
19510
19510
|
function getSignPayload4(envelope, options = {}) {
|
|
19511
19511
|
const sigHash = hash2(envelope, { presign: true });
|
|
19512
19512
|
if (options.from)
|
|
19513
|
-
return
|
|
19513
|
+
return keccak2562(concat("0x04", sigHash, resolve(options.from)));
|
|
19514
19514
|
return sigHash;
|
|
19515
19515
|
}
|
|
19516
19516
|
function hash2(envelope, options = {}) {
|
|
19517
19517
|
const serialized = options.presign ? encodeForSigning(envelope) : serialize4(envelope);
|
|
19518
|
-
return
|
|
19518
|
+
return keccak2562(serialized);
|
|
19519
19519
|
}
|
|
19520
19520
|
function getFeePayerSignPayload(envelope, options) {
|
|
19521
19521
|
const sender = resolve(options.sender);
|
|
@@ -19523,7 +19523,7 @@ function getFeePayerSignPayload(envelope, options) {
|
|
|
19523
19523
|
sender,
|
|
19524
19524
|
format: "feePayer"
|
|
19525
19525
|
});
|
|
19526
|
-
return
|
|
19526
|
+
return keccak2562(serialized);
|
|
19527
19527
|
}
|
|
19528
19528
|
function validate5(envelope) {
|
|
19529
19529
|
try {
|
|
@@ -19533,7 +19533,7 @@ function validate5(envelope) {
|
|
|
19533
19533
|
return false;
|
|
19534
19534
|
}
|
|
19535
19535
|
}
|
|
19536
|
-
var CallsEmptyError = class extends
|
|
19536
|
+
var CallsEmptyError = class extends BaseError2 {
|
|
19537
19537
|
constructor() {
|
|
19538
19538
|
super("Calls list cannot be empty.");
|
|
19539
19539
|
Object.defineProperty(this, "name", {
|
|
@@ -19544,7 +19544,7 @@ var CallsEmptyError = class extends BaseError {
|
|
|
19544
19544
|
});
|
|
19545
19545
|
}
|
|
19546
19546
|
};
|
|
19547
|
-
var InvalidValidityWindowError = class extends
|
|
19547
|
+
var InvalidValidityWindowError = class extends BaseError2 {
|
|
19548
19548
|
constructor({ validBefore, validAfter }) {
|
|
19549
19549
|
super(`validBefore (${validBefore}) must be greater than validAfter (${validAfter}).`);
|
|
19550
19550
|
Object.defineProperty(this, "name", {
|
|
@@ -19595,7 +19595,7 @@ function validate6(address2) {
|
|
|
19595
19595
|
return false;
|
|
19596
19596
|
}
|
|
19597
19597
|
}
|
|
19598
|
-
var InvalidMagicError = class extends
|
|
19598
|
+
var InvalidMagicError = class extends BaseError2 {
|
|
19599
19599
|
constructor({ address: address2 }) {
|
|
19600
19600
|
super(`Address "${address2}" does not contain the TIP-1022 virtual address marker.`);
|
|
19601
19601
|
Object.defineProperty(this, "name", {
|
|
@@ -19616,9 +19616,9 @@ function toFixedHex(value, size2) {
|
|
|
19616
19616
|
return fromNumber(value, { size: size2 });
|
|
19617
19617
|
if (typeof value === "string") {
|
|
19618
19618
|
assert(value, { strict: true });
|
|
19619
|
-
return
|
|
19619
|
+
return padLeft2(value, size2);
|
|
19620
19620
|
}
|
|
19621
|
-
return fromBytes(
|
|
19621
|
+
return fromBytes(padLeft(value, size2));
|
|
19622
19622
|
}
|
|
19623
19623
|
|
|
19624
19624
|
// node_modules/ox/_esm/tempo/ZoneId.js
|
|
@@ -19648,7 +19648,7 @@ function toChainId(zoneId, sourceId70 = defaultSourceId) {
|
|
|
19648
19648
|
const { base: base2, range } = getChainIdConfig(sourceId70);
|
|
19649
19649
|
return base2 + zoneId % range;
|
|
19650
19650
|
}
|
|
19651
|
-
var UnsupportedSourceIdError = class extends
|
|
19651
|
+
var UnsupportedSourceIdError = class extends BaseError2 {
|
|
19652
19652
|
constructor({ sourceId: sourceId70 }) {
|
|
19653
19653
|
super(`Source chain ID "${sourceId70}" is not supported.`, {
|
|
19654
19654
|
metaMessages: ["Supported source chain IDs: 4217, 42431."]
|
|
@@ -19731,11 +19731,11 @@ function getFields(authentication) {
|
|
|
19731
19731
|
function getSignPayload5(authentication, options = {}) {
|
|
19732
19732
|
const authHash = hash3(authentication);
|
|
19733
19733
|
if (options.userAddress)
|
|
19734
|
-
return
|
|
19734
|
+
return keccak2562(concat("0x04", authHash, resolve(options.userAddress)));
|
|
19735
19735
|
return authHash;
|
|
19736
19736
|
}
|
|
19737
19737
|
function hash3(authentication) {
|
|
19738
|
-
return
|
|
19738
|
+
return keccak2562(concat(magicBytes2, getFields(authentication)));
|
|
19739
19739
|
}
|
|
19740
19740
|
function serialize5(authentication, options = {}) {
|
|
19741
19741
|
const signature = options.signature || authentication.signature;
|
|
@@ -19743,7 +19743,7 @@ function serialize5(authentication, options = {}) {
|
|
|
19743
19743
|
throw new MissingSignatureError();
|
|
19744
19744
|
return concat(serialize(from6(signature)), getFields(authentication));
|
|
19745
19745
|
}
|
|
19746
|
-
var InvalidSerializedError3 = class extends
|
|
19746
|
+
var InvalidSerializedError3 = class extends BaseError2 {
|
|
19747
19747
|
constructor({ reason, serialized }) {
|
|
19748
19748
|
super(`Unable to deserialize Zone RPC authentication: ${reason}`, {
|
|
19749
19749
|
metaMessages: [`Serialized: ${serialized}`]
|
|
@@ -19756,7 +19756,7 @@ var InvalidSerializedError3 = class extends BaseError {
|
|
|
19756
19756
|
});
|
|
19757
19757
|
}
|
|
19758
19758
|
};
|
|
19759
|
-
var MissingSignatureError = class extends
|
|
19759
|
+
var MissingSignatureError = class extends BaseError2 {
|
|
19760
19760
|
constructor() {
|
|
19761
19761
|
super("Zone RPC authentication is missing a signature.");
|
|
19762
19762
|
Object.defineProperty(this, "name", {
|
|
@@ -25631,7 +25631,7 @@ function fromSecp256k1(privateKey, options = {}) {
|
|
|
25631
25631
|
async sign(parameters) {
|
|
25632
25632
|
const { hash: hash4 } = parameters;
|
|
25633
25633
|
const signature = sign({ payload: hash4, privateKey });
|
|
25634
|
-
return
|
|
25634
|
+
return toHex4(signature);
|
|
25635
25635
|
}
|
|
25636
25636
|
});
|
|
25637
25637
|
}
|
|
@@ -25749,13 +25749,13 @@ async function signKeyAuthorization(account, parameters) {
|
|
|
25749
25749
|
function fromBase(parameters) {
|
|
25750
25750
|
const { keyType = "secp256k1", parentAddress, source = "privateKey", internal_version = "v2" } = parameters;
|
|
25751
25751
|
const address2 = parentAddress ?? fromPublicKey(parameters.publicKey);
|
|
25752
|
-
const publicKey =
|
|
25752
|
+
const publicKey = toHex2(parameters.publicKey, {
|
|
25753
25753
|
includePrefix: false
|
|
25754
25754
|
});
|
|
25755
25755
|
async function sign5({ hash: hash4, raw }) {
|
|
25756
25756
|
if (raw)
|
|
25757
25757
|
return await parameters.sign({ hash: hash4 });
|
|
25758
|
-
const innerHash = parentAddress && internal_version === "v2" ?
|
|
25758
|
+
const innerHash = parentAddress && internal_version === "v2" ? keccak256(concat("0x04", hash4, parentAddress)) : hash4;
|
|
25759
25759
|
const signature = await parameters.sign({ hash: innerHash });
|
|
25760
25760
|
if (parentAddress)
|
|
25761
25761
|
return SignatureEnvelope_exports.serialize(SignatureEnvelope_exports.from({
|
|
@@ -25800,7 +25800,7 @@ function fromBase(parameters) {
|
|
|
25800
25800
|
return { ...transaction, feePayerSignature: null };
|
|
25801
25801
|
return transaction;
|
|
25802
25802
|
})();
|
|
25803
|
-
const payload =
|
|
25803
|
+
const payload = keccak256(await serializer(presign));
|
|
25804
25804
|
const multisig = transaction.multisig;
|
|
25805
25805
|
if (multisig) {
|
|
25806
25806
|
const digest = MultisigConfig_exports.getSignPayload({
|
|
@@ -26698,7 +26698,7 @@ var chainConfig5 = {
|
|
|
26698
26698
|
})();
|
|
26699
26699
|
if (envelope) {
|
|
26700
26700
|
if (envelope?.type === "keychain" && mode2 === "allowAccessKey") {
|
|
26701
|
-
const innerPayload = envelope.version === "v2" ?
|
|
26701
|
+
const innerPayload = envelope.version === "v2" ? keccak256(concat("0x04", hash4, address2)) : hash4;
|
|
26702
26702
|
const accessKeyAddress = (() => {
|
|
26703
26703
|
try {
|
|
26704
26704
|
return SignatureEnvelope_exports.extractAddress({
|
|
@@ -29282,69 +29282,6 @@ var zoraTestnet = /* @__PURE__ */ defineChain({
|
|
|
29282
29282
|
});
|
|
29283
29283
|
|
|
29284
29284
|
export {
|
|
29285
|
-
extractAddress,
|
|
29286
|
-
from6 as from,
|
|
29287
|
-
verify4 as verify,
|
|
29288
|
-
SignatureEnvelope_exports,
|
|
29289
|
-
TokenId_exports,
|
|
29290
|
-
Channel_exports,
|
|
29291
|
-
EarnShares_exports,
|
|
29292
|
-
KeyAuthorization_exports,
|
|
29293
|
-
PoolId_exports,
|
|
29294
|
-
TokenRole_exports,
|
|
29295
|
-
TxEnvelopeTempo_exports,
|
|
29296
|
-
VirtualAddress_exports,
|
|
29297
|
-
ZoneId_exports,
|
|
29298
|
-
ZoneRpcAuthentication_exports,
|
|
29299
|
-
addressRegistry,
|
|
29300
|
-
nonce,
|
|
29301
|
-
receivePolicyGuard,
|
|
29302
|
-
stablecoinDex,
|
|
29303
|
-
tip20,
|
|
29304
|
-
tip20ChannelReserve,
|
|
29305
|
-
tip20Factory,
|
|
29306
|
-
tip403Registry,
|
|
29307
|
-
feeManager,
|
|
29308
|
-
feeAmm,
|
|
29309
|
-
validatorConfig,
|
|
29310
|
-
earnVault,
|
|
29311
|
-
earnFees,
|
|
29312
|
-
earnEngine,
|
|
29313
|
-
earnRouter,
|
|
29314
|
-
earnRouterCallbackData,
|
|
29315
|
-
Abis_exports,
|
|
29316
|
-
deserialize5 as deserialize,
|
|
29317
|
-
Transaction_exports3 as Transaction_exports,
|
|
29318
|
-
signVoucher,
|
|
29319
|
-
Account_exports,
|
|
29320
|
-
accountKeychain2 as accountKeychain,
|
|
29321
|
-
accountRegistrar,
|
|
29322
|
-
addressRegistry2,
|
|
29323
|
-
feeManager2,
|
|
29324
|
-
nonceManager,
|
|
29325
|
-
pathUsd,
|
|
29326
|
-
receivePolicyGuard2,
|
|
29327
|
-
signatureVerifier2 as signatureVerifier,
|
|
29328
|
-
stablecoinDex2,
|
|
29329
|
-
tip20ChannelReserve2,
|
|
29330
|
-
tip20Factory2,
|
|
29331
|
-
tip403Registry2,
|
|
29332
|
-
validator,
|
|
29333
|
-
zoneOutbox,
|
|
29334
|
-
Addresses_exports,
|
|
29335
|
-
resolveToken,
|
|
29336
|
-
findDeclaredToken,
|
|
29337
|
-
resolveTokenWithDecimals,
|
|
29338
|
-
pickWriteParameters,
|
|
29339
|
-
pickWriteSyncParameters,
|
|
29340
|
-
resolveCallParameters,
|
|
29341
|
-
defineCall,
|
|
29342
|
-
accessKey_exports,
|
|
29343
|
-
chainConfig5 as chainConfig,
|
|
29344
|
-
tempo,
|
|
29345
|
-
tempoDevnet,
|
|
29346
|
-
tempoLocalnet,
|
|
29347
|
-
tempoModerato,
|
|
29348
29285
|
zeroG,
|
|
29349
29286
|
zeroGGalileoTestnet,
|
|
29350
29287
|
zeroGMainnet,
|
|
@@ -29964,6 +29901,69 @@ export {
|
|
|
29964
29901
|
telcoinTestnet,
|
|
29965
29902
|
telos,
|
|
29966
29903
|
telosTestnet,
|
|
29904
|
+
extractAddress,
|
|
29905
|
+
from6 as from,
|
|
29906
|
+
verify4 as verify,
|
|
29907
|
+
SignatureEnvelope_exports,
|
|
29908
|
+
TokenId_exports,
|
|
29909
|
+
Channel_exports,
|
|
29910
|
+
EarnShares_exports,
|
|
29911
|
+
KeyAuthorization_exports,
|
|
29912
|
+
PoolId_exports,
|
|
29913
|
+
TokenRole_exports,
|
|
29914
|
+
TxEnvelopeTempo_exports,
|
|
29915
|
+
VirtualAddress_exports,
|
|
29916
|
+
ZoneId_exports,
|
|
29917
|
+
ZoneRpcAuthentication_exports,
|
|
29918
|
+
addressRegistry,
|
|
29919
|
+
nonce,
|
|
29920
|
+
receivePolicyGuard,
|
|
29921
|
+
stablecoinDex,
|
|
29922
|
+
tip20,
|
|
29923
|
+
tip20ChannelReserve,
|
|
29924
|
+
tip20Factory,
|
|
29925
|
+
tip403Registry,
|
|
29926
|
+
feeManager,
|
|
29927
|
+
feeAmm,
|
|
29928
|
+
validatorConfig,
|
|
29929
|
+
earnVault,
|
|
29930
|
+
earnFees,
|
|
29931
|
+
earnEngine,
|
|
29932
|
+
earnRouter,
|
|
29933
|
+
earnRouterCallbackData,
|
|
29934
|
+
Abis_exports,
|
|
29935
|
+
deserialize5 as deserialize,
|
|
29936
|
+
Transaction_exports3 as Transaction_exports,
|
|
29937
|
+
signVoucher,
|
|
29938
|
+
Account_exports,
|
|
29939
|
+
accountKeychain2 as accountKeychain,
|
|
29940
|
+
accountRegistrar,
|
|
29941
|
+
addressRegistry2,
|
|
29942
|
+
feeManager2,
|
|
29943
|
+
nonceManager,
|
|
29944
|
+
pathUsd,
|
|
29945
|
+
receivePolicyGuard2,
|
|
29946
|
+
signatureVerifier2 as signatureVerifier,
|
|
29947
|
+
stablecoinDex2,
|
|
29948
|
+
tip20ChannelReserve2,
|
|
29949
|
+
tip20Factory2,
|
|
29950
|
+
tip403Registry2,
|
|
29951
|
+
validator,
|
|
29952
|
+
zoneOutbox,
|
|
29953
|
+
Addresses_exports,
|
|
29954
|
+
resolveToken,
|
|
29955
|
+
findDeclaredToken,
|
|
29956
|
+
resolveTokenWithDecimals,
|
|
29957
|
+
pickWriteParameters,
|
|
29958
|
+
pickWriteSyncParameters,
|
|
29959
|
+
resolveCallParameters,
|
|
29960
|
+
defineCall,
|
|
29961
|
+
accessKey_exports,
|
|
29962
|
+
chainConfig5 as chainConfig,
|
|
29963
|
+
tempo,
|
|
29964
|
+
tempoDevnet,
|
|
29965
|
+
tempoLocalnet,
|
|
29966
|
+
tempoModerato,
|
|
29967
29967
|
tenet,
|
|
29968
29968
|
ternoa,
|
|
29969
29969
|
thaiChain,
|