@verified-network/verified-sdk 0.8.6 → 0.8.9
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/BalancerManager.json +9496 -9629
- package/dist/abi/assetmanager/Client.json +1988 -1988
- package/dist/abi/assetmanager/PrimaryIssueManager.json +48973 -0
- package/dist/abi/assetmanager/SecondaryIssueManager.json +18351 -0
- package/dist/abi/custody/Vault.json +6934 -9329
- package/dist/abi/deposits/Bond.json +5 -5
- package/dist/abi/deposits/Cash.json +5 -5
- package/dist/abi/deposits/Factory.json +4 -4
- package/dist/abi/deposits/Rates.json +4 -4
- package/dist/abi/deposits/Security.json +4 -4
- package/dist/abi/liquidity/Liquidity.json +4 -4
- package/dist/abi/securities/Bonds.json +4399 -4718
- package/dist/abi/securities/Products.json +3277 -3616
- package/dist/abi/securities/Stocks.json +4186 -4505
- package/dist/contract/balancer/primary/index.js +121 -0
- package/dist/contract/balancer/secondary/index.js +48 -0
- package/dist/contract/custody/index.js +31 -26
- package/dist/contractAddress/index.js +21 -20
- package/dist/index.js +5 -3
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: BUSL-1.1
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const index_1 = require("../../index");
|
|
6
|
+
const PrimaryIssueManager_json_1 = require("../../../abi/assetmanager/PrimaryIssueManager.json");
|
|
7
|
+
var FUNCTIONS;
|
|
8
|
+
(function (FUNCTIONS) {
|
|
9
|
+
FUNCTIONS["OFFER"] = "offer";
|
|
10
|
+
FUNCTIONS["GETOFFERED"] = "getOffered";
|
|
11
|
+
FUNCTIONS["GETOFFERMADE"] = "getOfferMade";
|
|
12
|
+
FUNCTIONS["GETALLOTTEDSTAKE"] = "getAllotedStake";
|
|
13
|
+
FUNCTIONS["GETLIQUIDITYPROVIDERS"] = "getLiquidityProviders";
|
|
14
|
+
FUNCTIONS["ISSUE"] = "issue";
|
|
15
|
+
FUNCTIONS["GETSUBSCRIBERS"] = "getSubscribers";
|
|
16
|
+
FUNCTIONS["CLOSE"] = "close";
|
|
17
|
+
FUNCTIONS["ACCEPT"] = "accept";
|
|
18
|
+
FUNCTIONS["REJECT"] = "reject";
|
|
19
|
+
FUNCTIONS["SETTLE"] = "settle";
|
|
20
|
+
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
21
|
+
class BalancerPrimaryIssueManager extends index_1.VerifiedContract {
|
|
22
|
+
constructor(signer, platformAddress) {
|
|
23
|
+
const address = platformAddress;
|
|
24
|
+
super(address, JSON.stringify(PrimaryIssueManager_json_1.abi), signer);
|
|
25
|
+
this.contractAddress = address;
|
|
26
|
+
}
|
|
27
|
+
async offer(owned, isin, offered, tomatch, desired, min, issuer,
|
|
28
|
+
//_hashedMessage: string,
|
|
29
|
+
//_v: string,
|
|
30
|
+
//_r: string,
|
|
31
|
+
//_s: string,
|
|
32
|
+
options) {
|
|
33
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, owned);
|
|
34
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, tomatch);
|
|
35
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, issuer);
|
|
36
|
+
await this.validateInput(index_1.DATATYPES.STRING, isin);
|
|
37
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, offered);
|
|
38
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, desired);
|
|
39
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, min);
|
|
40
|
+
return this.callContract(FUNCTIONS.OFFER, owned, this.sanitiseInput(index_1.DATATYPES.BYTE32, isin), offered, tomatch, desired, min, issuer,
|
|
41
|
+
/*_hashedMessage, _v, _r, _s,*/ options);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Gets security tokens offered for passed token parameter
|
|
45
|
+
* @param offered address of liquidity token offered by asset manager
|
|
46
|
+
* @param options
|
|
47
|
+
* @returns array of structs of security tokens matching with offered liquidity token
|
|
48
|
+
*/
|
|
49
|
+
async getOffered(offered, options) {
|
|
50
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, offered);
|
|
51
|
+
return this.callContract(FUNCTIONS.GETOFFERED, offered, options);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Gets offer made previously with offered token and token to match
|
|
55
|
+
* @param offered address of offered token
|
|
56
|
+
* @param tomatch address of token to match
|
|
57
|
+
* @param options
|
|
58
|
+
* @returns token struct
|
|
59
|
+
*/
|
|
60
|
+
async getOfferMade(offered, tomatch, options) {
|
|
61
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, offered);
|
|
62
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, tomatch);
|
|
63
|
+
return this.callContract(FUNCTIONS.GETOFFERMADE, offered, tomatch, options);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Gets allotted liquidity stake for caller (asset manager) that is available to invest
|
|
67
|
+
* @param options
|
|
68
|
+
* @returns amount of available liquidity for caller (asset manager)
|
|
69
|
+
*/
|
|
70
|
+
async getAllotedStake() {
|
|
71
|
+
return this.callContract(FUNCTIONS.GETALLOTTEDSTAKE);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Gets liquidity providers for a security token offering
|
|
75
|
+
* @param security address of security token
|
|
76
|
+
* @param options
|
|
77
|
+
* @returns array of structs of liquidity providers
|
|
78
|
+
*/
|
|
79
|
+
async getLiquidityProviders(security,
|
|
80
|
+
//_hashedMessage: string,
|
|
81
|
+
//_v: string,
|
|
82
|
+
//_r: string,
|
|
83
|
+
//_s: string,
|
|
84
|
+
options) {
|
|
85
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
86
|
+
return this.callContract(FUNCTIONS.GETLIQUIDITYPROVIDERS, security,
|
|
87
|
+
//_hashedMessage, _v, _r, _s,
|
|
88
|
+
options);
|
|
89
|
+
}
|
|
90
|
+
async issue(security, cutoffTime, issuer, _hashedMessage, _v, _r, _s, options) {
|
|
91
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
92
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, issuer);
|
|
93
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, cutoffTime);
|
|
94
|
+
return this.callContract(FUNCTIONS.ISSUE, security, cutoffTime, issuer, _hashedMessage, _v, _r, _s, options);
|
|
95
|
+
}
|
|
96
|
+
async getSubscribers(poolId, _hashedMessage, _v, _r, _s, options) {
|
|
97
|
+
await this.validateInput(index_1.DATATYPES.STRING, poolId);
|
|
98
|
+
return this.callContract(FUNCTIONS.GETSUBSCRIBERS, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), _hashedMessage, _v, _r, _s, options);
|
|
99
|
+
}
|
|
100
|
+
async close(security, _hashedMessage, _v, _r, _s, options) {
|
|
101
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
102
|
+
return this.callContract(FUNCTIONS.CLOSE, security, _hashedMessage, _v, _r, _s, options);
|
|
103
|
+
}
|
|
104
|
+
async accept(poolid, investor, amnt, asset, _hashedMessage, _v, _r, _s, options) {
|
|
105
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, investor);
|
|
106
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, asset);
|
|
107
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, amnt);
|
|
108
|
+
await this.validateInput(index_1.DATATYPES.STRING, poolid);
|
|
109
|
+
return this.callContract(FUNCTIONS.ACCEPT, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), investor, amnt, asset, _hashedMessage, _v, _r, _s, options);
|
|
110
|
+
}
|
|
111
|
+
async reject(poolid, investor, _hashedMessage, _v, _r, _s, options) {
|
|
112
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, investor);
|
|
113
|
+
await this.validateInput(index_1.DATATYPES.STRING, poolid);
|
|
114
|
+
return this.callContract(FUNCTIONS.REJECT, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), investor, _hashedMessage, _v, _r, _s, options);
|
|
115
|
+
}
|
|
116
|
+
async settle(poolId, _hashedMessage, _v, _r, _s, options) {
|
|
117
|
+
await this.validateInput(index_1.DATATYPES.STRING, poolId);
|
|
118
|
+
return this.callContract(FUNCTIONS.SETTLE, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), _hashedMessage, _v, _r, _s, options);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.default = BalancerPrimaryIssueManager;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: BUSL-1.1
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const index_1 = require("../../index");
|
|
6
|
+
const SecondaryIssueManager_json_1 = require("../../../abi/assetmanager/SecondaryIssueManager.json");
|
|
7
|
+
var FUNCTIONS;
|
|
8
|
+
(function (FUNCTIONS) {
|
|
9
|
+
FUNCTIONS["ISSUESECONDARY"] = "issueSecondary";
|
|
10
|
+
FUNCTIONS["GETSETTLEMENTREQUESTS"] = "getSettlementRequests";
|
|
11
|
+
FUNCTIONS["GETSETTLEMENTREQUEST"] = "getSettlementRequest";
|
|
12
|
+
FUNCTIONS["SETSETTLEMENTSTATUS"] = "setSettlementStatus";
|
|
13
|
+
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
14
|
+
class BalancerSecondaryIssueManager extends index_1.VerifiedContract {
|
|
15
|
+
constructor(signer, platformAddress) {
|
|
16
|
+
const address = platformAddress;
|
|
17
|
+
super(address, JSON.stringify(SecondaryIssueManager_json_1.abi), signer);
|
|
18
|
+
this.contractAddress = address;
|
|
19
|
+
}
|
|
20
|
+
async issueSecondary(security, currency, amount, id,
|
|
21
|
+
//_hashedMessage: string,
|
|
22
|
+
//_v: string,
|
|
23
|
+
//_r: string,
|
|
24
|
+
//_s: string,
|
|
25
|
+
options) {
|
|
26
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
27
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
28
|
+
await this.validateInput(index_1.DATATYPES.STRING, id);
|
|
29
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, amount);
|
|
30
|
+
return this.callContract(FUNCTIONS.ISSUESECONDARY, security, currency, amount, this.sanitiseInput(index_1.DATATYPES.BYTE32, id),
|
|
31
|
+
/*_hashedMessage, _v, _r, _s,*/ options);
|
|
32
|
+
}
|
|
33
|
+
async getSettlementRequests(dpid, options) {
|
|
34
|
+
await this.validateInput(index_1.DATATYPES.STRING, dpid);
|
|
35
|
+
return this.callContract(FUNCTIONS.GETSETTLEMENTREQUESTS, this.sanitiseInput(index_1.DATATYPES.BYTE32, dpid), options);
|
|
36
|
+
}
|
|
37
|
+
async getSettlementRequest(ref, options) {
|
|
38
|
+
await this.validateInput(index_1.DATATYPES.STRING, ref);
|
|
39
|
+
return this.callContract(FUNCTIONS.GETSETTLEMENTREQUEST, this.sanitiseInput(index_1.DATATYPES.BYTE32, ref), options);
|
|
40
|
+
}
|
|
41
|
+
async setSettlementStatus(ref, status, id, options) {
|
|
42
|
+
await this.validateInput(index_1.DATATYPES.STRING, ref);
|
|
43
|
+
await this.validateInput(index_1.DATATYPES.STRING, status);
|
|
44
|
+
await this.validateInput(index_1.DATATYPES.STRING, id);
|
|
45
|
+
return this.callContract(FUNCTIONS.SETSETTLEMENTSTATUS, this.sanitiseInput(index_1.DATATYPES.BYTE32, ref), this.sanitiseInput(index_1.DATATYPES.BYTE32, status), this.sanitiseInput(index_1.DATATYPES.BYTE32, id), options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = BalancerSecondaryIssueManager;
|
|
@@ -16,6 +16,9 @@ var FUNCTIONS;
|
|
|
16
16
|
FUNCTIONS["SIGNTRANSACTION"] = "signTransaction";
|
|
17
17
|
FUNCTIONS["CHECKQUORUM"] = "checkQuorum";
|
|
18
18
|
FUNCTIONS["GETSHARDS"] = "getShards";
|
|
19
|
+
FUNCTIONS["NEWPARTICIPANT"] = "NewParticipant";
|
|
20
|
+
FUNCTIONS["NEWTRANSACTION"] = "NewTransaction";
|
|
21
|
+
FUNCTIONS["SIGNATURE"] = "SignTransaction";
|
|
19
22
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
20
23
|
class CustodyContract extends index_1.VerifiedContract {
|
|
21
24
|
constructor(signer) {
|
|
@@ -27,59 +30,61 @@ class CustodyContract extends index_1.VerifiedContract {
|
|
|
27
30
|
async createVault(_creator, _id, options) {
|
|
28
31
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
29
32
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
30
|
-
return this.callContract(FUNCTIONS.CREATEVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator),
|
|
33
|
+
return this.callContract(FUNCTIONS.CREATEVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, options);
|
|
31
34
|
}
|
|
32
35
|
async getCreator(_creator, options) {
|
|
33
36
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
34
37
|
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
35
38
|
}
|
|
36
|
-
async addParticipant(_creator,
|
|
39
|
+
async addParticipant(_creator, _participant, _shard, options) {
|
|
37
40
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
38
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
39
41
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
40
|
-
|
|
42
|
+
await this.validateInput(index_1.DATATYPES.STRING, _shard);
|
|
43
|
+
return this.callContract(FUNCTIONS.ADDPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _shard, options);
|
|
41
44
|
}
|
|
42
|
-
async removeParticipant(_creator,
|
|
45
|
+
async removeParticipant(_creator, _participant, options) {
|
|
43
46
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
44
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
45
47
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
46
|
-
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32,
|
|
48
|
+
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
|
|
47
49
|
}
|
|
48
|
-
async confirmParticipant(_creator, _participant,
|
|
50
|
+
async confirmParticipant(_creator, _participant, _pin, options) {
|
|
49
51
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
50
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
51
52
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
52
|
-
|
|
53
|
-
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), _shard, _pin, options);
|
|
53
|
+
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _pin, options);
|
|
54
54
|
}
|
|
55
|
-
async defineQuorum(_creator,
|
|
55
|
+
async defineQuorum(_creator, _minParticipants, options) {
|
|
56
56
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
57
|
-
await this.validateInput(index_1.DATATYPES.
|
|
58
|
-
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator),
|
|
57
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _minParticipants);
|
|
58
|
+
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _minParticipants, options);
|
|
59
59
|
}
|
|
60
|
-
async promptSignatures(_creator,
|
|
60
|
+
async promptSignatures(_creator, options) {
|
|
61
61
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
62
|
-
|
|
63
|
-
return this.callContract(FUNCTIONS.PROMPTSIGNATURES, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), options);
|
|
62
|
+
return this.callContract(FUNCTIONS.PROMPTSIGNATURES, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
64
63
|
}
|
|
65
|
-
async signTransaction(_creator, _participant,
|
|
64
|
+
async signTransaction(_creator, _participant, _tx, _pin, options) {
|
|
66
65
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
67
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
68
66
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
69
|
-
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant),
|
|
67
|
+
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _tx, _pin, options);
|
|
70
68
|
}
|
|
71
|
-
async checkQuorum(_creator,
|
|
69
|
+
async checkQuorum(_creator, _participant, _txid, options) {
|
|
72
70
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
73
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
74
71
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
75
72
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
76
|
-
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32,
|
|
73
|
+
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _txid, options);
|
|
77
74
|
}
|
|
78
|
-
async getShards(_creator,
|
|
75
|
+
async getShards(_creator, _txid, options) {
|
|
79
76
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
80
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
81
77
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
82
|
-
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator),
|
|
78
|
+
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _txid, options);
|
|
79
|
+
}
|
|
80
|
+
notifyNewParticipant(callback) {
|
|
81
|
+
this.getEvent(FUNCTIONS.NEWPARTICIPANT, callback);
|
|
82
|
+
}
|
|
83
|
+
notifyNewTransaction(callback) {
|
|
84
|
+
this.getEvent(FUNCTIONS.NEWTRANSACTION, callback);
|
|
85
|
+
}
|
|
86
|
+
notifySignTransaction(callback) {
|
|
87
|
+
this.getEvent(FUNCTIONS.SIGNATURE, callback);
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
exports.default = CustodyContract;
|
|
@@ -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-rinkeby': {
|
|
5
|
+
'Client': '0xA0893b7bafC5773c088Bf11E323f8C4F03759929',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
9
9
|
'Ledger': '',
|
|
10
10
|
'Account': '',
|
|
11
|
-
'Factory': '
|
|
12
|
-
'Cash': '
|
|
13
|
-
'Bond': '
|
|
11
|
+
'Factory': '0x52E88bced2F214cb6DC27B4c9b5D2026CA9A5C91',
|
|
12
|
+
'Cash': '0xe94E5c776b67f895dB02b0841365115Dc1847733',
|
|
13
|
+
'Bond': '0xEA503c36561564f0AA2745677e7835722168e634',
|
|
14
14
|
'Token': '',
|
|
15
15
|
'Oracle': '',
|
|
16
|
-
'Rates': '
|
|
16
|
+
'Rates': '0x9f9D43B1231ba641EAAf1ca2982b9b9E39884538',
|
|
17
17
|
'PreTrade': '',
|
|
18
18
|
'Trade': '',
|
|
19
19
|
'PostTrade': '',
|
|
20
20
|
'SecuritiesRegistry': '',
|
|
21
|
-
'Security': '
|
|
21
|
+
'Security': '0x59c03C48407641648D673e483d40c8a9A3552DFc',
|
|
22
22
|
'OrderPool': '',
|
|
23
23
|
'PoolFactory': '',
|
|
24
24
|
'Stocks': '',
|
|
25
25
|
'Bonds': '',
|
|
26
|
-
'Liquidity': '
|
|
27
|
-
'Distribution': '
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'Custody': '',
|
|
26
|
+
'Liquidity': '0x06b40A1471d715FD0581854F22166283D89b0302',
|
|
27
|
+
'Distribution': '0x7aE7fe788D1f14B22a7f6C3707320FbE3A51968b',
|
|
28
|
+
'BalancerPrimaryIssueManager': '0xc4FC6e44AC4bB67eC08FFF6ce47BB44E9BE038e8',
|
|
29
|
+
'BalancerSecondaryIssueManager': '0x8099A9C79672BDDD0506364f4B0791A2384a960B',
|
|
30
|
+
'Custody': '0x8357FB36fFA9dcE78A43Fb33DbFFAAB2738E5B1a',
|
|
31
31
|
'CASH': {
|
|
32
|
-
'VCUSD': '
|
|
33
|
-
'VCEUR': '
|
|
34
|
-
'VCINR': '
|
|
32
|
+
'VCUSD': '0x0817a43DB9b3e562FF70C1aa6e27E109324ca16A',
|
|
33
|
+
'VCEUR': '0xF0B677058BbBA3066B644034054447412D5EB40d',
|
|
34
|
+
'VCINR': '0x0D3d2e2Be0902Ebe5fD7E75dD57B127203Fc9e78'
|
|
35
35
|
},
|
|
36
36
|
'BOND': {
|
|
37
|
-
'VBUSD': '
|
|
38
|
-
'VBEUR': '
|
|
39
|
-
'VBINR': '
|
|
37
|
+
'VBUSD': '0xD1fB140A486BFCec3744E4aE2b9B7c84989ae937',
|
|
38
|
+
'VBEUR': '0xA719C7365F5a20Ef694409B0fF0084127919b019',
|
|
39
|
+
'VBINR': '0xD8A84301df4138c48Fdb1b6C7c96980983200835'
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
'L2-goerli': {
|
|
@@ -59,8 +59,9 @@ const contractAddress = {
|
|
|
59
59
|
'Security': '0x324dfB528BEea8419eC96C6a54E0DA7744A4f8da',
|
|
60
60
|
'OrderPool': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
|
|
61
61
|
'PoolFactory': '0xEE713f9e7d7D03267534C2628019C16dC1c41ecB',
|
|
62
|
-
'
|
|
63
|
-
'
|
|
62
|
+
'Products': '0xFfa36c902BC8Ce8B4A413B90e4BEdC0C01Caa2e6',
|
|
63
|
+
'Stocks': '0x60bc622E02424ACDD415373B6Dd40870d077faa4',
|
|
64
|
+
'Bonds': '0xa4C1b21F2B4d121d3159953c8Bda5b248CC35353',
|
|
64
65
|
'Liquidity': '',
|
|
65
66
|
'Distribution': '',
|
|
66
67
|
'BalancerManager': '',
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.contractAddress = exports.utils = exports.VerifiedClient = exports.VerifiedRates = exports.VerifiedDistribution = exports.VerifiedFactory = exports.VerifiedSecurity = exports.VerifiedBond = exports.VerifiedCash = exports.
|
|
7
|
+
exports.contractAddress = exports.utils = exports.VerifiedClient = exports.VerifiedRates = exports.VerifiedDistribution = exports.VerifiedFactory = exports.VerifiedSecurity = exports.VerifiedBond = exports.VerifiedCash = exports.BalancerSecondaryIssueManager = exports.BalancerPrimaryIssueManager = exports.RatesContract = exports.LiquidityContract = exports.CustodyContract = exports.BondsContract = exports.StocksContract = exports.ProductContract = exports.DistributionContract = exports.OracleContract = exports.SecurityContract = exports.TokenContract = exports.FactoryContract = exports.TradeContract = exports.SecuritiesRegistryContract = exports.PreTradeContract = exports.PostTradeContract = exports.PoolFactoryContract = exports.OrderPoolContract = exports.CashContract = exports.BondContract = exports.AccountContract = exports.LedgerContract = exports.HolderContract = exports.SystemContract = exports.KYCContract = exports.ClientContract = exports.Provider = exports.VerifiedWallet = void 0;
|
|
8
8
|
const wallet_1 = require("./wallet");
|
|
9
9
|
Object.defineProperty(exports, "VerifiedWallet", { enumerable: true, get: function () { return wallet_1.VerifiedWallet; } });
|
|
10
10
|
const utils_1 = require("./utils");
|
|
@@ -59,8 +59,10 @@ const distribution_1 = __importDefault(require("./contract/distribution"));
|
|
|
59
59
|
exports.DistributionContract = distribution_1.default;
|
|
60
60
|
const rates_1 = __importDefault(require("./contract/rates"));
|
|
61
61
|
exports.RatesContract = rates_1.default;
|
|
62
|
-
const
|
|
63
|
-
exports.
|
|
62
|
+
const primary_1 = __importDefault(require("./contract/balancer/primary"));
|
|
63
|
+
exports.BalancerPrimaryIssueManager = primary_1.default;
|
|
64
|
+
const secondary_1 = __importDefault(require("./contract/balancer/secondary"));
|
|
65
|
+
exports.BalancerSecondaryIssueManager = secondary_1.default;
|
|
64
66
|
const cash_2 = __importDefault(require("./contract/public/cash"));
|
|
65
67
|
exports.VerifiedCash = cash_2.default;
|
|
66
68
|
const bond_2 = __importDefault(require("./contract/public/bond"));
|