@verified-network/verified-sdk 2.6.0 → 2.6.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.
|
@@ -228,22 +228,6 @@
|
|
|
228
228
|
{
|
|
229
229
|
"name": "_id",
|
|
230
230
|
"type": "bytes32"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "_hashedMessage",
|
|
234
|
-
"type": "bytes32"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"name": "_v",
|
|
238
|
-
"type": "uint8"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"name": "_r",
|
|
242
|
-
"type": "bytes32"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"name": "_s",
|
|
246
|
-
"type": "bytes32"
|
|
247
231
|
}
|
|
248
232
|
],
|
|
249
233
|
"name": "addRole",
|
|
@@ -297,22 +281,6 @@
|
|
|
297
281
|
{
|
|
298
282
|
"name": "_role",
|
|
299
283
|
"type": "bytes32"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"name": "_hashedMessage",
|
|
303
|
-
"type": "bytes32"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "_v",
|
|
307
|
-
"type": "uint8"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"name": "_r",
|
|
311
|
-
"type": "bytes32"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "_s",
|
|
315
|
-
"type": "bytes32"
|
|
316
284
|
}
|
|
317
285
|
],
|
|
318
286
|
"name": "removeRole",
|
|
@@ -524,6 +492,38 @@
|
|
|
524
492
|
"stateMutability": "view",
|
|
525
493
|
"type": "function"
|
|
526
494
|
},
|
|
495
|
+
{
|
|
496
|
+
"constant": false,
|
|
497
|
+
"inputs": [
|
|
498
|
+
{
|
|
499
|
+
"name": "_user",
|
|
500
|
+
"type": "address"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"name": "unassignManagerFromUser",
|
|
504
|
+
"outputs": [],
|
|
505
|
+
"payable": false,
|
|
506
|
+
"stateMutability": "nonpayable",
|
|
507
|
+
"type": "function"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"constant": false,
|
|
511
|
+
"inputs": [
|
|
512
|
+
{
|
|
513
|
+
"name": "_submanager",
|
|
514
|
+
"type": "address"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "_user",
|
|
518
|
+
"type": "address"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"name": "assignManagerToUser",
|
|
522
|
+
"outputs": [],
|
|
523
|
+
"payable": false,
|
|
524
|
+
"stateMutability": "nonpayable",
|
|
525
|
+
"type": "function"
|
|
526
|
+
},
|
|
527
527
|
{
|
|
528
528
|
"constant": true,
|
|
529
529
|
"inputs": [
|
|
@@ -23,13 +23,13 @@ export default class Client extends VerifiedContract {
|
|
|
23
23
|
* @params (address _submanager, bytes32 _country, bytes32 _role)
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
removeRole(_manager: string, _submanager: string, _country: string, _role: string,
|
|
26
|
+
removeRole(_manager: string, _submanager: string, _country: string, _role: string, options?: Options): any;
|
|
27
27
|
/**
|
|
28
28
|
* Create role for sub-manager [callable only by manager
|
|
29
29
|
* @params (address _submanager, bytes32 _country, bytes32 _role)
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
addRole(_manager: string, _submanager: string, _country: string, _role: string, _id: string,
|
|
32
|
+
addRole(_manager: string, _submanager: string, _country: string, _role: string, _id: string, options?: Options): any;
|
|
33
33
|
KycUpdate(client: string, name: string, surname: string, country: string, contact: string, status: string, options?: Options): any;
|
|
34
34
|
fullKycUpdate(client: string, identity: string, videokyc: string, docs: string, options?: Options): any;
|
|
35
35
|
getClientKYC(_client: string, options?: Options): any;
|
|
@@ -53,25 +53,25 @@ class Client extends index_1.VerifiedContract {
|
|
|
53
53
|
* @params (address _submanager, bytes32 _country, bytes32 _role)
|
|
54
54
|
* @returns
|
|
55
55
|
*/
|
|
56
|
-
async removeRole(_manager, _submanager, _country, _role,
|
|
56
|
+
async removeRole(_manager, _submanager, _country, _role, options) {
|
|
57
57
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _manager);
|
|
58
58
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _submanager);
|
|
59
59
|
await this.validateInput(index_1.DATATYPES.STRING, _country);
|
|
60
60
|
await this.validateInput(index_1.DATATYPES.STRING, _role);
|
|
61
|
-
return this.callContract(FUNCTIONS.REMOVEROLE, _manager, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role),
|
|
61
|
+
return this.callContract(FUNCTIONS.REMOVEROLE, _manager, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role), options);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Create role for sub-manager [callable only by manager
|
|
65
65
|
* @params (address _submanager, bytes32 _country, bytes32 _role)
|
|
66
66
|
* @returns
|
|
67
67
|
*/
|
|
68
|
-
async addRole(_manager, _submanager, _country, _role, _id,
|
|
68
|
+
async addRole(_manager, _submanager, _country, _role, _id, options) {
|
|
69
69
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _manager);
|
|
70
70
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _submanager);
|
|
71
71
|
await this.validateInput(index_1.DATATYPES.STRING, _country);
|
|
72
72
|
await this.validateInput(index_1.DATATYPES.STRING, _role);
|
|
73
73
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
74
|
-
return this.callContract(FUNCTIONS.ADDROLE, _manager, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id),
|
|
74
|
+
return this.callContract(FUNCTIONS.ADDROLE, _manager, _submanager, this.sanitiseInput(index_1.DATATYPES.BYTE32, _country), this.sanitiseInput(index_1.DATATYPES.BYTE32, _role), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), options);
|
|
75
75
|
}
|
|
76
76
|
async KycUpdate(client, name, surname, country, contact, status, options) {
|
|
77
77
|
await this.validateInput(index_1.DATATYPES.ADDRESS, client);
|
|
@@ -310,24 +310,24 @@ const contractAddress = {
|
|
|
310
310
|
},
|
|
311
311
|
},
|
|
312
312
|
11155111: {
|
|
313
|
-
Client: "
|
|
313
|
+
Client: "0x20346E44d8600Ad5e2cad81E9c2c559B0C6511c9",
|
|
314
314
|
Factory: "0x01245b4498753D18684c6016949314b36c5Ad1d7",
|
|
315
315
|
Cash: "0x558D45c2c8C56fef7b27740c8cDE82661e03595E",
|
|
316
316
|
Bond: "0x9b3f6C5CfC67f3365Cd7f4A909ece62447e41A90",
|
|
317
317
|
Token: "0x5556040714852f76148fD692811924bAe968276d",
|
|
318
318
|
Oracle: "0xA55181A96F055dB101cE04a8E1b55c955B5e87FE",
|
|
319
319
|
Rates: "0xfF01062082866238b89851D4aBf4Db982227C60b",
|
|
320
|
-
Security: "
|
|
321
|
-
SecuritiesFactory: "
|
|
320
|
+
Security: "0x8C5026eF10861adBdbBbc540401dE4D453769fCE",
|
|
321
|
+
SecuritiesFactory: "0xA6220cDbE81a8BA3BF4eb8b2648A7557cD2b2Ff4",
|
|
322
322
|
Vitta: "0x39b4B94eE7FC9571723DaCbA14531EAC5Fd6E024",
|
|
323
323
|
Liquidity: "0xDFCaBCDD54e8E17f93261868DD24a2829148FF90",
|
|
324
324
|
Distribution: "0x9b164eD1dF8Ca8eC5b7753eA945347e0871E53Af",
|
|
325
325
|
PrimaryIssuePoolFactory: "0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5",
|
|
326
|
-
BalancerPrimaryIssueManager: "
|
|
326
|
+
BalancerPrimaryIssueManager: "0x2059B03099388051fcfB573BeC63da1fF822FBA2",
|
|
327
327
|
SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
|
|
328
|
-
BalancerSecondaryIssueManager: "
|
|
328
|
+
BalancerSecondaryIssueManager: "0xBA8c21a1E239784F6187ebCadD1Ea3613D53F059",
|
|
329
329
|
MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
|
|
330
|
-
BalancerMarginIssueManager: "
|
|
330
|
+
BalancerMarginIssueManager: "0x8D806166E3F95F9dB783A493C8d53403753FE4E9",
|
|
331
331
|
Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
|
|
332
332
|
Compound: "",
|
|
333
333
|
CASH: {
|