Skip to content

Commit

Permalink
added txExpirationTimestamp in TransactionDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
vpanchal-supra committed Oct 17, 2024
1 parent b5a54a8 commit 7ef0c87
Show file tree
Hide file tree
Showing 28 changed files with 121 additions and 70 deletions.
3 changes: 2 additions & 1 deletion dist/browser/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface TransactionDetail {
gasUnitPrice: number;
gasUsed: number | undefined;
transactionCost: number | undefined;
txExpirationTimestamp: number | undefined;
txConfirmationTime: number | undefined;
status: TransactionStatus;
events: any;
Expand Down Expand Up @@ -233,7 +234,7 @@ declare class SupraClient {
* @returns `TransactionResponse`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array, enableSimulation?: boolean, waitForTransactionCompletion?: boolean): Promise<TransactionResponse>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint | undefined, gasUnitPrice?: bigint | undefined, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand Down
3 changes: 2 additions & 1 deletion dist/browser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface TransactionDetail {
gasUnitPrice: number;
gasUsed: number | undefined;
transactionCost: number | undefined;
txExpirationTimestamp: number | undefined;
txConfirmationTime: number | undefined;
status: TransactionStatus;
events: any;
Expand Down Expand Up @@ -233,7 +234,7 @@ declare class SupraClient {
* @returns `TransactionResponse`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array, enableSimulation?: boolean, waitForTransactionCompletion?: boolean): Promise<TransactionResponse>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint | undefined, gasUnitPrice?: bigint | undefined, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand Down
10 changes: 5 additions & 5 deletions dist/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/browser/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.mjs.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/node/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface TransactionDetail {
gasUnitPrice: number;
gasUsed: number | undefined;
transactionCost: number | undefined;
txExpirationTimestamp: number | undefined;
txConfirmationTime: number | undefined;
status: TransactionStatus;
events: any;
Expand Down Expand Up @@ -233,7 +234,7 @@ declare class SupraClient {
* @returns `TransactionResponse`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array, enableSimulation?: boolean, waitForTransactionCompletion?: boolean): Promise<TransactionResponse>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint | undefined, gasUnitPrice?: bigint | undefined, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand Down
3 changes: 2 additions & 1 deletion dist/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface TransactionDetail {
gasUnitPrice: number;
gasUsed: number | undefined;
transactionCost: number | undefined;
txExpirationTimestamp: number | undefined;
txConfirmationTime: number | undefined;
status: TransactionStatus;
events: any;
Expand Down Expand Up @@ -233,7 +234,7 @@ declare class SupraClient {
* @returns `TransactionResponse`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array, enableSimulation?: boolean, waitForTransactionCompletion?: boolean): Promise<TransactionResponse>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
static createRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint | undefined, gasUnitPrice?: bigint | undefined, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand Down
15 changes: 15 additions & 0 deletions dist/node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/index.js.map

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions dist/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14449,6 +14449,9 @@ var SupraClient = class _SupraClient {
gasUnitPrice: resData.data.header.gas_unit_price,
gasUsed: void 0,
transactionCost: void 0,
txExpirationTimestamp: Number(
resData.data.header.expiration_timestamp.microseconds_since_unix_epoch
),
txConfirmationTime: void 0,
status: resData.data.status,
events: void 0,
Expand All @@ -14469,6 +14472,9 @@ var SupraClient = class _SupraClient {
gasUnitPrice: resData.data.header.gas_unit_price,
gasUsed: (_a = resData.data.output) == null ? void 0 : _a.Move.gas_used,
transactionCost: resData.data.header.gas_unit_price * ((_b = resData.data.output) == null ? void 0 : _b.Move.gas_used),
txExpirationTimestamp: Number(
resData.data.header.expiration_timestamp.microseconds_since_unix_epoch
),
txConfirmationTime: Number(
resData.data.block_header.timestamp.microseconds_since_unix_epoch
),
Expand Down Expand Up @@ -14509,6 +14515,9 @@ var SupraClient = class _SupraClient {
gasUnitPrice: data.header.gas_unit_price,
gasUsed: data.output.Move.gas_used,
transactionCost: data.header.gas_unit_price * data.output.Move.gas_used,
txExpirationTimestamp: Number(
data.header.expiration_timestamp.microseconds_since_unix_epoch
),
txConfirmationTime: Number(
data.block_header.timestamp.microseconds_since_unix_epoch
),
Expand Down Expand Up @@ -14551,6 +14560,9 @@ var SupraClient = class _SupraClient {
gasUnitPrice: data.header.gas_unit_price,
gasUsed: data.output.Move.gas_used,
transactionCost: data.header.gas_unit_price * data.output.Move.gas_used,
txExpirationTimestamp: Number(
data.header.expiration_timestamp.microseconds_since_unix_epoch
),
txConfirmationTime: Number(
data.block_header.timestamp.microseconds_since_unix_epoch
),
Expand Down Expand Up @@ -14610,6 +14622,9 @@ var SupraClient = class _SupraClient {
gasUnitPrice: data.header.gas_unit_price,
gasUsed: data.output.Move.gas_used,
transactionCost: data.header.gas_unit_price * data.output.Move.gas_used,
txExpirationTimestamp: Number(
data.header.expiration_timestamp.microseconds_since_unix_epoch
),
txConfirmationTime: Number(
data.block_header.timestamp.microseconds_since_unix_epoch
),
Expand Down
2 changes: 1 addition & 1 deletion dist/node/index.mjs.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7ef0c87

Please sign in to comment.