UNPKG

evmauth

Version:

TypeScript SDK for interacting with EVMAuth smart contracts deployed to Ethereum, Radius, and other EVM-compatible networks.

1,918 lines (1,917 loc) 57 kB
[ { "type": "constructor", "inputs": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "version", "type": "string", "internalType": "string" }, { "name": "uri", "type": "string", "internalType": "string" }, { "name": "delay", "type": "uint48", "internalType": "uint48" }, { "name": "owner", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "BLACKLIST_MANAGER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "FINANCE_MANAGER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "PROJECT_ID", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_BURNER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_MANAGER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_MINTER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "acceptDefaultAdminTransfer", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "active", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "addBatchToBlacklist", "inputs": [ { "name": "accounts", "type": "address[]", "internalType": "address[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "addToBlacklist", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "balanceDetailsOf", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "tuple[]", "internalType": "struct EVMAuthExpiringERC1155.Group[]", "components": [ { "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "expiresAt", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "balanceDetailsOfAll", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "tuple[][]", "internalType": "struct EVMAuthExpiringERC1155.Group[][]", "components": [ { "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "expiresAt", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "balanceDetailsOfBatch", "inputs": [ { "name": "accounts", "type": "address[]", "internalType": "address[]" }, { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "result", "type": "tuple[][]", "internalType": "struct EVMAuthExpiringERC1155.Group[][]", "components": [ { "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "expiresAt", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "balanceOf", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "balanceOfAll", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "balanceOfBatch", "inputs": [ { "name": "accounts", "type": "address[]", "internalType": "address[]" }, { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "baseMetadataOf", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct EVMAuthBaseERC1155.BaseMetadata", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "baseMetadataOfAll", "inputs": [], "outputs": [ { "name": "", "type": "tuple[]", "internalType": "struct EVMAuthBaseERC1155.BaseMetadata[]", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "baseMetadataOfBatch", "inputs": [ { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "", "type": "tuple[]", "internalType": "struct EVMAuthBaseERC1155.BaseMetadata[]", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "beginDefaultAdminTransfer", "inputs": [ { "name": "newAdmin", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "burn", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "burnBatch", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "amounts", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "burnable", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "cancelDefaultAdminTransfer", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "changeDefaultAdminDelay", "inputs": [ { "name": "newDelay", "type": "uint48", "internalType": "uint48" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "defaultAdmin", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultAdminDelay", "inputs": [], "outputs": [ { "name": "", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultAdminDelayIncreaseWait", "inputs": [], "outputs": [ { "name": "", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "expirationFor", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "forSale", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleAdmin", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "grantRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "grantRoles", "inputs": [ { "name": "roles", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isApprovedForAll", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "operator", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isBlacklisted", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "issue", "inputs": [ { "name": "to", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "issueBatch", "inputs": [ { "name": "to", "type": "address", "internalType": "address" }, { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "amounts", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "metadataOf", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct EVMAuth.TokenMetadata", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "metadataOfAll", "inputs": [], "outputs": [ { "name": "", "type": "tuple[]", "internalType": "struct EVMAuth.TokenMetadata[]", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "metadataOfBatch", "inputs": [ { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "", "type": "tuple[]", "internalType": "struct EVMAuth.TokenMetadata[]", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "pendingDefaultAdmin", "inputs": [], "outputs": [ { "name": "newAdmin", "type": "address", "internalType": "address" }, { "name": "schedule", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "pendingDefaultAdminDelay", "inputs": [], "outputs": [ { "name": "newDelay", "type": "uint48", "internalType": "uint48" }, { "name": "schedule", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "priceOf", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "priceOfAll", "inputs": [], "outputs": [ { "name": "result", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "priceOfBatch", "inputs": [ { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "result", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "purchase", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "removeBatchFromBlacklist", "inputs": [ { "name": "accounts", "type": "address[]", "internalType": "address[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "removeFromBlacklist", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "renounceRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "revokeRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "revokeRoles", "inputs": [ { "name": "roles", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "rollbackDefaultAdminDelay", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "safeBatchTransferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "values", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "safeTransferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setApprovalForAll", "inputs": [ { "name": "operator", "type": "address", "internalType": "address" }, { "name": "approved", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setBaseMetadata", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "_active", "type": "bool", "internalType": "bool" }, { "name": "_burnable", "type": "bool", "internalType": "bool" }, { "name": "_transferable", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMetadata", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "_active", "type": "bool", "internalType": "bool" }, { "name": "_burnable", "type": "bool", "internalType": "bool" }, { "name": "_transferable", "type": "bool", "internalType": "bool" }, { "name": "_price", "type": "uint256", "internalType": "uint256" }, { "name": "_ttl", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPriceOf", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "price", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPriceOfBatch", "inputs": [ { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "prices", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setTTL", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "value", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setURI", "inputs": [ { "name": "value", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setWallet", "inputs": [ { "name": "value", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "transferable", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "ttlOf", "inputs": [ { "name": "id", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "ttlOfAll", "inputs": [], "outputs": [ { "name": "", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "ttlOfBatch", "inputs": [ { "name": "ids", "type": "uint256[]", "internalType": "uint256[]" } ], "outputs": [ { "name": "", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "uri", "inputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "wallet", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "withdraw", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "event", "name": "AddedToBlacklist", "inputs": [ { "name": "account", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "ApprovalForAll", "inputs": [ { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "operator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "approved", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "DefaultAdminDelayChangeCanceled", "inputs": [], "anonymous": false }, { "type": "event", "name": "DefaultAdminDelayChangeScheduled", "inputs": [ { "name": "newDelay", "type": "uint48", "indexed": false, "internalType": "uint48" }, { "name": "effectSchedule", "type": "uint48", "indexed": false, "internalType": "uint48" } ], "anonymous": false }, { "type": "event", "name": "DefaultAdminTransferCanceled", "inputs": [], "anonymous": false }, { "type": "event", "name": "DefaultAdminTransferScheduled", "inputs": [ { "name": "newAdmin", "type": "address", "indexed": true, "internalType": "address" }, { "name": "acceptSchedule", "type": "uint48", "indexed": false, "internalType": "uint48" } ], "anonymous": false }, { "type": "event", "name": "ExpiredTokensBurned", "inputs": [ { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "id", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "FundsWithdrawn", "inputs": [ { "name": "wallet", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "RemovedFromBlacklist", "inputs": [ { "name": "account", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "RoleAdminChanged", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "previousAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "newAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "RoleGranted", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "RoleRevoked", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "TokenMetadataCreated", "inputs": [ { "name": "id", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "metadata", "type": "tuple", "indexed": false, "internalType": "struct EVMAuth.TokenMetadata", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] } ], "anonymous": false }, { "type": "event", "name": "TokenMetadataUpdated", "inputs": [ { "name": "id", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "oldMetadata", "type": "tuple", "indexed": false, "internalType": "struct EVMAuth.TokenMetadata", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] }, { "name": "newMetadata", "type": "tuple", "indexed": false, "internalType": "struct EVMAuth.TokenMetadata", "components": [ { "name": "id", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "burnable", "type": "bool", "internalType": "bool" }, { "name": "transferable", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "ttl", "type": "uint256", "internalType": "uint256" } ] } ], "anonymous": false }, { "type": "event", "name": "TokenPurchased", "inputs": [ { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "id", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event",