@verified-network/verified-sdk 0.8.5 → 0.8.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.
@@ -53001,15 +53001,15 @@
53001
53001
  "version": "0.8.0+commit.c7dfd78e.Emscripten.clang"
53002
53002
  },
53003
53003
  "networks": {
53004
- "5": {
53004
+ "4": {
53005
53005
  "events": {},
53006
53006
  "links": {},
53007
- "address": "0xE3B74659a6464519987DEe03F17696690BF3Ae10",
53008
- "transactionHash": "0xd679db7e701eb9a237dc82e7b5b4890d59089219cb81082b68c3cca9e2b98739"
53007
+ "address": "0x06b40A1471d715FD0581854F22166283D89b0302",
53008
+ "transactionHash": "0x6d437a3db1fe06653dd5b466d9dd4b79d62bc9f5a854fb571741277b71a7941d"
53009
53009
  }
53010
53010
  },
53011
53011
  "schemaVersion": "3.4.3",
53012
- "updatedAt": "2022-06-11T13:07:42.355Z",
53012
+ "updatedAt": "2022-07-07T11:05:32.961Z",
53013
53013
  "networkType": "ethereum",
53014
53014
  "devdoc": {
53015
53015
  "kind": "dev",
@@ -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), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), options);
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, _id, _participant, options) {
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
- return this.callContract(FUNCTIONS.ADDPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
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, _id, _participant, options) {
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, _id), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
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, _id, _shard, _pin, options) {
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
- await this.validateInput(index_1.DATATYPES.STRING, _shard);
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, _id, _minParticipants, options) {
55
+ async defineQuorum(_creator, _minParticipants, options) {
56
56
  await this.validateInput(index_1.DATATYPES.STRING, _creator);
57
- await this.validateInput(index_1.DATATYPES.STRING, _id);
58
- return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), _minParticipants, options);
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, _id, options) {
60
+ async promptSignatures(_creator, options) {
61
61
  await this.validateInput(index_1.DATATYPES.STRING, _creator);
62
- await this.validateInput(index_1.DATATYPES.STRING, _id);
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, _id, _tx, _pin, options) {
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), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), _tx, _pin, options);
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, _id, _participant, _txid, options) {
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, _id), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), this.sanitiseInput(index_1.DATATYPES.BYTE32, _txid), options);
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, _id, _txid, options) {
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), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), this.sanitiseInput(index_1.DATATYPES.BYTE32, _txid), options);
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;
@@ -6,39 +6,19 @@ const index_1 = require("../../index");
6
6
  const Security_json_1 = require("../../../abi/deposits/Security.json");
7
7
  var FUNCTIONS;
8
8
  (function (FUNCTIONS) {
9
- FUNCTIONS["SETSIGNER"] = "setSigner";
10
- FUNCTIONS["ADDBALANCE"] = "addToBalance";
11
- FUNCTIONS["TRANSFERBALANCE"] = "transferBalance";
12
- FUNCTIONS["SECURITIESADDED"] = "securitiesAdded";
9
+ FUNCTIONS["APPROVETOKEN"] = "approveToken";
13
10
  })(FUNCTIONS || (FUNCTIONS = {}));
