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

Mintbase / mintbase-js / 8248010394

12 Mar 2024 11:27AM CUT coverage: 76.955%. First build
8248010394

push

github

SurgeCode
lock

860 of 1307 branches covered (65.8%)

Branch coverage included in aggregate %.

1177 of 1340 relevant lines covered (87.84%)

13.24 hits per line

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

63.64
/packages/sdk/src/ftDepositStorage/ftDepositStorage.ts
1
import { GAS_CONSTANTS, FT_STORAGE_DEPOSIT } from '../constants';
3✔
2
import { ERROR_MESSAGES } from '../errorMessages';
3✔
3
import { NearContractCall, FT_METHOD_NAMES, FtDepositStorageArgs, FtDepositStorageArgsResponse } from '../types';
3✔
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 = ({
3✔
12
  ftContractAddress,
13
  accountId,
14
}: FtDepositStorageArgs): NearContractCall<FtDepositStorageArgsResponse> => {
15

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

20
  return {
3✔
21
    contractAddress: ftContractAddress,
22
    methodName: FT_METHOD_NAMES.STORAGE_DEPOSIT,
23
    args: accountId ? { account_id: accountId } : null,
2!
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