git.delta.rocks / unique-network / refs/commits / 1b4500fbabfe

difftreelog

revert(tests) minor unneeded changes

Fahrrader2022-09-19parent: #4e55e39.patch.diff
in: master

2 files changed

modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -64,7 +64,6 @@
     "testTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/transfer.test.ts",
     "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts",
     "testAdminTransferAndBurn": "mocha --timeout 9999999 -r ts-node/register ./**/adminTransferAndBurn.test.ts",
-    "testMintModes": "mocha --timeout 9999999 -r ts-node/register ./**/mintModes.test.ts",
     "testSetMintPermission": "mocha --timeout 9999999 -r ts-node/register ./**/setMintPermission.test.ts",
     "testSetPublicAccessMode": "mocha --timeout 9999999 -r ts-node/register ./**/setPublicAccessMode.test.ts",
     "testCreditFeesToTreasury": "mocha --timeout 9999999 -r ts-node/register ./**/creditFeesToTreasury.test.ts",
modifiedtests/src/util/playgrounds/types.tsdiffbeforeafterboth
before · tests/src/util/playgrounds/types.ts
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// SPDX-License-Identifier: Apache-2.034import {IKeyringPair} from '@polkadot/types/types';56export interface IEvent {7  section: string;8  method: string;9  index: [number, number] | string;10  data: any[];11  phase: {applyExtrinsic: number} | 'Initialization',12}1314export interface ITransactionResult {15  status: 'Fail' | 'Success';16  result: {17      events: {18        phase: any, // {ApplyExtrinsic: number} | 'Initialization',19        event: IEvent;20        // topics: any[];21      }[];22  },23  moduleError?: string;24}2526export interface ISubscribeBlockEventsData {27  number: number;28  hash: string;29  timestamp: number; 30  events: IEvent[];31}3233export interface ILogger {34  log: (msg: any, level?: string) => void;35  level: {36    ERROR: 'ERROR';37    WARNING: 'WARNING';38    INFO: 'INFO';39    [key: string]: string;40  }41}4243export interface IUniqueHelperLog {44  executedAt: number;45  executionTime: number;46  type: 'extrinsic' | 'rpc';47  status: 'Fail' | 'Success';48  call: string;49  params: any[];50  moduleError?: string;51  events?: any;52}5354export interface IApiListeners {55  connected?: (...args: any[]) => any;56  disconnected?: (...args: any[]) => any;57  error?: (...args: any[]) => any;58  ready?: (...args: any[]) => any; 59  decorated?: (...args: any[]) => any;60}6162export interface ICrossAccountId {63  Substrate?: TSubstrateAccount;64  Ethereum?: TEthereumAccount;65}6667export interface ICrossAccountIdLower {68  substrate?: TSubstrateAccount;69  ethereum?: TEthereumAccount;70}7172export interface ICollectionLimits {73  accountTokenOwnershipLimit?: number | null;74  sponsoredDataSize?: number | null;75  sponsoredDataRateLimit?: {blocks: number} | {sponsoringDisabled: null} | null;76  tokenLimit?: number | null;77  sponsorTransferTimeout?: number | null;78  sponsorApproveTimeout?: number | null;79  ownerCanTransfer?: boolean | null;80  ownerCanDestroy?: boolean | null;81  transfersEnabled?: boolean | null;82}8384export interface INestingPermissions {85  tokenOwner?: boolean;86  collectionAdmin?: boolean;87  restricted?: number[] | null;88}8990export interface ICollectionPermissions {91  access?: 'Normal' | 'AllowList';92  mintMode?: boolean;93  nesting?: INestingPermissions;94}9596export interface IProperty {97  key: string;98  value: string;99}100101export interface ITokenPropertyPermission {102  key: string;103  permission: {104    mutable: boolean;105    tokenOwner: boolean;106    collectionAdmin: boolean;107  }108}109110export interface IToken {111  collectionId: number;112  tokenId: number;113}114115export interface IBlock {116  extrinsics: IExtrinsic[]117  header: {118    parentHash: string,119    number: number,120  };121}122123export interface IExtrinsic {124  isSigned: boolean,125  method: {126    method: string,127    section: string,128    args: any[]129  }130}131132export interface ICollectionCreationOptions {133  name?: string | number[];134  description?: string | number[];135  tokenPrefix?: string | number[];136  mode?: {137    nft?: null;138    refungible?: null;139    fungible?: number;140  }141  permissions?: ICollectionPermissions;142  properties?: IProperty[];143  tokenPropertyPermissions?: ITokenPropertyPermission[];144  limits?: ICollectionLimits;145  pendingSponsor?: TSubstrateAccount;146}147148export interface IChainProperties {149  ss58Format: number;150  tokenDecimals: number[];151  tokenSymbol: string[]152}153154export interface ISubstrateBalance {155  free: bigint,156  reserved: bigint,157  miscFrozen: bigint,158  feeFrozen: bigint159}160161export interface IStakingInfo {162  block: bigint,163  amount: bigint,164}165166export type TSubstrateAccount = string;167export type TEthereumAccount = string;168export type TApiAllowedListeners = 'connected' | 'disconnected' | 'error' | 'ready' | 'decorated';169export type TUniqueNetworks = 'opal' | 'quartz' | 'unique';170export type TSigner = IKeyringPair; // | 'string'
after · tests/src/util/playgrounds/types.ts
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// SPDX-License-Identifier: Apache-2.034import {IKeyringPair} from '@polkadot/types/types';56export interface IEvent {7  section: string;8  method: string;9  index: [number, number] | string;10  data: any[];11  phase: {applyExtrinsic: number} | 'Initialization',12}1314export interface ITransactionResult {15  status: 'Fail' | 'Success';16  result: {17      events: {18        phase: any, // {ApplyExtrinsic: number} | 'Initialization',19        event: IEvent;20      }[];21  },22  moduleError?: string;23}2425export interface ISubscribeBlockEventsData {26  number: number;27  hash: string;28  timestamp: number; 29  events: IEvent[];30}3132export interface ILogger {33  log: (msg: any, level?: string) => void;34  level: {35    ERROR: 'ERROR';36    WARNING: 'WARNING';37    INFO: 'INFO';38    [key: string]: string;39  }40}4142export interface IUniqueHelperLog {43  executedAt: number;44  executionTime: number;45  type: 'extrinsic' | 'rpc';46  status: 'Fail' | 'Success';47  call: string;48  params: any[];49  moduleError?: string;50  events?: any;51}5253export interface IApiListeners {54  connected?: (...args: any[]) => any;55  disconnected?: (...args: any[]) => any;56  error?: (...args: any[]) => any;57  ready?: (...args: any[]) => any; 58  decorated?: (...args: any[]) => any;59}6061export interface ICrossAccountId {62  Substrate?: TSubstrateAccount;63  Ethereum?: TEthereumAccount;64}6566export interface ICrossAccountIdLower {67  substrate?: TSubstrateAccount;68  ethereum?: TEthereumAccount;69}7071export interface ICollectionLimits {72  accountTokenOwnershipLimit?: number | null;73  sponsoredDataSize?: number | null;74  sponsoredDataRateLimit?: {blocks: number} | {sponsoringDisabled: null} | null;75  tokenLimit?: number | null;76  sponsorTransferTimeout?: number | null;77  sponsorApproveTimeout?: number | null;78  ownerCanTransfer?: boolean | null;79  ownerCanDestroy?: boolean | null;80  transfersEnabled?: boolean | null;81}8283export interface INestingPermissions {84  tokenOwner?: boolean;85  collectionAdmin?: boolean;86  restricted?: number[] | null;87}8889export interface ICollectionPermissions {90  access?: 'Normal' | 'AllowList';91  mintMode?: boolean;92  nesting?: INestingPermissions;93}9495export interface IProperty {96  key: string;97  value: string;98}99100export interface ITokenPropertyPermission {101  key: string;102  permission: {103    mutable: boolean;104    tokenOwner: boolean;105    collectionAdmin: boolean;106  }107}108109export interface IToken {110  collectionId: number;111  tokenId: number;112}113114export interface IBlock {115  extrinsics: IExtrinsic[]116  header: {117    parentHash: string,118    number: number,119  };120}121122export interface IExtrinsic {123  isSigned: boolean,124  method: {125    method: string,126    section: string,127    args: any[]128  }129}130131export interface ICollectionCreationOptions {132  name?: string | number[];133  description?: string | number[];134  tokenPrefix?: string | number[];135  mode?: {136    nft?: null;137    refungible?: null;138    fungible?: number;139  }140  permissions?: ICollectionPermissions;141  properties?: IProperty[];142  tokenPropertyPermissions?: ITokenPropertyPermission[];143  limits?: ICollectionLimits;144  pendingSponsor?: TSubstrateAccount;145}146147export interface IChainProperties {148  ss58Format: number;149  tokenDecimals: number[];150  tokenSymbol: string[]151}152153export interface ISubstrateBalance {154  free: bigint,155  reserved: bigint,156  miscFrozen: bigint,157  feeFrozen: bigint158}159160export interface IStakingInfo {161  block: bigint,162  amount: bigint,163}164165export type TSubstrateAccount = string;166export type TEthereumAccount = string;167export type TApiAllowedListeners = 'connected' | 'disconnected' | 'error' | 'ready' | 'decorated';168export type TUniqueNetworks = 'opal' | 'quartz' | 'unique';169export type TSigner = IKeyringPair; // | 'string'