@verified-network/verified-sdk 2.3.8 → 2.4.0
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.
|
@@ -235,6 +235,15 @@
|
|
|
235
235
|
"name": "Approval",
|
|
236
236
|
"type": "event"
|
|
237
237
|
},
|
|
238
|
+
{
|
|
239
|
+
"constant": false,
|
|
240
|
+
"inputs": [],
|
|
241
|
+
"name": "initialize",
|
|
242
|
+
"outputs": [],
|
|
243
|
+
"payable": false,
|
|
244
|
+
"stateMutability": "nonpayable",
|
|
245
|
+
"type": "function"
|
|
246
|
+
},
|
|
238
247
|
{
|
|
239
248
|
"constant": false,
|
|
240
249
|
"inputs": [
|
|
@@ -465,6 +474,28 @@
|
|
|
465
474
|
"payable": false,
|
|
466
475
|
"stateMutability": "nonpayable",
|
|
467
476
|
"type": "function"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"constant": false,
|
|
480
|
+
"inputs": [
|
|
481
|
+
{
|
|
482
|
+
"name": "_comet",
|
|
483
|
+
"type": "address"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "manager",
|
|
487
|
+
"type": "address"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "isAllowed",
|
|
491
|
+
"type": "bool"
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"name": "allow",
|
|
495
|
+
"outputs": [],
|
|
496
|
+
"payable": false,
|
|
497
|
+
"stateMutability": "nonpayable",
|
|
498
|
+
"type": "function"
|
|
468
499
|
}
|
|
469
500
|
]
|
|
470
501
|
}
|
|
@@ -32,4 +32,5 @@ export default class Token extends VerifiedContract {
|
|
|
32
32
|
allowance(_owner: string, _spender: string, options?: Options): any;
|
|
33
33
|
increaseAllowance(_spender: string, _addedValue: string, options?: Options): any;
|
|
34
34
|
decreaseAllowance(_spender: string, _subtractedValue: string, options?: Options): any;
|
|
35
|
+
allow(_protocol: string, _manager: string, _isAllowed: boolean, options?: Options): any;
|
|
35
36
|
}
|
|
@@ -20,6 +20,7 @@ var FUNCTIONS;
|
|
|
20
20
|
FUNCTIONS["ALLOWANCE"] = "allowance";
|
|
21
21
|
FUNCTIONS["INCREASEALLOWANCE"] = "increaseAllowance";
|
|
22
22
|
FUNCTIONS["DECREASEALLOWANCE"] = "decreaseAllowance";
|
|
23
|
+
FUNCTIONS["ALLOW"] = "allow";
|
|
23
24
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
24
25
|
class Token extends index_1.VerifiedContract {
|
|
25
26
|
constructor(signer, bondCurrencyAddress) {
|
|
@@ -99,5 +100,11 @@ class Token extends index_1.VerifiedContract {
|
|
|
99
100
|
await this.validateInput(index_1.DATATYPES.NUMBER, _subtractedValue);
|
|
100
101
|
return this.callContract(FUNCTIONS.DECREASEALLOWANCE, _spender, _subtractedValue, options);
|
|
101
102
|
}
|
|
103
|
+
async allow(_protocol, _manager, _isAllowed, options) {
|
|
104
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _protocol);
|
|
105
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _manager);
|
|
106
|
+
await this.validateInput(index_1.DATATYPES.BOOLEAN, _isAllowed);
|
|
107
|
+
return this.callContract(FUNCTIONS.ALLOW, _protocol, _manager, _isAllowed, options);
|
|
108
|
+
}
|
|
102
109
|
}
|
|
103
110
|
exports.default = Token;
|
|
@@ -311,12 +311,12 @@ const contractAddress = {
|
|
|
311
311
|
},
|
|
312
312
|
11155111: {
|
|
313
313
|
'Client': '0xB72629Bb4d031F1C755AFfA123AAA28E81EfdA9A',
|
|
314
|
-
'Factory': '
|
|
315
|
-
'Cash': '
|
|
316
|
-
'Bond': '
|
|
317
|
-
'Token': '
|
|
318
|
-
'Oracle': '
|
|
319
|
-
'Rates': '
|
|
314
|
+
'Factory': '0x31b9Fe8f91114d019E5ab28CaC0D9FC4Ce094B66',
|
|
315
|
+
'Cash': '0x4332CAe4A4a41E234589AF265ad05DbF3E4634cA',
|
|
316
|
+
'Bond': '0x776b0Da4d5E9480F299D2abfD07d3298026A3f5E',
|
|
317
|
+
'Token': '0x811a1932bab04BE7301168145cE248024b7696Ff',
|
|
318
|
+
'Oracle': '0x30b11E1999aC70311c6ddD17B7201A508Bb5eB15',
|
|
319
|
+
'Rates': '0xD7A772238ed3Ea78E182eb25D3e9E373E1625E90',
|
|
320
320
|
'Security': '0xa1c552a33FB9e391d0F50A6407385c55cd22d596',
|
|
321
321
|
'SecuritiesFactory': '0x7CaB6AA90fD672F6ddBd0B92c0a5428b53ebA414',
|
|
322
322
|
'Vitta': '0x87145164371Ad7851AD3B4D47C9820F95983d8EA',
|
|
@@ -329,18 +329,18 @@ const contractAddress = {
|
|
|
329
329
|
'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
|
|
330
330
|
'BalancerMarginIssueManager': '0xcC52ce78a8fF2198FBD37D85D1686E7C80604cd3',
|
|
331
331
|
'Custody': '0x30A613eBd1A460E4800395bc0BF6E1B6cE58Eb2c',
|
|
332
|
-
'Compound': '',
|
|
332
|
+
'Compound': '0x7b185DFf748DD922754A636B9c6f7ac5a2f4fE11',
|
|
333
333
|
'CASH': {
|
|
334
|
-
'VCUSD': '
|
|
335
|
-
'VCEUR': '
|
|
336
|
-
'VCCHF': '
|
|
337
|
-
'VCINR': '
|
|
334
|
+
'VCUSD': '0x1352fDe2b7993Ec3dDcC4Ea45C2707b37aD1E041',
|
|
335
|
+
'VCEUR': '0x909A5A034E9E413ffEf3B19A25D63b5f3e72BADF',
|
|
336
|
+
'VCCHF': '0x601E17A86b37aeF2D5Ac2DA56c0987154EA1267F',
|
|
337
|
+
'VCINR': '0xd0B45d2a883F8c045A770A4c9c528Caa106CE28C'
|
|
338
338
|
},
|
|
339
339
|
'BOND': {
|
|
340
|
-
'VBUSD': '
|
|
341
|
-
'VBEUR': '
|
|
342
|
-
'VBCHF': '
|
|
343
|
-
'VBINR': '
|
|
340
|
+
'VBUSD': '0xBf3560569045f46fEa40B79386E165d575F3e03c',
|
|
341
|
+
'VBEUR': '0xC6ddFb54A66B89AEE098228EBC70aCF06D196885',
|
|
342
|
+
'VBCHF': '0xd41aa78a4c81A52f775eFA9c81Fcae7A7807Ed0C',
|
|
343
|
+
'VBINR': '0x91c844b24409687484a32C77641cB2a37EDB87cF'
|
|
344
344
|
},
|
|
345
345
|
},
|
|
346
346
|
'balancerVault': '0xBA12222222228d8Ba445958a75a0704d566BF2C8'
|