@verified-network/verified-sdk 1.8.0 → 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,
@@ -138,22 +138,22 @@ const contractAddress = {
138
138
  },
139
139
  },
140
140
  1: {
141
- 'Client': '',
141
+ 'Client': '0x2f8cF8F87a200f7803975c4e5496Ac2F471AbECB',
142
142
  'Factory': '',
143
143
  'Cash': '',
144
144
  'Bond': '',
145
145
  'Token': '',
146
146
  'Oracle': '',
147
147
  'Rates': '',
148
- 'Security': '',
149
- 'SecuritiesFactory': '',
150
- 'Vitta': '',
151
- 'Liquidity': '',
152
- 'Distribution': '',
148
+ 'Security': '0x0d062A0064b762ed8AEe7DE9E79b532e6215c77a',
149
+ 'SecuritiesFactory': '0xEeDDB589f8EA16f1bCFA1F54F9A20389Ee815884',
150
+ 'Vitta': '0x1aF6015fBc9E20ad48EEAC363249B8B0b4aAa929',
151
+ 'Liquidity': '0x80F3EFa6abd34ad123e5064C4F42c4aC84d25b84',
152
+ 'Distribution': '0xd5f976F6C2339203A72b87B5bfb9b22d278cF5cE',
153
153
  'PrimaryIssuePoolFactory': '0xBD5A0178C276d1553Eb388AdA03F6Cb79Eb6F67D',
154
- 'BalancerPrimaryIssueManager': '',
155
- 'SecondaryIssuePoolFactory': '0xdd9b8B18A5b3418E805B8B81200727387b121DE3',
156
- 'BalancerSecondaryIssueManager': '',
154
+ 'BalancerPrimaryIssueManager': '0x385C84e3012BB0221Fcf2D666B854BAA0969F021',
155
+ 'SecondaryIssuePoolFactory': '0x0332299005D0331d6623DB3B7AfC5478222b5621',
156
+ 'BalancerSecondaryIssueManager': '0xeE261Ef7b60D0eBBc682dFaA8d8b87ff65FC955e',
157
157
  'MarginTradingPoolFactory': '0x1B95D408DE85e07d0De5d5b545202E32a023772E',
158
158
  'BalancerMarginIssueManager': '',
159
159
  'Custody': '',
@@ -220,9 +220,9 @@ const contractAddress = {
220
220
  'Liquidity': '0x5d85E0aDBa6E9E388D0641D7C8d925756316e99D',
221
221
  'Distribution': '0x3C0Da71292F095182b06e2f3c1527E2DF6aEa583',
222
222
  'PrimaryIssuePoolFactory': '0x73465Be532Aa390728D3Bb75D0b16F936Cd56bBE',
223
- 'BalancerPrimaryIssueManager': '',
224
- 'SecondaryIssuePoolFactory': '0x5b8bc9986A44c1814603Ba7C66C5e2eC332262c5',
225
- 'BalancerSecondaryIssueManager': '0x532629896968b80386998865202ed36178eE6e01',
223
+ 'BalancerPrimaryIssueManager': '0xa4b9F21B92A7630a628C2B9EFbA1c844fCE7306E',
224
+ 'SecondaryIssuePoolFactory': '0xFd2Ef4b1c0AA3cd9A52264a23d244c21ba8572C6',
225
+ 'BalancerSecondaryIssueManager': '0xfaC72D7080aB10Edd5BFf6325117710dBAAc7174',
226
226
  'MarginTradingPoolFactory': '0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C',
227
227
  'BalancerMarginIssueManager': '',
228
228
  'Custody': '',
@@ -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',
@@ -329,18 +329,18 @@ const contractAddress = {
329
329
  'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
330
330
  'BalancerMarginIssueManager': '0x5592FAE805138ea75c67363eD9609E6529d1Ed9A',
331
331
  'Custody': '0x7aE9f79067AB4FDc8d41B18f1e6491590ac76f9d',
332
- 'Compound': '',
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.0",
3
+ "version": "1.8.2",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",