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.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -9,7 +9,37 @@
import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';
import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';
import {IKeyringPair} from '@polkadot/types/types';
-import {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';
+import {
+ IApiListeners,
+ IBlock,
+ IEvent,
+ IChainProperties,
+ ICollectionCreationOptions,
+ ICollectionLimits,
+ ICollectionPermissions,
+ ICrossAccountId,
+ ICrossAccountIdLower,
+ ILogger,
+ INestingPermissions,
+ IProperty,
+ IStakingInfo,
+ ISchedulerOptions,
+ ISubstrateBalance,
+ IToken,
+ ITokenPropertyPermission,
+ ITransactionResult,
+ IUniqueHelperLog,
+ TApiAllowedListeners,
+ TEthereumAccount,
+ TSigner,
+ TSubstrateAccount,
+ IEthCrossAccountId,
+ TNetworks,
+ IForeignAssetMetadata,
+ AcalaAssetMetadata,
+ MoonbeamAssetInfo,
+ DemocracyStandardAccountVote,
+} from './types';
import {hexToU8a} from '@polkadot/util/hex';
import {u8aConcat} from '@polkadot/util/u8a';