-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk-coin-apt): addition of test case for apt transaction builder
Ticket: COIN-2258
- Loading branch information
1 parent
6857221
commit ee1de61
Showing
13 changed files
with
756 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import { ITransactionExplanation, TransactionFee } from '@bitgo/sdk-core'; | ||
import { | ||
TransactionExplanation as BaseTransactionExplanation, | ||
TransactionRecipient, | ||
TransactionType as BitGoTransactionType, | ||
} from '@bitgo/sdk-core'; | ||
|
||
export type TransactionExplanation = ITransactionExplanation<TransactionFee>; | ||
export interface AptTransactionExplanation extends BaseTransactionExplanation { | ||
sender?: string; | ||
type?: BitGoTransactionType; | ||
} | ||
|
||
/** | ||
* The transaction data returned from the toJson() function of a transaction | ||
*/ | ||
export interface TxData { | ||
export interface TransferTxData { | ||
id: string; | ||
sender: string; | ||
sequenceNumber: bigint; | ||
maxGasAmount: bigint; | ||
gasUnitPrice: bigint; | ||
expirationTime: bigint; | ||
payload: AptPayload; | ||
chainId: number; | ||
} | ||
|
||
export interface AptPayload { | ||
function: string; | ||
typeArguments: string[]; | ||
arguments: string[]; | ||
type: string; | ||
recipient: TransactionRecipient; | ||
sequenceNumber: number; | ||
maxGasAmount: number; | ||
gasUnitPrice: number; | ||
expirationTime: number; | ||
} |
Oops, something went wrong.