@verified-network/verified-sdk 0.9.7 → 0.9.8
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.
- package/dist/abi/L1distribution/Distribution.json +19428 -16461
- package/dist/abi/assetmanager/Client.json +8064 -6038
- package/dist/abi/assetmanager/balancer/PrimaryIssueManager.json +33755 -25504
- package/dist/abi/assetmanager/balancer/SecondaryIssueManager.json +20763 -13086
- package/dist/abi/deposits/Bond.json +222 -222
- package/dist/abi/deposits/Cash.json +421 -421
- package/dist/abi/deposits/Factory.json +3710 -1915
- package/dist/abi/deposits/Rates.json +1408 -1408
- package/dist/abi/deposits/Security.json +508 -1526
- package/dist/abi/liquidity/Liquidity.json +22761 -15750
- package/dist/contract/amm/secondary/index.js +2 -3
- package/dist/contract/custody/index.js +10 -0
- package/dist/contract/liquidity/index.js +1 -1
- package/dist/contract/public/client/index.js +5 -0
- package/dist/contract/public/factory/index.js +10 -0
- package/dist/contractAddress/index.js +17 -16
- package/package.json +1 -1
|
@@ -18,12 +18,11 @@ class SecondaryIssueManager extends index_1.VerifiedContract {
|
|
|
18
18
|
super(address, JSON.stringify(SecondaryIssueManager_json_1.abi), signer);
|
|
19
19
|
this.contractAddress = address;
|
|
20
20
|
}
|
|
21
|
-
async issueSecondary(security, currency, amount,
|
|
21
|
+
async issueSecondary(security, currency, amount, _hashedMessage, _v, _r, _s, options) {
|
|
22
22
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
23
23
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
24
|
-
await this.validateInput(index_1.DATATYPES.STRING, id);
|
|
25
24
|
await this.validateInput(index_1.DATATYPES.NUMBER, amount);
|
|
26
|
-
return this.callContract(FUNCTIONS.ISSUESECONDARY, security, currency, amount,
|
|
25
|
+
return this.callContract(FUNCTIONS.ISSUESECONDARY, security, currency, amount, _hashedMessage, _v, _r, _s, options);
|
|
27
26
|
}
|
|
28
27
|
async getSettlementRequests(dpid, options) {
|
|
29
28
|
await this.validateInput(index_1.DATATYPES.STRING, dpid);
|
|
@@ -7,6 +7,8 @@ const Vault_json_1 = require("../../abi/custody/Vault.json");
|
|
|
7
7
|
var FUNCTIONS;
|
|
8
8
|
(function (FUNCTIONS) {
|
|
9
9
|
FUNCTIONS["CREATEVAULT"] = "createVault";
|
|
10
|
+
FUNCTIONS["GETVAULTS"] = "getVaults";
|
|
11
|
+
FUNCTIONS["TRANSFERVAULT"] = "transferVault";
|
|
10
12
|
FUNCTIONS["GETCREATOR"] = "getCreator";
|
|
11
13
|
FUNCTIONS["ADDPARTICIPANT"] = "addParticipant";
|
|
12
14
|
FUNCTIONS["REMOVEPARTICIPANT"] = "removeParticipant";
|
|
@@ -32,6 +34,14 @@ class CustodyContract extends index_1.VerifiedContract {
|
|
|
32
34
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
33
35
|
return this.callContract(FUNCTIONS.CREATEVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, options);
|
|
34
36
|
}
|
|
37
|
+
async getVaults() {
|
|
38
|
+
return this.callContract(FUNCTIONS.GETVAULTS);
|
|
39
|
+
}
|
|
40
|
+
async transferVault(_creator, _transferee, options) {
|
|
41
|
+
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
42
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _transferee);
|
|
43
|
+
return this.callContract(FUNCTIONS.TRANSFERVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _transferee, options);
|
|
44
|
+
}
|
|
35
45
|
async getCreator(_creator, options) {
|
|
36
46
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
37
47
|
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
@@ -54,7 +54,7 @@ class LiquidityContract extends index_1.VerifiedContract {
|
|
|
54
54
|
async supportTokens(_tokens, _name, options) {
|
|
55
55
|
await this.validateInput(index_1.DATATYPES.STRING, _tokens);
|
|
56
56
|
await this.validateInput(index_1.DATATYPES.STRING, _name);
|
|
57
|
-
return this.callContract(FUNCTIONS.SUPPORTTOKENS, _tokens,
|
|
57
|
+
return this.callContract(FUNCTIONS.SUPPORTTOKENS, _tokens, _name, options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
Checks if a specified token is supported for investing in the Verified Liquidity token
|
|
@@ -11,6 +11,7 @@ var FUNCTIONS;
|
|
|
11
11
|
FUNCTIONS["REMOVEROLE"] = "removeRole";
|
|
12
12
|
FUNCTIONS["ADDROLE"] = "addRole";
|
|
13
13
|
FUNCTIONS["UPDATEKYC"] = "KycUpdate";
|
|
14
|
+
FUNCTIONS["GETCLIENTKYC"] = "getClientKYC";
|
|
14
15
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
15
16
|
class VerifiedClient extends index_1.VerifiedContract {
|
|
16
17
|
constructor(signer) {
|
|
@@ -64,5 +65,9 @@ class VerifiedClient extends index_1.VerifiedContract {
|
|
|
64
65
|
await this.validateInput(index_1.DATATYPES.NUMBER, status);
|
|
65
66
|
return this.callContract(FUNCTIONS.UPDATEKYC, client, this.sanitiseInput(index_1.DATATYPES.BYTE32, name), this.sanitiseInput(index_1.DATATYPES.BYTE32, surname), this.sanitiseInput(index_1.DATATYPES.BYTE32, country), status, _hashedMessage, _v, _r, _s, options);
|
|
66
67
|
}
|
|
68
|
+
async getClientKYC(_client, options) {
|
|
69
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _client);
|
|
70
|
+
return this.callContract(FUNCTIONS.GETCLIENTKYC, _client, options);
|
|
71
|
+
}
|
|
67
72
|
}
|
|
68
73
|
exports.default = VerifiedClient;
|
|
@@ -19,6 +19,8 @@ var FUNCTIONS;
|
|
|
19
19
|
FUNCTIONS["ISSUESECURITY"] = "issueSecurity";
|
|
20
20
|
FUNCTIONS["SECURITIESADDED"] = "securitiesAdded";
|
|
21
21
|
FUNCTIONS["GETSECURITYTOKEN"] = "getSecurityToken";
|
|
22
|
+
FUNCTIONS["GETHOLDER"] = "getHolder";
|
|
23
|
+
FUNCTIONS["GETSECURITY"] = "getSecurity";
|
|
22
24
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
23
25
|
class VerifiedFactory extends index_1.VerifiedContract {
|
|
24
26
|
constructor(signer) {
|
|
@@ -110,6 +112,14 @@ class VerifiedFactory extends index_1.VerifiedContract {
|
|
|
110
112
|
async getIssues() {
|
|
111
113
|
return this.callContract(FUNCTIONS.GETISSUES);
|
|
112
114
|
}
|
|
115
|
+
async getHolder(_token, options) {
|
|
116
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
117
|
+
return this.callContract(FUNCTIONS.GETHOLDER, _token, options);
|
|
118
|
+
}
|
|
119
|
+
async getSecurity(_token, options) {
|
|
120
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
121
|
+
return this.callContract(FUNCTIONS.GETSECURITY, _token, options);
|
|
122
|
+
}
|
|
113
123
|
async issueSecurity(_security, _company, _isin, _currency, _issuer, _hashedMessage, _v, _r, _s, options) {
|
|
114
124
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _security);
|
|
115
125
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _issuer);
|
|
@@ -2,41 +2,42 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const contractAddress = {
|
|
4
4
|
'L1-goerli': {
|
|
5
|
-
'Client': '
|
|
5
|
+
'Client': '0x96D6816d8516f5fb58ec84D04a44f1Afb838c718',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
9
9
|
'Ledger': '',
|
|
10
10
|
'Account': '',
|
|
11
|
-
'Factory': '
|
|
12
|
-
'Cash': '
|
|
13
|
-
'Bond': '
|
|
11
|
+
'Factory': '0x99A04d96C2F81a7eb90a6CE171FD92Eabc3eD30D',
|
|
12
|
+
'Cash': '0xd67295C4953B7F64767e889726373cD078f2a81b',
|
|
13
|
+
'Bond': '0x4a75FF2d8FA25329FA27A41D8809a1F5dDEbf169',
|
|
14
14
|
'Token': '',
|
|
15
15
|
'Oracle': '',
|
|
16
|
-
'Rates': '
|
|
16
|
+
'Rates': '0x1178a5cD446B9a6deF3e9169AD9ACe30201F351D',
|
|
17
17
|
'PreTrade': '',
|
|
18
18
|
'Trade': '',
|
|
19
19
|
'PostTrade': '',
|
|
20
20
|
'SecuritiesRegistry': '',
|
|
21
|
-
'Security': '
|
|
21
|
+
'Security': '0xd31b01309C493cc6fFf5fdbe6C8949c4BA7465d3',
|
|
22
22
|
'OrderPool': '',
|
|
23
23
|
'PoolFactory': '',
|
|
24
24
|
'Stocks': '',
|
|
25
25
|
'Bonds': '',
|
|
26
|
-
'Liquidity': '
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
26
|
+
'Liquidity': '0xE934B373146690e60B9F334345EdbBFC84C6b62E',
|
|
27
|
+
'Vitta': '0xA1556C7c0F3a940952A629A8897066f0f7EA9EEd',
|
|
28
|
+
'Distribution': '0x538E254ecA15EE702abf66aeE431e809a6978358',
|
|
29
|
+
'BalancerPrimaryIssueManager': '0xc8679390bf429b7eb3A3797FfA858F34B7111b7f',
|
|
30
|
+
'BalancerSecondaryIssueManager': '0xd69024DdEEd8f74B7F3b7c762B57cf584AD5E5e2',
|
|
30
31
|
'Custody': '0xF6ebB33E758eC36A2D3065F4633131DFF8307A07',
|
|
31
32
|
'CASH': {
|
|
32
|
-
'VCUSD': '
|
|
33
|
-
'VCEUR': '
|
|
34
|
-
'VCINR': '
|
|
33
|
+
'VCUSD': '0x81aFFfDfbbCC65158C02c6685d0a478Ec4330516',
|
|
34
|
+
'VCEUR': '0xb138d0CF5FF1a4Ee6971249bfddc425979820541',
|
|
35
|
+
'VCINR': '0xC98FEbF151e5e295cBdc37cbe2Cf586FBf0856aF'
|
|
35
36
|
},
|
|
36
37
|
'BOND': {
|
|
37
|
-
'VBUSD': '
|
|
38
|
-
'VBEUR': '
|
|
39
|
-
'VBINR': '
|
|
38
|
+
'VBUSD': '0x038C69c19d8cC961Ad99bD02E44aE2B5Eb3564c9',
|
|
39
|
+
'VBEUR': '0xA2898f5d38612E697D962739462B77b87bd96626',
|
|
40
|
+
'VBINR': '0xAa3a2A33C4718b95C26A6aFC1693c2162e00460b'
|
|
40
41
|
},
|
|
41
42
|
},
|
|
42
43
|
'L2-goerli': {
|