14
11
  class VerifiedSecurity extends index_1.VerifiedContract {
15
- constructor(signer) {
16
- const chainId = Object.keys(Security_json_1.networks);
17
- const address = Security_json_1.networks[chainId].address;
12
+ constructor(signer, tokenAddress) {
13
+ const address = tokenAddress;
18
14
  super(address, JSON.stringify(Security_json_1.abi), signer);
19
15
  this.contractAddress = address;
20
16
  }
21
- /**
22
- Sets signer to verify bridge
23
- @param _signer address of signer that can only be set by owner of bridge
24
- */
25
- async setSigner(_signer, options) {
26
- await this.validateInput(index_1.DATATYPES.ADDRESS, _signer);
27
- return this.callContract(FUNCTIONS.SETSIGNER, _signer, options);
28
- }
29
- async addToBalance(_isin, _amount, _tokenHolder, _currency, _hashedMessage, _v, _r, _s, options) {
30
- await this.validateInput(index_1.DATATYPES.ADDRESS, _tokenHolder);
31
- await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
32
- return this.callContract(FUNCTIONS.ADDBALANCE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), _amount, _tokenHolder, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _hashedMessage, _v, _r, _s, options);
33
- }
34
- async transferBalance(_isin, _transferor, _amount, _transferee, _currency, _hashedMessage, _v, _r, _s, options) {
35
- await this.validateInput(index_1.DATATYPES.ADDRESS, _transferee);
36
- await this.validateInput(index_1.DATATYPES.ADDRESS, _transferor);
17
+ async approveToken(_owner, _spender, _amount, _hashedMessage, _v, _r, _s, options) {
18
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _owner);
19
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _spender);
37
20
  await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
38
- return this.callContract(FUNCTIONS.TRANSFERBALANCE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), _transferor, _amount, _transferee, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _hashedMessage, _v, _r, _s, options);
39
- }
40
- notifySecuritiesAdded(callback) {
41
- this.getEvent(FUNCTIONS.SECURITIESADDED, callback);
21
+ return this.callContract(FUNCTIONS.APPROVETOKEN, _owner, _spender, _amount, _hashedMessage, _v, _r, _s, options);
42
22
  }
43
23
  }
44
24
  exports.default = VerifiedSecurity;
