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

Mintbase / mintbase-js / 8267422791

13 Mar 2024 03:36PM CUT coverage: 77.076%. First build
8267422791

Pull #490

github

rubenmarcus
add rpc
Pull Request #490: Add rpc env logic to enable rpc selector

878 of 1328 branches covered (66.11%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 3 files covered. (100.0%)

1183 of 1346 relevant lines covered (87.89%)

13.47 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