@verified-network/verified-sdk 1.6.5 → 1.6.6
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/balancer/MarginIssueManager.json +30489 -23086
- package/dist/abi/assetmanager/balancer/PrimaryIssueManager.json +10622 -10664
- package/dist/contract/amm/margin/index.d.ts +3 -3
- package/dist/contract/amm/margin/index.js +29 -12
- package/dist/contractAddress/index.js +2 -2
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export default class MarginIssueManager extends VerifiedContract {
|
|
|
19
19
|
gasPrice: any;
|
|
20
20
|
gasLimit: any;
|
|
21
21
|
}): any;
|
|
22
|
-
getCollateral(
|
|
22
|
+
getCollateral(poolId: string, currency: string, options?: {
|
|
23
23
|
gasPrice: any;
|
|
24
24
|
gasLimit: any;
|
|
25
25
|
}): any;
|
|
@@ -31,11 +31,11 @@ export default class MarginIssueManager extends VerifiedContract {
|
|
|
31
31
|
gasPrice: any;
|
|
32
32
|
gasLimit: any;
|
|
33
33
|
}): any;
|
|
34
|
-
onSettle(security: string, currency: string,
|
|
34
|
+
onSettle(security: string, currency: string, financing: string, dividend: string, commissions: string, options?: {
|
|
35
35
|
gasPrice: any;
|
|
36
36
|
gasLimit: any;
|
|
37
37
|
}): any;
|
|
38
|
-
withdraw(security: string, currency: string, options?: {
|
|
38
|
+
withdraw(security: string, currency: string, amount: string, options?: {
|
|
39
39
|
gasPrice: any;
|
|
40
40
|
gasLimit: any;
|
|
41
41
|
}): any;
|
|
@@ -51,10 +51,10 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
51
51
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
52
52
|
return this.callContract(FUNCTIONS.SENDCOLLATERAL, currency, amount, security, options);
|
|
53
53
|
}
|
|
54
|
-
async getCollateral(
|
|
54
|
+
async getCollateral(poolId, currency, options) {
|
|
55
55
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
56
|
-
await this.validateInput(index_1.DATATYPES.
|
|
57
|
-
return this.callContract(FUNCTIONS.GETCOLLATERAL,
|
|
56
|
+
await this.validateInput(index_1.DATATYPES.STRING, poolId);
|
|
57
|
+
return this.callContract(FUNCTIONS.GETCOLLATERAL, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), currency, options);
|
|
58
58
|
}
|
|
59
59
|
async onMatch(party, counterparty, orderRef, security, securityTraded, currency, cashTraded, options) {
|
|
60
60
|
await this.validateInput(index_1.DATATYPES.ADDRESS, party);
|
|
@@ -76,20 +76,37 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
76
76
|
await this.validateInput(index_1.DATATYPES.NUMBER, executionTime);
|
|
77
77
|
return this.callContract(FUNCTIONS.ONTRADE, ref, cref, security, securityTraded, currency, currencyTraded, executionTime, options);
|
|
78
78
|
}
|
|
79
|
-
async onSettle(
|
|
79
|
+
/*public async onSettle(
|
|
80
|
+
security: string,
|
|
81
|
+
currency: string,
|
|
82
|
+
financingPerSec:string,
|
|
83
|
+
charge: string,
|
|
84
|
+
dividendPerSec:string,
|
|
85
|
+
payout: string,
|
|
86
|
+
settlementTime:string,
|
|
87
|
+
options?: { gasPrice, gasLimit }): any {
|
|
88
|
+
await this.validateInput(DATATYPES.ADDRESS, security);
|
|
89
|
+
await this.validateInput(DATATYPES.ADDRESS, currency);
|
|
90
|
+
await this.validateInput(DATATYPES.NUMBER, financingPerSec);
|
|
91
|
+
await this.validateInput(DATATYPES.BOOLEAN, charge);
|
|
92
|
+
await this.validateInput(DATATYPES.NUMBER, dividendPerSec);
|
|
93
|
+
await this.validateInput(DATATYPES.BOOLEAN, payout);
|
|
94
|
+
await this.validateInput(DATATYPES.NUMBER, settlementTime);
|
|
95
|
+
return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingPerSec, charge, dividendPerSec, payout, settlementTime, options);
|
|
96
|
+
}*/
|
|
97
|
+
async onSettle(security, currency, financing, dividend, commissions, options) {
|
|
80
98
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
81
99
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
82
|
-
await this.validateInput(index_1.DATATYPES.NUMBER,
|
|
83
|
-
await this.validateInput(index_1.DATATYPES.
|
|
84
|
-
await this.validateInput(index_1.DATATYPES.NUMBER,
|
|
85
|
-
|
|
86
|
-
await this.validateInput(index_1.DATATYPES.NUMBER, settlementTime);
|
|
87
|
-
return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingPerSec, charge, dividendPerSec, payout, settlementTime, options);
|
|
100
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, financing);
|
|
101
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, dividend);
|
|
102
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, commissions);
|
|
103
|
+
return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financing, dividend, commissions, options);
|
|
88
104
|
}
|
|
89
|
-
async withdraw(security, currency, options) {
|
|
105
|
+
async withdraw(security, currency, amount, options) {
|
|
90
106
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
91
107
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
92
|
-
|
|
108
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, amount);
|
|
109
|
+
return this.callContract(FUNCTIONS.WITHDRAW, security, currency, amount, options);
|
|
93
110
|
}
|
|
94
111
|
}
|
|
95
112
|
exports.default = MarginIssueManager;
|
|
@@ -323,11 +323,11 @@ const contractAddress = {
|
|
|
323
323
|
'Liquidity': '0x27006b68b3594EF5Ae04C5457c24F0c7CF1E5553',
|
|
324
324
|
'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
|
|
325
325
|
'PrimaryIssuePoolFactory': '0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5',
|
|
326
|
-
'BalancerPrimaryIssueManager': '
|
|
326
|
+
'BalancerPrimaryIssueManager': '0x5209fc3f8f5A28E9a77bfd18056d8B8429397600',
|
|
327
327
|
'SecondaryIssuePoolFactory': '0xde763208aB2279435D0e6AA4297d25164873Fe82',
|
|
328
328
|
'BalancerSecondaryIssueManager': '0x32464AC66668824E6d1261472F085045354B2CBa',
|
|
329
329
|
'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
|
|
330
|
-
'BalancerMarginIssueManager': '
|
|
330
|
+
'BalancerMarginIssueManager': '0x13c9C292d99fD6fA3e68741B574EBD5aCb4772B6',
|
|
331
331
|
'Custody': '0x7aE9f79067AB4FDc8d41B18f1e6491590ac76f9d',
|
|
332
332
|
'Compound': '',
|
|
333
333
|
'CASH': {
|