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

Mintbase / mintbase-js / 7655279827

25 Jan 2024 01:33PM CUT coverage: 76.858%. First build
7655279827

Pull #456

github

rubenmarcus
export wallet types
Pull Request #456: Export wallet types

642 of 995 branches covered (0.0%)

Branch coverage included in aggregate %.

992 of 1131 relevant lines covered (87.71%)

4.23 hits per line

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

70.0
/packages/sdk/src/ftDepositStorage/ftDepositStorage.ts
1
import { GAS_CONSTANTS, FT_STORAGE_DEPOSIT } from '../constants';
1✔
2
import { ERROR_MESSAGES } from '../errorMessages';
1✔
3
import { NearContractCall, FT_METHOD_NAMES, FtDepositStorageArgs, FtDepositStorageArgsResponse } from '../types';
1✔
4

5

6
/**
7
 * Transfers one or more tokens to specified recipients.
8
 * @param transferArguments {@link TransferArgs}
9
 * @returns contract call to be passed to @mintbase-js/sdk execute method
10
 */
11
export const ftDepositStorage = ({
1✔
12
  ftContractAddress,
13
  accountId,
14
}: FtDepositStorageArgs): NearContractCall<FtDepositStorageArgsResponse> => {
15

16
  if (ftContractAddress === null) {
1!
17
    throw new Error(ERROR_MESSAGES.FT_CONTRACT_ADDRESS);
×
18
  }
19

20
  return {
1✔
21
    contractAddress: ftContractAddress,
22
    methodName: FT_METHOD_NAMES.STORAGE_DEPOSIT,
23
    args: accountId ? { account_id: accountId } : null,
1!
24
    deposit: FT_STORAGE_DEPOSIT,
25
    gas: GAS_CONSTANTS.DEFAULT_GAS,
26
  };
27
};
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