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'