@verified-network/verified-sdk 0.8.2 → 0.8.3

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.
@@ -70,9 +70,16 @@ class AssetManager extends index_1.VerifiedContract {
70
70
  * @param options
71
71
  * @returns array of structs of liquidity providers
72
72
  */
73
- async getLiquidityProviders(security, _hashedMessage, _v, _r, _s, options) {
73
+ async getLiquidityProviders(security,
74
+ //_hashedMessage: string,
75
+ //_v: string,
76
+ //_r: string,
77
+ //_s: string,
78
+ options) {
74
79
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
75
- return this.callContract(FUNCTIONS.GETLIQUIDITYPROVIDERS, security, _hashedMessage, _v, _r, _s, options);
80
+ return this.callContract(FUNCTIONS.GETLIQUIDITYPROVIDERS, security,
81
+ //_hashedMessage, _v, _r, _s,
82
+ options);
76
83
  }
77
84
  async issue(security, cutoffTime, issuer, _hashedMessage, _v, _r, _s, options) {
78
85
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
@@ -24,6 +24,10 @@ var FUNCTIONS;
24
24
  FUNCTIONS["PAYOUT"] = "payOut";
25
25
  FUNCTIONS["ISSUEBOND"] = "issueBond";
26
26
  FUNCTIONS["GETBENEFICIARIES"] = "getBeneficiaries";
27
+ FUNCTIONS["SETLIQUIDITYPROVIDERS"] = "setLiquidityProviders";
28
+ FUNCTIONS["SETPLATFORMPOOLS"] = "setPlatformPools";
29
+ FUNCTIONS["SETPLATFORMSUBSCRIBERS"] = "setPlatformSubscribers";
30
+ FUNCTIONS["SETTLE"] = "settleIssue";
27
31
  })(FUNCTIONS || (FUNCTIONS = {}));
28
32
  class BondsContract extends index_1.VerifiedContract {
29
33
  constructor(signer, issue) {
@@ -56,6 +60,10 @@ class BondsContract extends index_1.VerifiedContract {
56
60
  await this.validateInput(index_1.DATATYPES.ADDRESS, _asset);
57
61
  return this.callContract(FUNCTIONS.ALLOTISSUE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _allotment), _platform, this.sanitiseInput(index_1.DATATYPES.BYTE32, _pool), _investor, _amount, _asset, options);
58
62
  }
63
+ async settle(issue, options) {
64
+ await this.validateInput(index_1.DATATYPES.ADDRESS, issue);
65
+ return this.callContract(FUNCTIONS.SETTLE, issue, options);
66
+ }
59
67
  async computeNextInstallment(_currency, options) {
60
68
  await this.validateInput(index_1.DATATYPES.ADDRESS, _currency);
61
69
  return this.callContract(FUNCTIONS.NEXTINSTALLMENT, _currency, options);
@@ -110,5 +118,23 @@ class BondsContract extends index_1.VerifiedContract {
110
118
  await this.validateInput(index_1.DATATYPES.STRING, _offeringDocuments);
111
119
  return this.callContract(FUNCTIONS.ISSUEBOND, _issueSize, _offerPrice, _minAskPrice, _minSubscription, _couponPaymentCycle, _tenure, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), this.sanitiseInput(index_1.DATATYPES.BYTE32, _offerType), this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), _offeringDocuments, options);
112
120
  }
121
+ async setLiquidityProviders(platform, liquidityProviders, _hashedMessage, _v, _r, _s, options) {
122
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
123
+ await this.validateInput(index_1.DATATYPES.STRING, liquidityProviders);
124
+ return this.callContract(FUNCTIONS.SETLIQUIDITYPROVIDERS, platform, liquidityProviders, _hashedMessage, _v, _r, _s, options);
125
+ }
126
+ async setPlatformPools(platform, securityToken, pools, status, _hashedMessage, _v, _r, _s, options) {
127
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
128
+ await this.validateInput(index_1.DATATYPES.ADDRESS, securityToken);
129
+ await this.validateInput(index_1.DATATYPES.STRING, pools);
130
+ await this.validateInput(index_1.DATATYPES.STRING, status);
131
+ return this.callContract(FUNCTIONS.SETPLATFORMPOOLS, platform, securityToken, pools, status, _hashedMessage, _v, _r, _s, options);
132
+ }
133
+ async setPlatformSubscribers(platform, pool, eois, _hashedMessage, _v, _r, _s, options) {
134
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
135
+ await this.validateInput(index_1.DATATYPES.STRING, pool);
136
+ await this.validateInput(index_1.DATATYPES.STRING, eois);
137
+ return this.callContract(FUNCTIONS.SETPLATFORMSUBSCRIBERS, platform, this.sanitiseInput(index_1.DATATYPES.BYTE32, pool), eois, _hashedMessage, _v, _r, _s, options);
138
+ }
113
139
  }
