mirror of
https://github.com/luxfhe/example-dapps.git
synced 2026-10-30 18:13:32 +00:00
1855 lines
46 KiB
TypeScript
1855 lines
46 KiB
TypeScript
/**
|
|
* This file is autogenerated by helper.
|
|
* You should not edit it manually or your changes might be overwritten.
|
|
*/
|
|
import { GenericContractsDeclaration } from "~~/utils/helper/contract";
|
|
|
|
const deployedContracts = {
|
|
31337: {
|
|
ERC7984Example: {
|
|
address: "0xC1A360D04A2eb19831cd12B51a7923aF8f70616D",
|
|
abi: [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "name_",
|
|
type: "string",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "symbol_",
|
|
type: "string",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "tokenURI_",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "constructor",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "requestId",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidGatewayRequest",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "receiver",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidReceiver",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "sender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidSender",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "caller",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedCaller",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "spender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedSpender",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "user",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedUseOfEncryptedAmount",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984ZeroBalance",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "HandlesAlreadySavedForRequestID",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "InvalidKMSSignatures",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "NoHandleFoundForRequestID",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "owner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnableInvalidOwner",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "account",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnableUnauthorizedAccount",
|
|
type: "error",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "euint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
],
|
|
name: "AmountDisclosed",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "ConfidentialTransfer",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "uint256",
|
|
name: "requestID",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "DecryptionFulfilled",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "operator",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: "uint48",
|
|
name: "until",
|
|
type: "uint48",
|
|
},
|
|
],
|
|
name: "OperatorSet",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "previousOwner",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnershipTransferStarted",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "previousOwner",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnershipTransferred",
|
|
type: "event",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "acceptOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "account",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "confidentialBalanceOf",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "confidentialTotalSupply",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransfer",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "confidentialTransfer",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFrom",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "confidentialTransferFrom",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFromAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFromAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "contractURI",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "decimals",
|
|
outputs: [
|
|
{
|
|
internalType: "uint8",
|
|
name: "",
|
|
type: "uint8",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "discloseEncryptedAmount",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "requestId",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "cleartexts",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "decryptionProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "finalizeDiscloseEncryptedAmount",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "spender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "isOperator",
|
|
outputs: [
|
|
{
|
|
internalType: "bool",
|
|
name: "",
|
|
type: "bool",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
],
|
|
name: "mint",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "name",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "owner",
|
|
outputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "",
|
|
type: "address",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "pendingOwner",
|
|
outputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "",
|
|
type: "address",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "protocolId",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "renounceOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "operator",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "uint48",
|
|
name: "until",
|
|
type: "uint48",
|
|
},
|
|
],
|
|
name: "setOperator",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "symbol",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "transferOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
],
|
|
inheritedFunctions: {
|
|
confidentialBalanceOf:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTotalSupply:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransfer:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferAndCall:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferFrom:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferFromAndCall:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
contractURI:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
decimals:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
discloseEncryptedAmount:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
finalizeDiscloseEncryptedAmount:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
isOperator:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
name: "@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
setOperator:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
symbol:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
acceptOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
owner: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
pendingOwner: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
renounceOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
transferOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
},
|
|
deployedOnBlock: 6,
|
|
},
|
|
FHECounter: {
|
|
address: "0xc1b7223f08F52fbfA263c27674AE577911c3b20e",
|
|
abi: [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "externalEuint32",
|
|
name: "inputEuint32",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "decrement",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getCount",
|
|
outputs: [
|
|
{
|
|
internalType: "euint32",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "externalEuint32",
|
|
name: "inputEuint32",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "increment",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "protocolId",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
],
|
|
inheritedFunctions: {},
|
|
deployedOnBlock: 3,
|
|
},
|
|
Airdrop: {
|
|
address: "0xBB1FcB76bCc92B7Db65A4431CA90F84A6A11fB00",
|
|
abi: [
|
|
{
|
|
type: "function",
|
|
name: "claim",
|
|
inputs: [{ name: "_token", type: "address", internalType: "address" }],
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
},
|
|
{
|
|
type: "function",
|
|
name: "hasClaimed",
|
|
inputs: [
|
|
{ name: "user", type: "address", internalType: "address" },
|
|
{ name: "token", type: "address", internalType: "address" },
|
|
],
|
|
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
stateMutability: "view",
|
|
},
|
|
{
|
|
type: "function",
|
|
name: "alreadyClaimed",
|
|
inputs: [
|
|
{ name: "", type: "address", internalType: "address" },
|
|
{ name: "", type: "address", internalType: "address" },
|
|
],
|
|
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
stateMutability: "view",
|
|
},
|
|
{
|
|
type: "error",
|
|
name: "AlreadyClaimed",
|
|
inputs: [],
|
|
},
|
|
{
|
|
type: "error",
|
|
name: "InvalidToken",
|
|
inputs: [],
|
|
},
|
|
],
|
|
inheritedFunctions: {},
|
|
},
|
|
},
|
|
11155111: {
|
|
ERC7984Example: {
|
|
address: "0x68f32fA079C1f04cE6881dC8605C07425Bf4E1D3",
|
|
abi: [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "name_",
|
|
type: "string",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "symbol_",
|
|
type: "string",
|
|
},
|
|
{
|
|
internalType: "string",
|
|
name: "tokenURI_",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "constructor",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "requestId",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidGatewayRequest",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "receiver",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidReceiver",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "sender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984InvalidSender",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "caller",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedCaller",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "spender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedSpender",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "user",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984UnauthorizedUseOfEncryptedAmount",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "ERC7984ZeroBalance",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "HandlesAlreadySavedForRequestID",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "InvalidKMSSignatures",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "NoHandleFoundForRequestID",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "owner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnableInvalidOwner",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "account",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnableUnauthorizedAccount",
|
|
type: "error",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "euint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
],
|
|
name: "AmountDisclosed",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "ConfidentialTransfer",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "uint256",
|
|
name: "requestID",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "DecryptionFulfilled",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "operator",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: "uint48",
|
|
name: "until",
|
|
type: "uint48",
|
|
},
|
|
],
|
|
name: "OperatorSet",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "previousOwner",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnershipTransferStarted",
|
|
type: "event",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "previousOwner",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnershipTransferred",
|
|
type: "event",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "acceptOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "account",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "confidentialBalanceOf",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "confidentialTotalSupply",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransfer",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "confidentialTransfer",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFrom",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "confidentialTransferFrom",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "externalEuint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFromAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "from",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "euint64",
|
|
name: "amount",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "data",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "confidentialTransferFromAndCall",
|
|
outputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "transferred",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "contractURI",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "decimals",
|
|
outputs: [
|
|
{
|
|
internalType: "uint8",
|
|
name: "",
|
|
type: "uint8",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "euint64",
|
|
name: "encryptedAmount",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
name: "discloseEncryptedAmount",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "requestId",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "cleartexts",
|
|
type: "bytes",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "decryptionProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "finalizeDiscloseEncryptedAmount",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "holder",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "spender",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "isOperator",
|
|
outputs: [
|
|
{
|
|
internalType: "bool",
|
|
name: "",
|
|
type: "bool",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "to",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "uint64",
|
|
name: "amount",
|
|
type: "uint64",
|
|
},
|
|
],
|
|
name: "mint",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "name",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "owner",
|
|
outputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "",
|
|
type: "address",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "pendingOwner",
|
|
outputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "",
|
|
type: "address",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "protocolId",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "renounceOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "operator",
|
|
type: "address",
|
|
},
|
|
{
|
|
internalType: "uint48",
|
|
name: "until",
|
|
type: "uint48",
|
|
},
|
|
],
|
|
name: "setOperator",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "symbol",
|
|
outputs: [
|
|
{
|
|
internalType: "string",
|
|
name: "",
|
|
type: "string",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "transferOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
],
|
|
inheritedFunctions: {
|
|
confidentialBalanceOf:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTotalSupply:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransfer:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferAndCall:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferFrom:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
confidentialTransferFromAndCall:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
contractURI:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
decimals:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
discloseEncryptedAmount:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
finalizeDiscloseEncryptedAmount:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
isOperator:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
name: "@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
setOperator:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
symbol:
|
|
"@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol",
|
|
acceptOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
owner: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
pendingOwner: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
renounceOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
transferOwnership: "@openzeppelin/contracts/access/Ownable2Step.sol",
|
|
},
|
|
deployedOnBlock: 9516761,
|
|
},
|
|
FHECounter: {
|
|
address: "0xc1b7223f08F52fbfA263c27674AE577911c3b20e",
|
|
abi: [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "externalEuint32",
|
|
name: "inputEuint32",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "decrement",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getCount",
|
|
outputs: [
|
|
{
|
|
internalType: "euint32",
|
|
name: "",
|
|
type: "bytes32",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "externalEuint32",
|
|
name: "inputEuint32",
|
|
type: "bytes32",
|
|
},
|
|
{
|
|
internalType: "bytes",
|
|
name: "inputProof",
|
|
type: "bytes",
|
|
},
|
|
],
|
|
name: "increment",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "protocolId",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
],
|
|
inheritedFunctions: {},
|
|
deployedOnBlock: 9516244,
|
|
},
|
|
Airdrop: {
|
|
address: "0x7055623D538B2103cf17Dd8731ee0231D9ccB45c",
|
|
abi: [
|
|
{
|
|
type: "function",
|
|
name: "claim",
|
|
inputs: [{ name: "_token", type: "address", internalType: "address" }],
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
},
|
|
{
|
|
type: "function",
|
|
name: "hasClaimed",
|
|
inputs: [
|
|
{ name: "user", type: "address", internalType: "address" },
|
|
{ name: "token", type: "address", internalType: "address" },
|
|
],
|
|
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
stateMutability: "view",
|
|
},
|
|
{
|
|
type: "function",
|
|
name: "alreadyClaimed",
|
|
inputs: [
|
|
{ name: "", type: "address", internalType: "address" },
|
|
{ name: "", type: "address", internalType: "address" },
|
|
],
|
|
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
stateMutability: "view",
|
|
},
|
|
{
|
|
type: "error",
|
|
name: "AlreadyClaimed",
|
|
inputs: [],
|
|
},
|
|
{
|
|
type: "error",
|
|
name: "InvalidToken",
|
|
inputs: [],
|
|
},
|
|
],
|
|
inheritedFunctions: {},
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export default deployedContracts satisfies GenericContractsDeclaration;
|