@@ -1,43 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const contractAddress = {
4
- 'L1-goerli': {
5
- 'Client': '0xa1633Ab6F940D6eCE8a61F5D68285139277aeF0F',
4
+ 'L1-rinkeby': {
5
+ 'Client': '0xd0f9F21B209BD1FA88c99F765B7a1032255C953F',
6
6
  'KYC': '',
7
7
  'System': '',
8
8
  'Holder': '',
9
9
  'Ledger': '',
10
10
  'Account': '',
11
- 'Factory': '0x0F248837AAd71e08A2AE43d8e148A6AbE891Daa6',
12
- 'Cash': '0xf9CA2Ea876CB561610b89Cf3c009B723579f60C9',
13
- 'Bond': '0x2c9e6D15350C5217D2908a40a07af47CC5a94428',
11
+ 'Factory': '0x52E88bced2F214cb6DC27B4c9b5D2026CA9A5C91',
12
+ 'Cash': '0xe94E5c776b67f895dB02b0841365115Dc1847733',
13
+ 'Bond': '0xEA503c36561564f0AA2745677e7835722168e634',
14
14
  'Token': '',
15
15
  'Oracle': '',
16
- 'Rates': '0x95b73422B232710953F8454e39E72672a48D88ED',
16
+ 'Rates': '0x9f9D43B1231ba641EAAf1ca2982b9b9E39884538',
17
17
  'PreTrade': '',
18
18
  'Trade': '',
19
19
  'PostTrade': '',
20
20
  'SecuritiesRegistry': '',
21
- 'Security': '0xe88B4cc2F7620Ec5ABcd32aC5dCDB1E59Bd2D69b',
21
+ 'Security': '0x59c03C48407641648D673e483d40c8a9A3552DFc',
22
22
  'OrderPool': '',
23
23
  'PoolFactory': '',
24
- 'Products': '0xdC51E8b0BaE85B134FfAf1E2a1d3ABdE14eF4927',
25
24
  'Stocks': '',
26
25
  'Bonds': '',
27
- 'Liquidity': '0xE3B74659a6464519987DEe03F17696690BF3Ae10',
28
- 'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
29
- 'BalancerManager': '0xA1edeF110612Af64FE4b88d73d6DC5b73eDfc2C6',
30
- 'PrimaryIssuePoolFactory': '0x80B93fAe4DDaa078b054B761Ed09228814250b7F',
31
- 'Custody': '',
26
+ 'Liquidity': '0x06b40A1471d715FD0581854F22166283D89b0302',
27
+ 'Distribution': '0x7aE7fe788D1f14B22a7f6C3707320FbE3A51968b',
28
+ 'BalancerPrimaryIssueManager': '0x66E5FE7B82686833a063a050A2A2b9Fdf17adBEd',
29
+ 'BalancerSecondaryIssueManager': '0x3da4a6DB7cFcDe2d4fb48e8E946d57EdB52d435a',
30
+ 'Custody': '0x8357FB36fFA9dcE78A43Fb33DbFFAAB2738E5B1a',
32
31
  'CASH': {
33
- 'VCUSD': '0xAE12CFDF57c9c38441a4205179970Fd7eEcff5D7',
34
- 'VCEUR': '0x17531a8F6C5cd4a4681EB8c8B57c9c4C55b84308',
35
- 'VCINR': '0xA5939cA5fF0Aa81940e6bF2e1F4ab0efb27c06C6'
32
+ 'VCUSD': '0x0817a43DB9b3e562FF70C1aa6e27E109324ca16A',
33
+ 'VCEUR': '0xF0B677058BbBA3066B644034054447412D5EB40d',
34
+ 'VCINR': '0x0D3d2e2Be0902Ebe5fD7E75dD57B127203Fc9e78'
36
35
  },
37
36
  'BOND': {
38
- 'VBUSD': '0x738150a512984632D08e654f86B47CdF26eC644e',
39
- 'VBEUR': '0xE01633468Ddf83F6b19C8ea3156193561f1580AB',
40
- 'VBINR': '0x0075417c1B24a47fbCf54Eb53F29E1989eCEbC17'
37
+ 'VBUSD': '0xD1fB140A486BFCec3744E4aE2b9B7c84989ae937',
38
+ 'VBEUR': '0xA719C7365F5a20Ef694409B0fF0084127919b019',
39
+ 'VBINR': '0xD8A84301df4138c48Fdb1b6C7c96980983200835'
41
40
  },
42
41
  },
43
42
  'L2-goerli': {
@@ -60,7 +59,6 @@ const contractAddress = {
60
59
  'Security': '0x324dfB528BEea8419eC96C6a54E0DA7744A4f8da',
61
60
  'OrderPool': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
62
61
  'PoolFactory': '0xEE713f9e7d7D03267534C2628019C16dC1c41ecB',
63
- 'Products': '0xCA7C581d55E5025745C495D9be8EE6f8B22FD156',
64
62
  'Stocks': '0xA02119054272E52f6b6380c358E995f95Db2E9B2',
65
63
  'Bonds': '0xBa0daEBb3D325e6cE3401ff2FF913a5FEe20181D',
66
64
  'Liquidity': '',
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.VerifiedProducts = exports.VerifiedRates = exports.VerifiedDistribution = exports.VerifiedFactory = exports.VerifiedBond = exports.VerifiedCash = exports.AssetManager = 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;
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,20 +59,22 @@ 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 assetmanager_1 = __importDefault(require("./contract/assetmanager"));
63
- exports.AssetManager = assetmanager_1.default;
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"));
67
69
  exports.VerifiedBond = bond_2.default;
70
+ const security_2 = __importDefault(require("./contract/public/security"));
71
+ exports.VerifiedSecurity = security_2.default;
68
72
  const factory_2 = __importDefault(require("./contract/public/factory"));
69
73
  exports.VerifiedFactory = factory_2.default;
70
74
  const distribution_2 = __importDefault(require("./contract/public/distribution"));
71
75
  exports.VerifiedDistribution = distribution_2.default;
72
76
  const rates_2 = __importDefault(require("./contract/public/rates"));
73
77
  exports.VerifiedRates = rates_2.default;
74
- const product_2 = __importDefault(require("./contract/public/product"));
75
- exports.VerifiedProducts = product_2.default;
76
78
  const client_2 = __importDefault(require("./contract/public/client"));
77
79
  exports.VerifiedClient = client_2.default;
78
80
  const ethers_1 = require("ethers");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "0.8.5",
3
+ "version": "0.8.8",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",