UNPKG

@krebitdao/reputation-passport

Version:

Krebit SDK for Verified Credentials

1,344 lines (1,343 loc) 38.7 kB
export const krebitNFT = { polygon: { contractName: 'Krebit NFT', symbol: 'NFT', token: 'polygon', name: 'Polygon', address: '0x2410f434a052C795689F66DfeBA26d4d9eB72031', block: 34019949, network: 'polygon', blockUrl: 'https://polygonscan.com/', txUrl: 'https://polygonscan.com/tx/', addressUrl: 'https://polygonscan.com/address/' }, mumbai: { contractName: 'Krebit NFT', symbol: 'NFT', token: 'polygon', name: 'Polygon Testnet', address: '0xA5E2Bc2BbB8F72de7a899730EAE35dC710AEee35', block: 28447492, network: 'mumbai', blockUrl: 'https://mumbai.polygonscan.com/', txUrl: 'https://mumbai.polygonscan.com/tx/', addressUrl: 'https://mumbai.polygonscan.com/address/' }, abi: [ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: 'previousAdmin', type: 'address' }, { indexed: false, internalType: 'address', name: 'newAdmin', type: 'address' } ], name: 'AdminChanged', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'account', 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: 'beacon', type: 'address' } ], name: 'BeaconUpgraded', type: 'event' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' } ], name: 'Initialized', type: 'event' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: 'account', type: 'address' } ], name: 'Paused', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'bytes32', name: 'previousAdminRole', type: 'bytes32' }, { indexed: true, internalType: 'bytes32', name: 'newAdminRole', type: 'bytes32' } ], name: 'RoleAdminChanged', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'address', name: 'account', type: 'address' }, { indexed: true, internalType: 'address', name: 'sender', type: 'address' } ], name: 'RoleGranted', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' }, { indexed: true, internalType: 'address', name: 'account', type: 'address' }, { indexed: true, internalType: 'address', name: 'sender', type: 'address' } ], name: 'RoleRevoked', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'operator', type: 'address' }, { indexed: true, internalType: 'address', name: 'from', type: 'address' }, { indexed: true, internalType: 'address', name: 'to', type: 'address' }, { indexed: false, internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }, { indexed: false, internalType: 'uint256[]', name: 'values', type: 'uint256[]' } ], name: 'TransferBatch', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'operator', type: 'address' }, { indexed: true, internalType: 'address', name: 'from', type: 'address' }, { indexed: true, internalType: 'address', name: 'to', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'TransferSingle', type: 'event' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'string', name: 'value', type: 'string' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' } ], name: 'URI', type: 'event' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: 'account', type: 'address' } ], name: 'Unpaused', type: 'event' }, { anonymous: false, inputs: [], name: 'Updated', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'implementation', type: 'address' } ], name: 'Upgraded', type: 'event' }, { inputs: [], name: 'DEFAULT_ADMIN_ROLE', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'DEPOSITOR_ROLE', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'GOVERN_ROLE', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' }, { internalType: 'uint256', name: 'id', type: 'uint256' } ], name: 'balanceOf', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address[]', name: 'accounts', type: 'address[]' }, { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' } ], name: 'balanceOfBatch', outputs: [ { internalType: 'uint256[]', name: '', type: 'uint256[]' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' }, { internalType: 'string', name: 'credentialSubjectType', type: 'string' } ], name: 'balanceOfCredential', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' }, { internalType: 'uint256', name: 'id', type: 'uint256' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'burn', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' }, { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }, { internalType: 'uint256[]', name: 'values', type: 'uint256[]' } ], name: 'burnBatch', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [], name: 'contractURI', outputs: [ { internalType: 'string', name: '', type: 'string' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], name: 'credentialMinted', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'user', type: 'address' }, { internalType: 'bytes', name: 'depositData', type: 'bytes' } ], name: 'deposit', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256' } ], name: 'exists', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'feesAvailableForWithdraw', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'forceRegister', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' } ], name: 'getRoleAdmin', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'uint256', name: 'index', type: 'uint256' } ], name: 'getRoleMember', outputs: [ { internalType: 'address', name: '', type: 'address' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' } ], name: 'getRoleMemberCount', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'string', name: 'credentialSubjectType', type: 'string' } ], name: 'getTokenId', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' } ], name: 'grantRole', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' } ], name: 'hasRole', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'string', name: 'uri', type: 'string' }, { internalType: 'string', name: 'collectionURI', type: 'string' }, { internalType: 'uint256', name: 'initialPrice', type: 'uint256' }, { internalType: 'address', name: 'krebitAddress', type: 'address' } ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' }, { internalType: 'address', name: 'operator', type: 'address' } ], name: 'isApprovedForAll', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'forwarder', type: 'address' } ], name: 'isTrustedForwarder', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'string', name: 'credentialSubjectType', type: 'string' }, { components: [ { internalType: 'string', name: '_context', type: 'string' }, { internalType: 'string', name: '_type', type: 'string' }, { internalType: 'string', name: 'id', type: 'string' }, { components: [ { internalType: 'string', name: 'id', type: 'string' }, { internalType: 'address', name: 'ethereumAddress', type: 'address' } ], internalType: 'struct VCTypes.Issuer', name: 'issuer', type: 'tuple' }, { components: [ { internalType: 'string', name: 'id', type: 'string' }, { internalType: 'address', name: 'ethereumAddress', type: 'address' }, { internalType: 'string', name: '_type', type: 'string' }, { internalType: 'string', name: 'typeSchema', type: 'string' }, { internalType: 'string', name: 'value', type: 'string' }, { internalType: 'string', name: 'encrypted', type: 'string' }, { internalType: 'uint8', name: 'trust', type: 'uint8' }, { internalType: 'uint256', name: 'stake', type: 'uint256' }, { internalType: 'uint256', name: 'price', type: 'uint256' }, { internalType: 'uint256', name: 'nbf', type: 'uint256' }, { internalType: 'uint256', name: 'exp', type: 'uint256' } ], internalType: 'struct VCTypes.CredentialSubject', name: 'credentialSubject', type: 'tuple' }, { components: [ { internalType: 'string', name: 'id', type: 'string' }, { internalType: 'string', name: '_type', type: 'string' } ], internalType: 'struct VCTypes.CredentialSchema', name: 'credentialSchema', type: 'tuple' }, { internalType: 'string', name: 'issuanceDate', type: 'string' }, { internalType: 'string', name: 'expirationDate', type: 'string' } ], internalType: 'struct VCTypes.VerifiableCredential', name: 'vc', type: 'tuple' }, { internalType: 'bytes', name: 'proofValue', type: 'bytes' }, { internalType: 'bytes', name: 'data', type: 'bytes' } ], name: 'mintWithCredential', outputs: [], stateMutability: 'payable', type: 'function' }, { inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [], name: 'paused', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'dest', type: 'address' } ], name: 'payments', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'price', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'proxiableUUID', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' } ], name: 'renounceRole', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32' }, { internalType: 'address', name: 'account', type: 'address' } ], name: 'revokeRole', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'from', type: 'address' }, { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }, { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, { internalType: 'bytes', name: 'data', type: 'bytes' } ], name: 'safeBatchTransferFrom', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'from', type: 'address' }, { internalType: 'address', name: 'to', type: 'address' }, { internalType: 'uint256', name: 'id', type: 'uint256' }, { internalType: 'uint256', name: 'amount', 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: 'string', name: 'newuri', type: 'string' } ], name: 'setContractURI', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'uint256', name: 'newPrice', type: 'uint256' } ], name: 'setPrice', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newTrustedForwarder', type: 'address' } ], name: 'setTrustedForwarder', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'string', name: 'newuri', type: 'string' } ], name: 'setURI', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'bool', name: 'force', type: 'bool' } ], name: 'setforceRegister', 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: [ { internalType: 'uint256', name: 'id', type: 'uint256' } ], name: 'totalSupply', outputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'trustedForwarder', outputs: [ { internalType: 'address', name: '', type: 'address' } ], stateMutability: 'view', type: 'function' }, { inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newImplementation', type: 'address' } ], name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newImplementation', type: 'address' }, { internalType: 'bytes', name: 'data', type: 'bytes' } ], name: 'upgradeToAndCall', outputs: [], stateMutability: 'payable', type: 'function' }, { inputs: [ { internalType: 'uint256', name: '', type: 'uint256' } ], name: 'uri', outputs: [ { internalType: 'string', name: '', type: 'string' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }, { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' } ], name: 'withdrawBatch', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address payable', name: '_to', type: 'address' }, { internalType: 'uint256', name: '_amount', type: 'uint256' } ], name: 'withdrawFees', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address payable', name: 'payee', type: 'address' } ], name: 'withdrawPayments', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256' }, { internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'withdrawSingle', outputs: [], stateMutability: 'nonpayable', type: 'function' } ] };