@verified-network/verified-sdk 2.6.7 → 2.6.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.
|
@@ -460,6 +460,19 @@
|
|
|
460
460
|
"stateMutability": "nonpayable",
|
|
461
461
|
"type": "function"
|
|
462
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"inputs": [
|
|
465
|
+
{
|
|
466
|
+
"internalType": "address",
|
|
467
|
+
"name": "trader",
|
|
468
|
+
"type": "address"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"name": "removeTrader",
|
|
472
|
+
"outputs": [],
|
|
473
|
+
"stateMutability": "nonpayable",
|
|
474
|
+
"type": "function"
|
|
475
|
+
},
|
|
463
476
|
{
|
|
464
477
|
"inputs": [
|
|
465
478
|
{
|
|
@@ -644,6 +657,11 @@
|
|
|
644
657
|
},
|
|
645
658
|
{
|
|
646
659
|
"inputs": [
|
|
660
|
+
{
|
|
661
|
+
"internalType": "bytes32",
|
|
662
|
+
"name": "ref",
|
|
663
|
+
"type": "bytes32"
|
|
664
|
+
},
|
|
647
665
|
{
|
|
648
666
|
"internalType": "address",
|
|
649
667
|
"name": "security",
|
|
@@ -697,6 +715,11 @@
|
|
|
697
715
|
},
|
|
698
716
|
{
|
|
699
717
|
"inputs": [
|
|
718
|
+
{
|
|
719
|
+
"internalType": "bytes32",
|
|
720
|
+
"name": "ref",
|
|
721
|
+
"type": "bytes32"
|
|
722
|
+
},
|
|
700
723
|
{
|
|
701
724
|
"internalType": "address",
|
|
702
725
|
"name": "security",
|
|
@@ -20,6 +20,6 @@ export default class MarginIssueManager extends VerifiedContract {
|
|
|
20
20
|
getPool(poolId: string, options?: Options): any;
|
|
21
21
|
onMatch(party: string, counterparty: string, orderRef: string, security: string, securityTraded: string, currency: string, cashTraded: string, options?: Options): any;
|
|
22
22
|
onTrade(ref: string, cref: string, security: string, securityTraded: string, currency: string, currencyTraded: string, executionTime: string, options?: Options): any;
|
|
23
|
-
onSettle(security: string, currency: string, financingBid: string, financingOffer: string, dividendBid: string, dividendOffer: string, swapLong: string, swapShort: string, settlementTime: string, options?: Options): any;
|
|
24
|
-
withdraw(security: string, currency: string, amount: string, options?: Options): any;
|
|
23
|
+
onSettle(orderRef: string, security: string, currency: string, financingBid: string, financingOffer: string, dividendBid: string, dividendOffer: string, swapLong: string, swapShort: string, settlementTime: string, options?: Options): any;
|
|
24
|
+
withdraw(orderRef: string, security: string, currency: string, amount: string, options?: Options): any;
|
|
25
25
|
}
|
|
@@ -109,7 +109,7 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
109
109
|
await this.validateInput(DATATYPES.NUMBER, settlementTime);
|
|
110
110
|
return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingPerSec, charge, dividendPerSec, payout, settlementTime, options);
|
|
111
111
|
}*/
|
|
112
|
-
async onSettle(security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options) {
|
|
112
|
+
async onSettle(orderRef, security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options) {
|
|
113
113
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
114
114
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
115
115
|
await this.validateInput(index_1.DATATYPES.NUMBER, financingBid);
|
|
@@ -119,13 +119,13 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
119
119
|
await this.validateInput(index_1.DATATYPES.NUMBER, swapLong);
|
|
120
120
|
await this.validateInput(index_1.DATATYPES.NUMBER, swapShort);
|
|
121
121
|
await this.validateInput(index_1.DATATYPES.NUMBER, settlementTime);
|
|
122
|
-
return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options);
|
|
122
|
+
return this.callContract(FUNCTIONS.ONSETTLE, orderRef, security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options);
|
|
123
123
|
}
|
|
124
|
-
async withdraw(security, currency, amount, options) {
|
|
124
|
+
async withdraw(orderRef, security, currency, amount, options) {
|
|
125
125
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
126
126
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
127
127
|
await this.validateInput(index_1.DATATYPES.NUMBER, amount);
|
|
128
|
-
return this.callContract(FUNCTIONS.WITHDRAW, security, currency, amount, options);
|
|
128
|
+
return this.callContract(FUNCTIONS.WITHDRAW, orderRef, security, currency, amount, options);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
exports.default = MarginIssueManager;
|
|
@@ -35,7 +35,7 @@ const contractAddress = {
|
|
|
35
35
|
VBINR: "0x699Da71a435336238F1081aD46448CfbCD18c380",
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
42161: {
|
|
39
39
|
Client: "",
|
|
40
40
|
Factory: "",
|
|
41
41
|
Cash: "",
|
|
@@ -56,17 +56,19 @@ const contractAddress = {
|
|
|
56
56
|
BalancerMarginIssueManager: "",
|
|
57
57
|
Custody: "",
|
|
58
58
|
Compound: "",
|
|
59
|
+
HedgeVault: "0x4bBbF2cBAAC6caEF25Bc6c37575d7D23040dE371",
|
|
60
|
+
Keeper: "0x6D181714edD79e8c14b9C0E132a692dA6Ff979AC",
|
|
59
61
|
CASH: {
|
|
60
62
|
VCUSD: "",
|
|
61
63
|
VCEUR: "",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
VCGBP: "",
|
|
65
|
+
VCJPY: "",
|
|
64
66
|
},
|
|
65
67
|
BOND: {
|
|
66
68
|
VBUSD: "",
|
|
67
69
|
VBEUR: "",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
VBGBP: "",
|
|
71
|
+
VBJPY: "",
|
|
70
72
|
},
|
|
71
73
|
},
|
|
72
74
|
80001: {
|
|
@@ -171,14 +173,14 @@ const contractAddress = {
|
|
|
171
173
|
VBINR: "",
|
|
172
174
|
},
|
|
173
175
|
},
|
|
174
|
-
|
|
176
|
+
421614: {
|
|
175
177
|
Client: "",
|
|
176
|
-
Factory: "",
|
|
177
|
-
Cash: "",
|
|
178
|
-
Bond: "",
|
|
179
|
-
Token: "",
|
|
180
|
-
Oracle: "",
|
|
181
|
-
Rates: "",
|
|
178
|
+
Factory: "0xF387D694B2ac3847F118778f16fdC11B58c0a859",
|
|
179
|
+
Cash: "0xb1539a85F9252137BE0B2f1169EaE235B6D45142",
|
|
180
|
+
Bond: "0xE7422FdB4e9a39489bFe7ef9F1E1b27dC7860195",
|
|
181
|
+
Token: "0x04631b0B934c1d35B1f0FDAa1E000AC85c93ec7A",
|
|
182
|
+
Oracle: "0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C",
|
|
183
|
+
Rates: "0x55db1EC971D3d908C6E15bc5f9a13eEA43DEA545",
|
|
182
184
|
Security: "",
|
|
183
185
|
SecuritiesFactory: "",
|
|
184
186
|
Vitta: "",
|
|
@@ -192,17 +194,19 @@ const contractAddress = {
|
|
|
192
194
|
BalancerMarginIssueManager: "",
|
|
193
195
|
Custody: "",
|
|
194
196
|
Compound: "",
|
|
197
|
+
Hedge: "",
|
|
198
|
+
Keeper: "",
|
|
195
199
|
CASH: {
|
|
196
|
-
VCUSD: "",
|
|
197
|
-
VCEUR: "",
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
VCUSD: "0x0a360291f2F726e528B4F4E5EceA00F00ae37319",
|
|
201
|
+
VCEUR: "0x7733bDdE8caA9539641D5a250eF8AF7745206B49",
|
|
202
|
+
VCGBP: "0x842d44678D90244a1A410aca0c65e3Da64cB3b3a",
|
|
203
|
+
VCJPY: "0xE4410c5E81D14cc2E957D45666f57503e220E179",
|
|
200
204
|
},
|
|
201
205
|
BOND: {
|
|
202
|
-
VBUSD: "",
|
|
203
|
-
VBEUR: "",
|
|
204
|
-
|
|
205
|
-
|
|
206
|
+
VBUSD: "0x778019bE7feF3b6E014535bB76DD89163BE7c637",
|
|
207
|
+
VBEUR: "0xeD5B6319f2A5Dfb14D529eF7eFc46643Dd740cF5",
|
|
208
|
+
VBGBP: "0xDD0726FB8Be0034d8aB6DE5f84F3A6A4968D4D00",
|
|
209
|
+
VBJPY: "0x395343049204c293cD1C79Db09Ecb146FD5E5eFa",
|
|
206
210
|
},
|
|
207
211
|
},
|
|
208
212
|
//Base
|
|
@@ -225,7 +229,7 @@ const contractAddress = {
|
|
|
225
229
|
BalancerSecondaryIssueManager: "",
|
|
226
230
|
MarginTradingPoolFactory: "0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C",
|
|
227
231
|
BalancerMarginIssueManager: "",
|
|
228
|
-
Custody: "",
|
|
232
|
+
Custody: "0xcB7282B16E381aA6A63b429170455CeDafBBc71C",
|
|
229
233
|
Compound: "",
|
|
230
234
|
CASH: {
|
|
231
235
|
VCUSD: "",
|
|
@@ -327,7 +331,7 @@ const contractAddress = {
|
|
|
327
331
|
SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
|
|
328
332
|
BalancerSecondaryIssueManager: "0x2EE617cdF5314CE0660F1fEe6d6097c271600e56",
|
|
329
333
|
MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
|
|
330
|
-
BalancerMarginIssueManager: "
|
|
334
|
+
BalancerMarginIssueManager: "0xA7Bf49cF2C0f011719953297Ab027da0C88A559a",
|
|
331
335
|
Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
|
|
332
336
|
Compound: "0x4b3CBDB8FBe5fcdDF796cd42d3749f8AcD53DA73",
|
|
333
337
|
CASH: {
|