@verified-network/verified-sdk 1.8.1 → 1.8.4
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
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,
|
|
@@ -251,9 +251,9 @@ const contractAddress = {
|
|
|
251
251
|
'Rates': '0x127C7ef8D3b60Dd3bE78cDB3b349D1a9cf4368bD',
|
|
252
252
|
'Security': '0x40b8764740149704A09bF7526b82D92E4c0958a9',
|
|
253
253
|
'SecuritiesFactory': '0x68497F1380f29b2C41Ca8Ff1Da3B5a3BD8327d4D',
|
|
254
|
-
'Vitta': '',
|
|
255
|
-
'Liquidity': '',
|
|
256
|
-
'Distribution': '',
|
|
254
|
+
'Vitta': '0x3AB49F974e243895346f6f656f3fF45d1f3Ac49c',
|
|
255
|
+
'Liquidity': '0x6C557434128e98536c7F6487B417D9D74f0Ca9cf',
|
|
256
|
+
'Distribution': '0xc61b02D1D3A764efAd2f8C6C478A479C51dD79Ea',
|
|
257
257
|
'PrimaryIssuePoolFactory': '',
|
|
258
258
|
'BalancerPrimaryIssueManager': '',
|
|
259
259
|
'SecondaryIssuePoolFactory': '',
|
|
@@ -261,7 +261,7 @@ const contractAddress = {
|
|
|
261
261
|
'MarginTradingPoolFactory': '',
|
|
262
262
|
'BalancerMarginIssueManager': '',
|
|
263
263
|
'Custody': '0x5640812D73f0D3d820832BFb53ed6fC4a9383283',
|
|
264
|
-
'Compound': '
|
|
264
|
+
'Compound': '0x146144772fF3fF3124beF9730a4c6F5D15efe931',
|
|
265
265
|
'CASH': {
|
|
266
266
|
'VCUSD': '0x1C751BA898D01789af51A9022b7A6f45836a5d6c',
|
|
267
267
|
'VCEUR': '0xF0736Fa9490C45b5dF5129A461fAA1362795A4c0',
|
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
|
};
|