@verified-network/verified-sdk 0.8.3 → 0.8.4
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/BalancerManager.json +10872 -11975
- package/dist/abi/assetmanager/Client.json +1170 -1170
- package/dist/abi/assetmanager/Products.json +330 -330
- package/dist/abi/custody/Vault.json +4 -4
- package/dist/abi/liquidity/Liquidity.json +11090 -12315
- package/dist/contract/assetmanager/index.js +8 -2
- package/dist/contract/liquidity/index.js +6 -4
- package/dist/contractAddress/index.js +4 -4
- package/package.json +1 -1
|
@@ -24,7 +24,12 @@ class AssetManager extends index_1.VerifiedContract {
|
|
|
24
24
|
super(address, JSON.stringify(BalancerManager_json_1.abi), signer);
|
|
25
25
|
this.contractAddress = address;
|
|
26
26
|
}
|
|
27
|
-
async offer(owned, isin, offered, tomatch, desired, min, issuer,
|
|
27
|
+
async offer(owned, isin, offered, tomatch, desired, min, issuer,
|
|
28
|
+
//_hashedMessage: string,
|
|
29
|
+
//_v: string,
|
|
30
|
+
//_r: string,
|
|
31
|
+
//_s: string,
|
|
32
|
+
options) {
|
|
28
33
|
await this.validateInput(index_1.DATATYPES.ADDRESS, owned);
|
|
29
34
|
await this.validateInput(index_1.DATATYPES.ADDRESS, tomatch);
|
|
30
35
|
await this.validateInput(index_1.DATATYPES.ADDRESS, issuer);
|
|
@@ -32,7 +37,8 @@ class AssetManager extends index_1.VerifiedContract {
|
|
|
32
37
|
await this.validateInput(index_1.DATATYPES.NUMBER, offered);
|
|
33
38
|
await this.validateInput(index_1.DATATYPES.NUMBER, desired);
|
|
34
39
|
await this.validateInput(index_1.DATATYPES.NUMBER, min);
|
|
35
|
-
return this.callContract(FUNCTIONS.OFFER, owned, this.sanitiseInput(index_1.DATATYPES.BYTE32, isin), offered, tomatch, desired, min, issuer,
|
|
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);
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Gets security tokens offered for passed token parameter
|
|
@@ -21,7 +21,7 @@ var FUNCTIONS;
|
|
|
21
21
|
FUNCTIONS["ADDMANAGER"] = "addManager";
|
|
22
22
|
FUNCTIONS["REMOVEMANAGER"] = "removeManager";
|
|
23
23
|
FUNCTIONS["GETMANAGERS"] = "getManagers";
|
|
24
|
-
FUNCTIONS["GETPLATFORMS"] = "
|
|
24
|
+
FUNCTIONS["GETPLATFORMS"] = "getPlatforms";
|
|
25
25
|
FUNCTIONS["GETPLATFORMPERFORMANCE"] = "getPlatformPerformance";
|
|
26
26
|
FUNCTIONS["GETMANAGERPERFORMANCE"] = "getManagerPerformance";
|
|
27
27
|
FUNCTIONS["PROVIDELIQUIDITY"] = "provideLiquidity";
|
|
@@ -99,7 +99,7 @@ class LiquidityContract extends index_1.VerifiedContract {
|
|
|
99
99
|
/**
|
|
100
100
|
Fetches registered platforms
|
|
101
101
|
*/
|
|
102
|
-
async
|
|
102
|
+
async getPlatforms() {
|
|
103
103
|
return this.callContract(FUNCTIONS.GETPLATFORMS);
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
@@ -221,11 +221,13 @@ class LiquidityContract extends index_1.VerifiedContract {
|
|
|
221
221
|
* @param options
|
|
222
222
|
* @returns none
|
|
223
223
|
*/
|
|
224
|
-
async provideLiquidity(_platform, _manager, _liquidity, options) {
|
|
224
|
+
async provideLiquidity(_platform, _manager, _liquidity, _token, _tokenAmount, options) {
|
|
225
225
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _platform);
|
|
226
226
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _manager);
|
|
227
227
|
await this.validateInput(index_1.DATATYPES.NUMBER, _liquidity);
|
|
228
|
-
|
|
228
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
229
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _tokenAmount);
|
|
230
|
+
return this.callContract(FUNCTIONS.PROVIDELIQUIDITY, _platform, _manager, _liquidity, _token, _tokenAmount, options);
|
|
229
231
|
}
|
|
230
232
|
/**
|
|
231
233
|
* Fetches balance of investor
|
|
@@ -24,10 +24,10 @@ const contractAddress = {
|
|
|
24
24
|
'Products': '0xF647F22e8Ce31d912c2786135610f9f4A45c8690',
|
|
25
25
|
'Stocks': '',
|
|
26
26
|
'Bonds': '',
|
|
27
|
-
'Liquidity': '
|
|
27
|
+
'Liquidity': '0xE3B74659a6464519987DEe03F17696690BF3Ae10',
|
|
28
28
|
'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
|
|
29
|
-
'BalancerManager': '
|
|
30
|
-
'PrimaryIssuePoolFactory': '
|
|
29
|
+
'BalancerManager': '0x3afBe221d32e981af537da23b8feE92A46faC370',
|
|
30
|
+
'PrimaryIssuePoolFactory': '0xD2eFfB1CDeBE86cE710E73097d74A1a528f9F783',
|
|
31
31
|
'Custody': '',
|
|
32
32
|
'CASH': {
|
|
33
33
|
'VCUSD': '0xCb8eF17d0715bB115977C65e04423d9171025911',
|
|
@@ -67,7 +67,7 @@ const contractAddress = {
|
|
|
67
67
|
'Distribution': '',
|
|
68
68
|
'BalancerManager': '',
|
|
69
69
|
'PrimaryIssuePoolFactory': '',
|
|
70
|
-
'Custody': '',
|
|
70
|
+
'Custody': '0x138a6aF82D20c1bb4589721C846626317C5E1143',
|
|
71
71
|
'CASH': {
|
|
72
72
|
'VCUSD': '0xdD089A53574CabcA8082F81CC883bdBFCb0e464a',
|
|
73
73
|
'VCEUR': '0xC889374e780911b6524ADde13998F7Cb2b0Bb8d5',
|