Skip to content

Commit

Permalink
Merge pull request #10 from Entropy-Foundation/issues-9
Browse files Browse the repository at this point in the history
fixes issue-9
  • Loading branch information
vpanchal-supra authored Oct 10, 2024
2 parents d2abd9d + 3f955f1 commit 127750d
Show file tree
Hide file tree
Showing 28 changed files with 176 additions and 138 deletions.
8 changes: 3 additions & 5 deletions dist/browser/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ interface FaucetRequestResponse {
declare class SupraClient {
supraNodeURL: string;
chainId: TxnBuilderTypes.ChainId;
maxRetryForTransactionCompletion: number;
delayBetweenPoolingRequest: number;
constructor(url: string, chainId?: number);
/**
* Creates and initializes `SupraClient` instance
Expand Down Expand Up @@ -226,13 +224,13 @@ 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`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array): 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): 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, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand All @@ -248,7 +246,7 @@ declare class SupraClient {
* @param txExpiryTime Expiry time for transaction
* @returns Serialized raw transaction object
*/
static createSerializedRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint): Promise<Uint8Array>;
static createSerializedRawTxObject(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<Uint8Array>;
/**
* Transfer supra coin
* @param senderAccount Sender KeyPair
Expand Down
8 changes: 3 additions & 5 deletions dist/browser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ interface FaucetRequestResponse {
declare class SupraClient {
supraNodeURL: string;
chainId: TxnBuilderTypes.ChainId;
maxRetryForTransactionCompletion: number;
delayBetweenPoolingRequest: number;
constructor(url: string, chainId?: number);
/**
* Creates and initializes `SupraClient` instance
Expand Down Expand Up @@ -226,13 +224,13 @@ 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`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array): 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): 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, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand All @@ -248,7 +246,7 @@ declare class SupraClient {
* @param txExpiryTime Expiry time for transaction
* @returns Serialized raw transaction object
*/
static createSerializedRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint): Promise<Uint8Array>;
static createSerializedRawTxObject(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<Uint8Array>;
/**
* Transfer supra coin
* @param senderAccount Sender KeyPair
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.

8 changes: 3 additions & 5 deletions dist/node/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ interface FaucetRequestResponse {
declare class SupraClient {
supraNodeURL: string;
chainId: TxnBuilderTypes.ChainId;
maxRetryForTransactionCompletion: number;
delayBetweenPoolingRequest: number;
constructor(url: string, chainId?: number);
/**
* Creates and initializes `SupraClient` instance
Expand Down Expand Up @@ -226,13 +224,13 @@ 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`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array): 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): 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, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand All @@ -248,7 +246,7 @@ declare class SupraClient {
* @param txExpiryTime Expiry time for transaction
* @returns Serialized raw transaction object
*/
static createSerializedRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint): Promise<Uint8Array>;
static createSerializedRawTxObject(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<Uint8Array>;
/**
* Transfer supra coin
* @param senderAccount Sender KeyPair
Expand Down
8 changes: 3 additions & 5 deletions dist/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ interface FaucetRequestResponse {
declare class SupraClient {
supraNodeURL: string;
chainId: TxnBuilderTypes.ChainId;
maxRetryForTransactionCompletion: number;
delayBetweenPoolingRequest: number;
constructor(url: string, chainId?: number);
/**
* Creates and initializes `SupraClient` instance
Expand Down Expand Up @@ -226,13 +224,13 @@ 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`
*/
sendTxUsingSerializedRawTransaction(senderAccount: AptosAccount, serializedRawTransaction: Uint8Array): 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): 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, gasUnitPrice?: bigint, txExpiryTime?: bigint | undefined): Promise<TxnBuilderTypes.RawTransaction>;
/**
* Create serialized raw transaction object for `entry_function_payload` type tx
* @param senderAddr Sender account address
Expand All @@ -248,7 +246,7 @@ declare class SupraClient {
* @param txExpiryTime Expiry time for transaction
* @returns Serialized raw transaction object
*/
static createSerializedRawTxObject(senderAddr: HexString, senderSequenceNumber: bigint, moduleAddr: string, moduleName: string, functionName: string, functionTypeArgs: TxnBuilderTypes.TypeTag[], functionArgs: Uint8Array[], chainId: TxnBuilderTypes.ChainId, maxGas?: bigint, gasUnitPrice?: bigint, txExpiryTime?: bigint): Promise<Uint8Array>;
static createSerializedRawTxObject(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<Uint8Array>;
/**
* Transfer supra coin
* @param senderAccount Sender KeyPair
Expand Down
39 changes: 25 additions & 14 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.

Loading

0 comments on commit 127750d

Please sign in to comment.