114
140
  exports.default = BondsContract;
@@ -22,6 +22,7 @@ var FUNCTIONS;
22
22
  FUNCTIONS["GETPLATFORMS"] = "getPlatforms";
23
23
  FUNCTIONS["GETPRODUCTREFERENCE"] = "getProductReference";
24
24
  FUNCTIONS["SETSIGNER"] = "setSigner";
25
+ FUNCTIONS["REGISTERPLATFORM"] = "registerPlatform";
25
26
  })(FUNCTIONS || (FUNCTIONS = {}));
26
27
  class ProductContract extends index_1.VerifiedContract {
27
28
  constructor(signer) {
@@ -101,5 +102,9 @@ class ProductContract extends index_1.VerifiedContract {
101
102
  await this.validateInput(index_1.DATATYPES.ADDRESS, _issue);
102
103
  return this.callContract(FUNCTIONS.GETPRODUCTREFERENCE, _issue, options);
103
104
  }
105
+ async registerPlatform(liquidityPlatform, _hashedMessage, _v, _r, _s, options) {
106
+ await this.validateInput(index_1.DATATYPES.ADDRESS, liquidityPlatform);
107
+ return this.callContract(FUNCTIONS.REGISTERPLATFORM, liquidityPlatform, _hashedMessage, _v, _r, _s, options);
108
+ }
104
109
  }
105
110
  exports.default = ProductContract;
@@ -17,6 +17,10 @@ var FUNCTIONS;
17
17
  FUNCTIONS["PAYOUT"] = "payOut";
18
18
  FUNCTIONS["ISSUESHARE"] = "issueShare";
19
19
  FUNCTIONS["GETBENEFICIARIES"] = "getBeneficiaries";
20
+ FUNCTIONS["SETLIQUIDITYPROVIDERS"] = "setLiquidityProviders";
21
+ FUNCTIONS["SETPLATFORMPOOLS"] = "setPlatformPools";
22
+ FUNCTIONS["SETPLATFORMSUBSCRIBERS"] = "setPlatformSubscribers";
23
+ FUNCTIONS["SETTLE"] = "settleIssue";
20
24
  })(FUNCTIONS || (FUNCTIONS = {}));
21
25
  class StocksContract extends index_1.VerifiedContract {
22
26
  constructor(signer, issue) {
@@ -49,6 +53,10 @@ class StocksContract extends index_1.VerifiedContract {
49
53
  await this.validateInput(index_1.DATATYPES.ADDRESS, _asset);
50
54
  return this.callContract(FUNCTIONS.ALLOTISSUE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _allotment), _platform, this.sanitiseInput(index_1.DATATYPES.BYTE32, _pool), _investor, _amount, _asset, options);
51
55
  }
56
+ async settle(issue, options) {
57
+ await this.validateInput(index_1.DATATYPES.ADDRESS, issue);
58
+ return this.callContract(FUNCTIONS.SETTLE, issue, options);
59
+ }
52
60
  async getPaymentStatusFor(_beneficiary, options) {
53
61
  await this.validateInput(index_1.DATATYPES.ADDRESS, _beneficiary);
54
62
  return this.callContract(FUNCTIONS.GETPAYMENTSTATUS, _beneficiary, options);
@@ -77,5 +85,23 @@ class StocksContract extends index_1.VerifiedContract {
77
85
  await this.validateInput(index_1.DATATYPES.STRING, _isin);
78
86
  return this.callContract(FUNCTIONS.ISSUESHARE, _issueSize, _offerPrice, _minAskPrice, _minSubscription, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), this.sanitiseInput(index_1.DATATYPES.BYTE32, _offerType), this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), _offeringDocuments, options);
79
87
  }
