@verified-network/verified-sdk 2.4.1 → 2.4.3

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.
@@ -639,6 +639,15 @@
639
639
  "name": "Approval",
640
640
  "type": "event"
641
641
  },
642
+ {
643
+ "constant": false,
644
+ "inputs": [],
645
+ "name": "initialize",
646
+ "outputs": [],
647
+ "payable": false,
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
642
651
  {
643
652
  "constant": false,
644
653
  "inputs": [
@@ -698,6 +707,10 @@
698
707
  "name": "payer",
699
708
  "type": "address"
700
709
  },
710
+ {
711
+ "name": "payee",
712
+ "type": "address"
713
+ },
701
714
  {
702
715
  "name": "currency",
703
716
  "type": "bytes32"
@@ -11,7 +11,7 @@ export default class Bond extends VerifiedContract {
11
11
  chainId: number;
12
12
  functionName: string;
13
13
  }>;
14
- requestIssue(_amount: string, _payer: string, _currency: string, _cashContract: string, options?: Options): any;
14
+ requestIssue(_amount: string, _payer: string, _payee: string, _currency: string, _cashContract: string, options?: Options): any;
15
15
  requestPurchase(_amount: string, _payer: string, _currency: string, _cashContract: string, options?: Options): any;
16
16
  requestRedemption(_amount: string, _payer: string, _currency: string, _tokenContract: string, options?: Options): any;
17
17
  getBonds(): any;
@@ -38,12 +38,13 @@ class Bond extends index_1.VerifiedContract {
38
38
  async _getMeeQuote(paymentTokenAddress, functionName, args, apiKey, rpcUrl) {
39
39
  return await this.getQuote(paymentTokenAddress, functionName, args, rpcUrl, apiKey);
40
40
  }
41
- async requestIssue(_amount, _payer, _currency, _cashContract, options) {
41
+ async requestIssue(_amount, _payer, _payee, _currency, _cashContract, options) {
42
42
  await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
43
43
  await this.validateInput(index_1.DATATYPES.ADDRESS, _payer);
44
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _payee);
44
45
  await this.validateInput(index_1.DATATYPES.STRING, _currency);
45
46
  await this.validateInput(index_1.DATATYPES.ADDRESS, _cashContract);
46
- return this.callContract(FUNCTIONS.REQUESTISSUE, _amount, _payer, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _cashContract, options);
47
+ return this.callContract(FUNCTIONS.REQUESTISSUE, _amount, _payer, _payee, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _cashContract, options);
47
48
  }
48
49
  async requestPurchase(_amount, _payer, _currency, _cashContract, options) {
49
50
  await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
@@ -22,7 +22,7 @@ class Compound extends index_1.VerifiedContract {
22
22
  async _getMeeQuote(paymentTokenAddress, functionName, args, apiKey, rpcUrl) {
23
23
  return await this.getQuote(paymentTokenAddress, functionName, args, rpcUrl, apiKey);
24
24
  }
25
- setSigner(_address, options) {
25
+ async setSigner(_address, options) {
26
26
  await this.validateInput(index_1.DATATYPES.ADDRESS, _address);
27
27
  return this.callContract(FUNCTIONS.SETSIGNER, _address, options);
28
28
  }
@@ -311,12 +311,12 @@ const contractAddress = {
311
311
  },
312
312
  11155111: {
313
313
  'Client': '0xB72629Bb4d031F1C755AFfA123AAA28E81EfdA9A',
314
- 'Factory': '0x31b9Fe8f91114d019E5ab28CaC0D9FC4Ce094B66',
315
- 'Cash': '0x4332CAe4A4a41E234589AF265ad05DbF3E4634cA',
316
- 'Bond': '0x776b0Da4d5E9480F299D2abfD07d3298026A3f5E',
317
- 'Token': '0x811a1932bab04BE7301168145cE248024b7696Ff',
318
- 'Oracle': '0x30b11E1999aC70311c6ddD17B7201A508Bb5eB15',
319
- 'Rates': '0xD7A772238ed3Ea78E182eb25D3e9E373E1625E90',
314
+ 'Factory': '0xf4E7c068125F7937FCA1B1ed37ddd69Fc8Be40d2',
315
+ 'Cash': '0x37De0Ffd0B20a73adD5Af2B50831f417F72E6fDa',
316
+ 'Bond': '0x4034B2ea78e22FeE515D21d96E4a15B2a6a2cE2f',
317
+ 'Token': '0xc35FF978c34825902537806b0a713e2E15B99408',
318
+ 'Oracle': '0x1Dfc61E8cf73f19bd485A91eeFA1A656Bc3D8b6f',
319
+ 'Rates': '0xD281789d42B9A8D463F2b999311e0C7C6816741B',
320
320
  'Security': '0xa1c552a33FB9e391d0F50A6407385c55cd22d596',
321
321
  'SecuritiesFactory': '0x7CaB6AA90fD672F6ddBd0B92c0a5428b53ebA414',
322
322
  'Vitta': '0x87145164371Ad7851AD3B4D47C9820F95983d8EA',
@@ -328,19 +328,19 @@ const contractAddress = {
328
328
  'BalancerSecondaryIssueManager': '0xE3e3e9b8c0c292eD3756C7A1037322738de6B7FC',
329
329
  'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
330
330
  'BalancerMarginIssueManager': '0xcC52ce78a8fF2198FBD37D85D1686E7C80604cd3',
331
- 'Custody': '0x30A613eBd1A460E4800395bc0BF6E1B6cE58Eb2c',
332
- 'Compound': '0x7b185DFf748DD922754A636B9c6f7ac5a2f4fE11',
331
+ 'Custody': '0x3B3AD30e32fFef3dD598dd3EfDf6DCC392897786',
332
+ 'Compound': '0x7FEC71327A33d59F293f4Db6dcDc4E6De2d407d6',
333
333
  'CASH': {
334
- 'VCUSD': '0x1352fDe2b7993Ec3dDcC4Ea45C2707b37aD1E041',
335
- 'VCEUR': '0x909A5A034E9E413ffEf3B19A25D63b5f3e72BADF',
336
- 'VCCHF': '0x601E17A86b37aeF2D5Ac2DA56c0987154EA1267F',
337
- 'VCINR': '0xd0B45d2a883F8c045A770A4c9c528Caa106CE28C'
334
+ 'VCUSD': '0x2DDddbE71Ad0ffa4c62B2aEE408c5c4bDdD10A58',
335
+ 'VCEUR': '0x16CBaa075beC8bEe8d4427A0E0077cE9C7c7018F',
336
+ 'VCCHF': '0xcd39d935Bab9C0EF0667c290427F5BdC6181F3ec',
337
+ 'VCINR': '0xf9139959C6b543E10ce26340CCf5845c73d83117'
338
338
  },
339
339
  'BOND': {
340
- 'VBUSD': '0xBf3560569045f46fEa40B79386E165d575F3e03c',
341
- 'VBEUR': '0xC6ddFb54A66B89AEE098228EBC70aCF06D196885',
342
- 'VBCHF': '0xd41aa78a4c81A52f775eFA9c81Fcae7A7807Ed0C',
343
- 'VBINR': '0x91c844b24409687484a32C77641cB2a37EDB87cF'
340
+ 'VBUSD': '0xDEdB5B413a14e24Dc484221F8858f7a5b76294D0',
341
+ 'VBEUR': '0x08c06611197E7f8162eDE48647eA8Cc913667556',
342
+ 'VBCHF': '0x69036Bd8d4f7ff96A7Fe2098c6f12bf005eCba47',
343
+ 'VBINR': '0x9381d9fba4ac1115e25E924D9bFa7c51179dea25'
344
344
  },
345
345
  },
346
346
  'balancerVault': '0xBA12222222228d8Ba445958a75a0704d566BF2C8'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",