UNPKG

@nucypher/taco

Version:

### [`nucypher/taco-web`](../../README.md)

28 lines 889 B
import { USER_ADDRESS_PARAM_DEFAULT } from '@nucypher/taco-auth'; import { ContractCondition, ContractConditionType, } from '../base/contract'; const ERC721OwnershipDefaults = { conditionType: ContractConditionType, method: 'ownerOf', standardContractType: 'ERC721', returnValueTest: { comparator: '==', value: USER_ADDRESS_PARAM_DEFAULT, }, }; export class ERC721Ownership extends ContractCondition { constructor(value) { super({ ...ERC721OwnershipDefaults, ...value }); } } const ERC721BalanceDefaults = { conditionType: ContractConditionType, method: 'balanceOf', parameters: [USER_ADDRESS_PARAM_DEFAULT], standardContractType: 'ERC721', }; export class ERC721Balance extends ContractCondition { constructor(value) { super({ ...ERC721BalanceDefaults, ...value }); } } //# sourceMappingURL=erc721.js.map