@toon-protocol/client 4.1.2 → 4.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/dist/{chunk-2FCRHYFJ.js → chunk-6VD2Y62D.js} +3 -3
- package/dist/chunk-6VD2Y62D.js.map +1 -0
- package/dist/cli/main.js +1 -1
- package/dist/{client-66Z6WVBV.js → client-L75P6SOK.js} +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2FCRHYFJ.js.map +0 -1
- /package/dist/{client-66Z6WVBV.js.map → client-L75P6SOK.js.map} +0 -0
|
@@ -3839,7 +3839,7 @@ var PERMIT2_DEPOSIT_COLLECTOR_ADDRESS = "0x4020425FAf3B746C082C2f942b4E5159887B0
|
|
|
3839
3839
|
var PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
3840
3840
|
var MIN_WITHDRAW_DELAY_SECONDS = 15 * 60;
|
|
3841
3841
|
var MAX_WITHDRAW_DELAY_SECONDS = 30 * 24 * 60 * 60;
|
|
3842
|
-
var MAX_VOUCHER_AMOUNT = 2n **
|
|
3842
|
+
var MAX_VOUCHER_AMOUNT = 2n ** 128n - 1n;
|
|
3843
3843
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
3844
3844
|
var CHANNEL_CONFIG_TYPES = {
|
|
3845
3845
|
ChannelConfig: [
|
|
@@ -3956,7 +3956,7 @@ function batchChannelId(config, chainId) {
|
|
|
3956
3956
|
function assertVoucherAmount(amount) {
|
|
3957
3957
|
if (amount < 0n || amount > MAX_VOUCHER_AMOUNT) {
|
|
3958
3958
|
throw new ValidationError(
|
|
3959
|
-
`voucher amount ${amount} is outside 0..2^
|
|
3959
|
+
`voucher amount ${amount} is outside 0..2^128-1, the uint128 a voucher carries`
|
|
3960
3960
|
);
|
|
3961
3961
|
}
|
|
3962
3962
|
}
|
|
@@ -8748,4 +8748,4 @@ export {
|
|
|
8748
8748
|
toEnvelopeRequest,
|
|
8749
8749
|
ToonClient
|
|
8750
8750
|
};
|
|
8751
|
-
//# sourceMappingURL=chunk-
|
|
8751
|
+
//# sourceMappingURL=chunk-6VD2Y62D.js.map
|