@funkit/core 0.10.4 → 0.10.5

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.
@@ -1 +1 @@
1
- { "name": "TestNFT", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approved", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getApproved", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" }], "name": "isApprovedForAll", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "ownerOf", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" }], "name": "setApprovalForAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "tokenURI", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "5": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "10": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "137": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "8453": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "36865": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "42161": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "421614": "0xbE13b0335996f57bBa63C8C197Ded28a28Cbe5dF" } }
1
+ { "name": "TestNFT", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approved", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getApproved", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" }], "name": "isApprovedForAll", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "ownerOf", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" }], "name": "setApprovalForAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "tokenURI", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "5": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "10": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "137": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "8453": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "36865": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "42161": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "421614": "0x837bF17d01aF15A9EA8BA76ccfd59B7F562CA590" } }
@@ -1 +1 @@
1
- { "name": "TokenPaymaster", "abi": [{ "inputs": [{ "internalType": "contractIEntryPoint", "name": "_entryPoint", "type": "address" }, { "internalType": "contractIImplementationRegistry", "name": "_implementationRegistry", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddTokenDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "AddTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "BatchActions", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }], "name": "LockTokenDeposit", "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" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contractIEntryPoint", "name": "entryPoint", "type": "address" }], "name": "PaymasterCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "opHash", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "spenderCost", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sponsorCost", "type": "uint256" }], "name": "PostOpGasPaid", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes", "name": "context", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "PostOpReverted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }], "name": "RemoveTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "RemoveTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "indexed": true, "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "SetTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "unlockBlockNum", "type": "uint256" }], "name": "UnlockTokenDepositAfter", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawTokenDepositTo", "type": "event" }, { "inputs": [], "name": "COST_OF_SIG", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COST_OF_TRANSFER", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ETH", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "accumulatedEthDust", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "unstakeDelaySec", "type": "uint32" }], "name": "addStakeToEntryPoint", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "addTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "batchActions", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "entryPoint", "outputs": [{ "internalType": "contractIEntryPoint", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getAllTokenData", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllTokens", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getCanPayThroughApproval", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getHasBalance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSponsorTokenUsage", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "getToken", "outputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getTokenBalance", "outputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint256", "name": "ethBought", "type": "uint256" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getUnlockBlock", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "implementationRegistry", "outputs": [{ "internalType": "contractIImplementationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "lockTokenDeposit", "outputs": [], "stateMutability": "payable", "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": [{ "internalType": "enumIPaymaster.PostOpMode", "name": "mode", "type": "uint8" }, { "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "postOp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "tokenListIndex", "type": "uint256" }], "name": "removeTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "removeTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "setTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "tokens", "outputs": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unlockStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "num", "type": "uint256" }], "name": "unlockTokenDepositAfter", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "uint256", "name": "maxCost", "type": "uint256" }], "name": "validatePaymasterUserOp", "outputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "withdrawEthDust", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "withdrawAddress", "type": "address" }], "name": "withdrawStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }], "addresses": { "1": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "5": "0x2b098A9B293EE50a1362D0500A5dC519E2E34d35", "10": "0x4Aabd0420D4ae964f065F9feb2fa0b04A8D65eAF", "137": "0x81051ac27b665B3c28bD7398DbA111E760f1DE4c", "8453": "0x31A2E8D96d96735daC5Af28A2073e6aEaF76BDe3", "36865": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "42161": "0x2AF4CEc1525Fc62a0D4d91c4c1872dF5FB09c963", "421614": "0x49E64C6e75fa2317D2AEE59e571311ac5DCaB43d" } }
1
+ { "name": "TokenPaymaster", "abi": [{ "inputs": [{ "internalType": "contractIEntryPoint", "name": "_entryPoint", "type": "address" }, { "internalType": "contractIImplementationRegistry", "name": "_implementationRegistry", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddTokenDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "AddTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "BatchActions", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }], "name": "LockTokenDeposit", "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" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contractIEntryPoint", "name": "entryPoint", "type": "address" }], "name": "PaymasterCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "opHash", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "spenderCost", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sponsorCost", "type": "uint256" }], "name": "PostOpGasPaid", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes", "name": "context", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "PostOpReverted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }], "name": "RemoveTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "RemoveTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "indexed": true, "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "SetTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "unlockBlockNum", "type": "uint256" }], "name": "UnlockTokenDepositAfter", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawTokenDepositTo", "type": "event" }, { "inputs": [], "name": "COST_OF_SIG", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COST_OF_TRANSFER", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ETH", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "accumulatedEthDust", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "unstakeDelaySec", "type": "uint32" }], "name": "addStakeToEntryPoint", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "addTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "batchActions", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "entryPoint", "outputs": [{ "internalType": "contractIEntryPoint", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getAllTokenData", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllTokens", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getCanPayThroughApproval", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getHasBalance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSponsorTokenUsage", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "getToken", "outputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getTokenBalance", "outputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint256", "name": "ethBought", "type": "uint256" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getUnlockBlock", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "implementationRegistry", "outputs": [{ "internalType": "contractIImplementationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "lockTokenDeposit", "outputs": [], "stateMutability": "payable", "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": [{ "internalType": "enumIPaymaster.PostOpMode", "name": "mode", "type": "uint8" }, { "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "postOp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "tokenListIndex", "type": "uint256" }], "name": "removeTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "removeTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "setTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "tokens", "outputs": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unlockStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "num", "type": "uint256" }], "name": "unlockTokenDepositAfter", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "uint256", "name": "maxCost", "type": "uint256" }], "name": "validatePaymasterUserOp", "outputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "withdrawEthDust", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "withdrawAddress", "type": "address" }], "name": "withdrawStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }], "addresses": { "1": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "5": "0x2b098A9B293EE50a1362D0500A5dC519E2E34d35", "10": "0x4Aabd0420D4ae964f065F9feb2fa0b04A8D65eAF", "137": "0x81051ac27b665B3c28bD7398DbA111E760f1DE4c", "8453": "0x31A2E8D96d96735daC5Af28A2073e6aEaF76BDe3", "36865": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "42161": "0x2AF4CEc1525Fc62a0D4d91c4c1872dF5FB09c963", "421614": "0x019d2CDaa0871F4aE32d3E1419F0eAFb2A3771DC" } }
@@ -1 +1 @@
1
- { "name": "TokenPriceOracle", "abi": [{ "inputs": [], "name": "MAX_DELAY", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WEI_IN_ETH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregatorOrToken", "type": "address" }, { "internalType": "uint256", "name": "ethAmount", "type": "uint256" }, { "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "tokenValueOfEth", "type": "uint256" }, { "internalType": "uint256", "name": "oracleValidUntil", "type": "uint256" }], "stateMutability": "view", "type": "function" }], "addresses": { "1": "0x302275dcF9919c5449F2d53253ACD06315385272", "5": "0x302275dcF9919c5449F2d53253ACD06315385272", "10": "0x302275dcF9919c5449F2d53253ACD06315385272", "137": "0x302275dcF9919c5449F2d53253ACD06315385272", "8453": "0x302275dcF9919c5449F2d53253ACD06315385272", "36865": "0x302275dcF9919c5449F2d53253ACD06315385272", "42161": "0x302275dcF9919c5449F2d53253ACD06315385272", "421614": "0xB3Bb6f2F6C4bc17F1E91E393d6331a899D1e8FC7" } }
1
+ { "name": "TokenPriceOracle", "abi": [{ "inputs": [], "name": "MAX_DELAY", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WEI_IN_ETH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregatorOrToken", "type": "address" }, { "internalType": "uint256", "name": "ethAmount", "type": "uint256" }, { "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "tokenValueOfEth", "type": "uint256" }, { "internalType": "uint256", "name": "oracleValidUntil", "type": "uint256" }], "stateMutability": "view", "type": "function" }], "addresses": { "1": "0x302275dcF9919c5449F2d53253ACD06315385272", "5": "0x302275dcF9919c5449F2d53253ACD06315385272", "10": "0x302275dcF9919c5449F2d53253ACD06315385272", "137": "0x302275dcF9919c5449F2d53253ACD06315385272", "8453": "0x302275dcF9919c5449F2d53253ACD06315385272", "36865": "0x302275dcF9919c5449F2d53253ACD06315385272", "42161": "0x302275dcF9919c5449F2d53253ACD06315385272", "421614": "0x33CE83528023d9aee4e6321250514741F00976DB" } }
@@ -1 +1 @@
1
- { "name": "UserAuthentication", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "MultiSigGroupDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "UserAuthenticationInitialized", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "createMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "deleteMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "signature", "type": "bytes" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "subValidateSignatureECDSA", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "updateMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "5": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "10": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "137": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "8453": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "36865": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "42161": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "421614": "0x65f595b02909ea5767B7b0a70E89c1505DBC1300" } }
1
+ { "name": "UserAuthentication", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "MultiSigGroupDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "UserAuthenticationInitialized", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "createMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "deleteMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "signature", "type": "bytes" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "subValidateSignatureECDSA", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "updateMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "5": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "10": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "137": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "8453": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "36865": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "42161": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "421614": "0x81C464389b2ac51D39aD934732bd172c4126773b" } }
@@ -1,6 +1,15 @@
1
1
  export declare function getMoonPayCheckout(tokenAddress: string, chainId: number, walletAddress: string, amount: string): Promise<string>;
