MCPcopy Create free account
hub / github.com/cardstack/cardstack / executeSplit

Method executeSplit

packages/cardpay-sdk/sdk/prepaid-card/base.ts:601–624  ·  view source on GitHub ↗
(
    prepaidCardAddress: string,
    totalSpendAmount: number,
    issuingTokenAmounts: BN[],
    spendAmounts: number[],
    rate: string,
    signatures: Signature[],
    nonce: string,
    customizationDID = ''
  )

Source from the content-addressed store, hash-verified

599 );
600 }
601 private async executeSplit(
602 prepaidCardAddress: string,
603 totalSpendAmount: number,
604 issuingTokenAmounts: BN[],
605 spendAmounts: number[],
606 rate: string,
607 signatures: Signature[],
608 nonce: string,
609 customizationDID = ''
610 ): Promise<GnosisExecTx> {
611 return await executeSend(
612 this.layer2Web3,
613 prepaidCardAddress,
614 totalSpendAmount,
615 rate,
616 'split',
617 this.layer2Web3.eth.abi.encodeParameters(
618 ['uint256[]', 'uint256[]', 'string'],
619 [issuingTokenAmounts, spendAmounts, customizationDID]
620 ),
621 signatures,
622 nonce
623 );
624 }
625
626 private async executeTransfer(
627 prepaidCardAddress: string,

Callers 1

splitMethod · 0.95

Calls 1

executeSendFunction · 0.90

Tested by

no test coverage detected