Skip to content

Commit

Permalink
Added ms in sec constant
Browse files Browse the repository at this point in the history
  • Loading branch information
vpanchal-supra committed Oct 10, 2024
1 parent b2ec906 commit 3f955f1
Show file tree
Hide file tree
Showing 27 changed files with 89 additions and 77 deletions.
2 changes: 1 addition & 1 deletion dist/browser/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ declare class SupraClient {
private signSupraTransaction;
private getSendTxPayload;
/**
* Send `entry_function_payload` type tx using serialized raw transaction datas
* Send `entry_function_payload` type tx using serialized raw transaction data
* @param senderAccount Sender KeyPair
* @param serializedRawTransaction Serialized raw transaction data
* @returns `TransactionResponse`
Expand Down
2 changes: 1 addition & 1 deletion dist/browser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ declare class SupraClient {
private signSupraTransaction;
private getSendTxPayload;
/**
* Send `entry_function_payload` type tx using serialized raw transaction datas
* Send `entry_function_payload` type tx using serialized raw transaction data
* @param senderAccount Sender KeyPair
* @param serializedRawTransaction Serialized raw transaction data
* @returns `TransactionResponse`
Expand Down
12 changes: 6 additions & 6 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.

12 changes: 6 additions & 6 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.

2 changes: 1 addition & 1 deletion dist/node/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ declare class SupraClient {
private signSupraTransaction;
private getSendTxPayload;
/**
* Send `entry_function_payload` type tx using serialized raw transaction datas
* Send `entry_function_payload` type tx using serialized raw transaction data
* @param senderAccount Sender KeyPair
* @param serializedRawTransaction Serialized raw transaction data
* @returns `TransactionResponse`
Expand Down
2 changes: 1 addition & 1 deletion dist/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ declare class SupraClient {
private signSupraTransaction;
private getSendTxPayload;
/**
* Send `entry_function_payload` type tx using serialized raw transaction datas
* Send `entry_function_payload` type tx using serialized raw transaction data
* @param senderAccount Sender KeyPair
* @param serializedRawTransaction Serialized raw transaction data
* @returns `TransactionResponse`
Expand Down
9 changes: 6 additions & 3 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.

9 changes: 6 additions & 3 deletions dist/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14159,6 +14159,7 @@ var DEFAULT_RECORDS_ITEMS_COUNT = 15;
var DEFAULT_GAS_UNIT_PRICE = BigInt(100);
var DEFAULT_MAX_GAS_UNITS = BigInt(5e5);
var DEFAULT_TX_EXPIRATION_DURATION = 300;
var MILLISECONDS_PER_SECOND = 1e3;

// src/index.ts
import { sha3_256 } from "js-sha3";
Expand Down Expand Up @@ -14733,7 +14734,7 @@ var SupraClient = class _SupraClient {
};
}
/**
* Send `entry_function_payload` type tx using serialized raw transaction datas
* Send `entry_function_payload` type tx using serialized raw transaction data
* @param senderAccount Sender KeyPair
* @param serializedRawTransaction Serialized raw transaction data
* @returns `TransactionResponse`
Expand Down Expand Up @@ -14767,7 +14768,9 @@ var SupraClient = class _SupraClient {
),
maxGas,
gasUnitPrice,
txExpiryTime === void 0 ? BigInt(Math.ceil(Date.now() / 1e3) + DEFAULT_TX_EXPIRATION_DURATION) : txExpiryTime,
txExpiryTime === void 0 ? BigInt(
Math.ceil(Date.now() / MILLISECONDS_PER_SECOND) + DEFAULT_TX_EXPIRATION_DURATION
) : txExpiryTime,
chainId
);
}
Expand Down Expand Up @@ -14800,7 +14803,7 @@ var SupraClient = class _SupraClient {
maxGas,
gasUnitPrice,
txExpiryTime === void 0 ? BigInt(
Math.ceil(Date.now() / 1e3) + DEFAULT_TX_EXPIRATION_DURATION
Math.ceil(Date.now() / MILLISECONDS_PER_SECOND) + DEFAULT_TX_EXPIRATION_DURATION
) : txExpiryTime
)
);
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 3f955f1

Please sign in to comment.