Skip to content

Commit 4ae6e32

Browse files
committed
feat(sdk-coin-apt): transaction builder
TICKET: COIN-2258
1 parent 6bcb1c6 commit 4ae6e32

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1+
import {
2+
TransactionExplanation as BaseTransactionExplanation,
3+
TransactionType as BitGoTransactionType,
4+
} from '@bitgo/sdk-core';
5+
6+
export enum AptTransactionType {
7+
Transfer = 'Transfer',
8+
TokenTransfer = 'TokenTransfer',
9+
}
10+
11+
export interface TransactionExplanation extends BaseTransactionExplanation {
12+
type: BitGoTransactionType;
13+
}
14+
115
/**
216
* The transaction data returned from the toJson() function of a transaction
317
*/
418
export interface TxData {
519
id: string;
20+
sender: string;
21+
sequenceNumber: BigInt;
22+
maxGasAmount: BigInt;
23+
gasUnitPrice: BigInt;
24+
expirationTime: BigInt;
25+
payload: AptPayload;
26+
chainId: number;
27+
}
28+
29+
export interface AptPayload {
30+
function: string;
31+
typeArguments: string[];
32+
arguments: string[];
33+
type: string;
634
}

0 commit comments

Comments
 (0)