2
2
  export declare function getOnRampUrl(walletAddr: string, currencyCode?: string): Promise<string>;
3
3
  export declare function getMoonpayUrlSignature(url: string, apiKey?: string): Promise<string>;
4
+ export declare function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }: {
5
+ currencyCode: string;
6
+ baseCurrencyCode: string;
7
+ quoteCurrencyAmount: string;
8
+ baseCurrencyAmount?: number;
9
+ extraFeePercentage?: number;
10
+ areFeesIncluded?: boolean;
11
+ apiKey?: string;
12
+ }): Promise<string>;
4
13
  export declare function getOffRampUrl(walletAddr: string): Promise<string>;
5
14
  export interface Currency {
6
15
  id: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOnRampSupportedCurrencies = exports.getOffRampUrl = exports.getMoonpayUrlSignature = exports.getOnRampUrl = exports.getMoonPayCheckout = void 0;
3
+ exports.getOnRampSupportedCurrencies = exports.getOffRampUrl = exports.getMoonpayBuyQuoteForCreditCard = exports.getMoonpayUrlSignature = exports.getOnRampUrl = exports.getMoonPayCheckout = void 0;
4
4
  const constants_1 = require("../common/constants");
5
5
  const errors_1 = require("../errors");
6
6
  const ApiUtils_1 = require("../utils/ApiUtils");
@@ -35,6 +35,26 @@ async function getMoonpayUrlSignature(url, apiKey) {
35
35
  return signature.url;
36
36
  }
37
37
  exports.getMoonpayUrlSignature = getMoonpayUrlSignature;
38
+ async function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }) {
39
+ const params = new URLSearchParams({
40
+ currencyCode,
41
+ baseCurrencyCode,
42
+ quoteCurrencyAmount,
43
+ paymentMethod: 'credit_debit_card',
44
+ ...(baseCurrencyAmount == null
45
+ ? {}
46
+ : { baseCurrencyAmount: baseCurrencyAmount.toString() }),
47
+ ...(extraFeePercentage == null
48
+ ? {}
49
+ : { extraFeePercentage: extraFeePercentage.toString() }),
50
+ ...(areFeesIncluded == null
51
+ ? {}
52
+ : { areFeesIncluded: areFeesIncluded.toString() }),
53
+ }).toString();
54
+ const res = await (0, ApiUtils_1.sendGetRequest)(constants_1.API_URL, `on-ramp/moonpay-buy-quote?${params}`, apiKey);
55
+ return res;
56
+ }
57
+ exports.getMoonpayBuyQuoteForCreditCard = getMoonpayBuyQuoteForCreditCard;
38
58
  async function getOffRampUrl(walletAddr) {
39
59
  const url = (await (0, ApiUtils_1.sendGetRequest)(constants_1.API_URL, `off-ramp/${walletAddr}?provider=moonpay`))?.url;
40
60
  if (!url) {
@@ -1 +1 @@
1
- {"version":3,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ACZ,CAAC;AAdD,sCAcC;AA2BM,KAAK,UAAU,4BAA4B;IAChD,MAAM,UAAU,GAAe,MAAM,IAAA,yBAAc,EACjD,mBAAO,EACP,oBAAoB,CACrB,CAAA;IACD,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QACtC,MAAM,IAAI,6BAAoB,CAC5B,kBAAS,CAAC,kBAAkB,EAC5B,gCAAgC,EAChC,EAAE,EACF,oDAAoD,EACpD,sBAAsB,CACvB,CAAA;IACH,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAfD,oEAeC"}
@@ -1182,6 +1182,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1182
1182
  readonly url: "https://etherscan.io";
1183
1183
  };
1184
1184
  isFiatCheckoutSupported: boolean;
1185
+ moonpayChainName: string;
1185
1186
  } | {
1186
1187
  nativeCurrency: {
1187
1188
  symbol: "ETH";
@@ -1193,6 +1194,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1193
1194
  readonly url: "https://basescan.org";
1194
1195
  };
1195
1196
  isFiatCheckoutSupported: boolean;
1197
+ moonpayChainName: string;
1196
1198
  } | {
1197
1199
  nativeCurrency: {
1198
1200
  symbol: "MATIC";
@@ -1204,6 +1206,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1204
1206
  readonly url: "https://polygonscan.com";
1205
1207
  };
1206
1208
  isFiatCheckoutSupported: boolean;
1209
+ moonpayChainName: string;
1207
1210
  } | {
1208
1211
  nativeCurrency: {
1209
1212
  symbol: "ETH";
@@ -1215,6 +1218,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1215
1218
  readonly url: "https://arbiscan.io";
1216
1219
  };
1217
1220
  isFiatCheckoutSupported: boolean;
1221
+ moonpayChainName: string;
1218
1222
  } | {
1219
1223
  nativeCurrency: {
1220
1224
  symbol: "ETH";
@@ -1226,6 +1230,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1226
1230
  readonly url: "https://goerli.etherscan.io";
1227
1231
  };
1228
1232
  isFiatCheckoutSupported: boolean;
1233
+ moonpayChainName: null;
1229
1234
  } | {
1230
1235
  nativeCurrency: {
1231
1236
  symbol: "ETH";
@@ -1237,6 +1242,7 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
1237
1242
  readonly url: "https://sepolia-explorer.arbitrum.io";
1238
1243
  };
1239
1244
  isFiatCheckoutSupported: boolean;
1245
+ moonpayChainName: null;
1240
1246
  };
1241
1247
  };
