@verified-network/verified-sdk 1.8.1 → 1.8.2
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.js +10 -8
- package/dist/contractAddress/index.js +14 -14
- package/dist/utils/constants.js +23 -5
- package/package.json +1 -1
package/dist/contract/index.js
CHANGED
|
@@ -306,16 +306,18 @@ class VerifiedContract {
|
|
|
306
306
|
const account = await smartAccount.getAccountAddress();
|
|
307
307
|
const signerAddress = await this.signer.getAddress();
|
|
308
308
|
//sanitize arguments to use smartaccount address
|
|
309
|
-
const newArgs = args.map((_arg) => {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
309
|
+
/*const newArgs = args.map((_arg: any) => {
|
|
310
|
+
if (
|
|
311
|
+
typeof _arg === "string" &&
|
|
312
|
+
_arg.toLowerCase() === signerAddress.toLowerCase()
|
|
313
|
+
) {
|
|
314
|
+
_arg = account;
|
|
315
|
+
}
|
|
316
|
+
return _arg;
|
|
317
|
+
});*/
|
|
316
318
|
//construct calldata for function
|
|
317
319
|
let fn = this.contract.populateTransaction[functionName];
|
|
318
|
-
let _res = await fn(...
|
|
320
|
+
let _res = await fn(...args);
|
|
319
321
|
const tx1 = {
|
|
320
322
|
to: this.contract.address,
|
|
321
323
|
data: _res.data,
|
|
@@ -311,12 +311,12 @@ const contractAddress = {
|
|
|
311
311
|
},
|
|
312
312
|
11155111: {
|
|
313
313
|
'Client': '0xeEa4F0C03fAb166Aa20f38A2747469084cB769d0',
|
|
314
|
-
'Factory': '
|
|
315
|
-
'Cash': '
|
|
316
|
-
'Bond': '
|
|
317
|
-
'Token': '
|
|
318
|
-
'Oracle': '
|
|
319
|
-
'Rates': '
|
|
314
|
+
'Factory': '',
|
|
315
|
+
'Cash': '',
|
|
316
|
+
'Bond': '',
|
|
317
|
+
'Token': '',
|
|
318
|
+
'Oracle': '',
|
|
319
|
+
'Rates': '',
|
|
320
320
|
'Security': '0xBe0ffE30eF6C651E12bfA1de4557C7DB0226E6f6',
|
|
321
321
|
'SecuritiesFactory': '0x3279b50c98F3A78b6FAEacaBcC0e4746a4c69760',
|
|
322
322
|
'Vitta': '0x87145164371Ad7851AD3B4D47C9820F95983d8EA',
|
|
@@ -331,16 +331,16 @@ const contractAddress = {
|
|
|
331
331
|
'Custody': '0x7aE9f79067AB4FDc8d41B18f1e6491590ac76f9d',
|
|
332
332
|
'Compound': '0x569cb45EB0836b8595cC4269c4D1e91c8668D266',
|
|
333
333
|
'CASH': {
|
|
334
|
-
'VCUSD': '
|
|
335
|
-
'VCEUR': '
|
|
336
|
-
'VCCHF': '
|
|
337
|
-
'VCINR': '
|
|
334
|
+
'VCUSD': '',
|
|
335
|
+
'VCEUR': '',
|
|
336
|
+
'VCCHF': '',
|
|
337
|
+
'VCINR': ''
|
|
338
338
|
},
|
|
339
339
|
'BOND': {
|
|
340
|
-
'VBUSD': '
|
|
341
|
-
'VBEUR': '
|
|
342
|
-
'VCCHF': '
|
|
343
|
-
'VBINR': '
|
|
340
|
+
'VBUSD': '',
|
|
341
|
+
'VBEUR': '',
|
|
342
|
+
'VCCHF': '',
|
|
343
|
+
'VBINR': ''
|
|
344
344
|
},
|
|
345
345
|
},
|
|
346
346
|
'balancerVault': '0xBA12222222228d8Ba445958a75a0704d566BF2C8'
|
package/dist/utils/constants.js
CHANGED
|
@@ -7,11 +7,11 @@ exports.PaymasterConstants = {
|
|
|
7
7
|
GENERAL_PAYMASTER_URL: "https://paymaster.biconomy.io/api/v1",
|
|
8
8
|
BICONOMY_REVERT_TOPIC: "0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201",
|
|
9
9
|
//ethereum sepolia
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
11155111: {
|
|
11
|
+
PAYMASTER_API_KEY: "BuFP2-5w-.5b3daf3a-d044-4dda-819c-4c4d8431df88",
|
|
12
|
+
BUNDLER_API_KEY: "nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44",
|
|
13
|
+
RPC_URL: "https://rpc.sepolia.org"
|
|
14
|
+
},
|
|
15
15
|
//polgon mainnet
|
|
16
16
|
137: {
|
|
17
17
|
PAYMASTER_API_KEY: "lDHvYk50N.30a2522e-0a9d-444b-b949-19194c1f237a",
|
|
@@ -23,5 +23,23 @@ exports.PaymasterConstants = {
|
|
|
23
23
|
PAYMASTER_API_KEY: "jSBI-WRji.99a4dda1-1c20-42ea-9409-2724f9a0ca7e",
|
|
24
24
|
BUNDLER_API_KEY: "nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44",
|
|
25
25
|
RPC_URL: "https://sepolia.base.org"
|
|
26
|
+
},
|
|
27
|
+
//ethereum mainnet
|
|
28
|
+
1: {
|
|
29
|
+
PAYMASTER_API_KEY: "ap7LOqALI.bf68e672-47ce-40f8-8b62-ea508dcf5852",
|
|
30
|
+
BUNDLER_API_KEY: "dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs",
|
|
31
|
+
RPC_URL: "https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"
|
|
32
|
+
},
|
|
33
|
+
//base mainnet
|
|
34
|
+
8453: {
|
|
35
|
+
PAYMASTER_API_KEY: "glRQsmuYh.5d9372ab-5063-4ecd-ac63-643fef624a73",
|
|
36
|
+
BUNDLER_API_KEY: "dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs",
|
|
37
|
+
RPC_URL: "https://mainnet.base.org"
|
|
38
|
+
},
|
|
39
|
+
//gnosis
|
|
40
|
+
100: {
|
|
41
|
+
PAYMASTER_API_KEY: "eUYghbvi4.317a2d6d-6ee7-4a0c-b91f-43ba2699f65b",
|
|
42
|
+
BUNDLER_API_KEY: "dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs",
|
|
43
|
+
RPC_URL: "https://rpc.gnosischain.com"
|
|
26
44
|
}
|
|
27
45
|
};
|