@verified-network/verified-sdk 2.7.7 → 2.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract/index.d.ts +7 -13
- package/dist/contract/index.js +84 -513
- package/dist/contractAddress/index.js +2 -2
- package/dist/lib/biconomyRNFix.d.ts +18 -18
- package/dist/lib/biconomyRNFix.js +104 -80
- package/dist/utils/constants.js +1 -6
- package/package.json +2 -5
- package/tsconfig.json +3 -3
package/dist/contract/index.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ export declare class VerifiedContract {
|
|
|
32
32
|
private signer;
|
|
33
33
|
private contract;
|
|
34
34
|
private abiInterface;
|
|
35
|
-
private abiRaw;
|
|
36
35
|
constructor(address: string, abi: string, signer: VerifiedWallet | Signer);
|
|
37
36
|
protected validateInput(type: DATATYPES, data: any): Promise<boolean>;
|
|
38
37
|
protected sanitiseInput(type: DATATYPES, data: any): any;
|
|
@@ -52,22 +51,17 @@ export declare class VerifiedContract {
|
|
|
52
51
|
/** Converts any datatype to array */
|
|
53
52
|
private convertToArray;
|
|
54
53
|
/** Checks if a contract support gasless transaction */
|
|
55
|
-
supportsGasless(chainId
|
|
56
|
-
/** Creates Biconomy smart account */
|
|
57
|
-
createSmartAccount(chainId: number): Promise<import("@biconomy/account").BiconomySmartAccountV2>;
|
|
58
|
-
fetchUserOpReceipt(userOpHash: string): Promise<any>;
|
|
54
|
+
supportsGasless(chainId?: number): boolean;
|
|
59
55
|
/** Constructs and call function with ethers.js */
|
|
60
56
|
callFunctionWithEthers(functionName: string, ...args: any): Promise<SCResponse>;
|
|
61
|
-
/** Constructs and call function
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
callFunctionWithMEEClient(nexusAccount: any, chainId: number, rpc: string, tx: any, functionName: string, paymentToken: `0x${string}`, isSponsor?: boolean, signerPk?: string, _apiKey?: string, ...args: any): Promise<SCResponse>;
|
|
65
|
-
callContract(functionName: string, ...args: any): Promise<SCResponse>;
|
|
57
|
+
/** Constructs and call function using Alchemy client that allows gassless sponsorship and payment in ERC20 tokens */
|
|
58
|
+
callFunctionWithAlchemyClient(chainId: number, tx: any, functionName: string, paymentToken: `0x${string}`, pk: string, isSponsor?: boolean, ...args: any): Promise<SCResponse>;
|
|
59
|
+
callContract(functionName: string, ...args: any): Promise<SCResponse | undefined>;
|
|
66
60
|
getQuote(paymentTokenAddress: string, functionName: string, args: any[], rpc?: string, _apiKey?: string, isReactNative?: boolean): Promise<{
|
|
67
61
|
tokenAddress: string;
|
|
68
|
-
amount:
|
|
69
|
-
amountInWei:
|
|
70
|
-
amountValue:
|
|
62
|
+
amount: any;
|
|
63
|
+
amountInWei: any;
|
|
64
|
+
amountValue: any;
|
|
71
65
|
chainId: number;
|
|
72
66
|
functionName: string;
|
|
73
67
|
amouuntValue?: undefined;
|