@verified-network/verified-sdk 0.8.9 → 0.9.0
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/assetmanager/Client.json +20 -20
- package/dist/abi/assetmanager/PrimaryIssueManager.json +8924 -13948
- package/dist/abi/assetmanager/SecondaryIssueManager.json +2222 -2285
- package/dist/abi/deposits/Bond.json +222 -222
- package/dist/abi/deposits/Cash.json +421 -421
- package/dist/abi/deposits/Factory.json +1418 -968
- package/dist/abi/deposits/Rates.json +1408 -1408
- package/dist/abi/deposits/Security.json +512 -512
- package/dist/abi/securities/Bonds.json +5119 -5084
- package/dist/abi/securities/Products.json +2940 -2940
- package/dist/abi/securities/Stocks.json +4540 -4505
- 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 +25 -25
- 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': '0xde54a4fD12D2ecE0b97348db764248375a1b1027',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
9
9
|
'Ledger': '',
|
|
10
10
|
'Account': '',
|
|
11
|
-
'Factory': '
|
|
12
|
-
'Cash': '
|
|
13
|
-
'Bond': '
|
|
11
|
+
'Factory': '0x6D0B402CF0c6951eD24b779cf1d3248F2b7972fF',
|
|
12
|
+
'Cash': '0x655a4E7798E1Db239145feA811050fc1aabb1B6F',
|
|
13
|
+
'Bond': '0xE2EaC289E6627D3AB711A5280f6e180435C051f9',
|
|
14
14
|
'Token': '',
|
|
15
15
|
'Oracle': '',
|
|
16
|
-
'Rates': '
|
|
16
|
+
'Rates': '0x56685a403519C1963adcae67f828318F100bF5f9',
|
|
17
17
|
'PreTrade': '',
|
|
18
18
|
'Trade': '',
|
|
19
19
|
'PostTrade': '',
|
|
20
20
|
'SecuritiesRegistry': '',
|
|
21
|
-
'Security': '
|
|
21
|
+
'Security': '0x3CA1Dd4EDD77a746a1ac250EFA817640e8CB8745',
|
|
22
22
|
'OrderPool': '',
|
|
23
23
|
'PoolFactory': '',
|
|
24
24
|
'Stocks': '',
|
|
25
25
|
'Bonds': '',
|
|
26
26
|
'Liquidity': '0x06b40A1471d715FD0581854F22166283D89b0302',
|
|
27
27
|
'Distribution': '0x7aE7fe788D1f14B22a7f6C3707320FbE3A51968b',
|
|
28
|
-
'BalancerPrimaryIssueManager': '
|
|
29
|
-
'BalancerSecondaryIssueManager': '
|
|
28
|
+
'BalancerPrimaryIssueManager': '0x0AB021b3eCA4cD5451c2D80f72495d03433b3c80',
|
|
29
|
+
'BalancerSecondaryIssueManager': '0x1AB6c6E32F56CEE867EB1A1D069023E3f77DD2cc',
|
|
30
30
|
'Custody': '0x8357FB36fFA9dcE78A43Fb33DbFFAAB2738E5B1a',
|
|
31
31
|
'CASH': {
|
|
32
|
-
'VCUSD': '
|
|
33
|
-
'VCEUR': '
|
|
34
|
-
'VCINR': '
|
|
32
|
+
'VCUSD': '0x687135E1C8A4f2525483BE09C0401543F5DEd0E3',
|
|
33
|
+
'VCEUR': '0xdAE14069330BeF1D66A31461164F52bD4b60E117',
|
|
34
|
+
'VCINR': '0x3e148797be04E4c9C53E42D4fcEA170B58A9060c'
|
|
35
35
|
},
|
|
36
36
|
'BOND': {
|
|
37
|
-
'VBUSD': '
|
|
38
|
-
'VBEUR': '
|
|
39
|
-
'VBINR': '
|
|
37
|
+
'VBUSD': '0xfc33051FD30056a9f5d5042eD794829Bc0AD2760',
|
|
38
|
+
'VBEUR': '0xd7c13d884573A61e2d39B91B39bA389582c18c40',
|
|
39
|
+
'VBINR': '0xcf7C8918EfEEBcf14aB8E672Bc922B8C4ba5ab82'
|
|
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': '0xec4eAbDCCEb16fEc501e398Cb3Fb8963d99e3fed',
|
|
63
|
+
'Stocks': '0x29206B6bEb3Fe54Ec7e14523099e56d24Ae09Ea8',
|
|
64
|
+
'Bonds': '0x2092d0C26E2EaFc3d2AfEd55dA637955EC121398',
|
|
65
65
|
'Liquidity': '',
|
|
66
66
|
'Distribution': '',
|
|
67
67
|
'BalancerManager': '',
|