@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.
@@ -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
- if (typeof _arg === "string" &&
311
- _arg.toLowerCase() === signerAddress.toLowerCase()) {
312
- _arg = account;
313
- }
314
- return _arg;
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(...newArgs);
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': '0x2C437D88B749F304804d9E9441DA0884c96D8299',
315
- 'Cash': '0x2407B3E99Bb51151d7eBA23106B6b44556187Ca9',
316
- 'Bond': '0x781eFdf885B0fd8A6e0B0DA285cB0B4C4700f9A0',
317
- 'Token': '0x192FDC338C6994a61F98F933E885d323728db365',
318
- 'Oracle': '0x2b087226106D3089975c35AF4B164006B4B231b1',
319
- 'Rates': '0xf5629A8Cd272CF10f8C299bCa0DfBD0Bb67D2C8d',
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': '0x5570Ffa8868Ec35cfb0E360d3d720E0232a64AcF',
335
- 'VCEUR': '0x863c1Eeb0506c18eaA402787e662596a94F31BC1',
336
- 'VCCHF': '0xf75ec06F3605c9Ee97E2b49e4404F70BA1e83D8F',
337
- 'VCINR': '0x9d89236dA07112731e1690fd1554B2c065536653'
334
+ 'VCUSD': '',
335
+ 'VCEUR': '',
336
+ 'VCCHF': '',
337
+ 'VCINR': ''
338
338
  },
339
339
  'BOND': {
340
- 'VBUSD': '0x3ABee586676F885d57D8f896C42a9c8037E6cbD3',
341
- 'VBEUR': '0x7C8D807BbB7EBB3DCF77BcA12F1084FBe63929BA',
342
- 'VCCHF': '0x7ef323fe3991932969E7FF67E4D834F8AFc625dd',
343
- 'VBINR': '0x12EeE3B37edD087A392D429B0C0dB091138f248F'
340
+ 'VBUSD': '',
341
+ 'VBEUR': '',
342
+ 'VCCHF': '',
343
+ 'VBINR': ''
344
344
  },
345
345
  },
346
346
  'balancerVault': '0xBA12222222228d8Ba445958a75a0704d566BF2C8'
@@ -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
- // 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
- // },
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",