@verified-network/verified-sdk 2.6.6 → 2.6.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.
|
@@ -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;
|
|
@@ -207,15 +207,15 @@ const contractAddress = {
|
|
|
207
207
|
},
|
|
208
208
|
//Base
|
|
209
209
|
8453: {
|
|
210
|
-
Client: "
|
|
210
|
+
Client: "0x9606706e98D18ee243F44cEce8540f002721f996",
|
|
211
211
|
Factory: "",
|
|
212
212
|
Cash: "",
|
|
213
213
|
Bond: "",
|
|
214
214
|
Token: "",
|
|
215
215
|
Oracle: "",
|
|
216
216
|
Rates: "",
|
|
217
|
-
Security: "",
|
|
218
|
-
SecuritiesFactory: "",
|
|
217
|
+
Security: "0x5bf960c22456116ff77BE323Baf2D6767D2b240a",
|
|
218
|
+
SecuritiesFactory: "0xCeC02CB2e1c40FEc8D70289827bE24658A581706",
|
|
219
219
|
Vitta: "0x14A6CDf98B542bFc4A815A96C584BFde5f7F1aFc",
|
|
220
220
|
Liquidity: "0x5E6dc0d84E9B66B9814637394345F4975903345D",
|
|
221
221
|
Distribution: "",
|
|
@@ -225,7 +225,7 @@ const contractAddress = {
|
|
|
225
225
|
BalancerSecondaryIssueManager: "",
|
|
226
226
|
MarginTradingPoolFactory: "0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C",
|
|
227
227
|
BalancerMarginIssueManager: "",
|
|
228
|
-
Custody: "",
|
|
228
|
+
Custody: "0xcB7282B16E381aA6A63b429170455CeDafBBc71C",
|
|
229
229
|
Compound: "",
|
|
230
230
|
CASH: {
|
|
231
231
|
VCUSD: "",
|
|
@@ -327,7 +327,7 @@ const contractAddress = {
|
|
|
327
327
|
SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
|
|
328
328
|
BalancerSecondaryIssueManager: "0x2EE617cdF5314CE0660F1fEe6d6097c271600e56",
|
|
329
329
|
MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
|
|
330
|
-
BalancerMarginIssueManager: "
|
|
330
|
+
BalancerMarginIssueManager: "0xA7Bf49cF2C0f011719953297Ab027da0C88A559a",
|
|
331
331
|
Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
|
|
332
332
|
Compound: "0x4b3CBDB8FBe5fcdDF796cd42d3749f8AcD53DA73",
|
|
333
333
|
CASH: {
|