@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.
- package/dist/abi/L1distribution/Distribution.json +4 -4
- package/dist/abi/assetmanager/Client.json +21 -21
- package/dist/abi/assetmanager/PrimaryIssueManager.json +4194 -6579
- package/dist/abi/assetmanager/SecondaryIssueManager.json +2223 -2286
- package/dist/abi/custody/Vault.json +7 -1
- package/dist/abi/deposits/Bond.json +223 -223
- package/dist/abi/deposits/Cash.json +422 -422
- package/dist/abi/deposits/Factory.json +1419 -969
- package/dist/abi/deposits/Rates.json +1409 -1409
- package/dist/abi/deposits/Security.json +513 -513
- package/dist/abi/liquidity/Liquidity.json +11995 -14802
- package/dist/abi/securities/Bonds.json +5736 -5466
- package/dist/abi/securities/Products.json +2940 -2940
- package/dist/abi/securities/Stocks.json +5107 -4837
- package/dist/abi/trades/OrderPool.json +6722 -6722
- package/dist/abi/trades/PoolFactory.json +708 -708
- package/dist/abi/trades/PostTrade.json +563 -563
- package/dist/abi/trades/PreTrade.json +1134 -1010
- package/dist/abi/trades/SecuritiesRegistry.json +3879 -3724
- package/dist/abi/trades/Security.json +889 -889
- package/dist/abi/trades/Trade.json +4172 -4172
- package/dist/contract/public/factory/index.js +7 -1
- package/dist/contractAddress/index.js +28 -28
- package/package.json +1 -1
|
@@ -14,9 +14,10 @@ var FUNCTIONS;
|
|
|
14
14
|
FUNCTIONS["GETTOKEN"] = "getToken";
|
|
15
15
|
FUNCTIONS["GETNAMEANDTYPE"] = "getNameAndType";
|
|
16
16
|
FUNCTIONS["SETSIGNER"] = "setSigner";
|
|
17
|
-
FUNCTIONS["ADDBALANCE"] = "
|
|
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-
|
|
5
|
-
'Client': '
|
|
4
|
+
'L1-goerli': {
|
|
5
|
+
'Client': '0x09129c81E9F67B1D186719F16f1e2Fd4DC7CC5A4',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
9
9
|
'Ledger': '',
|
|
10
10
|
'Account': '',
|
|
11
|
-
'Factory': '
|
|
12
|
-
'Cash': '
|
|
13
|
-
'Bond': '
|
|
11
|
+
'Factory': '0x4e5f5b34d8E381da1f121f558Eda0004251ADeCa',
|
|
12
|
+
'Cash': '0x3724D9e0b8b229994811704f1764e90DfF31937C',
|
|
13
|
+
'Bond': '0xA4670cf406e8d43cF52605441e875a7cCe6240C6',
|
|
14
14
|
'Token': '',
|
|
15
15
|
'Oracle': '',
|
|
16
|
-
'Rates': '
|
|
16
|
+
'Rates': '0x9D90693dc06236d934Dafc8c5D339A3798afabff',
|
|
17
17
|
'PreTrade': '',
|
|
18
18
|
'Trade': '',
|
|
19
19
|
'PostTrade': '',
|
|
20
20
|
'SecuritiesRegistry': '',
|
|
21
|
-
'Security': '
|
|
21
|
+
'Security': '0x2118C679fE21f808bB2159793eC7e5c009aB5919',
|
|
22
22
|
'OrderPool': '',
|
|
23
23
|
'PoolFactory': '',
|
|
24
24
|
'Stocks': '',
|
|
25
25
|
'Bonds': '',
|
|
26
|
-
'Liquidity': '
|
|
27
|
-
'Distribution': '
|
|
28
|
-
'BalancerPrimaryIssueManager': '
|
|
29
|
-
'BalancerSecondaryIssueManager': '
|
|
30
|
-
'Custody': '
|
|
26
|
+
'Liquidity': '0x358643DA31fdE65b15839EeC0C72f3dacD07EBeD',
|
|
27
|
+
'Distribution': '0xa1eFf77E3B8f8FC55675048731d509cacF40F757',
|
|
28
|
+
'BalancerPrimaryIssueManager': '0xFc8E2ca7757BA61dDF6fcb63eD7f33C1a14a2204',
|
|
29
|
+
'BalancerSecondaryIssueManager': '0xC5908dC7FBAe5c89795a2b6125db91a2B63b8cDb',
|
|
30
|
+
'Custody': '0xF6ebB33E758eC36A2D3065F4633131DFF8307A07',
|
|
31
31
|
'CASH': {
|
|
32
|
-
'VCUSD': '
|
|
33
|
-
'VCEUR': '
|
|
34
|
-
'VCINR': '
|
|
32
|
+
'VCUSD': '0xfbc7fB0615099D91eb6E0C1527141CC6589e9fe7',
|
|
33
|
+
'VCEUR': '0x2BAed66972676641Dd77fbA36dAa4127dB7A0672',
|
|
34
|
+
'VCINR': '0xFb9b475380aFFb10aC823Df42102e199c34b0Ceb'
|
|
35
35
|
},
|
|
36
36
|
'BOND': {
|
|
37
|
-
'VBUSD': '
|
|
38
|
-
'VBEUR': '
|
|
39
|
-
'VBINR': '
|
|
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': '
|
|
56
|
-
'Trade': '
|
|
57
|
-
'PostTrade': '
|
|
58
|
-
'SecuritiesRegistry': '
|
|
59
|
-
'Security': '
|
|
60
|
-
'OrderPool': '
|
|
61
|
-
'PoolFactory': '
|
|
62
|
-
'Products': '
|
|
63
|
-
'Stocks': '
|
|
64
|
-
'Bonds': '
|
|
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': '',
|