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
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'