• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Mintbase / mintbase-js / 3680409035

pending completion
3680409035

push

github

cif
Merge branch 'alpha' of github.com:Mintbase/mintbase-js into fix-git-ci-tagging-issue

183 of 254 branches covered (72.05%)

Branch coverage included in aggregate %.

436 of 474 relevant lines covered (91.98%)

2.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/packages/sdk/src/removeMinter/removeMinter.ts
1
/* eslint-disable @typescript-eslint/camelcase */
2
import { DEFAULT_CONTRACT_ADDRESS, GAS, ONE_YOCTO, TOKEN_METHOD_NAMES } from '../constants';
1✔
3
import { NearContractCall } from '../execute';
4

5
export type RemoveMinterArgs =  {
6
    minterId: string;
7
    nftContractId?: string;
8
  };
9

10
/**
11
 * Remove minting access of a provided id for a contract you own.
12
 * @param removeMinterArgs {@link RemoveMinterArgs}
13
 * @returns contract call to be passed to @mintbase-js/sdk execute method
14
 */     
15
export const removeMinter = (
1✔
16
  args: RemoveMinterArgs,
17
): NearContractCall=> {
18
  const { minterId, nftContractId = DEFAULT_CONTRACT_ADDRESS } = args;
1!
19

20
  if (nftContractId == null) {
1!
21
    throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID environment variable to default to');
×
22
  }
23
  
24
  return {
1✔
25
    contractAddress: nftContractId,
26
    args: {
27
      account_id: minterId,
28
    },
29
    methodName: TOKEN_METHOD_NAMES.REMOVE_MINTER,
30
    gas: GAS,
31
    deposit: ONE_YOCTO,
32
  };
33
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc