difftreelog
feat Add `collection_admins` method to eth collection.
in: master
2 files changed
tests/src/eth/collectionAdmin.test.tsdiffbeforeafterboth76 expect(await collectionEvm.methods.isOwnerOrAdmin(newAdmin).call()).to.be.true;76 expect(await collectionEvm.methods.isOwnerOrAdmin(newAdmin).call()).to.be.true;77 });77 });78 7879 itEth.skip('Check adminlist', async ({helper}) => {79 itEth.skip('Check adminlist', async ({helper, privateKey}) => {80 const owner = await helper.eth.createAccountWithBalance(donor);80 const owner = await helper.eth.createAccountWithBalance(donor);81 81 82 const {collectionAddress, collectionId} = await helper.eth.createNFTCollection(owner, 'A', 'B', 'C');82 const {collectionAddress, collectionId} = await helper.eth.createNFTCollection(owner, 'A', 'B', 'C');83 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'nft', owner);83 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'nft', owner);84 8485 const admin1 = helper.eth.createAccount();85 const admin1 = helper.eth.createAccount();86 const [admin2] = await helper.arrange.createAccounts([10n], donor);86 const admin2 = await privateKey('admin');87 await collectionEvm.methods.addCollectionAdmin(admin1).send();87 await collectionEvm.methods.addCollectionAdmin(admin1).send();88 await collectionEvm.methods.addCollectionAdminSubstrate(admin2.addressRaw).send();88 await collectionEvm.methods.addCollectionAdminSubstrate(admin2.addressRaw).send();8989tests/src/util/playgrounds/unique.tsdiffbeforeafterboth9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';11import {IKeyringPair} from '@polkadot/types/types';11import {IKeyringPair} from '@polkadot/types/types';12import {IApiListeners, IBlock, IEvent, IChainProperties, ICollectionCreationOptions, ICollectionLimits, ICollectionPermissions, ICrossAccountId, ICrossAccountIdLower, ILogger, INestingPermissions, IProperty, IStakingInfo, ISchedulerOptions, ISubstrateBalance, IToken, ITokenPropertyPermission, ITransactionResult, IUniqueHelperLog, TApiAllowedListeners, TEthereumAccount, TSigner, TSubstrateAccount, IForeignAssetMetadata, TNetworks, MoonbeamAssetInfo, DemocracyStandardAccountVote, AcalaAssetMetadata, IEthCrossAccountId} from './types';12import {13 IApiListeners,14 IBlock,15 IEvent,16 IChainProperties,17 ICollectionCreationOptions,18 ICollectionLimits,19 ICollectionPermissions,20 ICrossAccountId,21 ICrossAccountIdLower,22 ILogger,23 INestingPermissions,24 IProperty,25 IStakingInfo,26 ISchedulerOptions,27 ISubstrateBalance,28 IToken,29 ITokenPropertyPermission,30 ITransactionResult,31 IUniqueHelperLog,32 TApiAllowedListeners,33 TEthereumAccount,34 TSigner,35 TSubstrateAccount,36 IEthCrossAccountId,37 TNetworks,38 IForeignAssetMetadata,39 AcalaAssetMetadata,40 MoonbeamAssetInfo,41 DemocracyStandardAccountVote,42} from './types';