@zama-fhe/sdk 3.8.0-beta.2 → 3.8.0-beta.21
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/cjs/alignment.cjs +2 -0
- package/dist/cjs/alignment.cjs.map +1 -0
- package/dist/cjs/base-signer.cjs +1 -1
- package/dist/cjs/base-signer.cjs.map +1 -1
- package/dist/cjs/chains.cjs +1 -1
- package/dist/cjs/chains.cjs.map +1 -1
- package/dist/cjs/cleartext.cjs +1 -1
- package/dist/cjs/cleartext.cjs.map +1 -1
- package/dist/cjs/eip1193-subscribe.cjs +1 -1
- package/dist/cjs/eip1193-subscribe.cjs.map +1 -1
- package/dist/cjs/encryption.cjs.map +1 -1
- package/dist/cjs/ethers/index.cjs +1 -1
- package/dist/cjs/ethers/index.cjs.map +1 -1
- package/dist/cjs/fatal-batch.cjs.map +1 -1
- package/dist/cjs/fhevm-relayer.cjs +2 -2
- package/dist/cjs/fhevm-relayer.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/internal/index.cjs +1 -1
- package/dist/cjs/internal/index.cjs.map +1 -1
- package/dist/cjs/log-decoding.cjs +2 -0
- package/dist/cjs/log-decoding.cjs.map +1 -0
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/query/index.cjs +1 -1
- package/dist/cjs/query/index.cjs.map +1 -1
- package/dist/cjs/query-keys.cjs +2 -0
- package/dist/cjs/query-keys.cjs.map +1 -0
- package/dist/cjs/relayer.cjs +1 -1
- package/dist/cjs/relayer.cjs.map +1 -1
- package/dist/cjs/signing.cjs +1 -1
- package/dist/cjs/signing.cjs.map +1 -1
- package/dist/cjs/telemetry.cjs +1 -1
- package/dist/cjs/telemetry.cjs.map +1 -1
- package/dist/cjs/token.cjs +1 -1
- package/dist/cjs/token.cjs.map +1 -1
- package/dist/cjs/typed-data.cjs +2 -0
- package/dist/cjs/typed-data.cjs.map +1 -0
- package/dist/cjs/validation.cjs.map +1 -1
- package/dist/cjs/vaults/index.cjs +1 -1
- package/dist/cjs/vaults/index.cjs.map +1 -1
- package/dist/cjs/viem/index.cjs +1 -1
- package/dist/cjs/viem/index.cjs.map +1 -1
- package/dist/cjs/web/index.cjs +1 -1
- package/dist/cjs/web/index.cjs.map +1 -1
- package/dist/cjs/wrappers-registry.cjs.map +1 -1
- package/dist/esm/alignment-o-YIndFR.js +2 -0
- package/dist/esm/alignment-o-YIndFR.js.map +1 -0
- package/dist/esm/{base-signer-BxIDBDTF.d.ts → base-signer-nenGJU9U.d.ts} +2 -7
- package/dist/esm/base-signer-p5iz9eeb.js +2 -0
- package/dist/esm/base-signer-p5iz9eeb.js.map +1 -0
- package/dist/esm/chains/index.d.ts +11 -1
- package/dist/esm/chains/index.js +1 -1
- package/dist/esm/chains-BQXSxIwU.js +2 -0
- package/dist/esm/chains-BQXSxIwU.js.map +1 -0
- package/dist/esm/cleartext/index.d.ts +9 -2
- package/dist/esm/cleartext/index.js +1 -1
- package/dist/esm/{cleartext-BnTAN4-g.d.ts → cleartext-BLMLdKFh.d.ts} +2 -5
- package/dist/esm/{cleartext-CvCakQal.js → cleartext-C1Y5zc1Y.js} +2 -2
- package/dist/esm/cleartext-C1Y5zc1Y.js.map +1 -0
- package/dist/esm/{decryption-B0mY2M8N.d.ts → decryption-Cp8calaa.d.ts} +3777 -126
- package/dist/esm/{eip1193-subscribe-CNxVHW6y.js → eip1193-subscribe-DxAQh8dY.js} +2 -2
- package/dist/esm/eip1193-subscribe-DxAQh8dY.js.map +1 -0
- package/dist/esm/{encrypt-worker-client-BW88njEe.d.ts → encrypt-worker-client-CkEIA0Tp.d.ts} +3 -6
- package/dist/esm/encrypt.worker.js +27 -33
- package/dist/esm/{encryption-6AVd-82z.js → encryption-BT886Jlj.js} +2 -2
- package/dist/esm/{encryption-6AVd-82z.js.map → encryption-BT886Jlj.js.map} +1 -1
- package/dist/esm/ethers/index.d.ts +39 -34
- package/dist/esm/ethers/index.js +1 -1
- package/dist/esm/ethers/index.js.map +1 -1
- package/dist/esm/{fatal-batch-BiiS7KdS.js → fatal-batch-BYeHrf0V.js} +2 -2
- package/dist/esm/fatal-batch-BYeHrf0V.js.map +1 -0
- package/dist/esm/fhevm-relayer-BEzN0aev.js +8 -0
- package/dist/esm/fhevm-relayer-BEzN0aev.js.map +1 -0
- package/dist/esm/{index-DXCcwJ77.d.ts → index-CI6f4jxt.d.ts} +7 -10
- package/dist/esm/{index-fsWBYM8S.d.ts → index-ClNBSbRy.d.ts} +7 -11
- package/dist/esm/{index-D1Wtji3m.d.ts → index-ZTcD9b_z.d.ts} +31 -29
- package/dist/esm/index.d.ts +26 -31
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal/index.d.ts +14 -15
- package/dist/esm/internal/index.js +1 -1
- package/dist/esm/internal/index.js.map +1 -1
- package/dist/esm/{invalidation-CJ-pzOUG.d.ts → invalidation-IBiMIXGB.d.ts} +1 -4
- package/dist/esm/log-decoding-ZthqwHOv.js +2 -0
- package/dist/esm/log-decoding-ZthqwHOv.js.map +1 -0
- package/dist/esm/node/index.d.ts +12 -4
- package/dist/esm/node/index.js +1 -1
- package/dist/esm/node/index.js.map +1 -1
- package/dist/esm/query/index.d.ts +68 -141
- package/dist/esm/query/index.js +1 -1
- package/dist/esm/query/index.js.map +1 -1
- package/dist/esm/query-keys-CSPxPLBB.js +2 -0
- package/dist/esm/query-keys-CSPxPLBB.js.map +1 -0
- package/dist/esm/relayer-nWfQAlo7.js +2 -0
- package/dist/esm/relayer-nWfQAlo7.js.map +1 -0
- package/dist/esm/{signing-C6nbPCyd.js → signing-CVEOw21I.js} +2 -2
- package/dist/esm/signing-CVEOw21I.js.map +1 -0
- package/dist/esm/telemetry-YFH36F_7.js +2 -0
- package/dist/esm/telemetry-YFH36F_7.js.map +1 -0
- package/dist/esm/token-AXsOIUDB.js +2 -0
- package/dist/esm/token-AXsOIUDB.js.map +1 -0
- package/dist/esm/typed-data-eAgGr9V-.js +2 -0
- package/dist/esm/typed-data-eAgGr9V-.js.map +1 -0
- package/dist/esm/{types-Dc1fpXWt.d.ts → types-D253qkvB.d.ts} +3 -6
- package/dist/esm/{types-C2ccCjoA.d.ts → types-DH06Ap0n.d.ts} +3 -6
- package/dist/esm/{types-CHepK8MK.d.ts → types-Ubeo72FV.d.ts} +57 -41
- package/dist/esm/{validation-ClSvPh6P.js → validation-CZfDLOUh.js} +2 -2
- package/dist/esm/{validation-ClSvPh6P.js.map → validation-CZfDLOUh.js.map} +1 -1
- package/dist/esm/vaults/index.d.ts +247 -13771
- package/dist/esm/vaults/index.js +1 -1
- package/dist/esm/vaults/index.js.map +1 -1
- package/dist/esm/viem/index.d.ts +39 -34
- package/dist/esm/viem/index.js +1 -1
- package/dist/esm/viem/index.js.map +1 -1
- package/dist/esm/web/index.d.ts +13 -7
- package/dist/esm/web/index.js +1 -1
- package/dist/esm/web/index.js.map +1 -1
- package/dist/esm/wrappers-registry-Cm3JJeqx.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/applied-runtime.cjs +0 -2
- package/dist/cjs/applied-runtime.cjs.map +0 -1
- package/dist/cjs/erc165.cjs +0 -2
- package/dist/cjs/erc165.cjs.map +0 -1
- package/dist/cjs/invalidation.cjs +0 -2
- package/dist/cjs/invalidation.cjs.map +0 -1
- package/dist/cjs/primitives.cjs +0 -2
- package/dist/cjs/primitives.cjs.map +0 -1
- package/dist/cjs/wrapped-token.cjs +0 -2
- package/dist/cjs/wrapped-token.cjs.map +0 -1
- package/dist/esm/applied-runtime-3fzqBC2V.js +0 -2
- package/dist/esm/applied-runtime-3fzqBC2V.js.map +0 -1
- package/dist/esm/base-signer-BoBsvn5Q.js +0 -2
- package/dist/esm/base-signer-BoBsvn5Q.js.map +0 -1
- package/dist/esm/chains-BwlDI944.js +0 -2
- package/dist/esm/chains-BwlDI944.js.map +0 -1
- package/dist/esm/cleartext-CvCakQal.js.map +0 -1
- package/dist/esm/eip1193-subscribe-CNxVHW6y.js.map +0 -1
- package/dist/esm/erc165-B8gx2luK.js +0 -2
- package/dist/esm/erc165-B8gx2luK.js.map +0 -1
- package/dist/esm/fatal-batch-BiiS7KdS.js.map +0 -1
- package/dist/esm/fhevm-relayer-CGvejcdJ.js +0 -8
- package/dist/esm/fhevm-relayer-CGvejcdJ.js.map +0 -1
- package/dist/esm/index-DkN4q5Cm.d.ts +0 -1
- package/dist/esm/invalidation-BgFjmXeQ.js +0 -2
- package/dist/esm/invalidation-BgFjmXeQ.js.map +0 -1
- package/dist/esm/primitives-Cym-3HKa.js +0 -2
- package/dist/esm/primitives-Cym-3HKa.js.map +0 -1
- package/dist/esm/relayer-C3jVhqSK.js +0 -2
- package/dist/esm/relayer-C3jVhqSK.js.map +0 -1
- package/dist/esm/signing-C6nbPCyd.js.map +0 -1
- package/dist/esm/telemetry-BDnhC-vh.js +0 -2
- package/dist/esm/telemetry-BDnhC-vh.js.map +0 -1
- package/dist/esm/token-g6sinwTx.js +0 -2
- package/dist/esm/token-g6sinwTx.js.map +0 -1
- package/dist/esm/wrapped-token-3usJd0oi.js +0 -2
- package/dist/esm/wrapped-token-3usJd0oi.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { D as GenericSigner, O as WalletAccount, S as TransactionKind, St as
|
|
1
|
+
import { Ct as WrapOptions, D as GenericSigner, Et as UnshieldCallbacks, O as WalletAccount, S as TransactionKind, St as UnwrapResult, Tt as TransferCallbacks, _ as PrepareTransactionRequest, bt as TransferOptions, c as GenericStorage, cn as EncryptResult, en as TransactionReceipt, g as PrepareOptions, gn as RelayerSDK, hn as RelayerRequestOptions, i as ZamaConfig, l as GenericProvider, ln as EncryptedValue, nn as ClearValue, rn as DecryptPublicValuesResult, sn as EncryptParams, tn as TransactionResult, v as PreparedFor, vt as ShieldOptions, xt as UnshieldOptions } from "./types-Ubeo72FV.js";
|
|
2
2
|
import { Address, Hex } from "viem";
|
|
3
|
-
import
|
|
3
|
+
import "zod/mini";
|
|
4
4
|
import { MutationFunctionContext, QueryKey, QueryObserverOptions, skipToken } from "@tanstack/query-core";
|
|
5
|
-
//#region src/contracts/confidential-wrapper.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Returns the contract config to read an encrypted balance.
|
|
8
7
|
*
|
|
@@ -3435,17 +3434,3469 @@ declare function confidentialTransferFromContract(encryptedErc20: Address, from:
|
|
|
3435
3434
|
readonly functionName: "confidentialTransferFrom";
|
|
3436
3435
|
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`];
|
|
3437
3436
|
};
|
|
3437
|
+
/**
|
|
3438
|
+
* Returns the contract config for a confidential transferAndCall. The caller
|
|
3439
|
+
* supplies an opaque `data` payload that is forwarded to the recipient's
|
|
3440
|
+
* ERC-7984 receiver hook (`onConfidentialTransferReceived`). The SDK does not
|
|
3441
|
+
* craft, validate, or inspect `data` — encoding the call site's domain message
|
|
3442
|
+
* is the caller's responsibility.
|
|
3443
|
+
*
|
|
3444
|
+
* @example
|
|
3445
|
+
* ```ts
|
|
3446
|
+
* const txHash = await signer.writeContract(
|
|
3447
|
+
* confidentialTransferAndCallContract(
|
|
3448
|
+
* tokenAddress,
|
|
3449
|
+
* to,
|
|
3450
|
+
* encryptedValues[0],
|
|
3451
|
+
* inputProof,
|
|
3452
|
+
* data,
|
|
3453
|
+
* ),
|
|
3454
|
+
* );
|
|
3455
|
+
* ```
|
|
3456
|
+
*/
|
|
3457
|
+
declare function confidentialTransferAndCallContract(encryptedErc20: Address, to: Address, encryptedAmount: EncryptedValue, inputProof: Hex, data: Hex): {
|
|
3458
|
+
readonly address: `0x${string}`;
|
|
3459
|
+
readonly abi: readonly [{
|
|
3460
|
+
readonly type: "function";
|
|
3461
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
3462
|
+
readonly inputs: readonly [];
|
|
3463
|
+
readonly outputs: readonly [{
|
|
3464
|
+
readonly name: "";
|
|
3465
|
+
readonly type: "string";
|
|
3466
|
+
readonly internalType: "string";
|
|
3467
|
+
}];
|
|
3468
|
+
readonly stateMutability: "view";
|
|
3469
|
+
}, {
|
|
3470
|
+
readonly type: "function";
|
|
3471
|
+
readonly name: "acceptOwnership";
|
|
3472
|
+
readonly inputs: readonly [];
|
|
3473
|
+
readonly outputs: readonly [];
|
|
3474
|
+
readonly stateMutability: "nonpayable";
|
|
3475
|
+
}, {
|
|
3476
|
+
readonly type: "function";
|
|
3477
|
+
readonly name: "blockUser";
|
|
3478
|
+
readonly inputs: readonly [{
|
|
3479
|
+
readonly name: "user";
|
|
3480
|
+
readonly type: "address";
|
|
3481
|
+
readonly internalType: "address";
|
|
3482
|
+
}];
|
|
3483
|
+
readonly outputs: readonly [];
|
|
3484
|
+
readonly stateMutability: "nonpayable";
|
|
3485
|
+
}, {
|
|
3486
|
+
readonly type: "function";
|
|
3487
|
+
readonly name: "confidentialBalanceOf";
|
|
3488
|
+
readonly inputs: readonly [{
|
|
3489
|
+
readonly name: "account";
|
|
3490
|
+
readonly type: "address";
|
|
3491
|
+
readonly internalType: "address";
|
|
3492
|
+
}];
|
|
3493
|
+
readonly outputs: readonly [{
|
|
3494
|
+
readonly name: "";
|
|
3495
|
+
readonly type: "bytes32";
|
|
3496
|
+
readonly internalType: "euint64";
|
|
3497
|
+
}];
|
|
3498
|
+
readonly stateMutability: "view";
|
|
3499
|
+
}, {
|
|
3500
|
+
readonly type: "function";
|
|
3501
|
+
readonly name: "confidentialProtocolId";
|
|
3502
|
+
readonly inputs: readonly [];
|
|
3503
|
+
readonly outputs: readonly [{
|
|
3504
|
+
readonly name: "";
|
|
3505
|
+
readonly type: "uint256";
|
|
3506
|
+
readonly internalType: "uint256";
|
|
3507
|
+
}];
|
|
3508
|
+
readonly stateMutability: "view";
|
|
3509
|
+
}, {
|
|
3510
|
+
readonly type: "function";
|
|
3511
|
+
readonly name: "confidentialTotalSupply";
|
|
3512
|
+
readonly inputs: readonly [];
|
|
3513
|
+
readonly outputs: readonly [{
|
|
3514
|
+
readonly name: "";
|
|
3515
|
+
readonly type: "bytes32";
|
|
3516
|
+
readonly internalType: "euint64";
|
|
3517
|
+
}];
|
|
3518
|
+
readonly stateMutability: "view";
|
|
3519
|
+
}, {
|
|
3520
|
+
readonly type: "function";
|
|
3521
|
+
readonly name: "confidentialTransfer";
|
|
3522
|
+
readonly inputs: readonly [{
|
|
3523
|
+
readonly name: "to";
|
|
3524
|
+
readonly type: "address";
|
|
3525
|
+
readonly internalType: "address";
|
|
3526
|
+
}, {
|
|
3527
|
+
readonly name: "encryptedAmount";
|
|
3528
|
+
readonly type: "bytes32";
|
|
3529
|
+
readonly internalType: "externalEuint64";
|
|
3530
|
+
}, {
|
|
3531
|
+
readonly name: "inputProof";
|
|
3532
|
+
readonly type: "bytes";
|
|
3533
|
+
readonly internalType: "bytes";
|
|
3534
|
+
}];
|
|
3535
|
+
readonly outputs: readonly [{
|
|
3536
|
+
readonly name: "";
|
|
3537
|
+
readonly type: "bytes32";
|
|
3538
|
+
readonly internalType: "euint64";
|
|
3539
|
+
}];
|
|
3540
|
+
readonly stateMutability: "nonpayable";
|
|
3541
|
+
}, {
|
|
3542
|
+
readonly type: "function";
|
|
3543
|
+
readonly name: "confidentialTransfer";
|
|
3544
|
+
readonly inputs: readonly [{
|
|
3545
|
+
readonly name: "to";
|
|
3546
|
+
readonly type: "address";
|
|
3547
|
+
readonly internalType: "address";
|
|
3548
|
+
}, {
|
|
3549
|
+
readonly name: "amount";
|
|
3550
|
+
readonly type: "bytes32";
|
|
3551
|
+
readonly internalType: "euint64";
|
|
3552
|
+
}];
|
|
3553
|
+
readonly outputs: readonly [{
|
|
3554
|
+
readonly name: "";
|
|
3555
|
+
readonly type: "bytes32";
|
|
3556
|
+
readonly internalType: "euint64";
|
|
3557
|
+
}];
|
|
3558
|
+
readonly stateMutability: "nonpayable";
|
|
3559
|
+
}, {
|
|
3560
|
+
readonly type: "function";
|
|
3561
|
+
readonly name: "confidentialTransferAndCall";
|
|
3562
|
+
readonly inputs: readonly [{
|
|
3563
|
+
readonly name: "to";
|
|
3564
|
+
readonly type: "address";
|
|
3565
|
+
readonly internalType: "address";
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly name: "amount";
|
|
3568
|
+
readonly type: "bytes32";
|
|
3569
|
+
readonly internalType: "euint64";
|
|
3570
|
+
}, {
|
|
3571
|
+
readonly name: "data";
|
|
3572
|
+
readonly type: "bytes";
|
|
3573
|
+
readonly internalType: "bytes";
|
|
3574
|
+
}];
|
|
3575
|
+
readonly outputs: readonly [{
|
|
3576
|
+
readonly name: "transferred";
|
|
3577
|
+
readonly type: "bytes32";
|
|
3578
|
+
readonly internalType: "euint64";
|
|
3579
|
+
}];
|
|
3580
|
+
readonly stateMutability: "nonpayable";
|
|
3581
|
+
}, {
|
|
3582
|
+
readonly type: "function";
|
|
3583
|
+
readonly name: "confidentialTransferAndCall";
|
|
3584
|
+
readonly inputs: readonly [{
|
|
3585
|
+
readonly name: "to";
|
|
3586
|
+
readonly type: "address";
|
|
3587
|
+
readonly internalType: "address";
|
|
3588
|
+
}, {
|
|
3589
|
+
readonly name: "encryptedAmount";
|
|
3590
|
+
readonly type: "bytes32";
|
|
3591
|
+
readonly internalType: "externalEuint64";
|
|
3592
|
+
}, {
|
|
3593
|
+
readonly name: "inputProof";
|
|
3594
|
+
readonly type: "bytes";
|
|
3595
|
+
readonly internalType: "bytes";
|
|
3596
|
+
}, {
|
|
3597
|
+
readonly name: "data";
|
|
3598
|
+
readonly type: "bytes";
|
|
3599
|
+
readonly internalType: "bytes";
|
|
3600
|
+
}];
|
|
3601
|
+
readonly outputs: readonly [{
|
|
3602
|
+
readonly name: "transferred";
|
|
3603
|
+
readonly type: "bytes32";
|
|
3604
|
+
readonly internalType: "euint64";
|
|
3605
|
+
}];
|
|
3606
|
+
readonly stateMutability: "nonpayable";
|
|
3607
|
+
}, {
|
|
3608
|
+
readonly type: "function";
|
|
3609
|
+
readonly name: "confidentialTransferFrom";
|
|
3610
|
+
readonly inputs: readonly [{
|
|
3611
|
+
readonly name: "from";
|
|
3612
|
+
readonly type: "address";
|
|
3613
|
+
readonly internalType: "address";
|
|
3614
|
+
}, {
|
|
3615
|
+
readonly name: "to";
|
|
3616
|
+
readonly type: "address";
|
|
3617
|
+
readonly internalType: "address";
|
|
3618
|
+
}, {
|
|
3619
|
+
readonly name: "encryptedAmount";
|
|
3620
|
+
readonly type: "bytes32";
|
|
3621
|
+
readonly internalType: "externalEuint64";
|
|
3622
|
+
}, {
|
|
3623
|
+
readonly name: "inputProof";
|
|
3624
|
+
readonly type: "bytes";
|
|
3625
|
+
readonly internalType: "bytes";
|
|
3626
|
+
}];
|
|
3627
|
+
readonly outputs: readonly [{
|
|
3628
|
+
readonly name: "transferred";
|
|
3629
|
+
readonly type: "bytes32";
|
|
3630
|
+
readonly internalType: "euint64";
|
|
3631
|
+
}];
|
|
3632
|
+
readonly stateMutability: "nonpayable";
|
|
3633
|
+
}, {
|
|
3634
|
+
readonly type: "function";
|
|
3635
|
+
readonly name: "confidentialTransferFrom";
|
|
3636
|
+
readonly inputs: readonly [{
|
|
3637
|
+
readonly name: "from";
|
|
3638
|
+
readonly type: "address";
|
|
3639
|
+
readonly internalType: "address";
|
|
3640
|
+
}, {
|
|
3641
|
+
readonly name: "to";
|
|
3642
|
+
readonly type: "address";
|
|
3643
|
+
readonly internalType: "address";
|
|
3644
|
+
}, {
|
|
3645
|
+
readonly name: "amount";
|
|
3646
|
+
readonly type: "bytes32";
|
|
3647
|
+
readonly internalType: "euint64";
|
|
3648
|
+
}];
|
|
3649
|
+
readonly outputs: readonly [{
|
|
3650
|
+
readonly name: "transferred";
|
|
3651
|
+
readonly type: "bytes32";
|
|
3652
|
+
readonly internalType: "euint64";
|
|
3653
|
+
}];
|
|
3654
|
+
readonly stateMutability: "nonpayable";
|
|
3655
|
+
}, {
|
|
3656
|
+
readonly type: "function";
|
|
3657
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
3658
|
+
readonly inputs: readonly [{
|
|
3659
|
+
readonly name: "from";
|
|
3660
|
+
readonly type: "address";
|
|
3661
|
+
readonly internalType: "address";
|
|
3662
|
+
}, {
|
|
3663
|
+
readonly name: "to";
|
|
3664
|
+
readonly type: "address";
|
|
3665
|
+
readonly internalType: "address";
|
|
3666
|
+
}, {
|
|
3667
|
+
readonly name: "encryptedAmount";
|
|
3668
|
+
readonly type: "bytes32";
|
|
3669
|
+
readonly internalType: "externalEuint64";
|
|
3670
|
+
}, {
|
|
3671
|
+
readonly name: "inputProof";
|
|
3672
|
+
readonly type: "bytes";
|
|
3673
|
+
readonly internalType: "bytes";
|
|
3674
|
+
}, {
|
|
3675
|
+
readonly name: "data";
|
|
3676
|
+
readonly type: "bytes";
|
|
3677
|
+
readonly internalType: "bytes";
|
|
3678
|
+
}];
|
|
3679
|
+
readonly outputs: readonly [{
|
|
3680
|
+
readonly name: "transferred";
|
|
3681
|
+
readonly type: "bytes32";
|
|
3682
|
+
readonly internalType: "euint64";
|
|
3683
|
+
}];
|
|
3684
|
+
readonly stateMutability: "nonpayable";
|
|
3685
|
+
}, {
|
|
3686
|
+
readonly type: "function";
|
|
3687
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
3688
|
+
readonly inputs: readonly [{
|
|
3689
|
+
readonly name: "from";
|
|
3690
|
+
readonly type: "address";
|
|
3691
|
+
readonly internalType: "address";
|
|
3692
|
+
}, {
|
|
3693
|
+
readonly name: "to";
|
|
3694
|
+
readonly type: "address";
|
|
3695
|
+
readonly internalType: "address";
|
|
3696
|
+
}, {
|
|
3697
|
+
readonly name: "amount";
|
|
3698
|
+
readonly type: "bytes32";
|
|
3699
|
+
readonly internalType: "euint64";
|
|
3700
|
+
}, {
|
|
3701
|
+
readonly name: "data";
|
|
3702
|
+
readonly type: "bytes";
|
|
3703
|
+
readonly internalType: "bytes";
|
|
3704
|
+
}];
|
|
3705
|
+
readonly outputs: readonly [{
|
|
3706
|
+
readonly name: "transferred";
|
|
3707
|
+
readonly type: "bytes32";
|
|
3708
|
+
readonly internalType: "euint64";
|
|
3709
|
+
}];
|
|
3710
|
+
readonly stateMutability: "nonpayable";
|
|
3711
|
+
}, {
|
|
3712
|
+
readonly type: "function";
|
|
3713
|
+
readonly name: "contractURI";
|
|
3714
|
+
readonly inputs: readonly [];
|
|
3715
|
+
readonly outputs: readonly [{
|
|
3716
|
+
readonly name: "";
|
|
3717
|
+
readonly type: "string";
|
|
3718
|
+
readonly internalType: "string";
|
|
3719
|
+
}];
|
|
3720
|
+
readonly stateMutability: "view";
|
|
3721
|
+
}, {
|
|
3722
|
+
readonly type: "function";
|
|
3723
|
+
readonly name: "decimals";
|
|
3724
|
+
readonly inputs: readonly [];
|
|
3725
|
+
readonly outputs: readonly [{
|
|
3726
|
+
readonly name: "";
|
|
3727
|
+
readonly type: "uint8";
|
|
3728
|
+
readonly internalType: "uint8";
|
|
3729
|
+
}];
|
|
3730
|
+
readonly stateMutability: "view";
|
|
3731
|
+
}, {
|
|
3732
|
+
readonly type: "function";
|
|
3733
|
+
readonly name: "discloseEncryptedAmount";
|
|
3734
|
+
readonly inputs: readonly [{
|
|
3735
|
+
readonly name: "encryptedAmount";
|
|
3736
|
+
readonly type: "bytes32";
|
|
3737
|
+
readonly internalType: "euint64";
|
|
3738
|
+
}, {
|
|
3739
|
+
readonly name: "cleartextAmount";
|
|
3740
|
+
readonly type: "uint64";
|
|
3741
|
+
readonly internalType: "uint64";
|
|
3742
|
+
}, {
|
|
3743
|
+
readonly name: "decryptionProof";
|
|
3744
|
+
readonly type: "bytes";
|
|
3745
|
+
readonly internalType: "bytes";
|
|
3746
|
+
}];
|
|
3747
|
+
readonly outputs: readonly [];
|
|
3748
|
+
readonly stateMutability: "nonpayable";
|
|
3749
|
+
}, {
|
|
3750
|
+
readonly type: "function";
|
|
3751
|
+
readonly name: "finalizeUnwrap";
|
|
3752
|
+
readonly inputs: readonly [{
|
|
3753
|
+
readonly name: "unwrapRequestId";
|
|
3754
|
+
readonly type: "bytes32";
|
|
3755
|
+
readonly internalType: "bytes32";
|
|
3756
|
+
}, {
|
|
3757
|
+
readonly name: "unwrapAmountCleartext";
|
|
3758
|
+
readonly type: "uint64";
|
|
3759
|
+
readonly internalType: "uint64";
|
|
3760
|
+
}, {
|
|
3761
|
+
readonly name: "decryptionProof";
|
|
3762
|
+
readonly type: "bytes";
|
|
3763
|
+
readonly internalType: "bytes";
|
|
3764
|
+
}];
|
|
3765
|
+
readonly outputs: readonly [];
|
|
3766
|
+
readonly stateMutability: "nonpayable";
|
|
3767
|
+
}, {
|
|
3768
|
+
readonly type: "function";
|
|
3769
|
+
readonly name: "getUnderlyingDenyListSelector";
|
|
3770
|
+
readonly inputs: readonly [];
|
|
3771
|
+
readonly outputs: readonly [{
|
|
3772
|
+
readonly name: "isSet";
|
|
3773
|
+
readonly type: "bool";
|
|
3774
|
+
readonly internalType: "bool";
|
|
3775
|
+
}, {
|
|
3776
|
+
readonly name: "selector";
|
|
3777
|
+
readonly type: "bytes4";
|
|
3778
|
+
readonly internalType: "bytes4";
|
|
3779
|
+
}];
|
|
3780
|
+
readonly stateMutability: "view";
|
|
3781
|
+
}, {
|
|
3782
|
+
readonly type: "function";
|
|
3783
|
+
readonly name: "inferredTotalSupply";
|
|
3784
|
+
readonly inputs: readonly [];
|
|
3785
|
+
readonly outputs: readonly [{
|
|
3786
|
+
readonly name: "";
|
|
3787
|
+
readonly type: "uint256";
|
|
3788
|
+
readonly internalType: "uint256";
|
|
3789
|
+
}];
|
|
3790
|
+
readonly stateMutability: "view";
|
|
3791
|
+
}, {
|
|
3792
|
+
readonly type: "function";
|
|
3793
|
+
readonly name: "initialize";
|
|
3794
|
+
readonly inputs: readonly [{
|
|
3795
|
+
readonly name: "name_";
|
|
3796
|
+
readonly type: "string";
|
|
3797
|
+
readonly internalType: "string";
|
|
3798
|
+
}, {
|
|
3799
|
+
readonly name: "symbol_";
|
|
3800
|
+
readonly type: "string";
|
|
3801
|
+
readonly internalType: "string";
|
|
3802
|
+
}, {
|
|
3803
|
+
readonly name: "contractURI_";
|
|
3804
|
+
readonly type: "string";
|
|
3805
|
+
readonly internalType: "string";
|
|
3806
|
+
}, {
|
|
3807
|
+
readonly name: "underlying_";
|
|
3808
|
+
readonly type: "address";
|
|
3809
|
+
readonly internalType: "contract IERC20";
|
|
3810
|
+
}, {
|
|
3811
|
+
readonly name: "owner_";
|
|
3812
|
+
readonly type: "address";
|
|
3813
|
+
readonly internalType: "address";
|
|
3814
|
+
}];
|
|
3815
|
+
readonly outputs: readonly [];
|
|
3816
|
+
readonly stateMutability: "nonpayable";
|
|
3817
|
+
}, {
|
|
3818
|
+
readonly type: "function";
|
|
3819
|
+
readonly name: "isBlocked";
|
|
3820
|
+
readonly inputs: readonly [{
|
|
3821
|
+
readonly name: "user";
|
|
3822
|
+
readonly type: "address";
|
|
3823
|
+
readonly internalType: "address";
|
|
3824
|
+
}];
|
|
3825
|
+
readonly outputs: readonly [{
|
|
3826
|
+
readonly name: "";
|
|
3827
|
+
readonly type: "bool";
|
|
3828
|
+
readonly internalType: "bool";
|
|
3829
|
+
}];
|
|
3830
|
+
readonly stateMutability: "view";
|
|
3831
|
+
}, {
|
|
3832
|
+
readonly type: "function";
|
|
3833
|
+
readonly name: "isOperator";
|
|
3834
|
+
readonly inputs: readonly [{
|
|
3835
|
+
readonly name: "holder";
|
|
3836
|
+
readonly type: "address";
|
|
3837
|
+
readonly internalType: "address";
|
|
3838
|
+
}, {
|
|
3839
|
+
readonly name: "spender";
|
|
3840
|
+
readonly type: "address";
|
|
3841
|
+
readonly internalType: "address";
|
|
3842
|
+
}];
|
|
3843
|
+
readonly outputs: readonly [{
|
|
3844
|
+
readonly name: "";
|
|
3845
|
+
readonly type: "bool";
|
|
3846
|
+
readonly internalType: "bool";
|
|
3847
|
+
}];
|
|
3848
|
+
readonly stateMutability: "view";
|
|
3849
|
+
}, {
|
|
3850
|
+
readonly type: "function";
|
|
3851
|
+
readonly name: "maxTotalSupply";
|
|
3852
|
+
readonly inputs: readonly [];
|
|
3853
|
+
readonly outputs: readonly [{
|
|
3854
|
+
readonly name: "";
|
|
3855
|
+
readonly type: "uint256";
|
|
3856
|
+
readonly internalType: "uint256";
|
|
3857
|
+
}];
|
|
3858
|
+
readonly stateMutability: "view";
|
|
3859
|
+
}, {
|
|
3860
|
+
readonly type: "function";
|
|
3861
|
+
readonly name: "name";
|
|
3862
|
+
readonly inputs: readonly [];
|
|
3863
|
+
readonly outputs: readonly [{
|
|
3864
|
+
readonly name: "";
|
|
3865
|
+
readonly type: "string";
|
|
3866
|
+
readonly internalType: "string";
|
|
3867
|
+
}];
|
|
3868
|
+
readonly stateMutability: "view";
|
|
3869
|
+
}, {
|
|
3870
|
+
readonly type: "function";
|
|
3871
|
+
readonly name: "onTransferReceived";
|
|
3872
|
+
readonly inputs: readonly [{
|
|
3873
|
+
readonly name: "operator";
|
|
3874
|
+
readonly type: "address";
|
|
3875
|
+
readonly internalType: "address";
|
|
3876
|
+
}, {
|
|
3877
|
+
readonly name: "from";
|
|
3878
|
+
readonly type: "address";
|
|
3879
|
+
readonly internalType: "address";
|
|
3880
|
+
}, {
|
|
3881
|
+
readonly name: "amount";
|
|
3882
|
+
readonly type: "uint256";
|
|
3883
|
+
readonly internalType: "uint256";
|
|
3884
|
+
}, {
|
|
3885
|
+
readonly name: "data";
|
|
3886
|
+
readonly type: "bytes";
|
|
3887
|
+
readonly internalType: "bytes";
|
|
3888
|
+
}];
|
|
3889
|
+
readonly outputs: readonly [{
|
|
3890
|
+
readonly name: "";
|
|
3891
|
+
readonly type: "bytes4";
|
|
3892
|
+
readonly internalType: "bytes4";
|
|
3893
|
+
}];
|
|
3894
|
+
readonly stateMutability: "nonpayable";
|
|
3895
|
+
}, {
|
|
3896
|
+
readonly type: "function";
|
|
3897
|
+
readonly name: "owner";
|
|
3898
|
+
readonly inputs: readonly [];
|
|
3899
|
+
readonly outputs: readonly [{
|
|
3900
|
+
readonly name: "";
|
|
3901
|
+
readonly type: "address";
|
|
3902
|
+
readonly internalType: "address";
|
|
3903
|
+
}];
|
|
3904
|
+
readonly stateMutability: "view";
|
|
3905
|
+
}, {
|
|
3906
|
+
readonly type: "function";
|
|
3907
|
+
readonly name: "pendingOwner";
|
|
3908
|
+
readonly inputs: readonly [];
|
|
3909
|
+
readonly outputs: readonly [{
|
|
3910
|
+
readonly name: "";
|
|
3911
|
+
readonly type: "address";
|
|
3912
|
+
readonly internalType: "address";
|
|
3913
|
+
}];
|
|
3914
|
+
readonly stateMutability: "view";
|
|
3915
|
+
}, {
|
|
3916
|
+
readonly type: "function";
|
|
3917
|
+
readonly name: "proxiableUUID";
|
|
3918
|
+
readonly inputs: readonly [];
|
|
3919
|
+
readonly outputs: readonly [{
|
|
3920
|
+
readonly name: "";
|
|
3921
|
+
readonly type: "bytes32";
|
|
3922
|
+
readonly internalType: "bytes32";
|
|
3923
|
+
}];
|
|
3924
|
+
readonly stateMutability: "view";
|
|
3925
|
+
}, {
|
|
3926
|
+
readonly type: "function";
|
|
3927
|
+
readonly name: "rate";
|
|
3928
|
+
readonly inputs: readonly [];
|
|
3929
|
+
readonly outputs: readonly [{
|
|
3930
|
+
readonly name: "";
|
|
3931
|
+
readonly type: "uint256";
|
|
3932
|
+
readonly internalType: "uint256";
|
|
3933
|
+
}];
|
|
3934
|
+
readonly stateMutability: "view";
|
|
3935
|
+
}, {
|
|
3936
|
+
readonly type: "function";
|
|
3937
|
+
readonly name: "reinitializeV2";
|
|
3938
|
+
readonly inputs: readonly [];
|
|
3939
|
+
readonly outputs: readonly [];
|
|
3940
|
+
readonly stateMutability: "nonpayable";
|
|
3941
|
+
}, {
|
|
3942
|
+
readonly type: "function";
|
|
3943
|
+
readonly name: "reinitializeV3";
|
|
3944
|
+
readonly inputs: readonly [{
|
|
3945
|
+
readonly name: "blockedUsers";
|
|
3946
|
+
readonly type: "address[]";
|
|
3947
|
+
readonly internalType: "address[]";
|
|
3948
|
+
}, {
|
|
3949
|
+
readonly name: "underlyingDenyListSelector";
|
|
3950
|
+
readonly type: "bytes4";
|
|
3951
|
+
readonly internalType: "bytes4";
|
|
3952
|
+
}, {
|
|
3953
|
+
readonly name: "hasUnderlyingDenyListSelector_";
|
|
3954
|
+
readonly type: "bool";
|
|
3955
|
+
readonly internalType: "bool";
|
|
3956
|
+
}];
|
|
3957
|
+
readonly outputs: readonly [];
|
|
3958
|
+
readonly stateMutability: "nonpayable";
|
|
3959
|
+
}, {
|
|
3960
|
+
readonly type: "function";
|
|
3961
|
+
readonly name: "renounceOwnership";
|
|
3962
|
+
readonly inputs: readonly [];
|
|
3963
|
+
readonly outputs: readonly [];
|
|
3964
|
+
readonly stateMutability: "nonpayable";
|
|
3965
|
+
}, {
|
|
3966
|
+
readonly type: "function";
|
|
3967
|
+
readonly name: "requestDiscloseEncryptedAmount";
|
|
3968
|
+
readonly inputs: readonly [{
|
|
3969
|
+
readonly name: "encryptedAmount";
|
|
3970
|
+
readonly type: "bytes32";
|
|
3971
|
+
readonly internalType: "euint64";
|
|
3972
|
+
}];
|
|
3973
|
+
readonly outputs: readonly [];
|
|
3974
|
+
readonly stateMutability: "nonpayable";
|
|
3975
|
+
}, {
|
|
3976
|
+
readonly type: "function";
|
|
3977
|
+
readonly name: "setOperator";
|
|
3978
|
+
readonly inputs: readonly [{
|
|
3979
|
+
readonly name: "operator";
|
|
3980
|
+
readonly type: "address";
|
|
3981
|
+
readonly internalType: "address";
|
|
3982
|
+
}, {
|
|
3983
|
+
readonly name: "until";
|
|
3984
|
+
readonly type: "uint48";
|
|
3985
|
+
readonly internalType: "uint48";
|
|
3986
|
+
}];
|
|
3987
|
+
readonly outputs: readonly [];
|
|
3988
|
+
readonly stateMutability: "nonpayable";
|
|
3989
|
+
}, {
|
|
3990
|
+
readonly type: "function";
|
|
3991
|
+
readonly name: "supportsInterface";
|
|
3992
|
+
readonly inputs: readonly [{
|
|
3993
|
+
readonly name: "interfaceId";
|
|
3994
|
+
readonly type: "bytes4";
|
|
3995
|
+
readonly internalType: "bytes4";
|
|
3996
|
+
}];
|
|
3997
|
+
readonly outputs: readonly [{
|
|
3998
|
+
readonly name: "";
|
|
3999
|
+
readonly type: "bool";
|
|
4000
|
+
readonly internalType: "bool";
|
|
4001
|
+
}];
|
|
4002
|
+
readonly stateMutability: "view";
|
|
4003
|
+
}, {
|
|
4004
|
+
readonly type: "function";
|
|
4005
|
+
readonly name: "symbol";
|
|
4006
|
+
readonly inputs: readonly [];
|
|
4007
|
+
readonly outputs: readonly [{
|
|
4008
|
+
readonly name: "";
|
|
4009
|
+
readonly type: "string";
|
|
4010
|
+
readonly internalType: "string";
|
|
4011
|
+
}];
|
|
4012
|
+
readonly stateMutability: "view";
|
|
4013
|
+
}, {
|
|
4014
|
+
readonly type: "function";
|
|
4015
|
+
readonly name: "transferOwnership";
|
|
4016
|
+
readonly inputs: readonly [{
|
|
4017
|
+
readonly name: "newOwner";
|
|
4018
|
+
readonly type: "address";
|
|
4019
|
+
readonly internalType: "address";
|
|
4020
|
+
}];
|
|
4021
|
+
readonly outputs: readonly [];
|
|
4022
|
+
readonly stateMutability: "nonpayable";
|
|
4023
|
+
}, {
|
|
4024
|
+
readonly type: "function";
|
|
4025
|
+
readonly name: "unblockUser";
|
|
4026
|
+
readonly inputs: readonly [{
|
|
4027
|
+
readonly name: "user";
|
|
4028
|
+
readonly type: "address";
|
|
4029
|
+
readonly internalType: "address";
|
|
4030
|
+
}];
|
|
4031
|
+
readonly outputs: readonly [];
|
|
4032
|
+
readonly stateMutability: "nonpayable";
|
|
4033
|
+
}, {
|
|
4034
|
+
readonly type: "function";
|
|
4035
|
+
readonly name: "underlying";
|
|
4036
|
+
readonly inputs: readonly [];
|
|
4037
|
+
readonly outputs: readonly [{
|
|
4038
|
+
readonly name: "";
|
|
4039
|
+
readonly type: "address";
|
|
4040
|
+
readonly internalType: "address";
|
|
4041
|
+
}];
|
|
4042
|
+
readonly stateMutability: "view";
|
|
4043
|
+
}, {
|
|
4044
|
+
readonly type: "function";
|
|
4045
|
+
readonly name: "unwrap";
|
|
4046
|
+
readonly inputs: readonly [{
|
|
4047
|
+
readonly name: "from";
|
|
4048
|
+
readonly type: "address";
|
|
4049
|
+
readonly internalType: "address";
|
|
4050
|
+
}, {
|
|
4051
|
+
readonly name: "to";
|
|
4052
|
+
readonly type: "address";
|
|
4053
|
+
readonly internalType: "address";
|
|
4054
|
+
}, {
|
|
4055
|
+
readonly name: "encryptedAmount";
|
|
4056
|
+
readonly type: "bytes32";
|
|
4057
|
+
readonly internalType: "externalEuint64";
|
|
4058
|
+
}, {
|
|
4059
|
+
readonly name: "inputProof";
|
|
4060
|
+
readonly type: "bytes";
|
|
4061
|
+
readonly internalType: "bytes";
|
|
4062
|
+
}];
|
|
4063
|
+
readonly outputs: readonly [{
|
|
4064
|
+
readonly name: "";
|
|
4065
|
+
readonly type: "bytes32";
|
|
4066
|
+
readonly internalType: "bytes32";
|
|
4067
|
+
}];
|
|
4068
|
+
readonly stateMutability: "nonpayable";
|
|
4069
|
+
}, {
|
|
4070
|
+
readonly type: "function";
|
|
4071
|
+
readonly name: "unwrap";
|
|
4072
|
+
readonly inputs: readonly [{
|
|
4073
|
+
readonly name: "from";
|
|
4074
|
+
readonly type: "address";
|
|
4075
|
+
readonly internalType: "address";
|
|
4076
|
+
}, {
|
|
4077
|
+
readonly name: "to";
|
|
4078
|
+
readonly type: "address";
|
|
4079
|
+
readonly internalType: "address";
|
|
4080
|
+
}, {
|
|
4081
|
+
readonly name: "amount";
|
|
4082
|
+
readonly type: "bytes32";
|
|
4083
|
+
readonly internalType: "euint64";
|
|
4084
|
+
}];
|
|
4085
|
+
readonly outputs: readonly [{
|
|
4086
|
+
readonly name: "";
|
|
4087
|
+
readonly type: "bytes32";
|
|
4088
|
+
readonly internalType: "bytes32";
|
|
4089
|
+
}];
|
|
4090
|
+
readonly stateMutability: "nonpayable";
|
|
4091
|
+
}, {
|
|
4092
|
+
readonly type: "function";
|
|
4093
|
+
readonly name: "unwrapAmount";
|
|
4094
|
+
readonly inputs: readonly [{
|
|
4095
|
+
readonly name: "unwrapRequestId";
|
|
4096
|
+
readonly type: "bytes32";
|
|
4097
|
+
readonly internalType: "bytes32";
|
|
4098
|
+
}];
|
|
4099
|
+
readonly outputs: readonly [{
|
|
4100
|
+
readonly name: "";
|
|
4101
|
+
readonly type: "bytes32";
|
|
4102
|
+
readonly internalType: "euint64";
|
|
4103
|
+
}];
|
|
4104
|
+
readonly stateMutability: "view";
|
|
4105
|
+
}, {
|
|
4106
|
+
readonly type: "function";
|
|
4107
|
+
readonly name: "unwrapRequester";
|
|
4108
|
+
readonly inputs: readonly [{
|
|
4109
|
+
readonly name: "unwrapRequestId";
|
|
4110
|
+
readonly type: "bytes32";
|
|
4111
|
+
readonly internalType: "bytes32";
|
|
4112
|
+
}];
|
|
4113
|
+
readonly outputs: readonly [{
|
|
4114
|
+
readonly name: "";
|
|
4115
|
+
readonly type: "address";
|
|
4116
|
+
readonly internalType: "address";
|
|
4117
|
+
}];
|
|
4118
|
+
readonly stateMutability: "view";
|
|
4119
|
+
}, {
|
|
4120
|
+
readonly type: "function";
|
|
4121
|
+
readonly name: "upgradeToAndCall";
|
|
4122
|
+
readonly inputs: readonly [{
|
|
4123
|
+
readonly name: "newImplementation";
|
|
4124
|
+
readonly type: "address";
|
|
4125
|
+
readonly internalType: "address";
|
|
4126
|
+
}, {
|
|
4127
|
+
readonly name: "data";
|
|
4128
|
+
readonly type: "bytes";
|
|
4129
|
+
readonly internalType: "bytes";
|
|
4130
|
+
}];
|
|
4131
|
+
readonly outputs: readonly [];
|
|
4132
|
+
readonly stateMutability: "payable";
|
|
4133
|
+
}, {
|
|
4134
|
+
readonly type: "function";
|
|
4135
|
+
readonly name: "wrap";
|
|
4136
|
+
readonly inputs: readonly [{
|
|
4137
|
+
readonly name: "to";
|
|
4138
|
+
readonly type: "address";
|
|
4139
|
+
readonly internalType: "address";
|
|
4140
|
+
}, {
|
|
4141
|
+
readonly name: "amount";
|
|
4142
|
+
readonly type: "uint256";
|
|
4143
|
+
readonly internalType: "uint256";
|
|
4144
|
+
}];
|
|
4145
|
+
readonly outputs: readonly [{
|
|
4146
|
+
readonly name: "";
|
|
4147
|
+
readonly type: "bytes32";
|
|
4148
|
+
readonly internalType: "euint64";
|
|
4149
|
+
}];
|
|
4150
|
+
readonly stateMutability: "nonpayable";
|
|
4151
|
+
}, {
|
|
4152
|
+
readonly type: "event";
|
|
4153
|
+
readonly name: "AmountDiscloseRequested";
|
|
4154
|
+
readonly inputs: readonly [{
|
|
4155
|
+
readonly name: "encryptedAmount";
|
|
4156
|
+
readonly type: "bytes32";
|
|
4157
|
+
readonly indexed: true;
|
|
4158
|
+
readonly internalType: "euint64";
|
|
4159
|
+
}, {
|
|
4160
|
+
readonly name: "requester";
|
|
4161
|
+
readonly type: "address";
|
|
4162
|
+
readonly indexed: true;
|
|
4163
|
+
readonly internalType: "address";
|
|
4164
|
+
}];
|
|
4165
|
+
readonly anonymous: false;
|
|
4166
|
+
}, {
|
|
4167
|
+
readonly type: "event";
|
|
4168
|
+
readonly name: "AmountDisclosed";
|
|
4169
|
+
readonly inputs: readonly [{
|
|
4170
|
+
readonly name: "encryptedAmount";
|
|
4171
|
+
readonly type: "bytes32";
|
|
4172
|
+
readonly indexed: true;
|
|
4173
|
+
readonly internalType: "euint64";
|
|
4174
|
+
}, {
|
|
4175
|
+
readonly name: "amount";
|
|
4176
|
+
readonly type: "uint64";
|
|
4177
|
+
readonly indexed: false;
|
|
4178
|
+
readonly internalType: "uint64";
|
|
4179
|
+
}];
|
|
4180
|
+
readonly anonymous: false;
|
|
4181
|
+
}, {
|
|
4182
|
+
readonly type: "event";
|
|
4183
|
+
readonly name: "ConfidentialTransfer";
|
|
4184
|
+
readonly inputs: readonly [{
|
|
4185
|
+
readonly name: "from";
|
|
4186
|
+
readonly type: "address";
|
|
4187
|
+
readonly indexed: true;
|
|
4188
|
+
readonly internalType: "address";
|
|
4189
|
+
}, {
|
|
4190
|
+
readonly name: "to";
|
|
4191
|
+
readonly type: "address";
|
|
4192
|
+
readonly indexed: true;
|
|
4193
|
+
readonly internalType: "address";
|
|
4194
|
+
}, {
|
|
4195
|
+
readonly name: "amount";
|
|
4196
|
+
readonly type: "bytes32";
|
|
4197
|
+
readonly indexed: true;
|
|
4198
|
+
readonly internalType: "euint64";
|
|
4199
|
+
}];
|
|
4200
|
+
readonly anonymous: false;
|
|
4201
|
+
}, {
|
|
4202
|
+
readonly type: "event";
|
|
4203
|
+
readonly name: "Initialized";
|
|
4204
|
+
readonly inputs: readonly [{
|
|
4205
|
+
readonly name: "version";
|
|
4206
|
+
readonly type: "uint64";
|
|
4207
|
+
readonly indexed: false;
|
|
4208
|
+
readonly internalType: "uint64";
|
|
4209
|
+
}];
|
|
4210
|
+
readonly anonymous: false;
|
|
4211
|
+
}, {
|
|
4212
|
+
readonly type: "event";
|
|
4213
|
+
readonly name: "OperatorSet";
|
|
4214
|
+
readonly inputs: readonly [{
|
|
4215
|
+
readonly name: "holder";
|
|
4216
|
+
readonly type: "address";
|
|
4217
|
+
readonly indexed: true;
|
|
4218
|
+
readonly internalType: "address";
|
|
4219
|
+
}, {
|
|
4220
|
+
readonly name: "operator";
|
|
4221
|
+
readonly type: "address";
|
|
4222
|
+
readonly indexed: true;
|
|
4223
|
+
readonly internalType: "address";
|
|
4224
|
+
}, {
|
|
4225
|
+
readonly name: "until";
|
|
4226
|
+
readonly type: "uint48";
|
|
4227
|
+
readonly indexed: false;
|
|
4228
|
+
readonly internalType: "uint48";
|
|
4229
|
+
}];
|
|
4230
|
+
readonly anonymous: false;
|
|
4231
|
+
}, {
|
|
4232
|
+
readonly type: "event";
|
|
4233
|
+
readonly name: "OwnershipTransferStarted";
|
|
4234
|
+
readonly inputs: readonly [{
|
|
4235
|
+
readonly name: "previousOwner";
|
|
4236
|
+
readonly type: "address";
|
|
4237
|
+
readonly indexed: true;
|
|
4238
|
+
readonly internalType: "address";
|
|
4239
|
+
}, {
|
|
4240
|
+
readonly name: "newOwner";
|
|
4241
|
+
readonly type: "address";
|
|
4242
|
+
readonly indexed: true;
|
|
4243
|
+
readonly internalType: "address";
|
|
4244
|
+
}];
|
|
4245
|
+
readonly anonymous: false;
|
|
4246
|
+
}, {
|
|
4247
|
+
readonly type: "event";
|
|
4248
|
+
readonly name: "OwnershipTransferred";
|
|
4249
|
+
readonly inputs: readonly [{
|
|
4250
|
+
readonly name: "previousOwner";
|
|
4251
|
+
readonly type: "address";
|
|
4252
|
+
readonly indexed: true;
|
|
4253
|
+
readonly internalType: "address";
|
|
4254
|
+
}, {
|
|
4255
|
+
readonly name: "newOwner";
|
|
4256
|
+
readonly type: "address";
|
|
4257
|
+
readonly indexed: true;
|
|
4258
|
+
readonly internalType: "address";
|
|
4259
|
+
}];
|
|
4260
|
+
readonly anonymous: false;
|
|
4261
|
+
}, {
|
|
4262
|
+
readonly type: "event";
|
|
4263
|
+
readonly name: "PublicDecryptionVerified";
|
|
4264
|
+
readonly inputs: readonly [{
|
|
4265
|
+
readonly name: "handlesList";
|
|
4266
|
+
readonly type: "bytes32[]";
|
|
4267
|
+
readonly indexed: false;
|
|
4268
|
+
readonly internalType: "bytes32[]";
|
|
4269
|
+
}, {
|
|
4270
|
+
readonly name: "abiEncodedCleartexts";
|
|
4271
|
+
readonly type: "bytes";
|
|
4272
|
+
readonly indexed: false;
|
|
4273
|
+
readonly internalType: "bytes";
|
|
4274
|
+
}];
|
|
4275
|
+
readonly anonymous: false;
|
|
4276
|
+
}, {
|
|
4277
|
+
readonly type: "event";
|
|
4278
|
+
readonly name: "UnwrapFinalized";
|
|
4279
|
+
readonly inputs: readonly [{
|
|
4280
|
+
readonly name: "receiver";
|
|
4281
|
+
readonly type: "address";
|
|
4282
|
+
readonly indexed: true;
|
|
4283
|
+
readonly internalType: "address";
|
|
4284
|
+
}, {
|
|
4285
|
+
readonly name: "unwrapRequestId";
|
|
4286
|
+
readonly type: "bytes32";
|
|
4287
|
+
readonly indexed: true;
|
|
4288
|
+
readonly internalType: "bytes32";
|
|
4289
|
+
}, {
|
|
4290
|
+
readonly name: "encryptedAmount";
|
|
4291
|
+
readonly type: "bytes32";
|
|
4292
|
+
readonly indexed: false;
|
|
4293
|
+
readonly internalType: "euint64";
|
|
4294
|
+
}, {
|
|
4295
|
+
readonly name: "cleartextAmount";
|
|
4296
|
+
readonly type: "uint64";
|
|
4297
|
+
readonly indexed: false;
|
|
4298
|
+
readonly internalType: "uint64";
|
|
4299
|
+
}];
|
|
4300
|
+
readonly anonymous: false;
|
|
4301
|
+
}, {
|
|
4302
|
+
readonly type: "event";
|
|
4303
|
+
readonly name: "UnwrapRequested";
|
|
4304
|
+
readonly inputs: readonly [{
|
|
4305
|
+
readonly name: "receiver";
|
|
4306
|
+
readonly type: "address";
|
|
4307
|
+
readonly indexed: true;
|
|
4308
|
+
readonly internalType: "address";
|
|
4309
|
+
}, {
|
|
4310
|
+
readonly name: "unwrapRequestId";
|
|
4311
|
+
readonly type: "bytes32";
|
|
4312
|
+
readonly indexed: true;
|
|
4313
|
+
readonly internalType: "bytes32";
|
|
4314
|
+
}, {
|
|
4315
|
+
readonly name: "amount";
|
|
4316
|
+
readonly type: "bytes32";
|
|
4317
|
+
readonly indexed: false;
|
|
4318
|
+
readonly internalType: "euint64";
|
|
4319
|
+
}];
|
|
4320
|
+
readonly anonymous: false;
|
|
4321
|
+
}, {
|
|
4322
|
+
readonly type: "event";
|
|
4323
|
+
readonly name: "Upgraded";
|
|
4324
|
+
readonly inputs: readonly [{
|
|
4325
|
+
readonly name: "implementation";
|
|
4326
|
+
readonly type: "address";
|
|
4327
|
+
readonly indexed: true;
|
|
4328
|
+
readonly internalType: "address";
|
|
4329
|
+
}];
|
|
4330
|
+
readonly anonymous: false;
|
|
4331
|
+
}, {
|
|
4332
|
+
readonly type: "event";
|
|
4333
|
+
readonly name: "UserBlocked";
|
|
4334
|
+
readonly inputs: readonly [{
|
|
4335
|
+
readonly name: "user";
|
|
4336
|
+
readonly type: "address";
|
|
4337
|
+
readonly indexed: true;
|
|
4338
|
+
readonly internalType: "address";
|
|
4339
|
+
}];
|
|
4340
|
+
readonly anonymous: false;
|
|
4341
|
+
}, {
|
|
4342
|
+
readonly type: "event";
|
|
4343
|
+
readonly name: "UserUnblocked";
|
|
4344
|
+
readonly inputs: readonly [{
|
|
4345
|
+
readonly name: "user";
|
|
4346
|
+
readonly type: "address";
|
|
4347
|
+
readonly indexed: true;
|
|
4348
|
+
readonly internalType: "address";
|
|
4349
|
+
}];
|
|
4350
|
+
readonly anonymous: false;
|
|
4351
|
+
}, {
|
|
4352
|
+
readonly type: "event";
|
|
4353
|
+
readonly name: "Wrap";
|
|
4354
|
+
readonly inputs: readonly [{
|
|
4355
|
+
readonly name: "to";
|
|
4356
|
+
readonly type: "address";
|
|
4357
|
+
readonly indexed: true;
|
|
4358
|
+
readonly internalType: "address";
|
|
4359
|
+
}, {
|
|
4360
|
+
readonly name: "roundedAmount";
|
|
4361
|
+
readonly type: "uint256";
|
|
4362
|
+
readonly indexed: false;
|
|
4363
|
+
readonly internalType: "uint256";
|
|
4364
|
+
}, {
|
|
4365
|
+
readonly name: "encryptedWrappedAmount";
|
|
4366
|
+
readonly type: "bytes32";
|
|
4367
|
+
readonly indexed: false;
|
|
4368
|
+
readonly internalType: "euint64";
|
|
4369
|
+
}];
|
|
4370
|
+
readonly anonymous: false;
|
|
4371
|
+
}, {
|
|
4372
|
+
readonly type: "error";
|
|
4373
|
+
readonly name: "AddressEmptyCode";
|
|
4374
|
+
readonly inputs: readonly [{
|
|
4375
|
+
readonly name: "target";
|
|
4376
|
+
readonly type: "address";
|
|
4377
|
+
readonly internalType: "address";
|
|
4378
|
+
}];
|
|
4379
|
+
}, {
|
|
4380
|
+
readonly type: "error";
|
|
4381
|
+
readonly name: "BlockedUser";
|
|
4382
|
+
readonly inputs: readonly [{
|
|
4383
|
+
readonly name: "user";
|
|
4384
|
+
readonly type: "address";
|
|
4385
|
+
readonly internalType: "address";
|
|
4386
|
+
}];
|
|
4387
|
+
}, {
|
|
4388
|
+
readonly type: "error";
|
|
4389
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
4390
|
+
readonly inputs: readonly [{
|
|
4391
|
+
readonly name: "implementation";
|
|
4392
|
+
readonly type: "address";
|
|
4393
|
+
readonly internalType: "address";
|
|
4394
|
+
}];
|
|
4395
|
+
}, {
|
|
4396
|
+
readonly type: "error";
|
|
4397
|
+
readonly name: "ERC1967NonPayable";
|
|
4398
|
+
readonly inputs: readonly [];
|
|
4399
|
+
}, {
|
|
4400
|
+
readonly type: "error";
|
|
4401
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
4402
|
+
readonly inputs: readonly [{
|
|
4403
|
+
readonly name: "receiver";
|
|
4404
|
+
readonly type: "address";
|
|
4405
|
+
readonly internalType: "address";
|
|
4406
|
+
}];
|
|
4407
|
+
}, {
|
|
4408
|
+
readonly type: "error";
|
|
4409
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
4410
|
+
readonly inputs: readonly [{
|
|
4411
|
+
readonly name: "receiver";
|
|
4412
|
+
readonly type: "address";
|
|
4413
|
+
readonly internalType: "address";
|
|
4414
|
+
}];
|
|
4415
|
+
}, {
|
|
4416
|
+
readonly type: "error";
|
|
4417
|
+
readonly name: "ERC7984InvalidSender";
|
|
4418
|
+
readonly inputs: readonly [{
|
|
4419
|
+
readonly name: "sender";
|
|
4420
|
+
readonly type: "address";
|
|
4421
|
+
readonly internalType: "address";
|
|
4422
|
+
}];
|
|
4423
|
+
}, {
|
|
4424
|
+
readonly type: "error";
|
|
4425
|
+
readonly name: "ERC7984TotalSupplyOverflow";
|
|
4426
|
+
readonly inputs: readonly [];
|
|
4427
|
+
}, {
|
|
4428
|
+
readonly type: "error";
|
|
4429
|
+
readonly name: "ERC7984UnauthorizedCaller";
|
|
4430
|
+
readonly inputs: readonly [{
|
|
4431
|
+
readonly name: "caller";
|
|
4432
|
+
readonly type: "address";
|
|
4433
|
+
readonly internalType: "address";
|
|
4434
|
+
}];
|
|
4435
|
+
}, {
|
|
4436
|
+
readonly type: "error";
|
|
4437
|
+
readonly name: "ERC7984UnauthorizedSpender";
|
|
4438
|
+
readonly inputs: readonly [{
|
|
4439
|
+
readonly name: "holder";
|
|
4440
|
+
readonly type: "address";
|
|
4441
|
+
readonly internalType: "address";
|
|
4442
|
+
}, {
|
|
4443
|
+
readonly name: "spender";
|
|
4444
|
+
readonly type: "address";
|
|
4445
|
+
readonly internalType: "address";
|
|
4446
|
+
}];
|
|
4447
|
+
}, {
|
|
4448
|
+
readonly type: "error";
|
|
4449
|
+
readonly name: "ERC7984UnauthorizedUseOfEncryptedAmount";
|
|
4450
|
+
readonly inputs: readonly [{
|
|
4451
|
+
readonly name: "amount";
|
|
4452
|
+
readonly type: "bytes32";
|
|
4453
|
+
readonly internalType: "euint64";
|
|
4454
|
+
}, {
|
|
4455
|
+
readonly name: "user";
|
|
4456
|
+
readonly type: "address";
|
|
4457
|
+
readonly internalType: "address";
|
|
4458
|
+
}];
|
|
4459
|
+
}, {
|
|
4460
|
+
readonly type: "error";
|
|
4461
|
+
readonly name: "ERC7984ZeroBalance";
|
|
4462
|
+
readonly inputs: readonly [{
|
|
4463
|
+
readonly name: "holder";
|
|
4464
|
+
readonly type: "address";
|
|
4465
|
+
readonly internalType: "address";
|
|
4466
|
+
}];
|
|
4467
|
+
}, {
|
|
4468
|
+
readonly type: "error";
|
|
4469
|
+
readonly name: "FailedCall";
|
|
4470
|
+
readonly inputs: readonly [];
|
|
4471
|
+
}, {
|
|
4472
|
+
readonly type: "error";
|
|
4473
|
+
readonly name: "InvalidInitialization";
|
|
4474
|
+
readonly inputs: readonly [];
|
|
4475
|
+
}, {
|
|
4476
|
+
readonly type: "error";
|
|
4477
|
+
readonly name: "InvalidKMSSignatures";
|
|
4478
|
+
readonly inputs: readonly [];
|
|
4479
|
+
}, {
|
|
4480
|
+
readonly type: "error";
|
|
4481
|
+
readonly name: "InvalidUnderlyingDenyListResponse";
|
|
4482
|
+
readonly inputs: readonly [];
|
|
4483
|
+
}, {
|
|
4484
|
+
readonly type: "error";
|
|
4485
|
+
readonly name: "InvalidUnwrapRequest";
|
|
4486
|
+
readonly inputs: readonly [{
|
|
4487
|
+
readonly name: "unwrapRequestId";
|
|
4488
|
+
readonly type: "bytes32";
|
|
4489
|
+
readonly internalType: "bytes32";
|
|
4490
|
+
}];
|
|
4491
|
+
}, {
|
|
4492
|
+
readonly type: "error";
|
|
4493
|
+
readonly name: "NotInitializing";
|
|
4494
|
+
readonly inputs: readonly [];
|
|
4495
|
+
}, {
|
|
4496
|
+
readonly type: "error";
|
|
4497
|
+
readonly name: "OwnableInvalidOwner";
|
|
4498
|
+
readonly inputs: readonly [{
|
|
4499
|
+
readonly name: "owner";
|
|
4500
|
+
readonly type: "address";
|
|
4501
|
+
readonly internalType: "address";
|
|
4502
|
+
}];
|
|
4503
|
+
}, {
|
|
4504
|
+
readonly type: "error";
|
|
4505
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
4506
|
+
readonly inputs: readonly [{
|
|
4507
|
+
readonly name: "account";
|
|
4508
|
+
readonly type: "address";
|
|
4509
|
+
readonly internalType: "address";
|
|
4510
|
+
}];
|
|
4511
|
+
}, {
|
|
4512
|
+
readonly type: "error";
|
|
4513
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
4514
|
+
readonly inputs: readonly [{
|
|
4515
|
+
readonly name: "bits";
|
|
4516
|
+
readonly type: "uint8";
|
|
4517
|
+
readonly internalType: "uint8";
|
|
4518
|
+
}, {
|
|
4519
|
+
readonly name: "value";
|
|
4520
|
+
readonly type: "uint256";
|
|
4521
|
+
readonly internalType: "uint256";
|
|
4522
|
+
}];
|
|
4523
|
+
}, {
|
|
4524
|
+
readonly type: "error";
|
|
4525
|
+
readonly name: "SafeERC20FailedOperation";
|
|
4526
|
+
readonly inputs: readonly [{
|
|
4527
|
+
readonly name: "token";
|
|
4528
|
+
readonly type: "address";
|
|
4529
|
+
readonly internalType: "address";
|
|
4530
|
+
}];
|
|
4531
|
+
}, {
|
|
4532
|
+
readonly type: "error";
|
|
4533
|
+
readonly name: "SenderNotAllowedToUseHandle";
|
|
4534
|
+
readonly inputs: readonly [{
|
|
4535
|
+
readonly name: "handle";
|
|
4536
|
+
readonly type: "bytes32";
|
|
4537
|
+
readonly internalType: "bytes32";
|
|
4538
|
+
}, {
|
|
4539
|
+
readonly name: "sender";
|
|
4540
|
+
readonly type: "address";
|
|
4541
|
+
readonly internalType: "address";
|
|
4542
|
+
}];
|
|
4543
|
+
}, {
|
|
4544
|
+
readonly type: "error";
|
|
4545
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
4546
|
+
readonly inputs: readonly [];
|
|
4547
|
+
}, {
|
|
4548
|
+
readonly type: "error";
|
|
4549
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
4550
|
+
readonly inputs: readonly [{
|
|
4551
|
+
readonly name: "slot";
|
|
4552
|
+
readonly type: "bytes32";
|
|
4553
|
+
readonly internalType: "bytes32";
|
|
4554
|
+
}];
|
|
4555
|
+
}, {
|
|
4556
|
+
readonly type: "error";
|
|
4557
|
+
readonly name: "UnderlyingDenyListCallFailed";
|
|
4558
|
+
readonly inputs: readonly [];
|
|
4559
|
+
}, {
|
|
4560
|
+
readonly type: "error";
|
|
4561
|
+
readonly name: "UnderlyingDenyListedAddress";
|
|
4562
|
+
readonly inputs: readonly [{
|
|
4563
|
+
readonly name: "user";
|
|
4564
|
+
readonly type: "address";
|
|
4565
|
+
readonly internalType: "address";
|
|
4566
|
+
}];
|
|
4567
|
+
}, {
|
|
4568
|
+
readonly type: "error";
|
|
4569
|
+
readonly name: "UserAlreadyBlocked";
|
|
4570
|
+
readonly inputs: readonly [{
|
|
4571
|
+
readonly name: "user";
|
|
4572
|
+
readonly type: "address";
|
|
4573
|
+
readonly internalType: "address";
|
|
4574
|
+
}];
|
|
4575
|
+
}, {
|
|
4576
|
+
readonly type: "error";
|
|
4577
|
+
readonly name: "UserAlreadyUnblocked";
|
|
4578
|
+
readonly inputs: readonly [{
|
|
4579
|
+
readonly name: "user";
|
|
4580
|
+
readonly type: "address";
|
|
4581
|
+
readonly internalType: "address";
|
|
4582
|
+
}];
|
|
4583
|
+
}, {
|
|
4584
|
+
readonly type: "error";
|
|
4585
|
+
readonly name: "ZamaProtocolUnsupported";
|
|
4586
|
+
readonly inputs: readonly [];
|
|
4587
|
+
}];
|
|
4588
|
+
readonly functionName: "confidentialTransferAndCall";
|
|
4589
|
+
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`];
|
|
4590
|
+
};
|
|
4591
|
+
/**
|
|
4592
|
+
* Returns the contract config for a confidential transferFromAndCall. The
|
|
4593
|
+
* caller supplies an opaque `data` payload forwarded to the recipient's
|
|
4594
|
+
* ERC-7984 receiver hook; the SDK does not craft or inspect it.
|
|
4595
|
+
*
|
|
4596
|
+
* @example
|
|
4597
|
+
* ```ts
|
|
4598
|
+
* const txHash = await signer.writeContract(
|
|
4599
|
+
* confidentialTransferFromAndCallContract(
|
|
4600
|
+
* tokenAddress,
|
|
4601
|
+
* from,
|
|
4602
|
+
* to,
|
|
4603
|
+
* encryptedValues[0],
|
|
4604
|
+
* inputProof,
|
|
4605
|
+
* data,
|
|
4606
|
+
* ),
|
|
4607
|
+
* );
|
|
4608
|
+
* ```
|
|
4609
|
+
*/
|
|
4610
|
+
declare function confidentialTransferFromAndCallContract(encryptedErc20: Address, from: Address, to: Address, encryptedAmount: EncryptedValue, inputProof: Hex, data: Hex): {
|
|
4611
|
+
readonly address: `0x${string}`;
|
|
4612
|
+
readonly abi: readonly [{
|
|
4613
|
+
readonly type: "function";
|
|
4614
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
4615
|
+
readonly inputs: readonly [];
|
|
4616
|
+
readonly outputs: readonly [{
|
|
4617
|
+
readonly name: "";
|
|
4618
|
+
readonly type: "string";
|
|
4619
|
+
readonly internalType: "string";
|
|
4620
|
+
}];
|
|
4621
|
+
readonly stateMutability: "view";
|
|
4622
|
+
}, {
|
|
4623
|
+
readonly type: "function";
|
|
4624
|
+
readonly name: "acceptOwnership";
|
|
4625
|
+
readonly inputs: readonly [];
|
|
4626
|
+
readonly outputs: readonly [];
|
|
4627
|
+
readonly stateMutability: "nonpayable";
|
|
4628
|
+
}, {
|
|
4629
|
+
readonly type: "function";
|
|
4630
|
+
readonly name: "blockUser";
|
|
4631
|
+
readonly inputs: readonly [{
|
|
4632
|
+
readonly name: "user";
|
|
4633
|
+
readonly type: "address";
|
|
4634
|
+
readonly internalType: "address";
|
|
4635
|
+
}];
|
|
4636
|
+
readonly outputs: readonly [];
|
|
4637
|
+
readonly stateMutability: "nonpayable";
|
|
4638
|
+
}, {
|
|
4639
|
+
readonly type: "function";
|
|
4640
|
+
readonly name: "confidentialBalanceOf";
|
|
4641
|
+
readonly inputs: readonly [{
|
|
4642
|
+
readonly name: "account";
|
|
4643
|
+
readonly type: "address";
|
|
4644
|
+
readonly internalType: "address";
|
|
4645
|
+
}];
|
|
4646
|
+
readonly outputs: readonly [{
|
|
4647
|
+
readonly name: "";
|
|
4648
|
+
readonly type: "bytes32";
|
|
4649
|
+
readonly internalType: "euint64";
|
|
4650
|
+
}];
|
|
4651
|
+
readonly stateMutability: "view";
|
|
4652
|
+
}, {
|
|
4653
|
+
readonly type: "function";
|
|
4654
|
+
readonly name: "confidentialProtocolId";
|
|
4655
|
+
readonly inputs: readonly [];
|
|
4656
|
+
readonly outputs: readonly [{
|
|
4657
|
+
readonly name: "";
|
|
4658
|
+
readonly type: "uint256";
|
|
4659
|
+
readonly internalType: "uint256";
|
|
4660
|
+
}];
|
|
4661
|
+
readonly stateMutability: "view";
|
|
4662
|
+
}, {
|
|
4663
|
+
readonly type: "function";
|
|
4664
|
+
readonly name: "confidentialTotalSupply";
|
|
4665
|
+
readonly inputs: readonly [];
|
|
4666
|
+
readonly outputs: readonly [{
|
|
4667
|
+
readonly name: "";
|
|
4668
|
+
readonly type: "bytes32";
|
|
4669
|
+
readonly internalType: "euint64";
|
|
4670
|
+
}];
|
|
4671
|
+
readonly stateMutability: "view";
|
|
4672
|
+
}, {
|
|
4673
|
+
readonly type: "function";
|
|
4674
|
+
readonly name: "confidentialTransfer";
|
|
4675
|
+
readonly inputs: readonly [{
|
|
4676
|
+
readonly name: "to";
|
|
4677
|
+
readonly type: "address";
|
|
4678
|
+
readonly internalType: "address";
|
|
4679
|
+
}, {
|
|
4680
|
+
readonly name: "encryptedAmount";
|
|
4681
|
+
readonly type: "bytes32";
|
|
4682
|
+
readonly internalType: "externalEuint64";
|
|
4683
|
+
}, {
|
|
4684
|
+
readonly name: "inputProof";
|
|
4685
|
+
readonly type: "bytes";
|
|
4686
|
+
readonly internalType: "bytes";
|
|
4687
|
+
}];
|
|
4688
|
+
readonly outputs: readonly [{
|
|
4689
|
+
readonly name: "";
|
|
4690
|
+
readonly type: "bytes32";
|
|
4691
|
+
readonly internalType: "euint64";
|
|
4692
|
+
}];
|
|
4693
|
+
readonly stateMutability: "nonpayable";
|
|
4694
|
+
}, {
|
|
4695
|
+
readonly type: "function";
|
|
4696
|
+
readonly name: "confidentialTransfer";
|
|
4697
|
+
readonly inputs: readonly [{
|
|
4698
|
+
readonly name: "to";
|
|
4699
|
+
readonly type: "address";
|
|
4700
|
+
readonly internalType: "address";
|
|
4701
|
+
}, {
|
|
4702
|
+
readonly name: "amount";
|
|
4703
|
+
readonly type: "bytes32";
|
|
4704
|
+
readonly internalType: "euint64";
|
|
4705
|
+
}];
|
|
4706
|
+
readonly outputs: readonly [{
|
|
4707
|
+
readonly name: "";
|
|
4708
|
+
readonly type: "bytes32";
|
|
4709
|
+
readonly internalType: "euint64";
|
|
4710
|
+
}];
|
|
4711
|
+
readonly stateMutability: "nonpayable";
|
|
4712
|
+
}, {
|
|
4713
|
+
readonly type: "function";
|
|
4714
|
+
readonly name: "confidentialTransferAndCall";
|
|
4715
|
+
readonly inputs: readonly [{
|
|
4716
|
+
readonly name: "to";
|
|
4717
|
+
readonly type: "address";
|
|
4718
|
+
readonly internalType: "address";
|
|
4719
|
+
}, {
|
|
4720
|
+
readonly name: "amount";
|
|
4721
|
+
readonly type: "bytes32";
|
|
4722
|
+
readonly internalType: "euint64";
|
|
4723
|
+
}, {
|
|
4724
|
+
readonly name: "data";
|
|
4725
|
+
readonly type: "bytes";
|
|
4726
|
+
readonly internalType: "bytes";
|
|
4727
|
+
}];
|
|
4728
|
+
readonly outputs: readonly [{
|
|
4729
|
+
readonly name: "transferred";
|
|
4730
|
+
readonly type: "bytes32";
|
|
4731
|
+
readonly internalType: "euint64";
|
|
4732
|
+
}];
|
|
4733
|
+
readonly stateMutability: "nonpayable";
|
|
4734
|
+
}, {
|
|
4735
|
+
readonly type: "function";
|
|
4736
|
+
readonly name: "confidentialTransferAndCall";
|
|
4737
|
+
readonly inputs: readonly [{
|
|
4738
|
+
readonly name: "to";
|
|
4739
|
+
readonly type: "address";
|
|
4740
|
+
readonly internalType: "address";
|
|
4741
|
+
}, {
|
|
4742
|
+
readonly name: "encryptedAmount";
|
|
4743
|
+
readonly type: "bytes32";
|
|
4744
|
+
readonly internalType: "externalEuint64";
|
|
4745
|
+
}, {
|
|
4746
|
+
readonly name: "inputProof";
|
|
4747
|
+
readonly type: "bytes";
|
|
4748
|
+
readonly internalType: "bytes";
|
|
4749
|
+
}, {
|
|
4750
|
+
readonly name: "data";
|
|
4751
|
+
readonly type: "bytes";
|
|
4752
|
+
readonly internalType: "bytes";
|
|
4753
|
+
}];
|
|
4754
|
+
readonly outputs: readonly [{
|
|
4755
|
+
readonly name: "transferred";
|
|
4756
|
+
readonly type: "bytes32";
|
|
4757
|
+
readonly internalType: "euint64";
|
|
4758
|
+
}];
|
|
4759
|
+
readonly stateMutability: "nonpayable";
|
|
4760
|
+
}, {
|
|
4761
|
+
readonly type: "function";
|
|
4762
|
+
readonly name: "confidentialTransferFrom";
|
|
4763
|
+
readonly inputs: readonly [{
|
|
4764
|
+
readonly name: "from";
|
|
4765
|
+
readonly type: "address";
|
|
4766
|
+
readonly internalType: "address";
|
|
4767
|
+
}, {
|
|
4768
|
+
readonly name: "to";
|
|
4769
|
+
readonly type: "address";
|
|
4770
|
+
readonly internalType: "address";
|
|
4771
|
+
}, {
|
|
4772
|
+
readonly name: "encryptedAmount";
|
|
4773
|
+
readonly type: "bytes32";
|
|
4774
|
+
readonly internalType: "externalEuint64";
|
|
4775
|
+
}, {
|
|
4776
|
+
readonly name: "inputProof";
|
|
4777
|
+
readonly type: "bytes";
|
|
4778
|
+
readonly internalType: "bytes";
|
|
4779
|
+
}];
|
|
4780
|
+
readonly outputs: readonly [{
|
|
4781
|
+
readonly name: "transferred";
|
|
4782
|
+
readonly type: "bytes32";
|
|
4783
|
+
readonly internalType: "euint64";
|
|
4784
|
+
}];
|
|
4785
|
+
readonly stateMutability: "nonpayable";
|
|
4786
|
+
}, {
|
|
4787
|
+
readonly type: "function";
|
|
4788
|
+
readonly name: "confidentialTransferFrom";
|
|
4789
|
+
readonly inputs: readonly [{
|
|
4790
|
+
readonly name: "from";
|
|
4791
|
+
readonly type: "address";
|
|
4792
|
+
readonly internalType: "address";
|
|
4793
|
+
}, {
|
|
4794
|
+
readonly name: "to";
|
|
4795
|
+
readonly type: "address";
|
|
4796
|
+
readonly internalType: "address";
|
|
4797
|
+
}, {
|
|
4798
|
+
readonly name: "amount";
|
|
4799
|
+
readonly type: "bytes32";
|
|
4800
|
+
readonly internalType: "euint64";
|
|
4801
|
+
}];
|
|
4802
|
+
readonly outputs: readonly [{
|
|
4803
|
+
readonly name: "transferred";
|
|
4804
|
+
readonly type: "bytes32";
|
|
4805
|
+
readonly internalType: "euint64";
|
|
4806
|
+
}];
|
|
4807
|
+
readonly stateMutability: "nonpayable";
|
|
4808
|
+
}, {
|
|
4809
|
+
readonly type: "function";
|
|
4810
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
4811
|
+
readonly inputs: readonly [{
|
|
4812
|
+
readonly name: "from";
|
|
4813
|
+
readonly type: "address";
|
|
4814
|
+
readonly internalType: "address";
|
|
4815
|
+
}, {
|
|
4816
|
+
readonly name: "to";
|
|
4817
|
+
readonly type: "address";
|
|
4818
|
+
readonly internalType: "address";
|
|
4819
|
+
}, {
|
|
4820
|
+
readonly name: "encryptedAmount";
|
|
4821
|
+
readonly type: "bytes32";
|
|
4822
|
+
readonly internalType: "externalEuint64";
|
|
4823
|
+
}, {
|
|
4824
|
+
readonly name: "inputProof";
|
|
4825
|
+
readonly type: "bytes";
|
|
4826
|
+
readonly internalType: "bytes";
|
|
4827
|
+
}, {
|
|
4828
|
+
readonly name: "data";
|
|
4829
|
+
readonly type: "bytes";
|
|
4830
|
+
readonly internalType: "bytes";
|
|
4831
|
+
}];
|
|
4832
|
+
readonly outputs: readonly [{
|
|
4833
|
+
readonly name: "transferred";
|
|
4834
|
+
readonly type: "bytes32";
|
|
4835
|
+
readonly internalType: "euint64";
|
|
4836
|
+
}];
|
|
4837
|
+
readonly stateMutability: "nonpayable";
|
|
4838
|
+
}, {
|
|
4839
|
+
readonly type: "function";
|
|
4840
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
4841
|
+
readonly inputs: readonly [{
|
|
4842
|
+
readonly name: "from";
|
|
4843
|
+
readonly type: "address";
|
|
4844
|
+
readonly internalType: "address";
|
|
4845
|
+
}, {
|
|
4846
|
+
readonly name: "to";
|
|
4847
|
+
readonly type: "address";
|
|
4848
|
+
readonly internalType: "address";
|
|
4849
|
+
}, {
|
|
4850
|
+
readonly name: "amount";
|
|
4851
|
+
readonly type: "bytes32";
|
|
4852
|
+
readonly internalType: "euint64";
|
|
4853
|
+
}, {
|
|
4854
|
+
readonly name: "data";
|
|
4855
|
+
readonly type: "bytes";
|
|
4856
|
+
readonly internalType: "bytes";
|
|
4857
|
+
}];
|
|
4858
|
+
readonly outputs: readonly [{
|
|
4859
|
+
readonly name: "transferred";
|
|
4860
|
+
readonly type: "bytes32";
|
|
4861
|
+
readonly internalType: "euint64";
|
|
4862
|
+
}];
|
|
4863
|
+
readonly stateMutability: "nonpayable";
|
|
4864
|
+
}, {
|
|
4865
|
+
readonly type: "function";
|
|
4866
|
+
readonly name: "contractURI";
|
|
4867
|
+
readonly inputs: readonly [];
|
|
4868
|
+
readonly outputs: readonly [{
|
|
4869
|
+
readonly name: "";
|
|
4870
|
+
readonly type: "string";
|
|
4871
|
+
readonly internalType: "string";
|
|
4872
|
+
}];
|
|
4873
|
+
readonly stateMutability: "view";
|
|
4874
|
+
}, {
|
|
4875
|
+
readonly type: "function";
|
|
4876
|
+
readonly name: "decimals";
|
|
4877
|
+
readonly inputs: readonly [];
|
|
4878
|
+
readonly outputs: readonly [{
|
|
4879
|
+
readonly name: "";
|
|
4880
|
+
readonly type: "uint8";
|
|
4881
|
+
readonly internalType: "uint8";
|
|
4882
|
+
}];
|
|
4883
|
+
readonly stateMutability: "view";
|
|
4884
|
+
}, {
|
|
4885
|
+
readonly type: "function";
|
|
4886
|
+
readonly name: "discloseEncryptedAmount";
|
|
4887
|
+
readonly inputs: readonly [{
|
|
4888
|
+
readonly name: "encryptedAmount";
|
|
4889
|
+
readonly type: "bytes32";
|
|
4890
|
+
readonly internalType: "euint64";
|
|
4891
|
+
}, {
|
|
4892
|
+
readonly name: "cleartextAmount";
|
|
4893
|
+
readonly type: "uint64";
|
|
4894
|
+
readonly internalType: "uint64";
|
|
4895
|
+
}, {
|
|
4896
|
+
readonly name: "decryptionProof";
|
|
4897
|
+
readonly type: "bytes";
|
|
4898
|
+
readonly internalType: "bytes";
|
|
4899
|
+
}];
|
|
4900
|
+
readonly outputs: readonly [];
|
|
4901
|
+
readonly stateMutability: "nonpayable";
|
|
4902
|
+
}, {
|
|
4903
|
+
readonly type: "function";
|
|
4904
|
+
readonly name: "finalizeUnwrap";
|
|
4905
|
+
readonly inputs: readonly [{
|
|
4906
|
+
readonly name: "unwrapRequestId";
|
|
4907
|
+
readonly type: "bytes32";
|
|
4908
|
+
readonly internalType: "bytes32";
|
|
4909
|
+
}, {
|
|
4910
|
+
readonly name: "unwrapAmountCleartext";
|
|
4911
|
+
readonly type: "uint64";
|
|
4912
|
+
readonly internalType: "uint64";
|
|
4913
|
+
}, {
|
|
4914
|
+
readonly name: "decryptionProof";
|
|
4915
|
+
readonly type: "bytes";
|
|
4916
|
+
readonly internalType: "bytes";
|
|
4917
|
+
}];
|
|
4918
|
+
readonly outputs: readonly [];
|
|
4919
|
+
readonly stateMutability: "nonpayable";
|
|
4920
|
+
}, {
|
|
4921
|
+
readonly type: "function";
|
|
4922
|
+
readonly name: "getUnderlyingDenyListSelector";
|
|
4923
|
+
readonly inputs: readonly [];
|
|
4924
|
+
readonly outputs: readonly [{
|
|
4925
|
+
readonly name: "isSet";
|
|
4926
|
+
readonly type: "bool";
|
|
4927
|
+
readonly internalType: "bool";
|
|
4928
|
+
}, {
|
|
4929
|
+
readonly name: "selector";
|
|
4930
|
+
readonly type: "bytes4";
|
|
4931
|
+
readonly internalType: "bytes4";
|
|
4932
|
+
}];
|
|
4933
|
+
readonly stateMutability: "view";
|
|
4934
|
+
}, {
|
|
4935
|
+
readonly type: "function";
|
|
4936
|
+
readonly name: "inferredTotalSupply";
|
|
4937
|
+
readonly inputs: readonly [];
|
|
4938
|
+
readonly outputs: readonly [{
|
|
4939
|
+
readonly name: "";
|
|
4940
|
+
readonly type: "uint256";
|
|
4941
|
+
readonly internalType: "uint256";
|
|
4942
|
+
}];
|
|
4943
|
+
readonly stateMutability: "view";
|
|
4944
|
+
}, {
|
|
4945
|
+
readonly type: "function";
|
|
4946
|
+
readonly name: "initialize";
|
|
4947
|
+
readonly inputs: readonly [{
|
|
4948
|
+
readonly name: "name_";
|
|
4949
|
+
readonly type: "string";
|
|
4950
|
+
readonly internalType: "string";
|
|
4951
|
+
}, {
|
|
4952
|
+
readonly name: "symbol_";
|
|
4953
|
+
readonly type: "string";
|
|
4954
|
+
readonly internalType: "string";
|
|
4955
|
+
}, {
|
|
4956
|
+
readonly name: "contractURI_";
|
|
4957
|
+
readonly type: "string";
|
|
4958
|
+
readonly internalType: "string";
|
|
4959
|
+
}, {
|
|
4960
|
+
readonly name: "underlying_";
|
|
4961
|
+
readonly type: "address";
|
|
4962
|
+
readonly internalType: "contract IERC20";
|
|
4963
|
+
}, {
|
|
4964
|
+
readonly name: "owner_";
|
|
4965
|
+
readonly type: "address";
|
|
4966
|
+
readonly internalType: "address";
|
|
4967
|
+
}];
|
|
4968
|
+
readonly outputs: readonly [];
|
|
4969
|
+
readonly stateMutability: "nonpayable";
|
|
4970
|
+
}, {
|
|
4971
|
+
readonly type: "function";
|
|
4972
|
+
readonly name: "isBlocked";
|
|
4973
|
+
readonly inputs: readonly [{
|
|
4974
|
+
readonly name: "user";
|
|
4975
|
+
readonly type: "address";
|
|
4976
|
+
readonly internalType: "address";
|
|
4977
|
+
}];
|
|
4978
|
+
readonly outputs: readonly [{
|
|
4979
|
+
readonly name: "";
|
|
4980
|
+
readonly type: "bool";
|
|
4981
|
+
readonly internalType: "bool";
|
|
4982
|
+
}];
|
|
4983
|
+
readonly stateMutability: "view";
|
|
4984
|
+
}, {
|
|
4985
|
+
readonly type: "function";
|
|
4986
|
+
readonly name: "isOperator";
|
|
4987
|
+
readonly inputs: readonly [{
|
|
4988
|
+
readonly name: "holder";
|
|
4989
|
+
readonly type: "address";
|
|
4990
|
+
readonly internalType: "address";
|
|
4991
|
+
}, {
|
|
4992
|
+
readonly name: "spender";
|
|
4993
|
+
readonly type: "address";
|
|
4994
|
+
readonly internalType: "address";
|
|
4995
|
+
}];
|
|
4996
|
+
readonly outputs: readonly [{
|
|
4997
|
+
readonly name: "";
|
|
4998
|
+
readonly type: "bool";
|
|
4999
|
+
readonly internalType: "bool";
|
|
5000
|
+
}];
|
|
5001
|
+
readonly stateMutability: "view";
|
|
5002
|
+
}, {
|
|
5003
|
+
readonly type: "function";
|
|
5004
|
+
readonly name: "maxTotalSupply";
|
|
5005
|
+
readonly inputs: readonly [];
|
|
5006
|
+
readonly outputs: readonly [{
|
|
5007
|
+
readonly name: "";
|
|
5008
|
+
readonly type: "uint256";
|
|
5009
|
+
readonly internalType: "uint256";
|
|
5010
|
+
}];
|
|
5011
|
+
readonly stateMutability: "view";
|
|
5012
|
+
}, {
|
|
5013
|
+
readonly type: "function";
|
|
5014
|
+
readonly name: "name";
|
|
5015
|
+
readonly inputs: readonly [];
|
|
5016
|
+
readonly outputs: readonly [{
|
|
5017
|
+
readonly name: "";
|
|
5018
|
+
readonly type: "string";
|
|
5019
|
+
readonly internalType: "string";
|
|
5020
|
+
}];
|
|
5021
|
+
readonly stateMutability: "view";
|
|
5022
|
+
}, {
|
|
5023
|
+
readonly type: "function";
|
|
5024
|
+
readonly name: "onTransferReceived";
|
|
5025
|
+
readonly inputs: readonly [{
|
|
5026
|
+
readonly name: "operator";
|
|
5027
|
+
readonly type: "address";
|
|
5028
|
+
readonly internalType: "address";
|
|
5029
|
+
}, {
|
|
5030
|
+
readonly name: "from";
|
|
5031
|
+
readonly type: "address";
|
|
5032
|
+
readonly internalType: "address";
|
|
5033
|
+
}, {
|
|
5034
|
+
readonly name: "amount";
|
|
5035
|
+
readonly type: "uint256";
|
|
5036
|
+
readonly internalType: "uint256";
|
|
5037
|
+
}, {
|
|
5038
|
+
readonly name: "data";
|
|
5039
|
+
readonly type: "bytes";
|
|
5040
|
+
readonly internalType: "bytes";
|
|
5041
|
+
}];
|
|
5042
|
+
readonly outputs: readonly [{
|
|
5043
|
+
readonly name: "";
|
|
5044
|
+
readonly type: "bytes4";
|
|
5045
|
+
readonly internalType: "bytes4";
|
|
5046
|
+
}];
|
|
5047
|
+
readonly stateMutability: "nonpayable";
|
|
5048
|
+
}, {
|
|
5049
|
+
readonly type: "function";
|
|
5050
|
+
readonly name: "owner";
|
|
5051
|
+
readonly inputs: readonly [];
|
|
5052
|
+
readonly outputs: readonly [{
|
|
5053
|
+
readonly name: "";
|
|
5054
|
+
readonly type: "address";
|
|
5055
|
+
readonly internalType: "address";
|
|
5056
|
+
}];
|
|
5057
|
+
readonly stateMutability: "view";
|
|
5058
|
+
}, {
|
|
5059
|
+
readonly type: "function";
|
|
5060
|
+
readonly name: "pendingOwner";
|
|
5061
|
+
readonly inputs: readonly [];
|
|
5062
|
+
readonly outputs: readonly [{
|
|
5063
|
+
readonly name: "";
|
|
5064
|
+
readonly type: "address";
|
|
5065
|
+
readonly internalType: "address";
|
|
5066
|
+
}];
|
|
5067
|
+
readonly stateMutability: "view";
|
|
5068
|
+
}, {
|
|
5069
|
+
readonly type: "function";
|
|
5070
|
+
readonly name: "proxiableUUID";
|
|
5071
|
+
readonly inputs: readonly [];
|
|
5072
|
+
readonly outputs: readonly [{
|
|
5073
|
+
readonly name: "";
|
|
5074
|
+
readonly type: "bytes32";
|
|
5075
|
+
readonly internalType: "bytes32";
|
|
5076
|
+
}];
|
|
5077
|
+
readonly stateMutability: "view";
|
|
5078
|
+
}, {
|
|
5079
|
+
readonly type: "function";
|
|
5080
|
+
readonly name: "rate";
|
|
5081
|
+
readonly inputs: readonly [];
|
|
5082
|
+
readonly outputs: readonly [{
|
|
5083
|
+
readonly name: "";
|
|
5084
|
+
readonly type: "uint256";
|
|
5085
|
+
readonly internalType: "uint256";
|
|
5086
|
+
}];
|
|
5087
|
+
readonly stateMutability: "view";
|
|
5088
|
+
}, {
|
|
5089
|
+
readonly type: "function";
|
|
5090
|
+
readonly name: "reinitializeV2";
|
|
5091
|
+
readonly inputs: readonly [];
|
|
5092
|
+
readonly outputs: readonly [];
|
|
5093
|
+
readonly stateMutability: "nonpayable";
|
|
5094
|
+
}, {
|
|
5095
|
+
readonly type: "function";
|
|
5096
|
+
readonly name: "reinitializeV3";
|
|
5097
|
+
readonly inputs: readonly [{
|
|
5098
|
+
readonly name: "blockedUsers";
|
|
5099
|
+
readonly type: "address[]";
|
|
5100
|
+
readonly internalType: "address[]";
|
|
5101
|
+
}, {
|
|
5102
|
+
readonly name: "underlyingDenyListSelector";
|
|
5103
|
+
readonly type: "bytes4";
|
|
5104
|
+
readonly internalType: "bytes4";
|
|
5105
|
+
}, {
|
|
5106
|
+
readonly name: "hasUnderlyingDenyListSelector_";
|
|
5107
|
+
readonly type: "bool";
|
|
5108
|
+
readonly internalType: "bool";
|
|
5109
|
+
}];
|
|
5110
|
+
readonly outputs: readonly [];
|
|
5111
|
+
readonly stateMutability: "nonpayable";
|
|
5112
|
+
}, {
|
|
5113
|
+
readonly type: "function";
|
|
5114
|
+
readonly name: "renounceOwnership";
|
|
5115
|
+
readonly inputs: readonly [];
|
|
5116
|
+
readonly outputs: readonly [];
|
|
5117
|
+
readonly stateMutability: "nonpayable";
|
|
5118
|
+
}, {
|
|
5119
|
+
readonly type: "function";
|
|
5120
|
+
readonly name: "requestDiscloseEncryptedAmount";
|
|
5121
|
+
readonly inputs: readonly [{
|
|
5122
|
+
readonly name: "encryptedAmount";
|
|
5123
|
+
readonly type: "bytes32";
|
|
5124
|
+
readonly internalType: "euint64";
|
|
5125
|
+
}];
|
|
5126
|
+
readonly outputs: readonly [];
|
|
5127
|
+
readonly stateMutability: "nonpayable";
|
|
5128
|
+
}, {
|
|
5129
|
+
readonly type: "function";
|
|
5130
|
+
readonly name: "setOperator";
|
|
5131
|
+
readonly inputs: readonly [{
|
|
5132
|
+
readonly name: "operator";
|
|
5133
|
+
readonly type: "address";
|
|
5134
|
+
readonly internalType: "address";
|
|
5135
|
+
}, {
|
|
5136
|
+
readonly name: "until";
|
|
5137
|
+
readonly type: "uint48";
|
|
5138
|
+
readonly internalType: "uint48";
|
|
5139
|
+
}];
|
|
5140
|
+
readonly outputs: readonly [];
|
|
5141
|
+
readonly stateMutability: "nonpayable";
|
|
5142
|
+
}, {
|
|
5143
|
+
readonly type: "function";
|
|
5144
|
+
readonly name: "supportsInterface";
|
|
5145
|
+
readonly inputs: readonly [{
|
|
5146
|
+
readonly name: "interfaceId";
|
|
5147
|
+
readonly type: "bytes4";
|
|
5148
|
+
readonly internalType: "bytes4";
|
|
5149
|
+
}];
|
|
5150
|
+
readonly outputs: readonly [{
|
|
5151
|
+
readonly name: "";
|
|
5152
|
+
readonly type: "bool";
|
|
5153
|
+
readonly internalType: "bool";
|
|
5154
|
+
}];
|
|
5155
|
+
readonly stateMutability: "view";
|
|
5156
|
+
}, {
|
|
5157
|
+
readonly type: "function";
|
|
5158
|
+
readonly name: "symbol";
|
|
5159
|
+
readonly inputs: readonly [];
|
|
5160
|
+
readonly outputs: readonly [{
|
|
5161
|
+
readonly name: "";
|
|
5162
|
+
readonly type: "string";
|
|
5163
|
+
readonly internalType: "string";
|
|
5164
|
+
}];
|
|
5165
|
+
readonly stateMutability: "view";
|
|
5166
|
+
}, {
|
|
5167
|
+
readonly type: "function";
|
|
5168
|
+
readonly name: "transferOwnership";
|
|
5169
|
+
readonly inputs: readonly [{
|
|
5170
|
+
readonly name: "newOwner";
|
|
5171
|
+
readonly type: "address";
|
|
5172
|
+
readonly internalType: "address";
|
|
5173
|
+
}];
|
|
5174
|
+
readonly outputs: readonly [];
|
|
5175
|
+
readonly stateMutability: "nonpayable";
|
|
5176
|
+
}, {
|
|
5177
|
+
readonly type: "function";
|
|
5178
|
+
readonly name: "unblockUser";
|
|
5179
|
+
readonly inputs: readonly [{
|
|
5180
|
+
readonly name: "user";
|
|
5181
|
+
readonly type: "address";
|
|
5182
|
+
readonly internalType: "address";
|
|
5183
|
+
}];
|
|
5184
|
+
readonly outputs: readonly [];
|
|
5185
|
+
readonly stateMutability: "nonpayable";
|
|
5186
|
+
}, {
|
|
5187
|
+
readonly type: "function";
|
|
5188
|
+
readonly name: "underlying";
|
|
5189
|
+
readonly inputs: readonly [];
|
|
5190
|
+
readonly outputs: readonly [{
|
|
5191
|
+
readonly name: "";
|
|
5192
|
+
readonly type: "address";
|
|
5193
|
+
readonly internalType: "address";
|
|
5194
|
+
}];
|
|
5195
|
+
readonly stateMutability: "view";
|
|
5196
|
+
}, {
|
|
5197
|
+
readonly type: "function";
|
|
5198
|
+
readonly name: "unwrap";
|
|
5199
|
+
readonly inputs: readonly [{
|
|
5200
|
+
readonly name: "from";
|
|
5201
|
+
readonly type: "address";
|
|
5202
|
+
readonly internalType: "address";
|
|
5203
|
+
}, {
|
|
5204
|
+
readonly name: "to";
|
|
5205
|
+
readonly type: "address";
|
|
5206
|
+
readonly internalType: "address";
|
|
5207
|
+
}, {
|
|
5208
|
+
readonly name: "encryptedAmount";
|
|
5209
|
+
readonly type: "bytes32";
|
|
5210
|
+
readonly internalType: "externalEuint64";
|
|
5211
|
+
}, {
|
|
5212
|
+
readonly name: "inputProof";
|
|
5213
|
+
readonly type: "bytes";
|
|
5214
|
+
readonly internalType: "bytes";
|
|
5215
|
+
}];
|
|
5216
|
+
readonly outputs: readonly [{
|
|
5217
|
+
readonly name: "";
|
|
5218
|
+
readonly type: "bytes32";
|
|
5219
|
+
readonly internalType: "bytes32";
|
|
5220
|
+
}];
|
|
5221
|
+
readonly stateMutability: "nonpayable";
|
|
5222
|
+
}, {
|
|
5223
|
+
readonly type: "function";
|
|
5224
|
+
readonly name: "unwrap";
|
|
5225
|
+
readonly inputs: readonly [{
|
|
5226
|
+
readonly name: "from";
|
|
5227
|
+
readonly type: "address";
|
|
5228
|
+
readonly internalType: "address";
|
|
5229
|
+
}, {
|
|
5230
|
+
readonly name: "to";
|
|
5231
|
+
readonly type: "address";
|
|
5232
|
+
readonly internalType: "address";
|
|
5233
|
+
}, {
|
|
5234
|
+
readonly name: "amount";
|
|
5235
|
+
readonly type: "bytes32";
|
|
5236
|
+
readonly internalType: "euint64";
|
|
5237
|
+
}];
|
|
5238
|
+
readonly outputs: readonly [{
|
|
5239
|
+
readonly name: "";
|
|
5240
|
+
readonly type: "bytes32";
|
|
5241
|
+
readonly internalType: "bytes32";
|
|
5242
|
+
}];
|
|
5243
|
+
readonly stateMutability: "nonpayable";
|
|
5244
|
+
}, {
|
|
5245
|
+
readonly type: "function";
|
|
5246
|
+
readonly name: "unwrapAmount";
|
|
5247
|
+
readonly inputs: readonly [{
|
|
5248
|
+
readonly name: "unwrapRequestId";
|
|
5249
|
+
readonly type: "bytes32";
|
|
5250
|
+
readonly internalType: "bytes32";
|
|
5251
|
+
}];
|
|
5252
|
+
readonly outputs: readonly [{
|
|
5253
|
+
readonly name: "";
|
|
5254
|
+
readonly type: "bytes32";
|
|
5255
|
+
readonly internalType: "euint64";
|
|
5256
|
+
}];
|
|
5257
|
+
readonly stateMutability: "view";
|
|
5258
|
+
}, {
|
|
5259
|
+
readonly type: "function";
|
|
5260
|
+
readonly name: "unwrapRequester";
|
|
5261
|
+
readonly inputs: readonly [{
|
|
5262
|
+
readonly name: "unwrapRequestId";
|
|
5263
|
+
readonly type: "bytes32";
|
|
5264
|
+
readonly internalType: "bytes32";
|
|
5265
|
+
}];
|
|
5266
|
+
readonly outputs: readonly [{
|
|
5267
|
+
readonly name: "";
|
|
5268
|
+
readonly type: "address";
|
|
5269
|
+
readonly internalType: "address";
|
|
5270
|
+
}];
|
|
5271
|
+
readonly stateMutability: "view";
|
|
5272
|
+
}, {
|
|
5273
|
+
readonly type: "function";
|
|
5274
|
+
readonly name: "upgradeToAndCall";
|
|
5275
|
+
readonly inputs: readonly [{
|
|
5276
|
+
readonly name: "newImplementation";
|
|
5277
|
+
readonly type: "address";
|
|
5278
|
+
readonly internalType: "address";
|
|
5279
|
+
}, {
|
|
5280
|
+
readonly name: "data";
|
|
5281
|
+
readonly type: "bytes";
|
|
5282
|
+
readonly internalType: "bytes";
|
|
5283
|
+
}];
|
|
5284
|
+
readonly outputs: readonly [];
|
|
5285
|
+
readonly stateMutability: "payable";
|
|
5286
|
+
}, {
|
|
5287
|
+
readonly type: "function";
|
|
5288
|
+
readonly name: "wrap";
|
|
5289
|
+
readonly inputs: readonly [{
|
|
5290
|
+
readonly name: "to";
|
|
5291
|
+
readonly type: "address";
|
|
5292
|
+
readonly internalType: "address";
|
|
5293
|
+
}, {
|
|
5294
|
+
readonly name: "amount";
|
|
5295
|
+
readonly type: "uint256";
|
|
5296
|
+
readonly internalType: "uint256";
|
|
5297
|
+
}];
|
|
5298
|
+
readonly outputs: readonly [{
|
|
5299
|
+
readonly name: "";
|
|
5300
|
+
readonly type: "bytes32";
|
|
5301
|
+
readonly internalType: "euint64";
|
|
5302
|
+
}];
|
|
5303
|
+
readonly stateMutability: "nonpayable";
|
|
5304
|
+
}, {
|
|
5305
|
+
readonly type: "event";
|
|
5306
|
+
readonly name: "AmountDiscloseRequested";
|
|
5307
|
+
readonly inputs: readonly [{
|
|
5308
|
+
readonly name: "encryptedAmount";
|
|
5309
|
+
readonly type: "bytes32";
|
|
5310
|
+
readonly indexed: true;
|
|
5311
|
+
readonly internalType: "euint64";
|
|
5312
|
+
}, {
|
|
5313
|
+
readonly name: "requester";
|
|
5314
|
+
readonly type: "address";
|
|
5315
|
+
readonly indexed: true;
|
|
5316
|
+
readonly internalType: "address";
|
|
5317
|
+
}];
|
|
5318
|
+
readonly anonymous: false;
|
|
5319
|
+
}, {
|
|
5320
|
+
readonly type: "event";
|
|
5321
|
+
readonly name: "AmountDisclosed";
|
|
5322
|
+
readonly inputs: readonly [{
|
|
5323
|
+
readonly name: "encryptedAmount";
|
|
5324
|
+
readonly type: "bytes32";
|
|
5325
|
+
readonly indexed: true;
|
|
5326
|
+
readonly internalType: "euint64";
|
|
5327
|
+
}, {
|
|
5328
|
+
readonly name: "amount";
|
|
5329
|
+
readonly type: "uint64";
|
|
5330
|
+
readonly indexed: false;
|
|
5331
|
+
readonly internalType: "uint64";
|
|
5332
|
+
}];
|
|
5333
|
+
readonly anonymous: false;
|
|
5334
|
+
}, {
|
|
5335
|
+
readonly type: "event";
|
|
5336
|
+
readonly name: "ConfidentialTransfer";
|
|
5337
|
+
readonly inputs: readonly [{
|
|
5338
|
+
readonly name: "from";
|
|
5339
|
+
readonly type: "address";
|
|
5340
|
+
readonly indexed: true;
|
|
5341
|
+
readonly internalType: "address";
|
|
5342
|
+
}, {
|
|
5343
|
+
readonly name: "to";
|
|
5344
|
+
readonly type: "address";
|
|
5345
|
+
readonly indexed: true;
|
|
5346
|
+
readonly internalType: "address";
|
|
5347
|
+
}, {
|
|
5348
|
+
readonly name: "amount";
|
|
5349
|
+
readonly type: "bytes32";
|
|
5350
|
+
readonly indexed: true;
|
|
5351
|
+
readonly internalType: "euint64";
|
|
5352
|
+
}];
|
|
5353
|
+
readonly anonymous: false;
|
|
5354
|
+
}, {
|
|
5355
|
+
readonly type: "event";
|
|
5356
|
+
readonly name: "Initialized";
|
|
5357
|
+
readonly inputs: readonly [{
|
|
5358
|
+
readonly name: "version";
|
|
5359
|
+
readonly type: "uint64";
|
|
5360
|
+
readonly indexed: false;
|
|
5361
|
+
readonly internalType: "uint64";
|
|
5362
|
+
}];
|
|
5363
|
+
readonly anonymous: false;
|
|
5364
|
+
}, {
|
|
5365
|
+
readonly type: "event";
|
|
5366
|
+
readonly name: "OperatorSet";
|
|
5367
|
+
readonly inputs: readonly [{
|
|
5368
|
+
readonly name: "holder";
|
|
5369
|
+
readonly type: "address";
|
|
5370
|
+
readonly indexed: true;
|
|
5371
|
+
readonly internalType: "address";
|
|
5372
|
+
}, {
|
|
5373
|
+
readonly name: "operator";
|
|
5374
|
+
readonly type: "address";
|
|
5375
|
+
readonly indexed: true;
|
|
5376
|
+
readonly internalType: "address";
|
|
5377
|
+
}, {
|
|
5378
|
+
readonly name: "until";
|
|
5379
|
+
readonly type: "uint48";
|
|
5380
|
+
readonly indexed: false;
|
|
5381
|
+
readonly internalType: "uint48";
|
|
5382
|
+
}];
|
|
5383
|
+
readonly anonymous: false;
|
|
5384
|
+
}, {
|
|
5385
|
+
readonly type: "event";
|
|
5386
|
+
readonly name: "OwnershipTransferStarted";
|
|
5387
|
+
readonly inputs: readonly [{
|
|
5388
|
+
readonly name: "previousOwner";
|
|
5389
|
+
readonly type: "address";
|
|
5390
|
+
readonly indexed: true;
|
|
5391
|
+
readonly internalType: "address";
|
|
5392
|
+
}, {
|
|
5393
|
+
readonly name: "newOwner";
|
|
5394
|
+
readonly type: "address";
|
|
5395
|
+
readonly indexed: true;
|
|
5396
|
+
readonly internalType: "address";
|
|
5397
|
+
}];
|
|
5398
|
+
readonly anonymous: false;
|
|
5399
|
+
}, {
|
|
5400
|
+
readonly type: "event";
|
|
5401
|
+
readonly name: "OwnershipTransferred";
|
|
5402
|
+
readonly inputs: readonly [{
|
|
5403
|
+
readonly name: "previousOwner";
|
|
5404
|
+
readonly type: "address";
|
|
5405
|
+
readonly indexed: true;
|
|
5406
|
+
readonly internalType: "address";
|
|
5407
|
+
}, {
|
|
5408
|
+
readonly name: "newOwner";
|
|
5409
|
+
readonly type: "address";
|
|
5410
|
+
readonly indexed: true;
|
|
5411
|
+
readonly internalType: "address";
|
|
5412
|
+
}];
|
|
5413
|
+
readonly anonymous: false;
|
|
5414
|
+
}, {
|
|
5415
|
+
readonly type: "event";
|
|
5416
|
+
readonly name: "PublicDecryptionVerified";
|
|
5417
|
+
readonly inputs: readonly [{
|
|
5418
|
+
readonly name: "handlesList";
|
|
5419
|
+
readonly type: "bytes32[]";
|
|
5420
|
+
readonly indexed: false;
|
|
5421
|
+
readonly internalType: "bytes32[]";
|
|
5422
|
+
}, {
|
|
5423
|
+
readonly name: "abiEncodedCleartexts";
|
|
5424
|
+
readonly type: "bytes";
|
|
5425
|
+
readonly indexed: false;
|
|
5426
|
+
readonly internalType: "bytes";
|
|
5427
|
+
}];
|
|
5428
|
+
readonly anonymous: false;
|
|
5429
|
+
}, {
|
|
5430
|
+
readonly type: "event";
|
|
5431
|
+
readonly name: "UnwrapFinalized";
|
|
5432
|
+
readonly inputs: readonly [{
|
|
5433
|
+
readonly name: "receiver";
|
|
5434
|
+
readonly type: "address";
|
|
5435
|
+
readonly indexed: true;
|
|
5436
|
+
readonly internalType: "address";
|
|
5437
|
+
}, {
|
|
5438
|
+
readonly name: "unwrapRequestId";
|
|
5439
|
+
readonly type: "bytes32";
|
|
5440
|
+
readonly indexed: true;
|
|
5441
|
+
readonly internalType: "bytes32";
|
|
5442
|
+
}, {
|
|
5443
|
+
readonly name: "encryptedAmount";
|
|
5444
|
+
readonly type: "bytes32";
|
|
5445
|
+
readonly indexed: false;
|
|
5446
|
+
readonly internalType: "euint64";
|
|
5447
|
+
}, {
|
|
5448
|
+
readonly name: "cleartextAmount";
|
|
5449
|
+
readonly type: "uint64";
|
|
5450
|
+
readonly indexed: false;
|
|
5451
|
+
readonly internalType: "uint64";
|
|
5452
|
+
}];
|
|
5453
|
+
readonly anonymous: false;
|
|
5454
|
+
}, {
|
|
5455
|
+
readonly type: "event";
|
|
5456
|
+
readonly name: "UnwrapRequested";
|
|
5457
|
+
readonly inputs: readonly [{
|
|
5458
|
+
readonly name: "receiver";
|
|
5459
|
+
readonly type: "address";
|
|
5460
|
+
readonly indexed: true;
|
|
5461
|
+
readonly internalType: "address";
|
|
5462
|
+
}, {
|
|
5463
|
+
readonly name: "unwrapRequestId";
|
|
5464
|
+
readonly type: "bytes32";
|
|
5465
|
+
readonly indexed: true;
|
|
5466
|
+
readonly internalType: "bytes32";
|
|
5467
|
+
}, {
|
|
5468
|
+
readonly name: "amount";
|
|
5469
|
+
readonly type: "bytes32";
|
|
5470
|
+
readonly indexed: false;
|
|
5471
|
+
readonly internalType: "euint64";
|
|
5472
|
+
}];
|
|
5473
|
+
readonly anonymous: false;
|
|
5474
|
+
}, {
|
|
5475
|
+
readonly type: "event";
|
|
5476
|
+
readonly name: "Upgraded";
|
|
5477
|
+
readonly inputs: readonly [{
|
|
5478
|
+
readonly name: "implementation";
|
|
5479
|
+
readonly type: "address";
|
|
5480
|
+
readonly indexed: true;
|
|
5481
|
+
readonly internalType: "address";
|
|
5482
|
+
}];
|
|
5483
|
+
readonly anonymous: false;
|
|
5484
|
+
}, {
|
|
5485
|
+
readonly type: "event";
|
|
5486
|
+
readonly name: "UserBlocked";
|
|
5487
|
+
readonly inputs: readonly [{
|
|
5488
|
+
readonly name: "user";
|
|
5489
|
+
readonly type: "address";
|
|
5490
|
+
readonly indexed: true;
|
|
5491
|
+
readonly internalType: "address";
|
|
5492
|
+
}];
|
|
5493
|
+
readonly anonymous: false;
|
|
5494
|
+
}, {
|
|
5495
|
+
readonly type: "event";
|
|
5496
|
+
readonly name: "UserUnblocked";
|
|
5497
|
+
readonly inputs: readonly [{
|
|
5498
|
+
readonly name: "user";
|
|
5499
|
+
readonly type: "address";
|
|
5500
|
+
readonly indexed: true;
|
|
5501
|
+
readonly internalType: "address";
|
|
5502
|
+
}];
|
|
5503
|
+
readonly anonymous: false;
|
|
5504
|
+
}, {
|
|
5505
|
+
readonly type: "event";
|
|
5506
|
+
readonly name: "Wrap";
|
|
5507
|
+
readonly inputs: readonly [{
|
|
5508
|
+
readonly name: "to";
|
|
5509
|
+
readonly type: "address";
|
|
5510
|
+
readonly indexed: true;
|
|
5511
|
+
readonly internalType: "address";
|
|
5512
|
+
}, {
|
|
5513
|
+
readonly name: "roundedAmount";
|
|
5514
|
+
readonly type: "uint256";
|
|
5515
|
+
readonly indexed: false;
|
|
5516
|
+
readonly internalType: "uint256";
|
|
5517
|
+
}, {
|
|
5518
|
+
readonly name: "encryptedWrappedAmount";
|
|
5519
|
+
readonly type: "bytes32";
|
|
5520
|
+
readonly indexed: false;
|
|
5521
|
+
readonly internalType: "euint64";
|
|
5522
|
+
}];
|
|
5523
|
+
readonly anonymous: false;
|
|
5524
|
+
}, {
|
|
5525
|
+
readonly type: "error";
|
|
5526
|
+
readonly name: "AddressEmptyCode";
|
|
5527
|
+
readonly inputs: readonly [{
|
|
5528
|
+
readonly name: "target";
|
|
5529
|
+
readonly type: "address";
|
|
5530
|
+
readonly internalType: "address";
|
|
5531
|
+
}];
|
|
5532
|
+
}, {
|
|
5533
|
+
readonly type: "error";
|
|
5534
|
+
readonly name: "BlockedUser";
|
|
5535
|
+
readonly inputs: readonly [{
|
|
5536
|
+
readonly name: "user";
|
|
5537
|
+
readonly type: "address";
|
|
5538
|
+
readonly internalType: "address";
|
|
5539
|
+
}];
|
|
5540
|
+
}, {
|
|
5541
|
+
readonly type: "error";
|
|
5542
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
5543
|
+
readonly inputs: readonly [{
|
|
5544
|
+
readonly name: "implementation";
|
|
5545
|
+
readonly type: "address";
|
|
5546
|
+
readonly internalType: "address";
|
|
5547
|
+
}];
|
|
5548
|
+
}, {
|
|
5549
|
+
readonly type: "error";
|
|
5550
|
+
readonly name: "ERC1967NonPayable";
|
|
5551
|
+
readonly inputs: readonly [];
|
|
5552
|
+
}, {
|
|
5553
|
+
readonly type: "error";
|
|
5554
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
5555
|
+
readonly inputs: readonly [{
|
|
5556
|
+
readonly name: "receiver";
|
|
5557
|
+
readonly type: "address";
|
|
5558
|
+
readonly internalType: "address";
|
|
5559
|
+
}];
|
|
5560
|
+
}, {
|
|
5561
|
+
readonly type: "error";
|
|
5562
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
5563
|
+
readonly inputs: readonly [{
|
|
5564
|
+
readonly name: "receiver";
|
|
5565
|
+
readonly type: "address";
|
|
5566
|
+
readonly internalType: "address";
|
|
5567
|
+
}];
|
|
5568
|
+
}, {
|
|
5569
|
+
readonly type: "error";
|
|
5570
|
+
readonly name: "ERC7984InvalidSender";
|
|
5571
|
+
readonly inputs: readonly [{
|
|
5572
|
+
readonly name: "sender";
|
|
5573
|
+
readonly type: "address";
|
|
5574
|
+
readonly internalType: "address";
|
|
5575
|
+
}];
|
|
5576
|
+
}, {
|
|
5577
|
+
readonly type: "error";
|
|
5578
|
+
readonly name: "ERC7984TotalSupplyOverflow";
|
|
5579
|
+
readonly inputs: readonly [];
|
|
5580
|
+
}, {
|
|
5581
|
+
readonly type: "error";
|
|
5582
|
+
readonly name: "ERC7984UnauthorizedCaller";
|
|
5583
|
+
readonly inputs: readonly [{
|
|
5584
|
+
readonly name: "caller";
|
|
5585
|
+
readonly type: "address";
|
|
5586
|
+
readonly internalType: "address";
|
|
5587
|
+
}];
|
|
5588
|
+
}, {
|
|
5589
|
+
readonly type: "error";
|
|
5590
|
+
readonly name: "ERC7984UnauthorizedSpender";
|
|
5591
|
+
readonly inputs: readonly [{
|
|
5592
|
+
readonly name: "holder";
|
|
5593
|
+
readonly type: "address";
|
|
5594
|
+
readonly internalType: "address";
|
|
5595
|
+
}, {
|
|
5596
|
+
readonly name: "spender";
|
|
5597
|
+
readonly type: "address";
|
|
5598
|
+
readonly internalType: "address";
|
|
5599
|
+
}];
|
|
5600
|
+
}, {
|
|
5601
|
+
readonly type: "error";
|
|
5602
|
+
readonly name: "ERC7984UnauthorizedUseOfEncryptedAmount";
|
|
5603
|
+
readonly inputs: readonly [{
|
|
5604
|
+
readonly name: "amount";
|
|
5605
|
+
readonly type: "bytes32";
|
|
5606
|
+
readonly internalType: "euint64";
|
|
5607
|
+
}, {
|
|
5608
|
+
readonly name: "user";
|
|
5609
|
+
readonly type: "address";
|
|
5610
|
+
readonly internalType: "address";
|
|
5611
|
+
}];
|
|
5612
|
+
}, {
|
|
5613
|
+
readonly type: "error";
|
|
5614
|
+
readonly name: "ERC7984ZeroBalance";
|
|
5615
|
+
readonly inputs: readonly [{
|
|
5616
|
+
readonly name: "holder";
|
|
5617
|
+
readonly type: "address";
|
|
5618
|
+
readonly internalType: "address";
|
|
5619
|
+
}];
|
|
5620
|
+
}, {
|
|
5621
|
+
readonly type: "error";
|
|
5622
|
+
readonly name: "FailedCall";
|
|
5623
|
+
readonly inputs: readonly [];
|
|
5624
|
+
}, {
|
|
5625
|
+
readonly type: "error";
|
|
5626
|
+
readonly name: "InvalidInitialization";
|
|
5627
|
+
readonly inputs: readonly [];
|
|
5628
|
+
}, {
|
|
5629
|
+
readonly type: "error";
|
|
5630
|
+
readonly name: "InvalidKMSSignatures";
|
|
5631
|
+
readonly inputs: readonly [];
|
|
5632
|
+
}, {
|
|
5633
|
+
readonly type: "error";
|
|
5634
|
+
readonly name: "InvalidUnderlyingDenyListResponse";
|
|
5635
|
+
readonly inputs: readonly [];
|
|
5636
|
+
}, {
|
|
5637
|
+
readonly type: "error";
|
|
5638
|
+
readonly name: "InvalidUnwrapRequest";
|
|
5639
|
+
readonly inputs: readonly [{
|
|
5640
|
+
readonly name: "unwrapRequestId";
|
|
5641
|
+
readonly type: "bytes32";
|
|
5642
|
+
readonly internalType: "bytes32";
|
|
5643
|
+
}];
|
|
5644
|
+
}, {
|
|
5645
|
+
readonly type: "error";
|
|
5646
|
+
readonly name: "NotInitializing";
|
|
5647
|
+
readonly inputs: readonly [];
|
|
5648
|
+
}, {
|
|
5649
|
+
readonly type: "error";
|
|
5650
|
+
readonly name: "OwnableInvalidOwner";
|
|
5651
|
+
readonly inputs: readonly [{
|
|
5652
|
+
readonly name: "owner";
|
|
5653
|
+
readonly type: "address";
|
|
5654
|
+
readonly internalType: "address";
|
|
5655
|
+
}];
|
|
5656
|
+
}, {
|
|
5657
|
+
readonly type: "error";
|
|
5658
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
5659
|
+
readonly inputs: readonly [{
|
|
5660
|
+
readonly name: "account";
|
|
5661
|
+
readonly type: "address";
|
|
5662
|
+
readonly internalType: "address";
|
|
5663
|
+
}];
|
|
5664
|
+
}, {
|
|
5665
|
+
readonly type: "error";
|
|
5666
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
5667
|
+
readonly inputs: readonly [{
|
|
5668
|
+
readonly name: "bits";
|
|
5669
|
+
readonly type: "uint8";
|
|
5670
|
+
readonly internalType: "uint8";
|
|
5671
|
+
}, {
|
|
5672
|
+
readonly name: "value";
|
|
5673
|
+
readonly type: "uint256";
|
|
5674
|
+
readonly internalType: "uint256";
|
|
5675
|
+
}];
|
|
5676
|
+
}, {
|
|
5677
|
+
readonly type: "error";
|
|
5678
|
+
readonly name: "SafeERC20FailedOperation";
|
|
5679
|
+
readonly inputs: readonly [{
|
|
5680
|
+
readonly name: "token";
|
|
5681
|
+
readonly type: "address";
|
|
5682
|
+
readonly internalType: "address";
|
|
5683
|
+
}];
|
|
5684
|
+
}, {
|
|
5685
|
+
readonly type: "error";
|
|
5686
|
+
readonly name: "SenderNotAllowedToUseHandle";
|
|
5687
|
+
readonly inputs: readonly [{
|
|
5688
|
+
readonly name: "handle";
|
|
5689
|
+
readonly type: "bytes32";
|
|
5690
|
+
readonly internalType: "bytes32";
|
|
5691
|
+
}, {
|
|
5692
|
+
readonly name: "sender";
|
|
5693
|
+
readonly type: "address";
|
|
5694
|
+
readonly internalType: "address";
|
|
5695
|
+
}];
|
|
5696
|
+
}, {
|
|
5697
|
+
readonly type: "error";
|
|
5698
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
5699
|
+
readonly inputs: readonly [];
|
|
5700
|
+
}, {
|
|
5701
|
+
readonly type: "error";
|
|
5702
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
5703
|
+
readonly inputs: readonly [{
|
|
5704
|
+
readonly name: "slot";
|
|
5705
|
+
readonly type: "bytes32";
|
|
5706
|
+
readonly internalType: "bytes32";
|
|
5707
|
+
}];
|
|
5708
|
+
}, {
|
|
5709
|
+
readonly type: "error";
|
|
5710
|
+
readonly name: "UnderlyingDenyListCallFailed";
|
|
5711
|
+
readonly inputs: readonly [];
|
|
5712
|
+
}, {
|
|
5713
|
+
readonly type: "error";
|
|
5714
|
+
readonly name: "UnderlyingDenyListedAddress";
|
|
5715
|
+
readonly inputs: readonly [{
|
|
5716
|
+
readonly name: "user";
|
|
5717
|
+
readonly type: "address";
|
|
5718
|
+
readonly internalType: "address";
|
|
5719
|
+
}];
|
|
5720
|
+
}, {
|
|
5721
|
+
readonly type: "error";
|
|
5722
|
+
readonly name: "UserAlreadyBlocked";
|
|
5723
|
+
readonly inputs: readonly [{
|
|
5724
|
+
readonly name: "user";
|
|
5725
|
+
readonly type: "address";
|
|
5726
|
+
readonly internalType: "address";
|
|
5727
|
+
}];
|
|
5728
|
+
}, {
|
|
5729
|
+
readonly type: "error";
|
|
5730
|
+
readonly name: "UserAlreadyUnblocked";
|
|
5731
|
+
readonly inputs: readonly [{
|
|
5732
|
+
readonly name: "user";
|
|
5733
|
+
readonly type: "address";
|
|
5734
|
+
readonly internalType: "address";
|
|
5735
|
+
}];
|
|
5736
|
+
}, {
|
|
5737
|
+
readonly type: "error";
|
|
5738
|
+
readonly name: "ZamaProtocolUnsupported";
|
|
5739
|
+
readonly inputs: readonly [];
|
|
5740
|
+
}];
|
|
5741
|
+
readonly functionName: "confidentialTransferFromAndCall";
|
|
5742
|
+
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`];
|
|
5743
|
+
};
|
|
3438
5744
|
/**
|
|
3439
5745
|
* Returns the contract config for checking operator status.
|
|
3440
5746
|
*
|
|
3441
5747
|
* @example
|
|
3442
5748
|
* ```ts
|
|
3443
|
-
* const isOperator = await provider.readContract(
|
|
3444
|
-
* isOperatorContract(tokenAddress, holder, spender),
|
|
5749
|
+
* const isOperator = await provider.readContract(
|
|
5750
|
+
* isOperatorContract(tokenAddress, holder, spender),
|
|
5751
|
+
* );
|
|
5752
|
+
* ```
|
|
5753
|
+
*/
|
|
5754
|
+
declare function isOperatorContract(tokenAddress: Address, holder: Address, spender: Address): {
|
|
5755
|
+
readonly address: `0x${string}`;
|
|
5756
|
+
readonly abi: readonly [{
|
|
5757
|
+
readonly type: "function";
|
|
5758
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
5759
|
+
readonly inputs: readonly [];
|
|
5760
|
+
readonly outputs: readonly [{
|
|
5761
|
+
readonly name: "";
|
|
5762
|
+
readonly type: "string";
|
|
5763
|
+
readonly internalType: "string";
|
|
5764
|
+
}];
|
|
5765
|
+
readonly stateMutability: "view";
|
|
5766
|
+
}, {
|
|
5767
|
+
readonly type: "function";
|
|
5768
|
+
readonly name: "acceptOwnership";
|
|
5769
|
+
readonly inputs: readonly [];
|
|
5770
|
+
readonly outputs: readonly [];
|
|
5771
|
+
readonly stateMutability: "nonpayable";
|
|
5772
|
+
}, {
|
|
5773
|
+
readonly type: "function";
|
|
5774
|
+
readonly name: "blockUser";
|
|
5775
|
+
readonly inputs: readonly [{
|
|
5776
|
+
readonly name: "user";
|
|
5777
|
+
readonly type: "address";
|
|
5778
|
+
readonly internalType: "address";
|
|
5779
|
+
}];
|
|
5780
|
+
readonly outputs: readonly [];
|
|
5781
|
+
readonly stateMutability: "nonpayable";
|
|
5782
|
+
}, {
|
|
5783
|
+
readonly type: "function";
|
|
5784
|
+
readonly name: "confidentialBalanceOf";
|
|
5785
|
+
readonly inputs: readonly [{
|
|
5786
|
+
readonly name: "account";
|
|
5787
|
+
readonly type: "address";
|
|
5788
|
+
readonly internalType: "address";
|
|
5789
|
+
}];
|
|
5790
|
+
readonly outputs: readonly [{
|
|
5791
|
+
readonly name: "";
|
|
5792
|
+
readonly type: "bytes32";
|
|
5793
|
+
readonly internalType: "euint64";
|
|
5794
|
+
}];
|
|
5795
|
+
readonly stateMutability: "view";
|
|
5796
|
+
}, {
|
|
5797
|
+
readonly type: "function";
|
|
5798
|
+
readonly name: "confidentialProtocolId";
|
|
5799
|
+
readonly inputs: readonly [];
|
|
5800
|
+
readonly outputs: readonly [{
|
|
5801
|
+
readonly name: "";
|
|
5802
|
+
readonly type: "uint256";
|
|
5803
|
+
readonly internalType: "uint256";
|
|
5804
|
+
}];
|
|
5805
|
+
readonly stateMutability: "view";
|
|
5806
|
+
}, {
|
|
5807
|
+
readonly type: "function";
|
|
5808
|
+
readonly name: "confidentialTotalSupply";
|
|
5809
|
+
readonly inputs: readonly [];
|
|
5810
|
+
readonly outputs: readonly [{
|
|
5811
|
+
readonly name: "";
|
|
5812
|
+
readonly type: "bytes32";
|
|
5813
|
+
readonly internalType: "euint64";
|
|
5814
|
+
}];
|
|
5815
|
+
readonly stateMutability: "view";
|
|
5816
|
+
}, {
|
|
5817
|
+
readonly type: "function";
|
|
5818
|
+
readonly name: "confidentialTransfer";
|
|
5819
|
+
readonly inputs: readonly [{
|
|
5820
|
+
readonly name: "to";
|
|
5821
|
+
readonly type: "address";
|
|
5822
|
+
readonly internalType: "address";
|
|
5823
|
+
}, {
|
|
5824
|
+
readonly name: "encryptedAmount";
|
|
5825
|
+
readonly type: "bytes32";
|
|
5826
|
+
readonly internalType: "externalEuint64";
|
|
5827
|
+
}, {
|
|
5828
|
+
readonly name: "inputProof";
|
|
5829
|
+
readonly type: "bytes";
|
|
5830
|
+
readonly internalType: "bytes";
|
|
5831
|
+
}];
|
|
5832
|
+
readonly outputs: readonly [{
|
|
5833
|
+
readonly name: "";
|
|
5834
|
+
readonly type: "bytes32";
|
|
5835
|
+
readonly internalType: "euint64";
|
|
5836
|
+
}];
|
|
5837
|
+
readonly stateMutability: "nonpayable";
|
|
5838
|
+
}, {
|
|
5839
|
+
readonly type: "function";
|
|
5840
|
+
readonly name: "confidentialTransfer";
|
|
5841
|
+
readonly inputs: readonly [{
|
|
5842
|
+
readonly name: "to";
|
|
5843
|
+
readonly type: "address";
|
|
5844
|
+
readonly internalType: "address";
|
|
5845
|
+
}, {
|
|
5846
|
+
readonly name: "amount";
|
|
5847
|
+
readonly type: "bytes32";
|
|
5848
|
+
readonly internalType: "euint64";
|
|
5849
|
+
}];
|
|
5850
|
+
readonly outputs: readonly [{
|
|
5851
|
+
readonly name: "";
|
|
5852
|
+
readonly type: "bytes32";
|
|
5853
|
+
readonly internalType: "euint64";
|
|
5854
|
+
}];
|
|
5855
|
+
readonly stateMutability: "nonpayable";
|
|
5856
|
+
}, {
|
|
5857
|
+
readonly type: "function";
|
|
5858
|
+
readonly name: "confidentialTransferAndCall";
|
|
5859
|
+
readonly inputs: readonly [{
|
|
5860
|
+
readonly name: "to";
|
|
5861
|
+
readonly type: "address";
|
|
5862
|
+
readonly internalType: "address";
|
|
5863
|
+
}, {
|
|
5864
|
+
readonly name: "amount";
|
|
5865
|
+
readonly type: "bytes32";
|
|
5866
|
+
readonly internalType: "euint64";
|
|
5867
|
+
}, {
|
|
5868
|
+
readonly name: "data";
|
|
5869
|
+
readonly type: "bytes";
|
|
5870
|
+
readonly internalType: "bytes";
|
|
5871
|
+
}];
|
|
5872
|
+
readonly outputs: readonly [{
|
|
5873
|
+
readonly name: "transferred";
|
|
5874
|
+
readonly type: "bytes32";
|
|
5875
|
+
readonly internalType: "euint64";
|
|
5876
|
+
}];
|
|
5877
|
+
readonly stateMutability: "nonpayable";
|
|
5878
|
+
}, {
|
|
5879
|
+
readonly type: "function";
|
|
5880
|
+
readonly name: "confidentialTransferAndCall";
|
|
5881
|
+
readonly inputs: readonly [{
|
|
5882
|
+
readonly name: "to";
|
|
5883
|
+
readonly type: "address";
|
|
5884
|
+
readonly internalType: "address";
|
|
5885
|
+
}, {
|
|
5886
|
+
readonly name: "encryptedAmount";
|
|
5887
|
+
readonly type: "bytes32";
|
|
5888
|
+
readonly internalType: "externalEuint64";
|
|
5889
|
+
}, {
|
|
5890
|
+
readonly name: "inputProof";
|
|
5891
|
+
readonly type: "bytes";
|
|
5892
|
+
readonly internalType: "bytes";
|
|
5893
|
+
}, {
|
|
5894
|
+
readonly name: "data";
|
|
5895
|
+
readonly type: "bytes";
|
|
5896
|
+
readonly internalType: "bytes";
|
|
5897
|
+
}];
|
|
5898
|
+
readonly outputs: readonly [{
|
|
5899
|
+
readonly name: "transferred";
|
|
5900
|
+
readonly type: "bytes32";
|
|
5901
|
+
readonly internalType: "euint64";
|
|
5902
|
+
}];
|
|
5903
|
+
readonly stateMutability: "nonpayable";
|
|
5904
|
+
}, {
|
|
5905
|
+
readonly type: "function";
|
|
5906
|
+
readonly name: "confidentialTransferFrom";
|
|
5907
|
+
readonly inputs: readonly [{
|
|
5908
|
+
readonly name: "from";
|
|
5909
|
+
readonly type: "address";
|
|
5910
|
+
readonly internalType: "address";
|
|
5911
|
+
}, {
|
|
5912
|
+
readonly name: "to";
|
|
5913
|
+
readonly type: "address";
|
|
5914
|
+
readonly internalType: "address";
|
|
5915
|
+
}, {
|
|
5916
|
+
readonly name: "encryptedAmount";
|
|
5917
|
+
readonly type: "bytes32";
|
|
5918
|
+
readonly internalType: "externalEuint64";
|
|
5919
|
+
}, {
|
|
5920
|
+
readonly name: "inputProof";
|
|
5921
|
+
readonly type: "bytes";
|
|
5922
|
+
readonly internalType: "bytes";
|
|
5923
|
+
}];
|
|
5924
|
+
readonly outputs: readonly [{
|
|
5925
|
+
readonly name: "transferred";
|
|
5926
|
+
readonly type: "bytes32";
|
|
5927
|
+
readonly internalType: "euint64";
|
|
5928
|
+
}];
|
|
5929
|
+
readonly stateMutability: "nonpayable";
|
|
5930
|
+
}, {
|
|
5931
|
+
readonly type: "function";
|
|
5932
|
+
readonly name: "confidentialTransferFrom";
|
|
5933
|
+
readonly inputs: readonly [{
|
|
5934
|
+
readonly name: "from";
|
|
5935
|
+
readonly type: "address";
|
|
5936
|
+
readonly internalType: "address";
|
|
5937
|
+
}, {
|
|
5938
|
+
readonly name: "to";
|
|
5939
|
+
readonly type: "address";
|
|
5940
|
+
readonly internalType: "address";
|
|
5941
|
+
}, {
|
|
5942
|
+
readonly name: "amount";
|
|
5943
|
+
readonly type: "bytes32";
|
|
5944
|
+
readonly internalType: "euint64";
|
|
5945
|
+
}];
|
|
5946
|
+
readonly outputs: readonly [{
|
|
5947
|
+
readonly name: "transferred";
|
|
5948
|
+
readonly type: "bytes32";
|
|
5949
|
+
readonly internalType: "euint64";
|
|
5950
|
+
}];
|
|
5951
|
+
readonly stateMutability: "nonpayable";
|
|
5952
|
+
}, {
|
|
5953
|
+
readonly type: "function";
|
|
5954
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
5955
|
+
readonly inputs: readonly [{
|
|
5956
|
+
readonly name: "from";
|
|
5957
|
+
readonly type: "address";
|
|
5958
|
+
readonly internalType: "address";
|
|
5959
|
+
}, {
|
|
5960
|
+
readonly name: "to";
|
|
5961
|
+
readonly type: "address";
|
|
5962
|
+
readonly internalType: "address";
|
|
5963
|
+
}, {
|
|
5964
|
+
readonly name: "encryptedAmount";
|
|
5965
|
+
readonly type: "bytes32";
|
|
5966
|
+
readonly internalType: "externalEuint64";
|
|
5967
|
+
}, {
|
|
5968
|
+
readonly name: "inputProof";
|
|
5969
|
+
readonly type: "bytes";
|
|
5970
|
+
readonly internalType: "bytes";
|
|
5971
|
+
}, {
|
|
5972
|
+
readonly name: "data";
|
|
5973
|
+
readonly type: "bytes";
|
|
5974
|
+
readonly internalType: "bytes";
|
|
5975
|
+
}];
|
|
5976
|
+
readonly outputs: readonly [{
|
|
5977
|
+
readonly name: "transferred";
|
|
5978
|
+
readonly type: "bytes32";
|
|
5979
|
+
readonly internalType: "euint64";
|
|
5980
|
+
}];
|
|
5981
|
+
readonly stateMutability: "nonpayable";
|
|
5982
|
+
}, {
|
|
5983
|
+
readonly type: "function";
|
|
5984
|
+
readonly name: "confidentialTransferFromAndCall";
|
|
5985
|
+
readonly inputs: readonly [{
|
|
5986
|
+
readonly name: "from";
|
|
5987
|
+
readonly type: "address";
|
|
5988
|
+
readonly internalType: "address";
|
|
5989
|
+
}, {
|
|
5990
|
+
readonly name: "to";
|
|
5991
|
+
readonly type: "address";
|
|
5992
|
+
readonly internalType: "address";
|
|
5993
|
+
}, {
|
|
5994
|
+
readonly name: "amount";
|
|
5995
|
+
readonly type: "bytes32";
|
|
5996
|
+
readonly internalType: "euint64";
|
|
5997
|
+
}, {
|
|
5998
|
+
readonly name: "data";
|
|
5999
|
+
readonly type: "bytes";
|
|
6000
|
+
readonly internalType: "bytes";
|
|
6001
|
+
}];
|
|
6002
|
+
readonly outputs: readonly [{
|
|
6003
|
+
readonly name: "transferred";
|
|
6004
|
+
readonly type: "bytes32";
|
|
6005
|
+
readonly internalType: "euint64";
|
|
6006
|
+
}];
|
|
6007
|
+
readonly stateMutability: "nonpayable";
|
|
6008
|
+
}, {
|
|
6009
|
+
readonly type: "function";
|
|
6010
|
+
readonly name: "contractURI";
|
|
6011
|
+
readonly inputs: readonly [];
|
|
6012
|
+
readonly outputs: readonly [{
|
|
6013
|
+
readonly name: "";
|
|
6014
|
+
readonly type: "string";
|
|
6015
|
+
readonly internalType: "string";
|
|
6016
|
+
}];
|
|
6017
|
+
readonly stateMutability: "view";
|
|
6018
|
+
}, {
|
|
6019
|
+
readonly type: "function";
|
|
6020
|
+
readonly name: "decimals";
|
|
6021
|
+
readonly inputs: readonly [];
|
|
6022
|
+
readonly outputs: readonly [{
|
|
6023
|
+
readonly name: "";
|
|
6024
|
+
readonly type: "uint8";
|
|
6025
|
+
readonly internalType: "uint8";
|
|
6026
|
+
}];
|
|
6027
|
+
readonly stateMutability: "view";
|
|
6028
|
+
}, {
|
|
6029
|
+
readonly type: "function";
|
|
6030
|
+
readonly name: "discloseEncryptedAmount";
|
|
6031
|
+
readonly inputs: readonly [{
|
|
6032
|
+
readonly name: "encryptedAmount";
|
|
6033
|
+
readonly type: "bytes32";
|
|
6034
|
+
readonly internalType: "euint64";
|
|
6035
|
+
}, {
|
|
6036
|
+
readonly name: "cleartextAmount";
|
|
6037
|
+
readonly type: "uint64";
|
|
6038
|
+
readonly internalType: "uint64";
|
|
6039
|
+
}, {
|
|
6040
|
+
readonly name: "decryptionProof";
|
|
6041
|
+
readonly type: "bytes";
|
|
6042
|
+
readonly internalType: "bytes";
|
|
6043
|
+
}];
|
|
6044
|
+
readonly outputs: readonly [];
|
|
6045
|
+
readonly stateMutability: "nonpayable";
|
|
6046
|
+
}, {
|
|
6047
|
+
readonly type: "function";
|
|
6048
|
+
readonly name: "finalizeUnwrap";
|
|
6049
|
+
readonly inputs: readonly [{
|
|
6050
|
+
readonly name: "unwrapRequestId";
|
|
6051
|
+
readonly type: "bytes32";
|
|
6052
|
+
readonly internalType: "bytes32";
|
|
6053
|
+
}, {
|
|
6054
|
+
readonly name: "unwrapAmountCleartext";
|
|
6055
|
+
readonly type: "uint64";
|
|
6056
|
+
readonly internalType: "uint64";
|
|
6057
|
+
}, {
|
|
6058
|
+
readonly name: "decryptionProof";
|
|
6059
|
+
readonly type: "bytes";
|
|
6060
|
+
readonly internalType: "bytes";
|
|
6061
|
+
}];
|
|
6062
|
+
readonly outputs: readonly [];
|
|
6063
|
+
readonly stateMutability: "nonpayable";
|
|
6064
|
+
}, {
|
|
6065
|
+
readonly type: "function";
|
|
6066
|
+
readonly name: "getUnderlyingDenyListSelector";
|
|
6067
|
+
readonly inputs: readonly [];
|
|
6068
|
+
readonly outputs: readonly [{
|
|
6069
|
+
readonly name: "isSet";
|
|
6070
|
+
readonly type: "bool";
|
|
6071
|
+
readonly internalType: "bool";
|
|
6072
|
+
}, {
|
|
6073
|
+
readonly name: "selector";
|
|
6074
|
+
readonly type: "bytes4";
|
|
6075
|
+
readonly internalType: "bytes4";
|
|
6076
|
+
}];
|
|
6077
|
+
readonly stateMutability: "view";
|
|
6078
|
+
}, {
|
|
6079
|
+
readonly type: "function";
|
|
6080
|
+
readonly name: "inferredTotalSupply";
|
|
6081
|
+
readonly inputs: readonly [];
|
|
6082
|
+
readonly outputs: readonly [{
|
|
6083
|
+
readonly name: "";
|
|
6084
|
+
readonly type: "uint256";
|
|
6085
|
+
readonly internalType: "uint256";
|
|
6086
|
+
}];
|
|
6087
|
+
readonly stateMutability: "view";
|
|
6088
|
+
}, {
|
|
6089
|
+
readonly type: "function";
|
|
6090
|
+
readonly name: "initialize";
|
|
6091
|
+
readonly inputs: readonly [{
|
|
6092
|
+
readonly name: "name_";
|
|
6093
|
+
readonly type: "string";
|
|
6094
|
+
readonly internalType: "string";
|
|
6095
|
+
}, {
|
|
6096
|
+
readonly name: "symbol_";
|
|
6097
|
+
readonly type: "string";
|
|
6098
|
+
readonly internalType: "string";
|
|
6099
|
+
}, {
|
|
6100
|
+
readonly name: "contractURI_";
|
|
6101
|
+
readonly type: "string";
|
|
6102
|
+
readonly internalType: "string";
|
|
6103
|
+
}, {
|
|
6104
|
+
readonly name: "underlying_";
|
|
6105
|
+
readonly type: "address";
|
|
6106
|
+
readonly internalType: "contract IERC20";
|
|
6107
|
+
}, {
|
|
6108
|
+
readonly name: "owner_";
|
|
6109
|
+
readonly type: "address";
|
|
6110
|
+
readonly internalType: "address";
|
|
6111
|
+
}];
|
|
6112
|
+
readonly outputs: readonly [];
|
|
6113
|
+
readonly stateMutability: "nonpayable";
|
|
6114
|
+
}, {
|
|
6115
|
+
readonly type: "function";
|
|
6116
|
+
readonly name: "isBlocked";
|
|
6117
|
+
readonly inputs: readonly [{
|
|
6118
|
+
readonly name: "user";
|
|
6119
|
+
readonly type: "address";
|
|
6120
|
+
readonly internalType: "address";
|
|
6121
|
+
}];
|
|
6122
|
+
readonly outputs: readonly [{
|
|
6123
|
+
readonly name: "";
|
|
6124
|
+
readonly type: "bool";
|
|
6125
|
+
readonly internalType: "bool";
|
|
6126
|
+
}];
|
|
6127
|
+
readonly stateMutability: "view";
|
|
6128
|
+
}, {
|
|
6129
|
+
readonly type: "function";
|
|
6130
|
+
readonly name: "isOperator";
|
|
6131
|
+
readonly inputs: readonly [{
|
|
6132
|
+
readonly name: "holder";
|
|
6133
|
+
readonly type: "address";
|
|
6134
|
+
readonly internalType: "address";
|
|
6135
|
+
}, {
|
|
6136
|
+
readonly name: "spender";
|
|
6137
|
+
readonly type: "address";
|
|
6138
|
+
readonly internalType: "address";
|
|
6139
|
+
}];
|
|
6140
|
+
readonly outputs: readonly [{
|
|
6141
|
+
readonly name: "";
|
|
6142
|
+
readonly type: "bool";
|
|
6143
|
+
readonly internalType: "bool";
|
|
6144
|
+
}];
|
|
6145
|
+
readonly stateMutability: "view";
|
|
6146
|
+
}, {
|
|
6147
|
+
readonly type: "function";
|
|
6148
|
+
readonly name: "maxTotalSupply";
|
|
6149
|
+
readonly inputs: readonly [];
|
|
6150
|
+
readonly outputs: readonly [{
|
|
6151
|
+
readonly name: "";
|
|
6152
|
+
readonly type: "uint256";
|
|
6153
|
+
readonly internalType: "uint256";
|
|
6154
|
+
}];
|
|
6155
|
+
readonly stateMutability: "view";
|
|
6156
|
+
}, {
|
|
6157
|
+
readonly type: "function";
|
|
6158
|
+
readonly name: "name";
|
|
6159
|
+
readonly inputs: readonly [];
|
|
6160
|
+
readonly outputs: readonly [{
|
|
6161
|
+
readonly name: "";
|
|
6162
|
+
readonly type: "string";
|
|
6163
|
+
readonly internalType: "string";
|
|
6164
|
+
}];
|
|
6165
|
+
readonly stateMutability: "view";
|
|
6166
|
+
}, {
|
|
6167
|
+
readonly type: "function";
|
|
6168
|
+
readonly name: "onTransferReceived";
|
|
6169
|
+
readonly inputs: readonly [{
|
|
6170
|
+
readonly name: "operator";
|
|
6171
|
+
readonly type: "address";
|
|
6172
|
+
readonly internalType: "address";
|
|
6173
|
+
}, {
|
|
6174
|
+
readonly name: "from";
|
|
6175
|
+
readonly type: "address";
|
|
6176
|
+
readonly internalType: "address";
|
|
6177
|
+
}, {
|
|
6178
|
+
readonly name: "amount";
|
|
6179
|
+
readonly type: "uint256";
|
|
6180
|
+
readonly internalType: "uint256";
|
|
6181
|
+
}, {
|
|
6182
|
+
readonly name: "data";
|
|
6183
|
+
readonly type: "bytes";
|
|
6184
|
+
readonly internalType: "bytes";
|
|
6185
|
+
}];
|
|
6186
|
+
readonly outputs: readonly [{
|
|
6187
|
+
readonly name: "";
|
|
6188
|
+
readonly type: "bytes4";
|
|
6189
|
+
readonly internalType: "bytes4";
|
|
6190
|
+
}];
|
|
6191
|
+
readonly stateMutability: "nonpayable";
|
|
6192
|
+
}, {
|
|
6193
|
+
readonly type: "function";
|
|
6194
|
+
readonly name: "owner";
|
|
6195
|
+
readonly inputs: readonly [];
|
|
6196
|
+
readonly outputs: readonly [{
|
|
6197
|
+
readonly name: "";
|
|
6198
|
+
readonly type: "address";
|
|
6199
|
+
readonly internalType: "address";
|
|
6200
|
+
}];
|
|
6201
|
+
readonly stateMutability: "view";
|
|
6202
|
+
}, {
|
|
6203
|
+
readonly type: "function";
|
|
6204
|
+
readonly name: "pendingOwner";
|
|
6205
|
+
readonly inputs: readonly [];
|
|
6206
|
+
readonly outputs: readonly [{
|
|
6207
|
+
readonly name: "";
|
|
6208
|
+
readonly type: "address";
|
|
6209
|
+
readonly internalType: "address";
|
|
6210
|
+
}];
|
|
6211
|
+
readonly stateMutability: "view";
|
|
6212
|
+
}, {
|
|
6213
|
+
readonly type: "function";
|
|
6214
|
+
readonly name: "proxiableUUID";
|
|
6215
|
+
readonly inputs: readonly [];
|
|
6216
|
+
readonly outputs: readonly [{
|
|
6217
|
+
readonly name: "";
|
|
6218
|
+
readonly type: "bytes32";
|
|
6219
|
+
readonly internalType: "bytes32";
|
|
6220
|
+
}];
|
|
6221
|
+
readonly stateMutability: "view";
|
|
6222
|
+
}, {
|
|
6223
|
+
readonly type: "function";
|
|
6224
|
+
readonly name: "rate";
|
|
6225
|
+
readonly inputs: readonly [];
|
|
6226
|
+
readonly outputs: readonly [{
|
|
6227
|
+
readonly name: "";
|
|
6228
|
+
readonly type: "uint256";
|
|
6229
|
+
readonly internalType: "uint256";
|
|
6230
|
+
}];
|
|
6231
|
+
readonly stateMutability: "view";
|
|
6232
|
+
}, {
|
|
6233
|
+
readonly type: "function";
|
|
6234
|
+
readonly name: "reinitializeV2";
|
|
6235
|
+
readonly inputs: readonly [];
|
|
6236
|
+
readonly outputs: readonly [];
|
|
6237
|
+
readonly stateMutability: "nonpayable";
|
|
6238
|
+
}, {
|
|
6239
|
+
readonly type: "function";
|
|
6240
|
+
readonly name: "reinitializeV3";
|
|
6241
|
+
readonly inputs: readonly [{
|
|
6242
|
+
readonly name: "blockedUsers";
|
|
6243
|
+
readonly type: "address[]";
|
|
6244
|
+
readonly internalType: "address[]";
|
|
6245
|
+
}, {
|
|
6246
|
+
readonly name: "underlyingDenyListSelector";
|
|
6247
|
+
readonly type: "bytes4";
|
|
6248
|
+
readonly internalType: "bytes4";
|
|
6249
|
+
}, {
|
|
6250
|
+
readonly name: "hasUnderlyingDenyListSelector_";
|
|
6251
|
+
readonly type: "bool";
|
|
6252
|
+
readonly internalType: "bool";
|
|
6253
|
+
}];
|
|
6254
|
+
readonly outputs: readonly [];
|
|
6255
|
+
readonly stateMutability: "nonpayable";
|
|
6256
|
+
}, {
|
|
6257
|
+
readonly type: "function";
|
|
6258
|
+
readonly name: "renounceOwnership";
|
|
6259
|
+
readonly inputs: readonly [];
|
|
6260
|
+
readonly outputs: readonly [];
|
|
6261
|
+
readonly stateMutability: "nonpayable";
|
|
6262
|
+
}, {
|
|
6263
|
+
readonly type: "function";
|
|
6264
|
+
readonly name: "requestDiscloseEncryptedAmount";
|
|
6265
|
+
readonly inputs: readonly [{
|
|
6266
|
+
readonly name: "encryptedAmount";
|
|
6267
|
+
readonly type: "bytes32";
|
|
6268
|
+
readonly internalType: "euint64";
|
|
6269
|
+
}];
|
|
6270
|
+
readonly outputs: readonly [];
|
|
6271
|
+
readonly stateMutability: "nonpayable";
|
|
6272
|
+
}, {
|
|
6273
|
+
readonly type: "function";
|
|
6274
|
+
readonly name: "setOperator";
|
|
6275
|
+
readonly inputs: readonly [{
|
|
6276
|
+
readonly name: "operator";
|
|
6277
|
+
readonly type: "address";
|
|
6278
|
+
readonly internalType: "address";
|
|
6279
|
+
}, {
|
|
6280
|
+
readonly name: "until";
|
|
6281
|
+
readonly type: "uint48";
|
|
6282
|
+
readonly internalType: "uint48";
|
|
6283
|
+
}];
|
|
6284
|
+
readonly outputs: readonly [];
|
|
6285
|
+
readonly stateMutability: "nonpayable";
|
|
6286
|
+
}, {
|
|
6287
|
+
readonly type: "function";
|
|
6288
|
+
readonly name: "supportsInterface";
|
|
6289
|
+
readonly inputs: readonly [{
|
|
6290
|
+
readonly name: "interfaceId";
|
|
6291
|
+
readonly type: "bytes4";
|
|
6292
|
+
readonly internalType: "bytes4";
|
|
6293
|
+
}];
|
|
6294
|
+
readonly outputs: readonly [{
|
|
6295
|
+
readonly name: "";
|
|
6296
|
+
readonly type: "bool";
|
|
6297
|
+
readonly internalType: "bool";
|
|
6298
|
+
}];
|
|
6299
|
+
readonly stateMutability: "view";
|
|
6300
|
+
}, {
|
|
6301
|
+
readonly type: "function";
|
|
6302
|
+
readonly name: "symbol";
|
|
6303
|
+
readonly inputs: readonly [];
|
|
6304
|
+
readonly outputs: readonly [{
|
|
6305
|
+
readonly name: "";
|
|
6306
|
+
readonly type: "string";
|
|
6307
|
+
readonly internalType: "string";
|
|
6308
|
+
}];
|
|
6309
|
+
readonly stateMutability: "view";
|
|
6310
|
+
}, {
|
|
6311
|
+
readonly type: "function";
|
|
6312
|
+
readonly name: "transferOwnership";
|
|
6313
|
+
readonly inputs: readonly [{
|
|
6314
|
+
readonly name: "newOwner";
|
|
6315
|
+
readonly type: "address";
|
|
6316
|
+
readonly internalType: "address";
|
|
6317
|
+
}];
|
|
6318
|
+
readonly outputs: readonly [];
|
|
6319
|
+
readonly stateMutability: "nonpayable";
|
|
6320
|
+
}, {
|
|
6321
|
+
readonly type: "function";
|
|
6322
|
+
readonly name: "unblockUser";
|
|
6323
|
+
readonly inputs: readonly [{
|
|
6324
|
+
readonly name: "user";
|
|
6325
|
+
readonly type: "address";
|
|
6326
|
+
readonly internalType: "address";
|
|
6327
|
+
}];
|
|
6328
|
+
readonly outputs: readonly [];
|
|
6329
|
+
readonly stateMutability: "nonpayable";
|
|
6330
|
+
}, {
|
|
6331
|
+
readonly type: "function";
|
|
6332
|
+
readonly name: "underlying";
|
|
6333
|
+
readonly inputs: readonly [];
|
|
6334
|
+
readonly outputs: readonly [{
|
|
6335
|
+
readonly name: "";
|
|
6336
|
+
readonly type: "address";
|
|
6337
|
+
readonly internalType: "address";
|
|
6338
|
+
}];
|
|
6339
|
+
readonly stateMutability: "view";
|
|
6340
|
+
}, {
|
|
6341
|
+
readonly type: "function";
|
|
6342
|
+
readonly name: "unwrap";
|
|
6343
|
+
readonly inputs: readonly [{
|
|
6344
|
+
readonly name: "from";
|
|
6345
|
+
readonly type: "address";
|
|
6346
|
+
readonly internalType: "address";
|
|
6347
|
+
}, {
|
|
6348
|
+
readonly name: "to";
|
|
6349
|
+
readonly type: "address";
|
|
6350
|
+
readonly internalType: "address";
|
|
6351
|
+
}, {
|
|
6352
|
+
readonly name: "encryptedAmount";
|
|
6353
|
+
readonly type: "bytes32";
|
|
6354
|
+
readonly internalType: "externalEuint64";
|
|
6355
|
+
}, {
|
|
6356
|
+
readonly name: "inputProof";
|
|
6357
|
+
readonly type: "bytes";
|
|
6358
|
+
readonly internalType: "bytes";
|
|
6359
|
+
}];
|
|
6360
|
+
readonly outputs: readonly [{
|
|
6361
|
+
readonly name: "";
|
|
6362
|
+
readonly type: "bytes32";
|
|
6363
|
+
readonly internalType: "bytes32";
|
|
6364
|
+
}];
|
|
6365
|
+
readonly stateMutability: "nonpayable";
|
|
6366
|
+
}, {
|
|
6367
|
+
readonly type: "function";
|
|
6368
|
+
readonly name: "unwrap";
|
|
6369
|
+
readonly inputs: readonly [{
|
|
6370
|
+
readonly name: "from";
|
|
6371
|
+
readonly type: "address";
|
|
6372
|
+
readonly internalType: "address";
|
|
6373
|
+
}, {
|
|
6374
|
+
readonly name: "to";
|
|
6375
|
+
readonly type: "address";
|
|
6376
|
+
readonly internalType: "address";
|
|
6377
|
+
}, {
|
|
6378
|
+
readonly name: "amount";
|
|
6379
|
+
readonly type: "bytes32";
|
|
6380
|
+
readonly internalType: "euint64";
|
|
6381
|
+
}];
|
|
6382
|
+
readonly outputs: readonly [{
|
|
6383
|
+
readonly name: "";
|
|
6384
|
+
readonly type: "bytes32";
|
|
6385
|
+
readonly internalType: "bytes32";
|
|
6386
|
+
}];
|
|
6387
|
+
readonly stateMutability: "nonpayable";
|
|
6388
|
+
}, {
|
|
6389
|
+
readonly type: "function";
|
|
6390
|
+
readonly name: "unwrapAmount";
|
|
6391
|
+
readonly inputs: readonly [{
|
|
6392
|
+
readonly name: "unwrapRequestId";
|
|
6393
|
+
readonly type: "bytes32";
|
|
6394
|
+
readonly internalType: "bytes32";
|
|
6395
|
+
}];
|
|
6396
|
+
readonly outputs: readonly [{
|
|
6397
|
+
readonly name: "";
|
|
6398
|
+
readonly type: "bytes32";
|
|
6399
|
+
readonly internalType: "euint64";
|
|
6400
|
+
}];
|
|
6401
|
+
readonly stateMutability: "view";
|
|
6402
|
+
}, {
|
|
6403
|
+
readonly type: "function";
|
|
6404
|
+
readonly name: "unwrapRequester";
|
|
6405
|
+
readonly inputs: readonly [{
|
|
6406
|
+
readonly name: "unwrapRequestId";
|
|
6407
|
+
readonly type: "bytes32";
|
|
6408
|
+
readonly internalType: "bytes32";
|
|
6409
|
+
}];
|
|
6410
|
+
readonly outputs: readonly [{
|
|
6411
|
+
readonly name: "";
|
|
6412
|
+
readonly type: "address";
|
|
6413
|
+
readonly internalType: "address";
|
|
6414
|
+
}];
|
|
6415
|
+
readonly stateMutability: "view";
|
|
6416
|
+
}, {
|
|
6417
|
+
readonly type: "function";
|
|
6418
|
+
readonly name: "upgradeToAndCall";
|
|
6419
|
+
readonly inputs: readonly [{
|
|
6420
|
+
readonly name: "newImplementation";
|
|
6421
|
+
readonly type: "address";
|
|
6422
|
+
readonly internalType: "address";
|
|
6423
|
+
}, {
|
|
6424
|
+
readonly name: "data";
|
|
6425
|
+
readonly type: "bytes";
|
|
6426
|
+
readonly internalType: "bytes";
|
|
6427
|
+
}];
|
|
6428
|
+
readonly outputs: readonly [];
|
|
6429
|
+
readonly stateMutability: "payable";
|
|
6430
|
+
}, {
|
|
6431
|
+
readonly type: "function";
|
|
6432
|
+
readonly name: "wrap";
|
|
6433
|
+
readonly inputs: readonly [{
|
|
6434
|
+
readonly name: "to";
|
|
6435
|
+
readonly type: "address";
|
|
6436
|
+
readonly internalType: "address";
|
|
6437
|
+
}, {
|
|
6438
|
+
readonly name: "amount";
|
|
6439
|
+
readonly type: "uint256";
|
|
6440
|
+
readonly internalType: "uint256";
|
|
6441
|
+
}];
|
|
6442
|
+
readonly outputs: readonly [{
|
|
6443
|
+
readonly name: "";
|
|
6444
|
+
readonly type: "bytes32";
|
|
6445
|
+
readonly internalType: "euint64";
|
|
6446
|
+
}];
|
|
6447
|
+
readonly stateMutability: "nonpayable";
|
|
6448
|
+
}, {
|
|
6449
|
+
readonly type: "event";
|
|
6450
|
+
readonly name: "AmountDiscloseRequested";
|
|
6451
|
+
readonly inputs: readonly [{
|
|
6452
|
+
readonly name: "encryptedAmount";
|
|
6453
|
+
readonly type: "bytes32";
|
|
6454
|
+
readonly indexed: true;
|
|
6455
|
+
readonly internalType: "euint64";
|
|
6456
|
+
}, {
|
|
6457
|
+
readonly name: "requester";
|
|
6458
|
+
readonly type: "address";
|
|
6459
|
+
readonly indexed: true;
|
|
6460
|
+
readonly internalType: "address";
|
|
6461
|
+
}];
|
|
6462
|
+
readonly anonymous: false;
|
|
6463
|
+
}, {
|
|
6464
|
+
readonly type: "event";
|
|
6465
|
+
readonly name: "AmountDisclosed";
|
|
6466
|
+
readonly inputs: readonly [{
|
|
6467
|
+
readonly name: "encryptedAmount";
|
|
6468
|
+
readonly type: "bytes32";
|
|
6469
|
+
readonly indexed: true;
|
|
6470
|
+
readonly internalType: "euint64";
|
|
6471
|
+
}, {
|
|
6472
|
+
readonly name: "amount";
|
|
6473
|
+
readonly type: "uint64";
|
|
6474
|
+
readonly indexed: false;
|
|
6475
|
+
readonly internalType: "uint64";
|
|
6476
|
+
}];
|
|
6477
|
+
readonly anonymous: false;
|
|
6478
|
+
}, {
|
|
6479
|
+
readonly type: "event";
|
|
6480
|
+
readonly name: "ConfidentialTransfer";
|
|
6481
|
+
readonly inputs: readonly [{
|
|
6482
|
+
readonly name: "from";
|
|
6483
|
+
readonly type: "address";
|
|
6484
|
+
readonly indexed: true;
|
|
6485
|
+
readonly internalType: "address";
|
|
6486
|
+
}, {
|
|
6487
|
+
readonly name: "to";
|
|
6488
|
+
readonly type: "address";
|
|
6489
|
+
readonly indexed: true;
|
|
6490
|
+
readonly internalType: "address";
|
|
6491
|
+
}, {
|
|
6492
|
+
readonly name: "amount";
|
|
6493
|
+
readonly type: "bytes32";
|
|
6494
|
+
readonly indexed: true;
|
|
6495
|
+
readonly internalType: "euint64";
|
|
6496
|
+
}];
|
|
6497
|
+
readonly anonymous: false;
|
|
6498
|
+
}, {
|
|
6499
|
+
readonly type: "event";
|
|
6500
|
+
readonly name: "Initialized";
|
|
6501
|
+
readonly inputs: readonly [{
|
|
6502
|
+
readonly name: "version";
|
|
6503
|
+
readonly type: "uint64";
|
|
6504
|
+
readonly indexed: false;
|
|
6505
|
+
readonly internalType: "uint64";
|
|
6506
|
+
}];
|
|
6507
|
+
readonly anonymous: false;
|
|
6508
|
+
}, {
|
|
6509
|
+
readonly type: "event";
|
|
6510
|
+
readonly name: "OperatorSet";
|
|
6511
|
+
readonly inputs: readonly [{
|
|
6512
|
+
readonly name: "holder";
|
|
6513
|
+
readonly type: "address";
|
|
6514
|
+
readonly indexed: true;
|
|
6515
|
+
readonly internalType: "address";
|
|
6516
|
+
}, {
|
|
6517
|
+
readonly name: "operator";
|
|
6518
|
+
readonly type: "address";
|
|
6519
|
+
readonly indexed: true;
|
|
6520
|
+
readonly internalType: "address";
|
|
6521
|
+
}, {
|
|
6522
|
+
readonly name: "until";
|
|
6523
|
+
readonly type: "uint48";
|
|
6524
|
+
readonly indexed: false;
|
|
6525
|
+
readonly internalType: "uint48";
|
|
6526
|
+
}];
|
|
6527
|
+
readonly anonymous: false;
|
|
6528
|
+
}, {
|
|
6529
|
+
readonly type: "event";
|
|
6530
|
+
readonly name: "OwnershipTransferStarted";
|
|
6531
|
+
readonly inputs: readonly [{
|
|
6532
|
+
readonly name: "previousOwner";
|
|
6533
|
+
readonly type: "address";
|
|
6534
|
+
readonly indexed: true;
|
|
6535
|
+
readonly internalType: "address";
|
|
6536
|
+
}, {
|
|
6537
|
+
readonly name: "newOwner";
|
|
6538
|
+
readonly type: "address";
|
|
6539
|
+
readonly indexed: true;
|
|
6540
|
+
readonly internalType: "address";
|
|
6541
|
+
}];
|
|
6542
|
+
readonly anonymous: false;
|
|
6543
|
+
}, {
|
|
6544
|
+
readonly type: "event";
|
|
6545
|
+
readonly name: "OwnershipTransferred";
|
|
6546
|
+
readonly inputs: readonly [{
|
|
6547
|
+
readonly name: "previousOwner";
|
|
6548
|
+
readonly type: "address";
|
|
6549
|
+
readonly indexed: true;
|
|
6550
|
+
readonly internalType: "address";
|
|
6551
|
+
}, {
|
|
6552
|
+
readonly name: "newOwner";
|
|
6553
|
+
readonly type: "address";
|
|
6554
|
+
readonly indexed: true;
|
|
6555
|
+
readonly internalType: "address";
|
|
6556
|
+
}];
|
|
6557
|
+
readonly anonymous: false;
|
|
6558
|
+
}, {
|
|
6559
|
+
readonly type: "event";
|
|
6560
|
+
readonly name: "PublicDecryptionVerified";
|
|
6561
|
+
readonly inputs: readonly [{
|
|
6562
|
+
readonly name: "handlesList";
|
|
6563
|
+
readonly type: "bytes32[]";
|
|
6564
|
+
readonly indexed: false;
|
|
6565
|
+
readonly internalType: "bytes32[]";
|
|
6566
|
+
}, {
|
|
6567
|
+
readonly name: "abiEncodedCleartexts";
|
|
6568
|
+
readonly type: "bytes";
|
|
6569
|
+
readonly indexed: false;
|
|
6570
|
+
readonly internalType: "bytes";
|
|
6571
|
+
}];
|
|
6572
|
+
readonly anonymous: false;
|
|
6573
|
+
}, {
|
|
6574
|
+
readonly type: "event";
|
|
6575
|
+
readonly name: "UnwrapFinalized";
|
|
6576
|
+
readonly inputs: readonly [{
|
|
6577
|
+
readonly name: "receiver";
|
|
6578
|
+
readonly type: "address";
|
|
6579
|
+
readonly indexed: true;
|
|
6580
|
+
readonly internalType: "address";
|
|
6581
|
+
}, {
|
|
6582
|
+
readonly name: "unwrapRequestId";
|
|
6583
|
+
readonly type: "bytes32";
|
|
6584
|
+
readonly indexed: true;
|
|
6585
|
+
readonly internalType: "bytes32";
|
|
6586
|
+
}, {
|
|
6587
|
+
readonly name: "encryptedAmount";
|
|
6588
|
+
readonly type: "bytes32";
|
|
6589
|
+
readonly indexed: false;
|
|
6590
|
+
readonly internalType: "euint64";
|
|
6591
|
+
}, {
|
|
6592
|
+
readonly name: "cleartextAmount";
|
|
6593
|
+
readonly type: "uint64";
|
|
6594
|
+
readonly indexed: false;
|
|
6595
|
+
readonly internalType: "uint64";
|
|
6596
|
+
}];
|
|
6597
|
+
readonly anonymous: false;
|
|
6598
|
+
}, {
|
|
6599
|
+
readonly type: "event";
|
|
6600
|
+
readonly name: "UnwrapRequested";
|
|
6601
|
+
readonly inputs: readonly [{
|
|
6602
|
+
readonly name: "receiver";
|
|
6603
|
+
readonly type: "address";
|
|
6604
|
+
readonly indexed: true;
|
|
6605
|
+
readonly internalType: "address";
|
|
6606
|
+
}, {
|
|
6607
|
+
readonly name: "unwrapRequestId";
|
|
6608
|
+
readonly type: "bytes32";
|
|
6609
|
+
readonly indexed: true;
|
|
6610
|
+
readonly internalType: "bytes32";
|
|
6611
|
+
}, {
|
|
6612
|
+
readonly name: "amount";
|
|
6613
|
+
readonly type: "bytes32";
|
|
6614
|
+
readonly indexed: false;
|
|
6615
|
+
readonly internalType: "euint64";
|
|
6616
|
+
}];
|
|
6617
|
+
readonly anonymous: false;
|
|
6618
|
+
}, {
|
|
6619
|
+
readonly type: "event";
|
|
6620
|
+
readonly name: "Upgraded";
|
|
6621
|
+
readonly inputs: readonly [{
|
|
6622
|
+
readonly name: "implementation";
|
|
6623
|
+
readonly type: "address";
|
|
6624
|
+
readonly indexed: true;
|
|
6625
|
+
readonly internalType: "address";
|
|
6626
|
+
}];
|
|
6627
|
+
readonly anonymous: false;
|
|
6628
|
+
}, {
|
|
6629
|
+
readonly type: "event";
|
|
6630
|
+
readonly name: "UserBlocked";
|
|
6631
|
+
readonly inputs: readonly [{
|
|
6632
|
+
readonly name: "user";
|
|
6633
|
+
readonly type: "address";
|
|
6634
|
+
readonly indexed: true;
|
|
6635
|
+
readonly internalType: "address";
|
|
6636
|
+
}];
|
|
6637
|
+
readonly anonymous: false;
|
|
6638
|
+
}, {
|
|
6639
|
+
readonly type: "event";
|
|
6640
|
+
readonly name: "UserUnblocked";
|
|
6641
|
+
readonly inputs: readonly [{
|
|
6642
|
+
readonly name: "user";
|
|
6643
|
+
readonly type: "address";
|
|
6644
|
+
readonly indexed: true;
|
|
6645
|
+
readonly internalType: "address";
|
|
6646
|
+
}];
|
|
6647
|
+
readonly anonymous: false;
|
|
6648
|
+
}, {
|
|
6649
|
+
readonly type: "event";
|
|
6650
|
+
readonly name: "Wrap";
|
|
6651
|
+
readonly inputs: readonly [{
|
|
6652
|
+
readonly name: "to";
|
|
6653
|
+
readonly type: "address";
|
|
6654
|
+
readonly indexed: true;
|
|
6655
|
+
readonly internalType: "address";
|
|
6656
|
+
}, {
|
|
6657
|
+
readonly name: "roundedAmount";
|
|
6658
|
+
readonly type: "uint256";
|
|
6659
|
+
readonly indexed: false;
|
|
6660
|
+
readonly internalType: "uint256";
|
|
6661
|
+
}, {
|
|
6662
|
+
readonly name: "encryptedWrappedAmount";
|
|
6663
|
+
readonly type: "bytes32";
|
|
6664
|
+
readonly indexed: false;
|
|
6665
|
+
readonly internalType: "euint64";
|
|
6666
|
+
}];
|
|
6667
|
+
readonly anonymous: false;
|
|
6668
|
+
}, {
|
|
6669
|
+
readonly type: "error";
|
|
6670
|
+
readonly name: "AddressEmptyCode";
|
|
6671
|
+
readonly inputs: readonly [{
|
|
6672
|
+
readonly name: "target";
|
|
6673
|
+
readonly type: "address";
|
|
6674
|
+
readonly internalType: "address";
|
|
6675
|
+
}];
|
|
6676
|
+
}, {
|
|
6677
|
+
readonly type: "error";
|
|
6678
|
+
readonly name: "BlockedUser";
|
|
6679
|
+
readonly inputs: readonly [{
|
|
6680
|
+
readonly name: "user";
|
|
6681
|
+
readonly type: "address";
|
|
6682
|
+
readonly internalType: "address";
|
|
6683
|
+
}];
|
|
6684
|
+
}, {
|
|
6685
|
+
readonly type: "error";
|
|
6686
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
6687
|
+
readonly inputs: readonly [{
|
|
6688
|
+
readonly name: "implementation";
|
|
6689
|
+
readonly type: "address";
|
|
6690
|
+
readonly internalType: "address";
|
|
6691
|
+
}];
|
|
6692
|
+
}, {
|
|
6693
|
+
readonly type: "error";
|
|
6694
|
+
readonly name: "ERC1967NonPayable";
|
|
6695
|
+
readonly inputs: readonly [];
|
|
6696
|
+
}, {
|
|
6697
|
+
readonly type: "error";
|
|
6698
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
6699
|
+
readonly inputs: readonly [{
|
|
6700
|
+
readonly name: "receiver";
|
|
6701
|
+
readonly type: "address";
|
|
6702
|
+
readonly internalType: "address";
|
|
6703
|
+
}];
|
|
6704
|
+
}, {
|
|
6705
|
+
readonly type: "error";
|
|
6706
|
+
readonly name: "ERC7984InvalidReceiver";
|
|
6707
|
+
readonly inputs: readonly [{
|
|
6708
|
+
readonly name: "receiver";
|
|
6709
|
+
readonly type: "address";
|
|
6710
|
+
readonly internalType: "address";
|
|
6711
|
+
}];
|
|
6712
|
+
}, {
|
|
6713
|
+
readonly type: "error";
|
|
6714
|
+
readonly name: "ERC7984InvalidSender";
|
|
6715
|
+
readonly inputs: readonly [{
|
|
6716
|
+
readonly name: "sender";
|
|
6717
|
+
readonly type: "address";
|
|
6718
|
+
readonly internalType: "address";
|
|
6719
|
+
}];
|
|
6720
|
+
}, {
|
|
6721
|
+
readonly type: "error";
|
|
6722
|
+
readonly name: "ERC7984TotalSupplyOverflow";
|
|
6723
|
+
readonly inputs: readonly [];
|
|
6724
|
+
}, {
|
|
6725
|
+
readonly type: "error";
|
|
6726
|
+
readonly name: "ERC7984UnauthorizedCaller";
|
|
6727
|
+
readonly inputs: readonly [{
|
|
6728
|
+
readonly name: "caller";
|
|
6729
|
+
readonly type: "address";
|
|
6730
|
+
readonly internalType: "address";
|
|
6731
|
+
}];
|
|
6732
|
+
}, {
|
|
6733
|
+
readonly type: "error";
|
|
6734
|
+
readonly name: "ERC7984UnauthorizedSpender";
|
|
6735
|
+
readonly inputs: readonly [{
|
|
6736
|
+
readonly name: "holder";
|
|
6737
|
+
readonly type: "address";
|
|
6738
|
+
readonly internalType: "address";
|
|
6739
|
+
}, {
|
|
6740
|
+
readonly name: "spender";
|
|
6741
|
+
readonly type: "address";
|
|
6742
|
+
readonly internalType: "address";
|
|
6743
|
+
}];
|
|
6744
|
+
}, {
|
|
6745
|
+
readonly type: "error";
|
|
6746
|
+
readonly name: "ERC7984UnauthorizedUseOfEncryptedAmount";
|
|
6747
|
+
readonly inputs: readonly [{
|
|
6748
|
+
readonly name: "amount";
|
|
6749
|
+
readonly type: "bytes32";
|
|
6750
|
+
readonly internalType: "euint64";
|
|
6751
|
+
}, {
|
|
6752
|
+
readonly name: "user";
|
|
6753
|
+
readonly type: "address";
|
|
6754
|
+
readonly internalType: "address";
|
|
6755
|
+
}];
|
|
6756
|
+
}, {
|
|
6757
|
+
readonly type: "error";
|
|
6758
|
+
readonly name: "ERC7984ZeroBalance";
|
|
6759
|
+
readonly inputs: readonly [{
|
|
6760
|
+
readonly name: "holder";
|
|
6761
|
+
readonly type: "address";
|
|
6762
|
+
readonly internalType: "address";
|
|
6763
|
+
}];
|
|
6764
|
+
}, {
|
|
6765
|
+
readonly type: "error";
|
|
6766
|
+
readonly name: "FailedCall";
|
|
6767
|
+
readonly inputs: readonly [];
|
|
6768
|
+
}, {
|
|
6769
|
+
readonly type: "error";
|
|
6770
|
+
readonly name: "InvalidInitialization";
|
|
6771
|
+
readonly inputs: readonly [];
|
|
6772
|
+
}, {
|
|
6773
|
+
readonly type: "error";
|
|
6774
|
+
readonly name: "InvalidKMSSignatures";
|
|
6775
|
+
readonly inputs: readonly [];
|
|
6776
|
+
}, {
|
|
6777
|
+
readonly type: "error";
|
|
6778
|
+
readonly name: "InvalidUnderlyingDenyListResponse";
|
|
6779
|
+
readonly inputs: readonly [];
|
|
6780
|
+
}, {
|
|
6781
|
+
readonly type: "error";
|
|
6782
|
+
readonly name: "InvalidUnwrapRequest";
|
|
6783
|
+
readonly inputs: readonly [{
|
|
6784
|
+
readonly name: "unwrapRequestId";
|
|
6785
|
+
readonly type: "bytes32";
|
|
6786
|
+
readonly internalType: "bytes32";
|
|
6787
|
+
}];
|
|
6788
|
+
}, {
|
|
6789
|
+
readonly type: "error";
|
|
6790
|
+
readonly name: "NotInitializing";
|
|
6791
|
+
readonly inputs: readonly [];
|
|
6792
|
+
}, {
|
|
6793
|
+
readonly type: "error";
|
|
6794
|
+
readonly name: "OwnableInvalidOwner";
|
|
6795
|
+
readonly inputs: readonly [{
|
|
6796
|
+
readonly name: "owner";
|
|
6797
|
+
readonly type: "address";
|
|
6798
|
+
readonly internalType: "address";
|
|
6799
|
+
}];
|
|
6800
|
+
}, {
|
|
6801
|
+
readonly type: "error";
|
|
6802
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
6803
|
+
readonly inputs: readonly [{
|
|
6804
|
+
readonly name: "account";
|
|
6805
|
+
readonly type: "address";
|
|
6806
|
+
readonly internalType: "address";
|
|
6807
|
+
}];
|
|
6808
|
+
}, {
|
|
6809
|
+
readonly type: "error";
|
|
6810
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
6811
|
+
readonly inputs: readonly [{
|
|
6812
|
+
readonly name: "bits";
|
|
6813
|
+
readonly type: "uint8";
|
|
6814
|
+
readonly internalType: "uint8";
|
|
6815
|
+
}, {
|
|
6816
|
+
readonly name: "value";
|
|
6817
|
+
readonly type: "uint256";
|
|
6818
|
+
readonly internalType: "uint256";
|
|
6819
|
+
}];
|
|
6820
|
+
}, {
|
|
6821
|
+
readonly type: "error";
|
|
6822
|
+
readonly name: "SafeERC20FailedOperation";
|
|
6823
|
+
readonly inputs: readonly [{
|
|
6824
|
+
readonly name: "token";
|
|
6825
|
+
readonly type: "address";
|
|
6826
|
+
readonly internalType: "address";
|
|
6827
|
+
}];
|
|
6828
|
+
}, {
|
|
6829
|
+
readonly type: "error";
|
|
6830
|
+
readonly name: "SenderNotAllowedToUseHandle";
|
|
6831
|
+
readonly inputs: readonly [{
|
|
6832
|
+
readonly name: "handle";
|
|
6833
|
+
readonly type: "bytes32";
|
|
6834
|
+
readonly internalType: "bytes32";
|
|
6835
|
+
}, {
|
|
6836
|
+
readonly name: "sender";
|
|
6837
|
+
readonly type: "address";
|
|
6838
|
+
readonly internalType: "address";
|
|
6839
|
+
}];
|
|
6840
|
+
}, {
|
|
6841
|
+
readonly type: "error";
|
|
6842
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
6843
|
+
readonly inputs: readonly [];
|
|
6844
|
+
}, {
|
|
6845
|
+
readonly type: "error";
|
|
6846
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
6847
|
+
readonly inputs: readonly [{
|
|
6848
|
+
readonly name: "slot";
|
|
6849
|
+
readonly type: "bytes32";
|
|
6850
|
+
readonly internalType: "bytes32";
|
|
6851
|
+
}];
|
|
6852
|
+
}, {
|
|
6853
|
+
readonly type: "error";
|
|
6854
|
+
readonly name: "UnderlyingDenyListCallFailed";
|
|
6855
|
+
readonly inputs: readonly [];
|
|
6856
|
+
}, {
|
|
6857
|
+
readonly type: "error";
|
|
6858
|
+
readonly name: "UnderlyingDenyListedAddress";
|
|
6859
|
+
readonly inputs: readonly [{
|
|
6860
|
+
readonly name: "user";
|
|
6861
|
+
readonly type: "address";
|
|
6862
|
+
readonly internalType: "address";
|
|
6863
|
+
}];
|
|
6864
|
+
}, {
|
|
6865
|
+
readonly type: "error";
|
|
6866
|
+
readonly name: "UserAlreadyBlocked";
|
|
6867
|
+
readonly inputs: readonly [{
|
|
6868
|
+
readonly name: "user";
|
|
6869
|
+
readonly type: "address";
|
|
6870
|
+
readonly internalType: "address";
|
|
6871
|
+
}];
|
|
6872
|
+
}, {
|
|
6873
|
+
readonly type: "error";
|
|
6874
|
+
readonly name: "UserAlreadyUnblocked";
|
|
6875
|
+
readonly inputs: readonly [{
|
|
6876
|
+
readonly name: "user";
|
|
6877
|
+
readonly type: "address";
|
|
6878
|
+
readonly internalType: "address";
|
|
6879
|
+
}];
|
|
6880
|
+
}, {
|
|
6881
|
+
readonly type: "error";
|
|
6882
|
+
readonly name: "ZamaProtocolUnsupported";
|
|
6883
|
+
readonly inputs: readonly [];
|
|
6884
|
+
}];
|
|
6885
|
+
readonly functionName: "isOperator";
|
|
6886
|
+
readonly args: readonly [`0x${string}`, `0x${string}`];
|
|
6887
|
+
};
|
|
6888
|
+
/**
|
|
6889
|
+
* Returns the contract config for setting an operator.
|
|
6890
|
+
* Defaults until to 1 hour from now.
|
|
6891
|
+
*
|
|
6892
|
+
* @example
|
|
6893
|
+
* ```ts
|
|
6894
|
+
* const txHash = await signer.writeContract(
|
|
6895
|
+
* setOperatorContract(tokenAddress, operator),
|
|
3445
6896
|
* );
|
|
3446
6897
|
* ```
|
|
3447
6898
|
*/
|
|
3448
|
-
declare function
|
|
6899
|
+
declare function setOperatorContract(tokenAddress: Address, operator: Address, until?: number): {
|
|
3449
6900
|
readonly address: `0x${string}`;
|
|
3450
6901
|
readonly abi: readonly [{
|
|
3451
6902
|
readonly type: "function";
|
|
@@ -4576,21 +8027,20 @@ declare function isOperatorContract(tokenAddress: Address, holder: Address, spen
|
|
|
4576
8027
|
readonly name: "ZamaProtocolUnsupported";
|
|
4577
8028
|
readonly inputs: readonly [];
|
|
4578
8029
|
}];
|
|
4579
|
-
readonly functionName: "
|
|
4580
|
-
readonly args: readonly [`0x${string}`,
|
|
8030
|
+
readonly functionName: "setOperator";
|
|
8031
|
+
readonly args: readonly [`0x${string}`, number];
|
|
4581
8032
|
};
|
|
4582
8033
|
/**
|
|
4583
|
-
* Returns the contract config for
|
|
4584
|
-
* Defaults until to 1 hour from now.
|
|
8034
|
+
* Returns the contract config for an unwrap with newly encrypted amount.
|
|
4585
8035
|
*
|
|
4586
8036
|
* @example
|
|
4587
8037
|
* ```ts
|
|
4588
8038
|
* const txHash = await signer.writeContract(
|
|
4589
|
-
*
|
|
8039
|
+
* unwrapContract(encryptedErc20, from, to, encryptedValues[0], inputProof),
|
|
4590
8040
|
* );
|
|
4591
8041
|
* ```
|
|
4592
8042
|
*/
|
|
4593
|
-
declare function
|
|
8043
|
+
declare function unwrapContract(encryptedErc20: Address, from: Address, to: Address, encryptedAmount: EncryptedValue, inputProof: Hex): {
|
|
4594
8044
|
readonly address: `0x${string}`;
|
|
4595
8045
|
readonly abi: readonly [{
|
|
4596
8046
|
readonly type: "function";
|
|
@@ -5721,20 +9171,20 @@ declare function setOperatorContract(tokenAddress: Address, operator: Address, u
|
|
|
5721
9171
|
readonly name: "ZamaProtocolUnsupported";
|
|
5722
9172
|
readonly inputs: readonly [];
|
|
5723
9173
|
}];
|
|
5724
|
-
readonly functionName: "
|
|
5725
|
-
readonly args: readonly [`0x${string}`,
|
|
9174
|
+
readonly functionName: "unwrap";
|
|
9175
|
+
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`];
|
|
5726
9176
|
};
|
|
5727
9177
|
/**
|
|
5728
|
-
* Returns the contract config for an unwrap with
|
|
9178
|
+
* Returns the contract config for an unwrap with an existing balance handle.
|
|
5729
9179
|
*
|
|
5730
9180
|
* @example
|
|
5731
9181
|
* ```ts
|
|
5732
9182
|
* const txHash = await signer.writeContract(
|
|
5733
|
-
*
|
|
9183
|
+
* unwrapFromBalanceContract(encryptedErc20, from, to, encryptedBalance),
|
|
5734
9184
|
* );
|
|
5735
9185
|
* ```
|
|
5736
9186
|
*/
|
|
5737
|
-
declare function
|
|
9187
|
+
declare function unwrapFromBalanceContract(encryptedErc20: Address, from: Address, to: Address, encryptedBalance: EncryptedValue): {
|
|
5738
9188
|
readonly address: `0x${string}`;
|
|
5739
9189
|
readonly abi: readonly [{
|
|
5740
9190
|
readonly type: "function";
|
|
@@ -6866,19 +10316,19 @@ declare function unwrapContract(encryptedErc20: Address, from: Address, to: Addr
|
|
|
6866
10316
|
readonly inputs: readonly [];
|
|
6867
10317
|
}];
|
|
6868
10318
|
readonly functionName: "unwrap";
|
|
6869
|
-
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}
|
|
10319
|
+
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`];
|
|
6870
10320
|
};
|
|
6871
10321
|
/**
|
|
6872
|
-
* Returns the contract config
|
|
10322
|
+
* Returns the contract config to read the confidential (encrypted) total supply.
|
|
6873
10323
|
*
|
|
6874
10324
|
* @example
|
|
6875
10325
|
* ```ts
|
|
6876
|
-
* const
|
|
6877
|
-
*
|
|
10326
|
+
* const handle = await provider.readContract(
|
|
10327
|
+
* confidentialTotalSupplyContract(tokenAddress),
|
|
6878
10328
|
* );
|
|
6879
10329
|
* ```
|
|
6880
10330
|
*/
|
|
6881
|
-
declare function
|
|
10331
|
+
declare function confidentialTotalSupplyContract(tokenAddress: Address): {
|
|
6882
10332
|
readonly address: `0x${string}`;
|
|
6883
10333
|
readonly abi: readonly [{
|
|
6884
10334
|
readonly type: "function";
|
|
@@ -8009,20 +11459,18 @@ declare function unwrapFromBalanceContract(encryptedErc20: Address, from: Addres
|
|
|
8009
11459
|
readonly name: "ZamaProtocolUnsupported";
|
|
8010
11460
|
readonly inputs: readonly [];
|
|
8011
11461
|
}];
|
|
8012
|
-
readonly functionName: "
|
|
8013
|
-
readonly args: readonly [
|
|
11462
|
+
readonly functionName: "confidentialTotalSupply";
|
|
11463
|
+
readonly args: readonly [];
|
|
8014
11464
|
};
|
|
8015
11465
|
/**
|
|
8016
|
-
* Returns the contract config to read the
|
|
11466
|
+
* Returns the contract config to read the wrap/unwrap conversion rate.
|
|
8017
11467
|
*
|
|
8018
11468
|
* @example
|
|
8019
11469
|
* ```ts
|
|
8020
|
-
* const
|
|
8021
|
-
* confidentialTotalSupplyContract(tokenAddress),
|
|
8022
|
-
* );
|
|
11470
|
+
* const rate = await provider.readContract(rateContract(tokenAddress));
|
|
8023
11471
|
* ```
|
|
8024
11472
|
*/
|
|
8025
|
-
declare function
|
|
11473
|
+
declare function rateContract(tokenAddress: Address): {
|
|
8026
11474
|
readonly address: `0x${string}`;
|
|
8027
11475
|
readonly abi: readonly [{
|
|
8028
11476
|
readonly type: "function";
|
|
@@ -9153,18 +12601,20 @@ declare function confidentialTotalSupplyContract(tokenAddress: Address): {
|
|
|
9153
12601
|
readonly name: "ZamaProtocolUnsupported";
|
|
9154
12602
|
readonly inputs: readonly [];
|
|
9155
12603
|
}];
|
|
9156
|
-
readonly functionName: "
|
|
12604
|
+
readonly functionName: "rate";
|
|
9157
12605
|
readonly args: readonly [];
|
|
9158
12606
|
};
|
|
9159
12607
|
/**
|
|
9160
|
-
* Returns the contract config
|
|
12608
|
+
* Returns the contract config for finalizing an unwrap.
|
|
9161
12609
|
*
|
|
9162
12610
|
* @example
|
|
9163
12611
|
* ```ts
|
|
9164
|
-
* const
|
|
12612
|
+
* const txHash = await signer.writeContract(
|
|
12613
|
+
* finalizeUnwrapContract(wrapper, unwrapRequestId, cleartext, proof),
|
|
12614
|
+
* );
|
|
9165
12615
|
* ```
|
|
9166
12616
|
*/
|
|
9167
|
-
declare function
|
|
12617
|
+
declare function finalizeUnwrapContract(wrapper: Address, unwrapRequestId: EncryptedValue, unwrapAmountCleartext: bigint, decryptionProof: Hex): {
|
|
9168
12618
|
readonly address: `0x${string}`;
|
|
9169
12619
|
readonly abi: readonly [{
|
|
9170
12620
|
readonly type: "function";
|
|
@@ -10295,20 +13745,22 @@ declare function rateContract(tokenAddress: Address): {
|
|
|
10295
13745
|
readonly name: "ZamaProtocolUnsupported";
|
|
10296
13746
|
readonly inputs: readonly [];
|
|
10297
13747
|
}];
|
|
10298
|
-
readonly functionName: "
|
|
10299
|
-
readonly args: readonly [];
|
|
13748
|
+
readonly functionName: "finalizeUnwrap";
|
|
13749
|
+
readonly args: readonly [`0x${string}`, bigint, `0x${string}`];
|
|
10300
13750
|
};
|
|
10301
13751
|
/**
|
|
10302
|
-
* Returns the contract config
|
|
13752
|
+
* Returns the contract config to read the requester of an open unwrap request.
|
|
13753
|
+
* The wrapper deletes the request on finalize, so the zero address means the
|
|
13754
|
+
* request no longer exists.
|
|
10303
13755
|
*
|
|
10304
13756
|
* @example
|
|
10305
13757
|
* ```ts
|
|
10306
|
-
* const
|
|
10307
|
-
*
|
|
13758
|
+
* const requester = await provider.readContract(
|
|
13759
|
+
* unwrapRequesterContract(wrapperAddress, unwrapRequestId),
|
|
10308
13760
|
* );
|
|
10309
13761
|
* ```
|
|
10310
13762
|
*/
|
|
10311
|
-
declare function
|
|
13763
|
+
declare function unwrapRequesterContract(wrapperAddress: Address, unwrapRequestId: EncryptedValue): {
|
|
10312
13764
|
readonly address: `0x${string}`;
|
|
10313
13765
|
readonly abi: readonly [{
|
|
10314
13766
|
readonly type: "function";
|
|
@@ -11439,22 +14891,20 @@ declare function finalizeUnwrapContract(wrapper: Address, unwrapRequestId: Encry
|
|
|
11439
14891
|
readonly name: "ZamaProtocolUnsupported";
|
|
11440
14892
|
readonly inputs: readonly [];
|
|
11441
14893
|
}];
|
|
11442
|
-
readonly functionName: "
|
|
11443
|
-
readonly args: readonly [`0x${string}
|
|
14894
|
+
readonly functionName: "unwrapRequester";
|
|
14895
|
+
readonly args: readonly [`0x${string}`];
|
|
11444
14896
|
};
|
|
11445
14897
|
/**
|
|
11446
|
-
* Returns the contract config to read the
|
|
11447
|
-
* The wrapper deletes the request on finalize, so the zero address means the
|
|
11448
|
-
* request no longer exists.
|
|
14898
|
+
* Returns the contract config to read the encrypted amount an unwrap request will release.
|
|
11449
14899
|
*
|
|
11450
14900
|
* @example
|
|
11451
14901
|
* ```ts
|
|
11452
|
-
* const
|
|
11453
|
-
*
|
|
14902
|
+
* const encryptedAmount = await provider.readContract(
|
|
14903
|
+
* unwrapAmountContract(wrapperAddress, unwrapRequestId),
|
|
11454
14904
|
* );
|
|
11455
14905
|
* ```
|
|
11456
14906
|
*/
|
|
11457
|
-
declare function
|
|
14907
|
+
declare function unwrapAmountContract(wrapperAddress: Address, unwrapRequestId: EncryptedValue): {
|
|
11458
14908
|
readonly address: `0x${string}`;
|
|
11459
14909
|
readonly abi: readonly [{
|
|
11460
14910
|
readonly type: "function";
|
|
@@ -12585,7 +16035,7 @@ declare function unwrapRequesterContract(wrapperAddress: Address, unwrapRequestI
|
|
|
12585
16035
|
readonly name: "ZamaProtocolUnsupported";
|
|
12586
16036
|
readonly inputs: readonly [];
|
|
12587
16037
|
}];
|
|
12588
|
-
readonly functionName: "
|
|
16038
|
+
readonly functionName: "unwrapAmount";
|
|
12589
16039
|
readonly args: readonly [`0x${string}`];
|
|
12590
16040
|
};
|
|
12591
16041
|
/**
|
|
@@ -16018,8 +19468,6 @@ declare function wrapContract(wrapperAddress: Address, to: Address, amount: bigi
|
|
|
16018
19468
|
readonly functionName: "wrap";
|
|
16019
19469
|
readonly args: readonly [`0x${string}`, bigint];
|
|
16020
19470
|
};
|
|
16021
|
-
//#endregion
|
|
16022
|
-
//#region src/contracts/erc20.d.ts
|
|
16023
19471
|
/**
|
|
16024
19472
|
* Returns the contract config to read a token's name.
|
|
16025
19473
|
*
|
|
@@ -16914,8 +20362,6 @@ declare function approveContract(tokenAddress: Address, spender: Address, value:
|
|
|
16914
20362
|
readonly functionName: "approve";
|
|
16915
20363
|
readonly args: readonly [`0x${string}`, bigint];
|
|
16916
20364
|
};
|
|
16917
|
-
//#endregion
|
|
16918
|
-
//#region src/contracts/erc165.d.ts
|
|
16919
20365
|
/** ERC-165 interface ID for IERC7984 (confidential fungible token). */
|
|
16920
20366
|
declare const ERC7984_INTERFACE_ID: "0x4958f2a4";
|
|
16921
20367
|
/** ERC-165 interface ID for IERC7984ERC20Wrapper (confidential wrapper). */
|
|
@@ -17015,8 +20461,6 @@ declare function isConfidentialWrapperContract(tokenAddress: Address): {
|
|
|
17015
20461
|
readonly functionName: "supportsInterface";
|
|
17016
20462
|
readonly args: readonly [`0x${string}`];
|
|
17017
20463
|
};
|
|
17018
|
-
//#endregion
|
|
17019
|
-
//#region src/contracts/erc1363.d.ts
|
|
17020
20464
|
/**
|
|
17021
20465
|
* Returns the contract config for an ERC-1363 `transferAndCall`.
|
|
17022
20466
|
*
|
|
@@ -17317,8 +20761,6 @@ declare function transferAndCallContract(tokenAddress: Address, to: Address, amo
|
|
|
17317
20761
|
readonly functionName: "transferAndCall";
|
|
17318
20762
|
readonly args: readonly [`0x${string}`, bigint, `0x${string}`];
|
|
17319
20763
|
};
|
|
17320
|
-
//#endregion
|
|
17321
|
-
//#region src/contracts/acl.d.ts
|
|
17322
20764
|
/**
|
|
17323
20765
|
* Returns the contract config to delegate user decryption rights.
|
|
17324
20766
|
*
|
|
@@ -18191,8 +21633,6 @@ declare function isHandleDelegatedContract(aclAddress: Address, delegatorAddress
|
|
|
18191
21633
|
readonly functionName: "isHandleDelegatedForUserDecryption";
|
|
18192
21634
|
readonly args: readonly [`0x${string}`, `0x${string}`, `0x${string}`, `0x${string}`];
|
|
18193
21635
|
};
|
|
18194
|
-
//#endregion
|
|
18195
|
-
//#region src/contracts/wrappers-registry.d.ts
|
|
18196
21636
|
/** A registered plain-token / confidential-token pairing from the wrappers registry. */
|
|
18197
21637
|
interface TokenWrapperPair {
|
|
18198
21638
|
/** Address of the underlying public ERC-20 token. */
|
|
@@ -19572,15 +23012,11 @@ declare function isConfidentialTokenValidContract(registry: Address, confidentia
|
|
|
19572
23012
|
readonly functionName: "isConfidentialTokenValid";
|
|
19573
23013
|
readonly args: readonly [`0x${string}`];
|
|
19574
23014
|
};
|
|
19575
|
-
//#endregion
|
|
19576
|
-
//#region src/schemas/primitives.d.ts
|
|
19577
23015
|
declare const checksummedTag: unique symbol;
|
|
19578
23016
|
/** An EVM address that has been put through `getAddress` (EIP-55 checksum form). */
|
|
19579
23017
|
type ChecksummedAddress = Address & {
|
|
19580
23018
|
readonly [checksummedTag]: true;
|
|
19581
23019
|
};
|
|
19582
|
-
//#endregion
|
|
19583
|
-
//#region src/credentials/types.d.ts
|
|
19584
23020
|
/**
|
|
19585
23021
|
* Serialized transport key pair — ML-KEM public + private key as hex, the shape
|
|
19586
23022
|
* we persist and hand to the decrypt path. Mirrors `@fhevm/sdk`'s
|
|
@@ -19697,12 +23133,8 @@ interface SignedPreparedPermit {
|
|
|
19697
23133
|
/** `eth_signTypedData_v4` signature over `prepared.eip712`. */
|
|
19698
23134
|
signature: Hex;
|
|
19699
23135
|
}
|
|
19700
|
-
//#endregion
|
|
19701
|
-
//#region src/credentials/parse-prepared-permit.d.ts
|
|
19702
23136
|
/** Validates a prepared permit's shape; signature and expiry checks run during registration. */
|
|
19703
23137
|
declare function parsePreparedPermit(value: unknown): PreparedPermit;
|
|
19704
|
-
//#endregion
|
|
19705
|
-
//#region src/errors/base.d.ts
|
|
19706
23138
|
/**
|
|
19707
23139
|
* Typed error codes thrown by the SDK.
|
|
19708
23140
|
* Use `error.code` or `instanceof` to programmatically handle specific failure modes.
|
|
@@ -19731,6 +23163,10 @@ declare const ZamaErrorCode: {
|
|
|
19731
23163
|
readonly EncryptOffloadUnavailable: "ENCRYPT_OFFLOAD_UNAVAILABLE";
|
|
19732
23164
|
/** On-chain transaction reverted. */
|
|
19733
23165
|
readonly TransactionReverted: "TRANSACTION_REVERTED";
|
|
23166
|
+
/** The block's FHE compute budget (HCU) is spent. Retryable: it resets every block. */
|
|
23167
|
+
readonly HcuBlockLimitExceeded: "HCU_BLOCK_LIMIT_EXCEEDED";
|
|
23168
|
+
/** The transaction needs more FHE compute (HCU) than one transaction may use. */
|
|
23169
|
+
readonly HcuTransactionLimitExceeded: "HCU_TRANSACTION_LIMIT_EXCEEDED";
|
|
19734
23170
|
/** Transport key pair has expired and needs regeneration. */
|
|
19735
23171
|
readonly TransportKeyPairExpired: "KEYPAIR_EXPIRED";
|
|
19736
23172
|
/** Relayer rejected transport key pair (stale, expired, or malformed). */
|
|
@@ -19797,6 +23233,12 @@ declare const ZamaErrorCode: {
|
|
|
19797
23233
|
readonly PreparedPermitExpired: "PREPARED_PERMIT_EXPIRED";
|
|
19798
23234
|
/** The unwrap request was already finalized on-chain; there is nothing left to resume. */
|
|
19799
23235
|
readonly UnshieldAlreadyFinalized: "UNSHIELD_ALREADY_FINALIZED";
|
|
23236
|
+
/** A batcher a vault join needs is paused. */
|
|
23237
|
+
readonly VaultBatcherPaused: "VAULT_BATCHER_PAUSED";
|
|
23238
|
+
/** A batch to be finalized is not dispatched. */
|
|
23239
|
+
readonly VaultBatchNotDispatched: "VAULT_BATCH_NOT_DISPATCHED";
|
|
23240
|
+
/** A vault join was mined, but its receipt does not confirm every leg. */
|
|
23241
|
+
readonly VaultJoinUnconfirmed: "VAULT_JOIN_UNCONFIRMED";
|
|
19800
23242
|
};
|
|
19801
23243
|
/** Union of all {@link ZamaErrorCode} string values. */
|
|
19802
23244
|
type ZamaErrorCode = (typeof ZamaErrorCode)[keyof typeof ZamaErrorCode];
|
|
@@ -19854,8 +23296,6 @@ declare function isRetryable(error: unknown): error is ZamaError & {
|
|
|
19854
23296
|
* with your own backoff).
|
|
19855
23297
|
*/
|
|
19856
23298
|
declare function retryAfterSeconds(error: unknown): number | undefined;
|
|
19857
|
-
//#endregion
|
|
19858
|
-
//#region src/errors/chain.d.ts
|
|
19859
23299
|
/**
|
|
19860
23300
|
* Thrown when the signer and provider are connected to different chains at the
|
|
19861
23301
|
* start of a write operation.
|
|
@@ -19884,14 +23324,15 @@ declare class ChainMismatchError extends ZamaError {
|
|
|
19884
23324
|
readonly signerChainId: number;
|
|
19885
23325
|
/** Chain ID the provider is connected to. */
|
|
19886
23326
|
readonly providerChainId: number;
|
|
19887
|
-
|
|
23327
|
+
/** Chain ID the operation's contract is pinned to, when it differs from the provider's. */
|
|
23328
|
+
readonly targetChainId: number | undefined;
|
|
23329
|
+
constructor({ operation, signerChainId, providerChainId, targetChainId }: {
|
|
19888
23330
|
operation: string;
|
|
19889
23331
|
signerChainId: number;
|
|
19890
23332
|
providerChainId: number;
|
|
23333
|
+
targetChainId?: number;
|
|
19891
23334
|
}, options?: ErrorOptions);
|
|
19892
23335
|
}
|
|
19893
|
-
//#endregion
|
|
19894
|
-
//#region src/errors/credential.d.ts
|
|
19895
23336
|
/** Transport key pair has expired and needs regeneration. */
|
|
19896
23337
|
declare class TransportKeyPairExpiredError extends ZamaError {
|
|
19897
23338
|
constructor(message: string, options?: ErrorOptions);
|
|
@@ -19956,8 +23397,6 @@ declare class PreparedPermitChainMismatchError extends ZamaError {
|
|
|
19956
23397
|
declare class PreparedPermitExpiredError extends ZamaError {
|
|
19957
23398
|
constructor(message: string, options?: ErrorOptions);
|
|
19958
23399
|
}
|
|
19959
|
-
//#endregion
|
|
19960
|
-
//#region src/errors/delegation.d.ts
|
|
19961
23400
|
/** Delegation cannot target self (delegate === msg.sender). */
|
|
19962
23401
|
declare class DelegationSelfNotAllowedError extends ZamaError {
|
|
19963
23402
|
constructor(message: string, options?: ErrorOptions);
|
|
@@ -20024,8 +23463,6 @@ declare class DelegationExpirationTooSoonError extends ZamaError {
|
|
|
20024
23463
|
declare class DelegationNotPropagatedError extends ZamaError {
|
|
20025
23464
|
constructor(message: string, options?: ErrorOptions);
|
|
20026
23465
|
}
|
|
20027
|
-
//#endregion
|
|
20028
|
-
//#region src/errors/encryption.d.ts
|
|
20029
23466
|
/** FHE encryption failed. */
|
|
20030
23467
|
declare class EncryptionFailedError extends ZamaError {
|
|
20031
23468
|
constructor(message: string, options?: ErrorOptions);
|
|
@@ -20044,8 +23481,6 @@ declare class EncryptOffloadUnavailableError extends ZamaError {
|
|
|
20044
23481
|
declare class DecryptionFailedError extends ZamaError {
|
|
20045
23482
|
constructor(message: string, options?: ErrorOptions);
|
|
20046
23483
|
}
|
|
20047
|
-
//#endregion
|
|
20048
|
-
//#region src/errors/balance.d.ts
|
|
20049
23484
|
/** Structured details shared by balance-related errors. */
|
|
20050
23485
|
interface BalanceErrorDetails {
|
|
20051
23486
|
/** Amount the caller requested, in the token's base units. */
|
|
@@ -20093,8 +23528,6 @@ declare class BalanceCheckUnavailableError extends ZamaError {
|
|
|
20093
23528
|
declare class ERC20ReadFailedError extends ZamaError {
|
|
20094
23529
|
constructor(message: string, options?: ErrorOptions);
|
|
20095
23530
|
}
|
|
20096
|
-
//#endregion
|
|
20097
|
-
//#region src/errors/relayer.d.ts
|
|
20098
23531
|
/** Relayer HTTP request failed. */
|
|
20099
23532
|
declare class RelayerRequestFailedError extends ZamaError {
|
|
20100
23533
|
/** HTTP status code from the relayer, if available. */
|
|
@@ -20115,8 +23548,6 @@ declare class RelayerRequestFailedError extends ZamaError {
|
|
|
20115
23548
|
declare class ConfigurationError extends ZamaError {
|
|
20116
23549
|
constructor(message: string, options?: ErrorOptions);
|
|
20117
23550
|
}
|
|
20118
|
-
//#endregion
|
|
20119
|
-
//#region src/errors/entitlement.d.ts
|
|
20120
23551
|
/**
|
|
20121
23552
|
* The signer (or delegator) lacks ACL permission to decrypt the encrypted value —
|
|
20122
23553
|
* `persistAllowed` returned `false`. Terminal and **non-retryable**: the fix is
|
|
@@ -20147,8 +23578,6 @@ declare class NotEntitledError extends ZamaError {
|
|
|
20147
23578
|
account: string;
|
|
20148
23579
|
}, options?: ErrorOptions);
|
|
20149
23580
|
}
|
|
20150
|
-
//#endregion
|
|
20151
|
-
//#region src/errors/rpc.d.ts
|
|
20152
23581
|
/**
|
|
20153
23582
|
* The consumer's RPC provider rate-limited an on-chain read the SDK performs
|
|
20154
23583
|
* during decryption (e.g. the ACL check) — HTTP 429 or JSON-RPC `-32005`. An
|
|
@@ -20184,8 +23613,6 @@ declare class RpcRateLimitError extends ZamaError {
|
|
|
20184
23613
|
retryAfter?: number;
|
|
20185
23614
|
});
|
|
20186
23615
|
}
|
|
20187
|
-
//#endregion
|
|
20188
|
-
//#region src/errors/signer.d.ts
|
|
20189
23616
|
/**
|
|
20190
23617
|
* Base class for signer/account readiness failures.
|
|
20191
23618
|
*/
|
|
@@ -20222,8 +23649,6 @@ declare class WalletNotConnectedError extends SignerRequiredError {
|
|
|
20222
23649
|
declare class WalletAccountNotReadyError extends SignerRequiredError {
|
|
20223
23650
|
constructor(operation: string, options?: ErrorOptions);
|
|
20224
23651
|
}
|
|
20225
|
-
//#endregion
|
|
20226
|
-
//#region src/errors/signing.d.ts
|
|
20227
23652
|
/**
|
|
20228
23653
|
* Diagnostic metadata attached to a signing-failure error, on top of the
|
|
20229
23654
|
* inherited `cause`. All optional and best-effort: `operation` comes from the
|
|
@@ -20258,14 +23683,25 @@ declare class SigningFailedError extends ZamaError {
|
|
|
20258
23683
|
readonly walletErrorName: string | undefined;
|
|
20259
23684
|
constructor(message: string, options?: ErrorOptions & SigningErrorMetadata);
|
|
20260
23685
|
}
|
|
20261
|
-
//#endregion
|
|
20262
|
-
//#region src/errors/transaction.d.ts
|
|
20263
23686
|
/** On-chain transaction reverted. */
|
|
20264
23687
|
declare class TransactionRevertedError extends ZamaError {
|
|
20265
23688
|
constructor(message: string, options?: ErrorOptions);
|
|
20266
23689
|
}
|
|
20267
|
-
|
|
20268
|
-
|
|
23690
|
+
/**
|
|
23691
|
+
* The transaction needs more FHE compute (HCU) than the current block has
|
|
23692
|
+
* left. The budget resets every block, so a retry in the next block can succeed.
|
|
23693
|
+
*/
|
|
23694
|
+
declare class HcuBlockLimitExceededError extends ZamaError {
|
|
23695
|
+
constructor(message: string, options?: ErrorOptions);
|
|
23696
|
+
}
|
|
23697
|
+
/**
|
|
23698
|
+
* The transaction needs more FHE compute (HCU) than one transaction may use,
|
|
23699
|
+
* in total or along one sequential chain of operations. Retrying does not
|
|
23700
|
+
* help: the transaction has to do less FHE work.
|
|
23701
|
+
*/
|
|
23702
|
+
declare class HcuTransactionLimitExceededError extends ZamaError {
|
|
23703
|
+
constructor(message: string, options?: ErrorOptions);
|
|
23704
|
+
}
|
|
20269
23705
|
/** Structured details identifying the consumed unwrap request. */
|
|
20270
23706
|
interface UnshieldAlreadyFinalizedDetails {
|
|
20271
23707
|
/** Transaction hash of the original unwrap request. */
|
|
@@ -20286,8 +23722,242 @@ declare class UnshieldAlreadyFinalizedError extends ZamaError {
|
|
|
20286
23722
|
readonly unwrapRequestId: EncryptedValue;
|
|
20287
23723
|
constructor(message: string, details: UnshieldAlreadyFinalizedDetails, options?: ErrorOptions);
|
|
20288
23724
|
}
|
|
20289
|
-
|
|
20290
|
-
|
|
23725
|
+
/** Whether a join deposits the confidential asset or redeems a vault's confidential shares. */
|
|
23726
|
+
type JoinDirection = "deposit" | "redeem";
|
|
23727
|
+
/** A batch's state, named as the batcher contract names it. */
|
|
23728
|
+
type BatchState = "pending" | "dispatched" | "finalized" | "canceled";
|
|
23729
|
+
/** One EVM call, encoded. */
|
|
23730
|
+
interface Call {
|
|
23731
|
+
/** The contract called. */
|
|
23732
|
+
readonly to: Address;
|
|
23733
|
+
/** The encoded calldata. */
|
|
23734
|
+
readonly data: Hex;
|
|
23735
|
+
/** Vault calls never carry value. */
|
|
23736
|
+
readonly value: 0n;
|
|
23737
|
+
}
|
|
23738
|
+
/** One vault's part of a join. */
|
|
23739
|
+
interface VaultLeg {
|
|
23740
|
+
/** The vault this leg joins. */
|
|
23741
|
+
readonly vaultId: string;
|
|
23742
|
+
/** The vault's active batcher when the join was prepared. */
|
|
23743
|
+
readonly batcher: Address;
|
|
23744
|
+
/** The confidential token the leg spends: the asset for a deposit, the vault's share for a redeem. */
|
|
23745
|
+
readonly token: Address;
|
|
23746
|
+
/** The chosen vault's amount, zero for every other leg. */
|
|
23747
|
+
readonly amount: bigint;
|
|
23748
|
+
}
|
|
23749
|
+
/** An ERC-7984 operator approval a join relies on, sent to the token it is on. */
|
|
23750
|
+
interface OperatorApprovalCall extends Call {
|
|
23751
|
+
/** Tells an operator approval from a join without decoding the calldata. */
|
|
23752
|
+
readonly kind: "operatorApproval";
|
|
23753
|
+
/** The vault whose token the approval is on. */
|
|
23754
|
+
readonly vaultId: string;
|
|
23755
|
+
/** The router. */
|
|
23756
|
+
readonly operator: Address;
|
|
23757
|
+
/** When the approval expires, in chain seconds. */
|
|
23758
|
+
readonly until: bigint;
|
|
23759
|
+
}
|
|
23760
|
+
/** A join call. */
|
|
23761
|
+
interface JoinCall extends Call {
|
|
23762
|
+
/** Tells a join from an operator approval without decoding the calldata. */
|
|
23763
|
+
readonly kind: "join";
|
|
23764
|
+
/** The leg this call funds; for a router call, the chosen vault's leg. */
|
|
23765
|
+
readonly leg: VaultLeg;
|
|
23766
|
+
}
|
|
23767
|
+
/** A call of a prepared join. */
|
|
23768
|
+
type VaultCall = OperatorApprovalCall | JoinCall;
|
|
23769
|
+
/**
|
|
23770
|
+
* How a join reaches the batchers.
|
|
23771
|
+
*
|
|
23772
|
+
* - `"router"`: one call through the router.
|
|
23773
|
+
* - `"direct"`: one call per leg, straight to each batcher, with no operator approval.
|
|
23774
|
+
*/
|
|
23775
|
+
type JoinRoute = "direct" | "router";
|
|
23776
|
+
/** A join built but not sent. */
|
|
23777
|
+
interface PreparedJoin {
|
|
23778
|
+
/** Whether it deposits or redeems. */
|
|
23779
|
+
readonly direction: JoinDirection;
|
|
23780
|
+
/** The chain to send the calls on. */
|
|
23781
|
+
readonly chainId: number;
|
|
23782
|
+
/** The group joined, or `undefined` for a vault joined on its own. */
|
|
23783
|
+
readonly groupId: string | undefined;
|
|
23784
|
+
/** The vault that receives the amount. */
|
|
23785
|
+
readonly vaultId: string;
|
|
23786
|
+
/** The account that must send the calls: their encryption proofs are bound to it. */
|
|
23787
|
+
readonly account: Address;
|
|
23788
|
+
/** The amount, in the asset for a deposit and in shares for a redeem. */
|
|
23789
|
+
readonly amount: bigint;
|
|
23790
|
+
/** How the calls reach the batchers. */
|
|
23791
|
+
readonly route: JoinRoute;
|
|
23792
|
+
/** Every vault joined, in group order, the zero legs included. */
|
|
23793
|
+
readonly legs: readonly [VaultLeg, ...VaultLeg[]];
|
|
23794
|
+
/**
|
|
23795
|
+
* Every call in send order: the operator approvals the account lacks, in leg
|
|
23796
|
+
* order, then the joins.
|
|
23797
|
+
*/
|
|
23798
|
+
readonly calls: readonly [VaultCall, ...VaultCall[]];
|
|
23799
|
+
}
|
|
23800
|
+
/** What `prepareDeposit` and `prepareRedeem` take for a vault on its own. */
|
|
23801
|
+
interface JoinInput {
|
|
23802
|
+
/** The account that will send the calls. */
|
|
23803
|
+
readonly account: Address;
|
|
23804
|
+
/** Plaintext, in the asset for a deposit and in shares for a redeem. */
|
|
23805
|
+
readonly amount: bigint;
|
|
23806
|
+
}
|
|
23807
|
+
/** What `prepareDeposit` and `prepareRedeem` take for a group. */
|
|
23808
|
+
interface GroupJoinInput<TVaultId extends string = string> extends JoinInput {
|
|
23809
|
+
/** The vault of the group the amount goes to. */
|
|
23810
|
+
readonly vaultId: TVaultId;
|
|
23811
|
+
}
|
|
23812
|
+
/** Options for `prepareDeposit` and `prepareRedeem`. */
|
|
23813
|
+
interface JoinOptions {
|
|
23814
|
+
/** Skip the balance check, which decrypts as the signer. A paused batcher is always checked. */
|
|
23815
|
+
readonly skipBalanceCheck?: boolean;
|
|
23816
|
+
}
|
|
23817
|
+
/** Options for `prepareDeposit` and `prepareRedeem` into a group. */
|
|
23818
|
+
interface GroupJoinOptions extends JoinOptions {
|
|
23819
|
+
/** Defaults to `"router"`. */
|
|
23820
|
+
readonly route?: JoinRoute;
|
|
23821
|
+
}
|
|
23822
|
+
/** A batch on one batcher. */
|
|
23823
|
+
interface BatchRef {
|
|
23824
|
+
/** The chain the batcher is on. */
|
|
23825
|
+
readonly chainId: number;
|
|
23826
|
+
/** The batcher the batch is on. */
|
|
23827
|
+
readonly batcher: Address;
|
|
23828
|
+
/** The batch's id on that batcher. */
|
|
23829
|
+
readonly batchId: bigint;
|
|
23830
|
+
}
|
|
23831
|
+
/** A batcher on one chain. */
|
|
23832
|
+
type BatcherRef = Pick<BatchRef, "chainId" | "batcher">;
|
|
23833
|
+
/** Options for `deposit` and `redeem`. */
|
|
23834
|
+
interface SendJoinOptions {
|
|
23835
|
+
/** Skip the balance check. A paused batcher is always checked. */
|
|
23836
|
+
readonly skipBalanceCheck?: boolean;
|
|
23837
|
+
/** Called with the join's transaction hash once the wallet has sent it, before the SDK waits for the receipt. */
|
|
23838
|
+
readonly onJoinSubmitted?: (txHash: Hex) => void;
|
|
23839
|
+
}
|
|
23840
|
+
/** A settlement built but not sent. */
|
|
23841
|
+
interface PreparedFinalize extends BatchRef {
|
|
23842
|
+
/** The publicly decrypted amount the batch's unwrap released. */
|
|
23843
|
+
readonly unwrapAmountCleartext: bigint;
|
|
23844
|
+
/** The proof of that decryption. */
|
|
23845
|
+
readonly decryptionProof: Hex;
|
|
23846
|
+
/** The `dispatchBatchCallback` call. */
|
|
23847
|
+
readonly call: Call;
|
|
23848
|
+
}
|
|
23849
|
+
/** An operation that can be sent for a batch. */
|
|
23850
|
+
type BatchAction = "claim" | "quit" | "dispatch" | "finalize";
|
|
23851
|
+
interface BatchBase extends BatchRef {
|
|
23852
|
+
/** The time the batch opened, in chain seconds. */
|
|
23853
|
+
readonly createdAt: bigint;
|
|
23854
|
+
/** The time from which anyone may dispatch it, in chain seconds, fixed when it opened. */
|
|
23855
|
+
readonly dispatchableAt: bigint;
|
|
23856
|
+
/** Whether the batcher is paused. */
|
|
23857
|
+
readonly paused: boolean;
|
|
23858
|
+
/** The account's encrypted deposit, or `null` when no account was given. */
|
|
23859
|
+
readonly deposit: EncryptedValue | null;
|
|
23860
|
+
/** What can be sent at `observedAt`. */
|
|
23861
|
+
readonly actions: readonly BatchAction[];
|
|
23862
|
+
/** The block timestamp the read was made at. */
|
|
23863
|
+
readonly observedAt: bigint;
|
|
23864
|
+
/** The next chain time at which `actions` can change on its own, or `null`. */
|
|
23865
|
+
readonly nextChangeAt: bigint | null;
|
|
23866
|
+
}
|
|
23867
|
+
interface DispatchedTimes {
|
|
23868
|
+
/** When it was dispatched, in chain seconds. */
|
|
23869
|
+
readonly dispatchedAt: bigint;
|
|
23870
|
+
/** The time after which the batch can no longer settle, in chain seconds. */
|
|
23871
|
+
readonly cancelsAt: bigint;
|
|
23872
|
+
}
|
|
23873
|
+
/** One batch as read from chain. */
|
|
23874
|
+
type Batch = (BatchBase & {
|
|
23875
|
+
readonly state: "pending";
|
|
23876
|
+
}) | (BatchBase & DispatchedTimes & {
|
|
23877
|
+
readonly state: "dispatched" | "canceled";
|
|
23878
|
+
}) | (BatchBase & DispatchedTimes & {
|
|
23879
|
+
readonly state: "finalized";
|
|
23880
|
+
/** The rate as a fixed-point number: `rate / 10 ** decimals`. */
|
|
23881
|
+
readonly exchangeRate: {
|
|
23882
|
+
readonly rate: bigint;
|
|
23883
|
+
readonly decimals: number;
|
|
23884
|
+
};
|
|
23885
|
+
});
|
|
23886
|
+
/** The open batch of one vault's active batcher. */
|
|
23887
|
+
interface OpenBatch extends BatchRef {
|
|
23888
|
+
/** The vault whose open batch this is. */
|
|
23889
|
+
readonly vaultId: string;
|
|
23890
|
+
/** The time from which anyone may dispatch the batch, in chain seconds. */
|
|
23891
|
+
readonly dispatchableAt: bigint;
|
|
23892
|
+
/** Whether the batcher is paused. */
|
|
23893
|
+
readonly paused: boolean;
|
|
23894
|
+
/** The block timestamp the read was made at. */
|
|
23895
|
+
readonly observedAt: bigint;
|
|
23896
|
+
}
|
|
23897
|
+
/** What `deposit` and `redeem` return. */
|
|
23898
|
+
interface JoinOutcome {
|
|
23899
|
+
/** The batch each leg landed in, in group order. */
|
|
23900
|
+
readonly batches: readonly (BatchRef & {
|
|
23901
|
+
readonly vaultId: string;
|
|
23902
|
+
})[];
|
|
23903
|
+
/** Every transaction sent, operator approvals first. */
|
|
23904
|
+
readonly txHashes: readonly Hex[];
|
|
23905
|
+
}
|
|
23906
|
+
/** What a {@link VaultBatcherPausedError} carries. */
|
|
23907
|
+
interface VaultBatcherPausedDetails {
|
|
23908
|
+
/** The batcher that reported `paused()`. */
|
|
23909
|
+
readonly batcher: Address;
|
|
23910
|
+
/** The vault whose leg needs the batcher. */
|
|
23911
|
+
readonly vaultId: string;
|
|
23912
|
+
}
|
|
23913
|
+
/** A batcher that a join needs is paused. */
|
|
23914
|
+
declare class VaultBatcherPausedError extends ZamaError {
|
|
23915
|
+
/** The batcher that reported `paused()`. */
|
|
23916
|
+
readonly batcher: Address;
|
|
23917
|
+
/** The vault whose leg needs the batcher. */
|
|
23918
|
+
readonly vaultId: string;
|
|
23919
|
+
constructor(message: string, details: VaultBatcherPausedDetails, options?: ErrorOptions);
|
|
23920
|
+
}
|
|
23921
|
+
/** What a {@link VaultBatchNotDispatchedError} carries. */
|
|
23922
|
+
interface VaultBatchNotDispatchedDetails {
|
|
23923
|
+
/** The batcher the batch belongs to. */
|
|
23924
|
+
readonly batcher: Address;
|
|
23925
|
+
/** The batch that was to be finalized. */
|
|
23926
|
+
readonly batchId: bigint;
|
|
23927
|
+
/** The state the batch is in instead. */
|
|
23928
|
+
readonly state: BatchState;
|
|
23929
|
+
}
|
|
23930
|
+
/** The batch to finalize is not dispatched. */
|
|
23931
|
+
declare class VaultBatchNotDispatchedError extends ZamaError {
|
|
23932
|
+
/** The batcher the batch belongs to. */
|
|
23933
|
+
readonly batcher: Address;
|
|
23934
|
+
/** The batch that was to be finalized. */
|
|
23935
|
+
readonly batchId: bigint;
|
|
23936
|
+
/** The state the batch is in instead. */
|
|
23937
|
+
readonly state: BatchState;
|
|
23938
|
+
constructor(message: string, details: VaultBatchNotDispatchedDetails, options?: ErrorOptions);
|
|
23939
|
+
}
|
|
23940
|
+
/** What a {@link VaultJoinUnconfirmedError} carries. */
|
|
23941
|
+
interface VaultJoinUnconfirmedDetails {
|
|
23942
|
+
/** The mined join transaction. */
|
|
23943
|
+
readonly txHash: Hex;
|
|
23944
|
+
/** Its receipt, to inspect the logs. */
|
|
23945
|
+
readonly receipt: TransactionReceipt;
|
|
23946
|
+
/** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */
|
|
23947
|
+
readonly unconfirmedVaultIds: readonly string[];
|
|
23948
|
+
}
|
|
23949
|
+
/**
|
|
23950
|
+
* A join was mined, but the SDK could not match a `Joined` log to every leg.
|
|
23951
|
+
*/
|
|
23952
|
+
declare class VaultJoinUnconfirmedError extends ZamaError {
|
|
23953
|
+
/** The mined join transaction. */
|
|
23954
|
+
readonly txHash: Hex;
|
|
23955
|
+
/** Its receipt, to inspect the logs. */
|
|
23956
|
+
readonly receipt: TransactionReceipt;
|
|
23957
|
+
/** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */
|
|
23958
|
+
readonly unconfirmedVaultIds: readonly string[];
|
|
23959
|
+
constructor(message: string, details: VaultJoinUnconfirmedDetails, options?: ErrorOptions);
|
|
23960
|
+
}
|
|
20291
23961
|
/**
|
|
20292
23962
|
* Maps each {@link ZamaErrorCode} to the error class thrown with that code, so
|
|
20293
23963
|
* {@link matchZamaError} handlers receive the matched subtype instead of the base
|
|
@@ -20306,6 +23976,10 @@ interface ErrorForCode {
|
|
|
20306
23976
|
[ZamaErrorCode.EncryptOffloadUnavailable]: EncryptOffloadUnavailableError;
|
|
20307
23977
|
/** Thrown for {@link ZamaErrorCode.TransactionReverted}. */
|
|
20308
23978
|
[ZamaErrorCode.TransactionReverted]: TransactionRevertedError;
|
|
23979
|
+
/** Thrown for {@link ZamaErrorCode.HcuBlockLimitExceeded}. */
|
|
23980
|
+
[ZamaErrorCode.HcuBlockLimitExceeded]: HcuBlockLimitExceededError;
|
|
23981
|
+
/** Thrown for {@link ZamaErrorCode.HcuTransactionLimitExceeded}. */
|
|
23982
|
+
[ZamaErrorCode.HcuTransactionLimitExceeded]: HcuTransactionLimitExceededError;
|
|
20309
23983
|
/** Thrown for {@link ZamaErrorCode.TransportKeyPairExpired}. */
|
|
20310
23984
|
[ZamaErrorCode.TransportKeyPairExpired]: TransportKeyPairExpiredError;
|
|
20311
23985
|
/** Thrown for {@link ZamaErrorCode.InvalidTransportKeyPair}. */
|
|
@@ -20372,6 +24046,12 @@ interface ErrorForCode {
|
|
|
20372
24046
|
[ZamaErrorCode.PreparedPermitExpired]: PreparedPermitExpiredError;
|
|
20373
24047
|
/** Thrown for {@link ZamaErrorCode.UnshieldAlreadyFinalized}. */
|
|
20374
24048
|
[ZamaErrorCode.UnshieldAlreadyFinalized]: UnshieldAlreadyFinalizedError;
|
|
24049
|
+
/** Thrown for {@link ZamaErrorCode.VaultBatcherPaused}. */
|
|
24050
|
+
[ZamaErrorCode.VaultBatcherPaused]: VaultBatcherPausedError;
|
|
24051
|
+
/** Thrown for {@link ZamaErrorCode.VaultBatchNotDispatched}. */
|
|
24052
|
+
[ZamaErrorCode.VaultBatchNotDispatched]: VaultBatchNotDispatchedError;
|
|
24053
|
+
/** Thrown for {@link ZamaErrorCode.VaultJoinUnconfirmed}. */
|
|
24054
|
+
[ZamaErrorCode.VaultJoinUnconfirmed]: VaultJoinUnconfirmedError;
|
|
20375
24055
|
}
|
|
20376
24056
|
/**
|
|
20377
24057
|
* Pattern-match on a {@link ZamaError} by its error code. Each handler receives the
|
|
@@ -20392,8 +24072,6 @@ interface ErrorForCode {
|
|
|
20392
24072
|
declare function matchZamaError<R>(error: unknown, handlers: { [K in ZamaErrorCode]?: (error: ErrorForCode[K]) => R; } & {
|
|
20393
24073
|
_?: (error: unknown) => R;
|
|
20394
24074
|
}): R | undefined;
|
|
20395
|
-
//#endregion
|
|
20396
|
-
//#region src/namespaces/permits.d.ts
|
|
20397
24075
|
/**
|
|
20398
24076
|
* Public namespace for permit and transport-key-pair management.
|
|
20399
24077
|
*
|
|
@@ -20570,8 +24248,6 @@ declare class Permits {
|
|
|
20570
24248
|
*/
|
|
20571
24249
|
warmTransportKeyPairScope(scopeId: string): Promise<void>;
|
|
20572
24250
|
}
|
|
20573
|
-
//#endregion
|
|
20574
|
-
//#region src/services/delegation-service.d.ts
|
|
20575
24251
|
/** Delegation activity and expiry, resolved from the active contract or wildcard grant. */
|
|
20576
24252
|
interface DelegationStatus {
|
|
20577
24253
|
/** Whether the delegation is currently active (exists and not expired). */
|
|
@@ -20579,8 +24255,6 @@ interface DelegationStatus {
|
|
|
20579
24255
|
/** Unix timestamp (seconds) when the delegation expires; `0n` if none exists. */
|
|
20580
24256
|
expiryTimestamp: bigint;
|
|
20581
24257
|
}
|
|
20582
|
-
//#endregion
|
|
20583
|
-
//#region src/namespaces/delegations.d.ts
|
|
20584
24258
|
/**
|
|
20585
24259
|
* Public namespace for on-chain decryption-delegation management.
|
|
20586
24260
|
*
|
|
@@ -20687,8 +24361,6 @@ declare class Delegations {
|
|
|
20687
24361
|
delegateAddress: Address;
|
|
20688
24362
|
}): Promise<DelegationStatus>;
|
|
20689
24363
|
}
|
|
20690
|
-
//#endregion
|
|
20691
|
-
//#region src/namespaces/offline.d.ts
|
|
20692
24364
|
/**
|
|
20693
24365
|
* Namespace for the offline-signing pipeline —
|
|
20694
24366
|
* `prepare → [external sign + self-publish]` — for institutional custody, HSM
|
|
@@ -20761,8 +24433,6 @@ declare class Offline {
|
|
|
20761
24433
|
*/
|
|
20762
24434
|
batchPreparePermits(request: PreparePermitRequest): Promise<PreparedPermit[]>;
|
|
20763
24435
|
}
|
|
20764
|
-
//#endregion
|
|
20765
|
-
//#region src/token/token.d.ts
|
|
20766
24436
|
/** Options for {@link Token.batchDecryptBalancesAs}. */
|
|
20767
24437
|
interface BatchDecryptAsOptions {
|
|
20768
24438
|
/** The address of the account that delegated decryption rights. */
|
|
@@ -21059,8 +24729,6 @@ declare class Token {
|
|
|
21059
24729
|
/** Verify all tokens share the same SDK instance and return it. */
|
|
21060
24730
|
private static assertSameSdk;
|
|
21061
24731
|
}
|
|
21062
|
-
//#endregion
|
|
21063
|
-
//#region src/token/wrapped-token.d.ts
|
|
21064
24732
|
/**
|
|
21065
24733
|
* Confidential ERC-20 wrapper (ERC-7984 ERC20Wrapper).
|
|
21066
24734
|
*
|
|
@@ -21285,11 +24953,9 @@ declare class WrappedToken extends Token {
|
|
|
21285
24953
|
*/
|
|
21286
24954
|
finalizeUnwrap(unwrapRequestId: EncryptedValue): Promise<TransactionResult>;
|
|
21287
24955
|
}
|
|
21288
|
-
//#endregion
|
|
21289
|
-
//#region src/wrappers-registry.d.ts
|
|
21290
24956
|
/**
|
|
21291
24957
|
* Default wrappers registry addresses for known chains.
|
|
21292
|
-
* Only includes chains where a registry is deployed
|
|
24958
|
+
* Only includes chains where a registry is deployed.
|
|
21293
24959
|
*
|
|
21294
24960
|
* @deprecated Read `registryAddress` from the chain presets instead (e.g.
|
|
21295
24961
|
* `sepolia.registryAddress`). Will be removed in the next major version.
|
|
@@ -21501,8 +25167,6 @@ declare class WrappersRegistry {
|
|
|
21501
25167
|
*/
|
|
21502
25168
|
isConfidentialTokenValid(confidentialTokenAddress: Address): Promise<boolean>;
|
|
21503
25169
|
}
|
|
21504
|
-
//#endregion
|
|
21505
|
-
//#region src/zama-sdk.d.ts
|
|
21506
25170
|
/** Instance-level options that are deliberately not part of the shareable config object. */
|
|
21507
25171
|
interface ZamaSDKOptions {
|
|
21508
25172
|
/**
|
|
@@ -21647,8 +25311,6 @@ declare class ZamaSDK {
|
|
|
21647
25311
|
*/
|
|
21648
25312
|
[Symbol.dispose](): void;
|
|
21649
25313
|
}
|
|
21650
|
-
//#endregion
|
|
21651
|
-
//#region src/query/factory-types.d.ts
|
|
21652
25314
|
/**
|
|
21653
25315
|
* TanStack Query options object returned by the SDK's `*QueryOptions` factories:
|
|
21654
25316
|
* `QueryObserverOptions` with `queryKey` and `queryFn` required and the
|
|
@@ -21666,8 +25328,6 @@ interface MutationFactoryOptions<TMutationKey extends readonly unknown[], TVaria
|
|
|
21666
25328
|
/** Optional callback invoked after the mutation succeeds. */
|
|
21667
25329
|
onSuccess?: (data: TData, variables: TVariables, onMutateResult: TOnMutateResult, context: MutationFunctionContext) => void;
|
|
21668
25330
|
}
|
|
21669
|
-
//#endregion
|
|
21670
|
-
//#region src/query/query-keys.d.ts
|
|
21671
25331
|
/**
|
|
21672
25332
|
* Canonical query-key namespace for `@zama-fhe/sdk/query`.
|
|
21673
25333
|
*
|
|
@@ -21823,7 +25483,8 @@ declare const zamaQueryKeys: {
|
|
|
21823
25483
|
};
|
|
21824
25484
|
readonly wrappersRegistry: {
|
|
21825
25485
|
readonly all: readonly ["zama.wrappersRegistry"];
|
|
21826
|
-
readonly chainId: () => readonly ["zama.wrappersRegistry", {
|
|
25486
|
+
readonly chainId: (walletChainId?: number) => readonly ["zama.wrappersRegistry", {
|
|
25487
|
+
readonly walletChainId?: number | undefined;
|
|
21827
25488
|
readonly type: "chainId";
|
|
21828
25489
|
}];
|
|
21829
25490
|
readonly tokenPairs: (registryAddress: Address) => readonly ["zama.wrappersRegistry", {
|
|
@@ -21869,15 +25530,11 @@ declare const zamaQueryKeys: {
|
|
|
21869
25530
|
}];
|
|
21870
25531
|
};
|
|
21871
25532
|
};
|
|
21872
|
-
//#endregion
|
|
21873
|
-
//#region src/query/signer-query-context.d.ts
|
|
21874
25533
|
/** Connected-wallet context threaded into query factories to scope cache keys and gate signer-dependent queries. */
|
|
21875
25534
|
interface SignerQueryContext {
|
|
21876
25535
|
/** Connected wallet account; queries that need a signer stay disabled until it is set. */
|
|
21877
25536
|
walletAccount?: WalletAccount;
|
|
21878
25537
|
}
|
|
21879
|
-
//#endregion
|
|
21880
|
-
//#region src/query/user-decrypt.d.ts
|
|
21881
25538
|
/** A single encrypted value to decrypt, paired with the contract that owns it. */
|
|
21882
25539
|
interface EncryptedInput {
|
|
21883
25540
|
/** Encrypted handle to decrypt. */
|
|
@@ -21889,8 +25546,6 @@ interface EncryptedInput {
|
|
|
21889
25546
|
type DecryptResult = Readonly<Record<EncryptedValue, ClearValue>>;
|
|
21890
25547
|
/** Builds TanStack Query options for decrypting a batch of encrypted handles into their clear values. */
|
|
21891
25548
|
declare function decryptValuesQueryOptions(sdk: ZamaSDK, encryptedInputs: EncryptedInput[], signerContext?: SignerQueryContext): QueryFactoryOptions<DecryptResult, Error, DecryptResult, ReturnType<typeof zamaQueryKeys.decryption.encryptedInputs>>;
|
|
21892
|
-
//#endregion
|
|
21893
|
-
//#region src/services/decryption-service.d.ts
|
|
21894
25549
|
/** Options shared by the delegated-decrypt entry points. */
|
|
21895
25550
|
interface DelegatedDecryptOptions {
|
|
21896
25551
|
/**
|
|
@@ -21917,8 +25572,6 @@ interface BatchDecryptResult {
|
|
|
21917
25572
|
/** Per-handle outcomes. */
|
|
21918
25573
|
items: BatchDecryptItem[];
|
|
21919
25574
|
}
|
|
21920
|
-
//#endregion
|
|
21921
|
-
//#region src/namespaces/decryption.d.ts
|
|
21922
25575
|
/**
|
|
21923
25576
|
* Public namespace for FHE decryption — the canonical way to decrypt.
|
|
21924
25577
|
*
|
|
@@ -22057,6 +25710,4 @@ declare class Decryption {
|
|
|
22057
25710
|
maxConcurrency?: number;
|
|
22058
25711
|
} & DelegatedDecryptOptions): Promise<BatchDecryptResult>;
|
|
22059
25712
|
}
|
|
22060
|
-
|
|
22061
|
-
export { DelegationCooldownError as $, balanceOfContract as $t, TransactionRevertedError as A, PaginatedResult as At, ConfigurationError as B, delegateForUserDecryptionContract as Bt, Delegations as C, PreparePermitRequest as Ct, matchZamaError as D, SerializedTransportKeyPair as Dt, ErrorForCode as E, SerializedPermitEip712 as Et, SignerRequiredError as F, getTokenPairContract as Ft, InsufficientAllowanceError as G, ERC1363_INTERFACE_ID as Gt, BalanceCheckUnavailableError as H, isHandleDelegatedContract as Ht, WalletAccountNotReadyError as I, getTokenPairsContract as It, DecryptionFailedError as J, isConfidentialTokenContract as Jt, InsufficientConfidentialBalanceError as K, ERC7984_INTERFACE_ID as Kt, WalletNotConnectedError as L, getTokenPairsLengthContract as Lt, SigningFailedError as M, TokenWrapperPairWithMetadata as Mt, SigningRejectedError as N, getConfidentialTokenAddressContract as Nt, UnshieldAlreadyFinalizedDetails as O, SignedPreparedPermit as Ot, SignerNotConfiguredError as P, getTokenAddressContract as Pt, DelegationContractIsSelfError as Q, approveContract as Qt, RpcRateLimitError as R, getTokenPairsSliceContract as Rt, Offline as S, Permission as St, Permits as T, SerializedPermit as Tt, BalanceErrorDetails as U, revokeDelegationContract as Ut, RelayerRequestFailedError as V, getDelegationExpiryContract as Vt, ERC20ReadFailedError as W, transferAndCallContract as Wt, EncryptionFailedError as X, supportsInterfaceContract as Xt, EncryptOffloadUnavailableError as Y, isConfidentialWrapperContract as Yt, AclPausedError as Z, allowanceContract as Zt, WrappersRegistryConfig as _, ZamaError as _t, DecryptResult as a, confidentialTransferContract as an, DelegationNotFoundError as at, BatchDecryptAsOptions as b, retryAfterSeconds as bt, SignerQueryContext as c, inferredTotalSupplyContract as cn, InvalidTransportKeyPairError as ct, QueryFactoryOptions as d, setOperatorContract as dn, PreparedPermitChainMismatchError as dt, decimalsContract as en, DelegationDelegateCannotBeWildcardError as et, ZamaSDK as f, underlyingContract as fn, PreparedPermitExpiredError as ft, WrappersRegistry as g, wrapContract as gn, ChainMismatchError as gt, ListPairsOptions as h, unwrapRequesterContract as hn, TransportKeyPairExpiredError as ht, DelegatedDecryptOptions as i, confidentialTotalSupplyContract as in, DelegationExpiryUnchangedError as it, SigningErrorMetadata as j, TokenWrapperPair as jt, UnshieldAlreadyFinalizedError as k, ChecksummedAddress as kt, zamaQueryKeys as l, isOperatorContract as ln, KeyWrappingError as lt, DefaultRegistryAddresses as m, unwrapFromBalanceContract as mn, TransportKeyPairChangedError as mt, BatchDecryptItem as n, symbolContract as nn, DelegationExpirationTooSoonError as nt, EncryptedInput as o, confidentialTransferFromContract as on, DelegationNotPropagatedError as ot, ZamaSDKOptions as p, unwrapContract as pn, RevokedKmsContextError as pt, InsufficientERC20BalanceError as q, ERC7984_WRAPPER_INTERFACE_ID as qt, BatchDecryptResult as r, confidentialBalanceOfContract as rn, DelegationExpiredError as rt, decryptValuesQueryOptions as s, finalizeUnwrapContract as sn, DelegationSelfNotAllowedError as st, Decryption as t, nameContract as tn, DelegationDelegateEqualsContractError as tt, MutationFactoryOptions as u, rateContract as un, NoCiphertextError as ut, WrappedToken as v, ZamaErrorCode as vt, DelegationStatus as w, PreparedPermit as wt, Token as x, parsePreparedPermit as xt, BatchBalancesResult as y, isRetryable as yt, NotEntitledError as z, isConfidentialTokenValidContract as zt };
|
|
22062
|
-
//# sourceMappingURL=decryption-B0mY2M8N.d.ts.map
|
|
25713
|
+
export { VaultCall as $, PreparedPermit as $t, VaultBatcherPausedDetails as A, nameContract as An, DelegationDelegateEqualsContractError as At, GroupJoinInput as B, isOperatorContract as Bn, PreparedPermitChainMismatchError as Bt, Delegations as C, isConfidentialTokenContract as Cn, DecryptionFailedError as Ct, matchZamaError as D, approveContract as Dn, DelegationContractIsSelfError as Dt, ErrorForCode as E, allowanceContract as En, AclPausedError as Et, BatchAction as F, confidentialTransferContract as Fn, DelegationNotPropagatedError as Ft, JoinOptions as G, unwrapContract as Gn, ChainMismatchError as Gt, JoinCall as H, setOperatorContract as Hn, RevokedKmsContextError as Ht, BatchRef as I, confidentialTransferFromAndCallContract as In, DelegationSelfNotAllowedError as It, OpenBatch as J, wrapContract as Jn, isRetryable as Jt, JoinOutcome as K, unwrapFromBalanceContract as Kn, ZamaError as Kt, BatchState as L, confidentialTransferFromContract as Ln, InvalidTransportKeyPairError as Lt, VaultJoinUnconfirmedDetails as M, confidentialBalanceOfContract as Mn, DelegationExpiredError as Mt, VaultJoinUnconfirmedError as N, confidentialTotalSupplyContract as Nn, DelegationExpiryUnchangedError as Nt, VaultBatchNotDispatchedDetails as O, balanceOfContract as On, DelegationCooldownError as Ot, Batch as P, confidentialTransferAndCallContract as Pn, DelegationNotFoundError as Pt, SendJoinOptions as Q, PreparePermitRequest as Qt, BatcherRef as R, finalizeUnwrapContract as Rn, KeyWrappingError as Rt, Offline as S, ERC7984_WRAPPER_INTERFACE_ID as Sn, InsufficientERC20BalanceError as St, Permits as T, supportsInterfaceContract as Tn, EncryptionFailedError as Tt, JoinDirection as U, underlyingContract as Un, TransportKeyPairChangedError as Ut, GroupJoinOptions as V, rateContract as Vn, PreparedPermitExpiredError as Vt, JoinInput as W, unwrapAmountContract as Wn, TransportKeyPairExpiredError as Wt, PreparedFinalize as X, parsePreparedPermit as Xt, OperatorApprovalCall as Y, retryAfterSeconds as Yt, PreparedJoin as Z, Permission as Zt, WrappersRegistryConfig as _, isHandleDelegatedContract as _n, BalanceCheckUnavailableError as _t, DecryptResult as a, PaginatedResult as an, TransactionRevertedError as at, BatchDecryptAsOptions as b, ERC1363_INTERFACE_ID as bn, InsufficientAllowanceError as bt, SignerQueryContext as c, getConfidentialTokenAddressContract as cn, SigningRejectedError as ct, QueryFactoryOptions as d, getTokenPairsContract as dn, WalletAccountNotReadyError as dt, SerializedPermit as en, VaultLeg as et, ZamaSDK as f, getTokenPairsLengthContract as fn, WalletNotConnectedError as ft, WrappersRegistry as g, getDelegationExpiryContract as gn, RelayerRequestFailedError as gt, ListPairsOptions as h, delegateForUserDecryptionContract as hn, ConfigurationError as ht, DelegatedDecryptOptions as i, ChecksummedAddress as in, HcuTransactionLimitExceededError as it, VaultBatcherPausedError as j, symbolContract as jn, DelegationExpirationTooSoonError as jt, VaultBatchNotDispatchedError as k, decimalsContract as kn, DelegationDelegateCannotBeWildcardError as kt, zamaQueryKeys as l, getTokenAddressContract as ln, SignerNotConfiguredError as lt, DefaultRegistryAddresses as m, isConfidentialTokenValidContract as mn, NotEntitledError as mt, BatchDecryptItem as n, SerializedTransportKeyPair as nn, UnshieldAlreadyFinalizedError as nt, EncryptedInput as o, TokenWrapperPair as on, SigningErrorMetadata as ot, ZamaSDKOptions as p, getTokenPairsSliceContract as pn, RpcRateLimitError as pt, JoinRoute as q, unwrapRequesterContract as qn, ZamaErrorCode as qt, BatchDecryptResult as r, SignedPreparedPermit as rn, HcuBlockLimitExceededError as rt, decryptValuesQueryOptions as s, TokenWrapperPairWithMetadata as sn, SigningFailedError as st, Decryption as t, SerializedPermitEip712 as tn, UnshieldAlreadyFinalizedDetails as tt, MutationFactoryOptions as u, getTokenPairContract as un, SignerRequiredError as ut, WrappedToken as v, revokeDelegationContract as vn, BalanceErrorDetails as vt, DelegationStatus as w, isConfidentialWrapperContract as wn, EncryptOffloadUnavailableError as wt, Token as x, ERC7984_INTERFACE_ID as xn, InsufficientConfidentialBalanceError as xt, BatchBalancesResult as y, transferAndCallContract as yn, ERC20ReadFailedError as yt, Call as z, inferredTotalSupplyContract as zn, NoCiphertextError as zt };
|