@verified-network/verified-sdk 0.5.0 → 0.5.1

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.
@@ -137,11 +137,12 @@ class ClientContract extends index_1.VerifiedContract {
137
137
  * @params (address _submanager, bytes32 _country, bytes32 _role)
138
138
  * @returns
139
139
  */
140
- async addRole(_submanager, _country, _role, options) {
140
+ async addRole(_submanager, _country, _role, _id, options) {
141
141
  await this.validateInput(index_1.DATATYPES.ADDRESS, _submanager);
142
142
  await this.validateInput(index_1.DATATYPES.STRING, _country);
143
143
  await this.validateInput(index_1.DATATYPES.STRING, _role);
144
- return this.callContract(FUNCTIONS.ADDROLE, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role), options);
144
+ await this.validateInput(index_1.DATATYPES.STRING, _id);
145
+ return this.callContract(FUNCTIONS.ADDROLE, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), options);
145
146
  }
146
147
  async getManagers(_role, _country, options) {
147
148
  await this.validateInput(index_1.DATATYPES.STRING, _role);
@@ -2,26 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const contractAddress = {
4
4
  'ropsten': {
5
- 'Client': '0xB35379f89d0469c57878f2a48A5Bf9F538b821EF',
6
- 'KYC': '0x7adeDf6D041B8A7f1A3e51e028c42Ef540EC5f26',
7
- 'System': '0xD816C6c666A6e927990d798a84ba23cFfbdb0B27',
8
- 'Holder': '0x8F71B4ceCAC791C36CF1f072f4C076D9dFff5456',
9
- 'Ledger': '0xF1B693fDF884eDC7b0038E7717fE5e6a5d76FEc1',
10
- 'Account': '0x3207B024385eAF1046E83363c6ae02e94F44D502',
5
+ 'Client': '0x4c0cB1cfB353f5387Bce7D2a9D3d8f9710E93dd7',
6
+ 'KYC': '0x4d219Bde2787C57A54749AD88C8448f5ddD453b5',
7
+ 'System': '0x00393538a3FD1872dE705aAD242B666630c89BF6',
8
+ 'Holder': '0x6f34FFb2D85CB5aA0d028b55013bca291AE2738e',
9
+ 'Ledger': '0x8a0125C0995D4428F9D35aDd5e300AbE612aC3d9',
10
+ 'Account': '0x0446A54F9eA6BFE6B9e567c30E93a255b0A3E90e',
11
11
  'Factory': '0x36f49e8e1D3d713B461D4Cd12f961bC9B784dF67',
12
12
  'Cash': '0x93d5C6B832A9c4FEB1d9897D9b1088124c882eE3',
13
13
  'Bond': '0x04dd0A9405B8DE91f92A0ee5F9972a1E898cFd79',
14
14
  'Token': '0x4ef2b7de40058c71f8718D8c3bB93220Ec077305',
15
15
  'Oracle': '0xf11cB9C121490294be1Db534d0162C390935FBf7',
16
- 'PreTrade': '0xFd576bC3236700cD2C459C21A735cDF5501E95E4',
17
- 'Trade': '0x8edF7840cB63D0735942548482Cf264904E74D16',
18
- 'PostTrade': '0x0AB99238CC43C23bae892075C84e5319a1441F65',
19
- 'SecuritiesRegistry': '0xEDC423F653d90a54BC73DC936233521d23f5fAf4',
20
- 'Security': '0xFbf651893a9831539094837D36dB7a7Af7D26b4c',
21
- 'OrderPool': '0x859AE224ef1C0D2595f55b6e831092766C7bDFf5',
22
- 'PoolFactory': '0xFA1Aa3095124dEB60c05B8FAD190A8016aDB59c5',
23
- 'Products': '0xF91691BDA104Ad1F236c934c6d25FbD2f99d220F',
24
- 'Issues': '0x3b20aDc6f6B7c7B7379088c763CC1e65c3bF44Dc',
16
+ 'PreTrade': '0xc2239361eA58d6d3d2BA71cF519A66E47Bb852E5',
17
+ 'Trade': '0x7463E81B06a7B49F89f5D2293aCE7E17EB9E70D9',
18
+ 'PostTrade': '0x50D54Fca76ABDb7d8883cb6D5d6d6cD64aE7ab9F',
19
+ 'SecuritiesRegistry': '0x745C78f4c84CA03d851342E594377079Bd235f5D',
20
+ 'Security': '0xD5e94c19513B998A8432dCE101a94BACA75A1A5c',
21
+ 'OrderPool': '0xb87da4B188D4EbEd1935d3981eF11F0b67DC0659',
22
+ 'PoolFactory': '0x1a124dAF4bD0C8bC482b8Cb34511B672E16cdcDc',
23
+ 'Products': '0x454FAFBA1430bADaaE6f8894aA459145Ae19F479',
24
+ 'Issues': '0xb1f3891D8BC3195716D3D551eB5BABDD4d070352',
25
25
  'BalancerManager': '',
26
26
  'Custody': '0xb6DD33C076fE95ffACC84E048Bda1caa6C304673',
27
27
  'CASH': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",