@verified-network/verified-sdk 2.7.6 → 2.7.8

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.
@@ -11,6 +11,28 @@
11
11
  "name": "NotInitializing",
12
12
  "type": "error"
13
13
  },
14
+ {
15
+ "inputs": [
16
+ {
17
+ "internalType": "address",
18
+ "name": "owner",
19
+ "type": "address"
20
+ }
21
+ ],
22
+ "name": "OwnableInvalidOwner",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "address",
29
+ "name": "account",
30
+ "type": "address"
31
+ }
32
+ ],
33
+ "name": "OwnableUnauthorizedAccount",
34
+ "type": "error"
35
+ },
14
36
  {
15
37
  "anonymous": false,
16
38
  "inputs": [
@@ -24,13 +46,85 @@
24
46
  "name": "Initialized",
25
47
  "type": "event"
26
48
  },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "previousOwner",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "indexed": true,
60
+ "internalType": "address",
61
+ "name": "newOwner",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "OwnershipTransferred",
66
+ "type": "event"
67
+ },
27
68
  {
28
69
  "inputs": [],
70
+ "name": "owner",
71
+ "outputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "stateMutability": "view",
79
+ "type": "function",
80
+ "constant": true
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "renounceOwnership",
85
+ "outputs": [],
86
+ "stateMutability": "nonpayable",
87
+ "type": "function"
88
+ },
89
+ {
90
+ "inputs": [
91
+ {
92
+ "internalType": "address",
93
+ "name": "newOwner",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "transferOwnership",
98
+ "outputs": [],
99
+ "stateMutability": "nonpayable",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "_owner",
107
+ "type": "address"
108
+ }
109
+ ],
29
110
  "name": "initialize",
30
111
  "outputs": [],
31
112
  "stateMutability": "nonpayable",
32
113
  "type": "function"
33
114
  },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "address",
119
+ "name": "newOwner",
120
+ "type": "address"
121
+ }
122
+ ],
123
+ "name": "setOwner",
124
+ "outputs": [],
125
+ "stateMutability": "nonpayable",
126
+ "type": "function"
127
+ },
34
128
  {
35
129
  "inputs": [
36
130
  {
@@ -100,6 +194,19 @@
100
194
  "stateMutability": "nonpayable",
101
195
  "type": "function"
102
196
  },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "address",
201
+ "name": "_distributor",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "name": "setDistributor",
206
+ "outputs": [],
207
+ "stateMutability": "nonpayable",
208
+ "type": "function"
209
+ },
103
210
  {
104
211
  "inputs": [],
105
212
  "name": "getFeeToSetter",
@@ -127,6 +234,20 @@
127
234
  "stateMutability": "view",
128
235
  "type": "function",
129
236
  "constant": true
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "getDistributor",
241
+ "outputs": [
242
+ {
243
+ "internalType": "address",
244
+ "name": "",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function",
250
+ "constant": true
130
251
  }
131
252
  ]
132
253
  }
@@ -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: number): boolean;
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 as userop for biconomy gassless(sponsored/erc20 mode) */
62
- callFunctionAsUserOp(smartAccount: any, tx: any, functionName: string, paymentToken: string, ...args: any): Promise<SCResponse>;
63
- /** Constructs and call function using MEE client that allows gas payment in ERC20 tokens */
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: string;
69
- amountInWei: string;
70
- amountValue: string;
62
+ amount: any;
63
+ amountInWei: any;
64
+ amountValue: any;
71
65
  chainId: number;
72
66
  functionName: string;
73
67
  amouuntValue?: undefined;