1242
1248
  export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST: string[];
@@ -196,6 +196,7 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
196
196
  },
197
197
  explorerInfo: chains_1.mainnet.blockExplorers.default,
198
198
  isFiatCheckoutSupported: true,
199
+ moonpayChainName: '',
199
200
  },
200
201
  [chains_1.base.id.toString()]: {
201
202
  nativeCurrency: {
@@ -205,6 +206,7 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
205
206
  },
206
207
  explorerInfo: chains_1.base.blockExplorers.default,
207
208
  isFiatCheckoutSupported: true,
209
+ moonpayChainName: 'base',
208
210
  },
209
211
  [chains_1.polygon.id.toString()]: {
210
212
  nativeCurrency: {
@@ -214,6 +216,7 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
214
216
  },
215
217
  explorerInfo: chains_1.polygon.blockExplorers.default,
216
218
  isFiatCheckoutSupported: true,
219
+ moonpayChainName: 'polygon',
217
220
  },
218
221
  [chains_1.arbitrum.id.toString()]: {
219
222
  nativeCurrency: {
@@ -223,6 +226,7 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
223
226
  },
224
227
  explorerInfo: chains_1.arbitrum.blockExplorers.default,
225
228
  isFiatCheckoutSupported: true,
229
+ moonpayChainName: 'arbitrum',
226
230
  },
