@verified-network/verified-sdk 0.8.9 → 0.9.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.
@@ -14,9 +14,10 @@ var FUNCTIONS;
14
14
  FUNCTIONS["GETTOKEN"] = "getToken";
15
15
  FUNCTIONS["GETNAMEANDTYPE"] = "getNameAndType";
16
16
  FUNCTIONS["SETSIGNER"] = "setSigner";
17
- FUNCTIONS["ADDBALANCE"] = "addToBalance";
17
+ FUNCTIONS["ADDBALANCE"] = "addBalance";
18
18
  FUNCTIONS["ISSUESECURITY"] = "issueSecurity";
19
19
  FUNCTIONS["SECURITIESADDED"] = "securitiesAdded";
20
+ FUNCTIONS["GETSECURITYTOKEN"] = "getSecurityToken";
20
21
  })(FUNCTIONS || (FUNCTIONS = {}));
21
22
  class VerifiedFactory extends index_1.VerifiedContract {
22
23
  constructor(signer) {
@@ -105,6 +106,11 @@ class VerifiedFactory extends index_1.VerifiedContract {
105
106
  await this.validateInput(index_1.DATATYPES.ADDRESS, _issuer);
106
107
  return this.callContract(FUNCTIONS.ISSUESECURITY, _security, this.sanitiseInput(index_1.DATATYPES.BYTE32, _company), this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _issuer, _hashedMessage, _v, _r, _s, options);
107
108
  }
109
+ async getSecurityToken(security, issuer, options) {
110
+ await this.validateInput(index_1.DATATYPES.ADDRESS, security);
111
+ await this.validateInput(index_1.DATATYPES.ADDRESS, issuer);
112
+ return this.callContract(FUNCTIONS.GETSECURITYTOKEN, security, issuer, options);
113
+ }
108
114
  async addBalance(_security, _transferor, _transferee, _amount, _hashedMessage, _v, _r, _s, options) {
109
115
  await this.validateInput(index_1.DATATYPES.ADDRESS, _security);
110
116
  await this.validateInput(index_1.DATATYPES.ADDRESS, _transferor);
@@ -1,42 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const contractAddress = {
4
- 'L1-rinkeby': {
5
- 'Client': '0xA0893b7bafC5773c088Bf11E323f8C4F03759929',
4
+ 'L1-goerli': {
5
+ 'Client': '0x09129c81E9F67B1D186719F16f1e2Fd4DC7CC5A4',
6
6
  'KYC': '',
7
7
  'System': '',
8
8
  'Holder': '',
9
9
  'Ledger': '',
10
10
  'Account': '',
11
- 'Factory': '0x52E88bced2F214cb6DC27B4c9b5D2026CA9A5C91',
12
- 'Cash': '0xe94E5c776b67f895dB02b0841365115Dc1847733',
13
- 'Bond': '0xEA503c36561564f0AA2745677e7835722168e634',
11
+ 'Factory': '0x4e5f5b34d8E381da1f121f558Eda0004251ADeCa',
12
+ 'Cash': '0x3724D9e0b8b229994811704f1764e90DfF31937C',
13
+ 'Bond': '0xA4670cf406e8d43cF52605441e875a7cCe6240C6',
14
14
  'Token': '',
15
15
  'Oracle': '',
16
- 'Rates': '0x9f9D43B1231ba641EAAf1ca2982b9b9E39884538',
16
+ 'Rates': '0x9D90693dc06236d934Dafc8c5D339A3798afabff',
17
17
  'PreTrade': '',
18
18
  'Trade': '',
19
19
  'PostTrade': '',
20
20
  'SecuritiesRegistry': '',
21
- 'Security': '0x59c03C48407641648D673e483d40c8a9A3552DFc',
21
+ 'Security': '0x2118C679fE21f808bB2159793eC7e5c009aB5919',
22
22
  'OrderPool': '',
23
23
  'PoolFactory': '',
24
24
  'Stocks': '',
25
25
  'Bonds': '',
26
- 'Liquidity': '0x06b40A1471d715FD0581854F22166283D89b0302',
27
- 'Distribution': '0x7aE7fe788D1f14B22a7f6C3707320FbE3A51968b',
28
- 'BalancerPrimaryIssueManager': '0xc4FC6e44AC4bB67eC08FFF6ce47BB44E9BE038e8',
29
- 'BalancerSecondaryIssueManager': '0x8099A9C79672BDDD0506364f4B0791A2384a960B',
30
- 'Custody': '0x8357FB36fFA9dcE78A43Fb33DbFFAAB2738E5B1a',
26
+ 'Liquidity': '0x358643DA31fdE65b15839EeC0C72f3dacD07EBeD',
27
+ 'Distribution': '0xa1eFf77E3B8f8FC55675048731d509cacF40F757',
28
+ 'BalancerPrimaryIssueManager': '0xFc8E2ca7757BA61dDF6fcb63eD7f33C1a14a2204',
29
+ 'BalancerSecondaryIssueManager': '0xC5908dC7FBAe5c89795a2b6125db91a2B63b8cDb',
30
+ 'Custody': '0xF6ebB33E758eC36A2D3065F4633131DFF8307A07',
31
31
  'CASH': {
32
- 'VCUSD': '0x0817a43DB9b3e562FF70C1aa6e27E109324ca16A',
33
- 'VCEUR': '0xF0B677058BbBA3066B644034054447412D5EB40d',
34
- 'VCINR': '0x0D3d2e2Be0902Ebe5fD7E75dD57B127203Fc9e78'
32
+ 'VCUSD': '0xfbc7fB0615099D91eb6E0C1527141CC6589e9fe7',
33
+ 'VCEUR': '0x2BAed66972676641Dd77fbA36dAa4127dB7A0672',
34
+ 'VCINR': '0xFb9b475380aFFb10aC823Df42102e199c34b0Ceb'
35
35
  },
36
36
  'BOND': {
37
- 'VBUSD': '0xD1fB140A486BFCec3744E4aE2b9B7c84989ae937',
38
- 'VBEUR': '0xA719C7365F5a20Ef694409B0fF0084127919b019',
39
- 'VBINR': '0xD8A84301df4138c48Fdb1b6C7c96980983200835'
37
+ 'VBUSD': '0x0EBe5744F1b72C1875eCA2e02482Fc206De26A35',
38
+ 'VBEUR': '0xD3daCD382E2A55F9207855D33f8b184a80f7c634',
39
+ 'VBINR': '0xf56ba7bC1749697D959983496669a44b301eFE46'
40
40
  },
41
41
  },
42
42
  'L2-goerli': {
@@ -52,16 +52,16 @@ const contractAddress = {
52
52
  'Token': '0xD2694C9554841c335780584b418AcA8DBE54d96E',
53
53
  'Oracle': '0x1B1671115C9A99569cfFA59D4a2CaA0a0CC69cC1',
54
54
  'Rates': '0x11B7b534bDffc8A63665b14BF1DC4b863746f7a4',
55
- 'PreTrade': '0x4Dd5d65BA92b09eaa762Ca81e6D59cd6B173e18A',
56
- 'Trade': '0xD2C2BD4ACd7C134262129E6119DBa4d6b84Db808',
57
- 'PostTrade': '0xA7a6190ad738332543D9B2287c778157F3B92D52',
58
- 'SecuritiesRegistry': '0x85Eaa78961b913372118D53ee53Eb99Be7c4E7a8',
59
- 'Security': '0x324dfB528BEea8419eC96C6a54E0DA7744A4f8da',
60
- 'OrderPool': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
61
- 'PoolFactory': '0xEE713f9e7d7D03267534C2628019C16dC1c41ecB',
62
- 'Products': '0xFfa36c902BC8Ce8B4A413B90e4BEdC0C01Caa2e6',
63
- 'Stocks': '0x60bc622E02424ACDD415373B6Dd40870d077faa4',
64
- 'Bonds': '0xa4C1b21F2B4d121d3159953c8Bda5b248CC35353',
55
+ 'PreTrade': '0x1bde40708A80D41390cd2097fF1C787a4E70827d',
56
+ 'Trade': '0x103aE267406f545CABD5b711D29EAeF3FE2cf93b',
57
+ 'PostTrade': '0x076C72796885345a96919DB683a76234B48a63bF',
58
+ 'SecuritiesRegistry': '0x4Cee41ea3c9AD664449cC47f4f3cb0D99140F57A',
59
+ 'Security': '0x346A38af25f5ae61A571DFC2431d84f1D3D0Ef6e',
60
+ 'OrderPool': '0x32e1D25C0ffb5AcfCc1d3392aaAB332157D1C0cc',
61
+ 'PoolFactory': '0x6Ea7c61a85E6e07711C15Eb7B3E74f7844c1c7b9',
62
+ 'Products': '0x8f60B2df5803A9cAAC202140825Ad3be158bDb96',
63
+ 'Stocks': '0x7338E7a7A5da4ED7CfA48cb49329E8234a5c2870',
64
+ 'Bonds': '0x4DFE3441A4916efACe1Ad4530Ef9A42864134d1B',
65
65
  'Liquidity': '',
66
66
  'Distribution': '',
67
67
  'BalancerManager': '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "0.8.9",
3
+ "version": "0.9.2",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",