88
+ async setLiquidityProviders(platform, liquidityProviders, _hashedMessage, _v, _r, _s, options) {
89
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
90
+ await this.validateInput(index_1.DATATYPES.STRING, liquidityProviders);
91
+ return this.callContract(FUNCTIONS.SETLIQUIDITYPROVIDERS, platform, liquidityProviders, _hashedMessage, _v, _r, _s, options);
92
+ }
93
+ async setPlatformPools(platform, securityToken, pools, status, _hashedMessage, _v, _r, _s, options) {
94
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
95
+ await this.validateInput(index_1.DATATYPES.ADDRESS, securityToken);
96
+ await this.validateInput(index_1.DATATYPES.STRING, pools);
97
+ await this.validateInput(index_1.DATATYPES.STRING, status);
98
+ return this.callContract(FUNCTIONS.SETPLATFORMPOOLS, platform, securityToken, pools, status, _hashedMessage, _v, _r, _s, options);
99
+ }
100
+ async setPlatformSubscribers(platform, pool, eois, _hashedMessage, _v, _r, _s, options) {
101
+ await this.validateInput(index_1.DATATYPES.ADDRESS, platform);
102
+ await this.validateInput(index_1.DATATYPES.STRING, pool);
103
+ await this.validateInput(index_1.DATATYPES.STRING, eois);
104
+ return this.callContract(FUNCTIONS.SETPLATFORMSUBSCRIBERS, platform, this.sanitiseInput(index_1.DATATYPES.BYTE32, pool), eois, _hashedMessage, _v, _r, _s, options);
105
+ }
80
106
  }
81
107
  exports.default = StocksContract;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const contractAddress = {
4
4
  'L1-goerli': {
5
- 'Client': '0x115A7b38bE1d96F66cE5D25EaEe2f4FB91bb1E2F',
5
+ 'Client': '0x9C0B0Fc0737e6C87EB9AbB00BAFE5A211691E62D',
6
6
  'KYC': '',
7
7
  'System': '',
8
8
  'Holder': '',
@@ -21,13 +21,13 @@ const contractAddress = {
21
21
  'Security': '0x8B7D20deDF0DC7874B3C357Ba759890e51ad4bb3',
22
22
  'OrderPool': '',
23
23
  'PoolFactory': '',
24
- 'Products': '0x812cD96Bd1D9C35EaCD3F09Dc504B2d30e63EFe5',
24
+ 'Products': '0xF647F22e8Ce31d912c2786135610f9f4A45c8690',
25
25
  'Stocks': '',
26
26
  'Bonds': '',
27
27
  'Liquidity': '0xf6FeBF7B2d2A9828F4B75dB9AE56414907175849',
28
28
  'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
29
- 'BalancerManager': '0x69071961A04024F20A180B66F391DA5B14040bEa',
30
- 'PrimaryIssuePoolFactory': '0x3Ea829F1a0E01dFDa096f71DEAFd3582DF5E5a26',
29
+ 'BalancerManager': '0x5bd1c54f94eE6eB7a7fA94bB31A600B9Ea6E179a',
30
+ 'PrimaryIssuePoolFactory': '0xe1e009F722e5fb544b35543Cc5da7B7E00a56abB',
31
31
  'Custody': '',
32
32
  'CASH': {
33
33
  'VCUSD': '0xCb8eF17d0715bB115977C65e04423d9171025911',
@@ -60,9 +60,9 @@ const contractAddress = {
60
60
  'Security': '0x324dfB528BEea8419eC96C6a54E0DA7744A4f8da',
61
61
  'OrderPool': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
62
62
  'PoolFactory': '0xEE713f9e7d7D03267534C2628019C16dC1c41ecB',
63
- 'Products': '0x53F20058A93364689C70d2CBf4057F507e32e000',
64
- 'Stocks': '0x57ecEE694D9Cd5B16A55CFc5FF596de3Aa4B9a56',
65
- 'Bonds': '0x23ceC8ec65837F71F02f27f351cecB3ec4cf5ba6',
63
+ 'Products': '0xCA7C581d55E5025745C495D9be8EE6f8B22FD156',
64
+ 'Stocks': '0xA02119054272E52f6b6380c358E995f95Db2E9B2',
65
+ 'Bonds': '0xBa0daEBb3D325e6cE3401ff2FF913a5FEe20181D',
66
66
  'Liquidity': '',
67
67
  'Distribution': '',
68
68
  'BalancerManager': '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",