227
231
  /** TESTNETS **/
228
232
  [chains_1.goerli.id.toString()]: {
@@ -232,7 +236,9 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
232
236
  name: chains_1.goerli.nativeCurrency.name,
233
237
  },
234
238
  explorerInfo: chains_1.goerli.blockExplorers.default,
235
- isFiatCheckoutSupported: false, // testnet has no fiat checkouts supported
239
+ // testnet has no fiat checkouts supported
240
+ isFiatCheckoutSupported: false,
241
+ moonpayChainName: null,
236
242
  },
237
243
  [chains_1.arbitrumSepolia.id.toString()]: {
238
244
  nativeCurrency: {
@@ -241,7 +247,9 @@ exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO = {
241
247
  name: chains_1.arbitrumSepolia.nativeCurrency.name,
242
248
  },
243
249
  explorerInfo: chains_1.arbitrumSepolia.blockExplorers.default,
244
- isFiatCheckoutSupported: false, // testnet has no fiat checkouts supported
250
+ // testnet has no fiat checkouts supported
251
+ isFiatCheckoutSupported: false,
252
+ moonpayChainName: null,
245
253
  },
246
254
  };
247
255
  exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST = Object.keys(exports.FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO);
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":";;;;;;;AAAA,iJAAsH;AACtH,+BAA6B;AAC7B,wCAOoB;AAEpB,sFAAmE;AACnE,sFAAmE;AACnE,4FAAwE;AACxE,8EAAyD;AACzD,oEAA+C;AAC/C,sEAAkD;AAClD,gGAA4E;AAC5E,0FAAuE;AACvE,4EAAwD;AACxD,0FAA4D;AAC5D,0FAAsE;AACtE,4FAAoE;AACpE,sGAAoF;AACpF,wEAAoD;AACpD,sFAAkE;AAClE,0FAAuE;AACvE,0FAAqE;AACrE,4FAAuE;AACvE,gGAA8E;AAC9E,kFAAqD;AACrD,gFAAmD;AACnD,gFAAmD;AACnD,8FAA0E;AAC1E,iEAA6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8GAA8G;AAC9G,0HAA0H;AAC7G,QAAA,+CAA+C,GAC1D,4CAA4C,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":";;;;;;;AAAA,iJAAsH;AACtH,+BAA6B;AAC7B,wCAOoB;AAEpB,sFAAmE;AACnE,sFAAmE;AACnE,4FAAwE;AACxE,8EAAyD;AACzD,oEAA+C;AAC/C,sEAAkD;AAClD,gGAA4E;AAC5E,0FAAuE;AACvE,4EAAwD;AACxD,0FAA4D;AAC5D,0FAAsE;AACtE,4FAAoE;AACpE,sGAAoF;AACpF,wEAAoD;AACpD,sFAAkE;AAClE,0FAAuE;AACvE,0FAAqE;AACrE,4FAAuE;AACvE,gGAA8E;AAC9E,kFAAqD;AACrD,gFAAmD;AACnD,gFAAmD;AACnD,8FAA0E;AAC1E,iEAA6D;AAE7D,oBAAoB;AACP,QAAA,aAAa,GAAG,uBAAuB,CAAA;AAEpD,OAAO;AACP,IAAI,OAAO,GAAG,wBAAwB,CAAA;AAc7B,0BAAO;AAZhB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,KAAK,SAAS;QACZ,kBAAA,OAAO,GAAG,gCAAgC,CAAA;QAC1C,MAAK;IACP,KAAK,SAAS;QACZ,kBAAA,OAAO,GAAG,gCAAgC,CAAA;QAC1C,MAAK;IACP,KAAK,OAAO;QACV,kBAAA,OAAO,GAAG,qBAAa,CAAA;QACvB,MAAK;AACT,CAAC;AAIY,QAAA,iBAAiB,GAAG,+BAA+B,CAAA;AACnD,QAAA,oBAAoB,GAAG;IAClC,GAAG,EAAE;QACH,IAAI,EAAE,4CAA4C;KACnD;IACD,GAAG,EAAE;QACH,IAAI,EAAE,4CAA4C;KACnD;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,4CAA4C;KACnD;IACD,KAAK,EAAE;QACL,MAAM,EAAE,4CAA4C;KACrD;IACD,MAAM,EAAE;QACN,IAAI,EAA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AM,CAAC,cAAc,CAAC,MAAM;YACpC,QAAQ,EAAE,eAAM,CAAC,cAAc,CAAC,QAAQ;YACxC,IAAI,EAAE,eAAM,CAAC,cAAc,CAAC,IAAI;SACjC;QACD,YAAY,EAAE,eAAM,CAAC,cAAc,CAAC,OAAO;QAC3C,0CAA0C;QAC1C,uBAAuB,EAAE,KAAK;QAC9B,gBAAgB,EAAE,IAAI;KACvB;IACD,CAAC,wBAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE;QAC/B,cAAc,EAAE;YACd,MAAM,EAAE,wBAAe,CAAC,cAAc,CAAC,MAAM;YAC7C,QAAQ,EAAE,wBAAe,CAAC,cAAc,CAAC,QAAQ;YACjD,IAAI,EAAE,wBAAe,CAAC,cAAc,CAAC,IAAI;SAC1C;QACD,YAAY,EAAE,wBAAe,CAAC,cAAc,CAAC,OAAO;QACpD,0CAA0C;QAC1C,uBAAuB,EAAE,KAAK;QAC9B,gBAAgB,EAAE,IAAI;KACvB;CACF,CAAA;AAEY,QAAA,uCAAuC,GAAG,MAAM,CAAC,IAAI,CAChE,4CAAoC,CACrC,CAAA;AAED,8GAA8G;AAC9G,0HAA0H;AAC7G,QAAA,+CAA+C,GAC1D,4CAA4C,CAAA"}
@@ -21,7 +21,7 @@ export declare class FunWallet extends FirstClassActions {
21
21
  * If the address is not already cached, it fetches it using the wallet's unique ID and chain information.
22
22
  * @returns {Promise<Address>} The wallet address.
23
23
  */
24
- getAddress(): Promise<Address>;
24
+ getAddress(txOptions?: EnvOption): Promise<Address>;
25
25
  /**
26
26
  * Retrieves the wallet address associated with the provided unique ID using the given API key.
27
27
  * @param {string} uniqueId - The unique ID of the wallet.
@@ -60,9 +60,10 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
60
60
  * If the address is not already cached, it fetches it using the wallet's unique ID and chain information.
61
61
  * @returns {Promise<Address>} The wallet address.
62
62
  */
63
- async getAddress() {
63
+ async getAddress(txOptions = globalThis.globalEnvOption) {
64
64
  if (!this.address) {
65
- this.address = await (0, utils_1.getWalletAddress)(await data_1.Chain.getChain({ chainIdentifier: 137 }), this.walletUniqueId);
65
+ const chainIdentifier = txOptions.chain;
66
+ this.address = await (0, utils_1.getWalletAddress)(await data_1.Chain.getChain({ chainIdentifier: chainIdentifier ?? 137 }), this.walletUniqueId);
66
67
  }
67
68
  return this.address;
68
69
  }
@@ -209,7 +210,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
209
210
  */
210
211
  async getOperations(status = data_1.OperationStatus.ALL, txOptions = globalThis.globalEnvOption) {
211
212
  const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
212
- return await (0, OperationApis_1.getOpsOfWallet)(await this.getAddress(), await chain.getChainId(), status);
213
+ return await (0, OperationApis_1.getOpsOfWallet)(await this.getAddress(txOptions), await chain.getChainId(), status);
213
214
  }
214
215
  /**
215
216
  * Retrieves a specific operation by its ID.
@@ -229,7 +230,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
229
230
  */
230
231
  async getUsers(auth, txOptions = globalThis.globalEnvOption) {
231
232
  const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
232
- const storedUserIds = await auth.getUserIds(await this.getAddress(), await chain.getChainId());
233
+ const storedUserIds = await auth.getUserIds(await this.getAddress(txOptions), await chain.getChainId());
233
234
  const userIds = new Set([...storedUserIds]);
234
235
  if (this.userInfo) {
235
236
  for (const userId of this.userInfo.keys()) {
@@ -267,7 +268,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
267
268
  */
268
269
  async getDeploymentStatus(txOptions = globalThis.globalEnvOption) {
269
270
  const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
270
- return await chain.addressIsContract(await this.getAddress());
271
+ return await chain.addressIsContract(await this.getAddress(txOptions));
271
272
  }
272
273
  /**
273
274
  * Creates the wallet.
@@ -278,7 +279,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
278
279
  */
279
280
  async create(auth, userId, txOptions = globalThis.globalEnvOption) {
280
281
  const transactionParams = {
281
- to: await this.getAddress(),
282
+ to: await this.getAddress(txOptions),
282
283
  data: '0x',
283
284
  value: 0n,
284
285
  };
@@ -292,7 +293,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
292
293
  */
293
294
  async saveWalletToAuth(auth, txOptions = globalThis.globalEnvOption) {
294
295
  const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
295
- const walletAddr = await this.getAddress();
296
+ const walletAddr = await this.getAddress(txOptions);
296
297
  const userId = await auth.getUserId();
297
298
  const users = await auth.getUserIds(walletAddr, await chain.getChainId());
298
299
  if (!users.includes(userId)) {
@@ -340,7 +341,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
340
341
  }
341
342
  userId = (0, viem_1.pad)(userId, { size: 32 }).toLowerCase();
342
343
  const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
343
- const sender = await this.getAddress();
344
+ const sender = await this.getAddress(txOptions);
344
345
  const initCode = (await chain.addressIsContract(sender))
345
346
  ? '0x'
346
347
  : await this.getThisInitCode(chain);
@@ -382,7 +383,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
382
383
  ? data_1.OperationType.GROUP_OPERATION
383
384
  : data_1.OperationType.SINGLE_OPERATION,
384
385
  authType: isGroupOp ? data_1.AuthType.MULTI_SIG : data_1.AuthType.ECDSA,
385
- walletAddr: await this.getAddress(),
386
+ walletAddr: await this.getAddress(txOptions),
386
387
  proposer: await auth.getAddress(),
387
388
  });
388
389
  if (isGroupOp) {
@@ -392,7 +393,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
392
393
  if (txOptions.gasSponsor.token) {
393
394
  const sponsor = new sponsors_1.TokenSponsor(txOptions);
394
395
  if (txOptions.gasSponsor.usePermit) {
395
- paymasterAndData = (await sponsor.getPaymasterAndDataPermit(operation, await this.getAddress(), userId, auth)).toLowerCase();
396
+ paymasterAndData = (await sponsor.getPaymasterAndDataPermit(operation, await this.getAddress(txOptions), userId, auth)).toLowerCase();
396
397
  }
397
398
  else {
398
399
  paymasterAndData = (await sponsor.getPaymasterAndData(txOptions)).toLowerCase();
@@ -520,14 +521,14 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
520
521
  }
521
522
  receipt = await (0, OperationApis_1.getFullReceipt)(operation.opId, chainId, receipt.userOpHash);
522
523
  if ((0, utils_1.isWalletInitOp)(operation.userOp) && txOptions.skipDBAction !== true) {
523
- await (0, UserApis_1.addUserToWallet)(await auth.getAddress(), chainId, await this.getAddress(), Array.from(this.userInfo.keys()), this.walletUniqueId);
524
+ await (0, UserApis_1.addUserToWallet)(await auth.getAddress(), chainId, await this.getAddress(txOptions), Array.from(this.userInfo.keys()), this.walletUniqueId);
524
525
  if (txOptions?.gasSponsor?.sponsorAddress) {
525
526
  const paymasterType = (0, PaymasterUtils_1.getPaymasterType)(txOptions);
526
527
  (0, PaymasterApis_1.addTransaction)(await chain.getChainId(), Date.now(), receipt.txId, {
527
528
  action: 'sponsor',
528
529
  amount: -1, //Get amount from lazy processing
529
530
  from: txOptions.gasSponsor.sponsorAddress,
530
- to: await this.getAddress(),
531
+ to: await this.getAddress(txOptions),
531
532
  token: 'eth',
532
533
  txid: receipt.txId,
533
534
  }, paymasterType, txOptions.gasSponsor.sponsorAddress);
@@ -639,7 +640,7 @@ class FunWallet extends FirstClassActions_1.FirstClassActions {
639
640
  * @returns {Promise<Operation>} The prepared rejection operation.
640
641
  */
641
642
  async createRejectOperation(auth, groupId, operation, rejectionMessage, txOptions = globalThis.globalEnvOption) {
642
- const rejectOperation = await this.transfer(auth, groupId, { to: await this.getAddress(), amount: 0, token: 'eth' }, {
643
+ const rejectOperation = await this.transfer(auth, groupId, { to: await this.getAddress(txOptions), amount: 0, token: 'eth' }, {
643
644
  ...txOptions,
644
645
  skipDBAction: true,
645
646
  nonce: BigInt(operation.userOp.nonce),