@venusprotocol/protocol-reserve 1.4.0 → 1.5.0-dev.1

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.
@@ -6901,7 +6901,7 @@
6901
6901
  ]
6902
6902
  },
6903
6903
  "RiskFundV2": {
6904
- "address": "0x5FA4E699eAFcf277d2Ed968bb9bc78F2fE9d04A3",
6904
+ "address": "0x2F377545Fd095fA59A56Cb1fD7456A2a0B781Cb6",
6905
6905
  "abi": [
6906
6906
  {
6907
6907
  "inputs": [],
@@ -7172,6 +7172,31 @@
7172
7172
  "name": "SweepToken",
7173
7173
  "type": "event"
7174
7174
  },
7175
+ {
7176
+ "anonymous": false,
7177
+ "inputs": [
7178
+ {
7179
+ "indexed": true,
7180
+ "internalType": "address",
7181
+ "name": "token",
7182
+ "type": "address"
7183
+ },
7184
+ {
7185
+ "indexed": true,
7186
+ "internalType": "address",
7187
+ "name": "comptroller",
7188
+ "type": "address"
7189
+ },
7190
+ {
7191
+ "indexed": false,
7192
+ "internalType": "uint256",
7193
+ "name": "amount",
7194
+ "type": "uint256"
7195
+ }
7196
+ ],
7197
+ "name": "SweepTokenFromPool",
7198
+ "type": "event"
7199
+ },
7175
7200
  {
7176
7201
  "anonymous": false,
7177
7202
  "inputs": [
@@ -7414,6 +7439,29 @@
7414
7439
  "stateMutability": "nonpayable",
7415
7440
  "type": "function"
7416
7441
  },
7442
+ {
7443
+ "inputs": [
7444
+ {
7445
+ "internalType": "address",
7446
+ "name": "tokenAddress",
7447
+ "type": "address"
7448
+ },
7449
+ {
7450
+ "internalType": "address",
7451
+ "name": "comptroller",
7452
+ "type": "address"
7453
+ },
7454
+ {
7455
+ "internalType": "uint256",
7456
+ "name": "amount",
7457
+ "type": "uint256"
7458
+ }
7459
+ ],
7460
+ "name": "sweepTokenFromPool",
7461
+ "outputs": [],
7462
+ "stateMutability": "nonpayable",
7463
+ "type": "function"
7464
+ },
7417
7465
  {
7418
7466
  "inputs": [
7419
7467
  {
@@ -14,7 +14,7 @@
14
14
  "RiskFundConverter": "0xA5622D276CcbB8d9BBE3D1ffd1BB11a0032E53F0",
15
15
  "RiskFundConverter_Implementation": "0x2fB02b3D49D45967DA471C7685Ce524d833520Dc",
16
16
  "RiskFundConverter_Proxy": "0xA5622D276CcbB8d9BBE3D1ffd1BB11a0032E53F0",
17
- "RiskFundV2": "0x5FA4E699eAFcf277d2Ed968bb9bc78F2fE9d04A3",
17
+ "RiskFundV2": "0x2F377545Fd095fA59A56Cb1fD7456A2a0B781Cb6",
18
18
  "SingleTokenConverterBeacon": "0x4c9D57b05B245c40235D720A5f3A592f3DfF11ca",
19
19
  "SingleTokenConverterImp": "0xe80f5A2adE24bEd740408B944197b3c24f2f2e91",
20
20
  "USDCPrimeConverter": "0xa758c9C215B6c4198F0a0e3FA46395Fa15Db691b",
@@ -0,0 +1,7 @@
1
+ import { HardhatRuntimeEnvironment } from "hardhat/types";
2
+ declare const func: {
3
+ ({ getNamedAccounts, deployments }: HardhatRuntimeEnvironment): Promise<void>;
4
+ tags: string[];
5
+ };
6
+ export default func;
7
+ //# sourceMappingURL=006-risk-fund-v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"006-risk-fund-v2.d.ts","sourceRoot":"","sources":["../../deploy/006-risk-fund-v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE1D,QAAA,MAAM,IAAI;wCAA6C,yBAAyB;;CAU/E,CAAC;AAIF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const func = ({ getNamedAccounts, deployments }) => __awaiter(void 0, void 0, void 0, function* () {
13
+ const { deploy } = deployments;
14
+ const { deployer } = yield getNamedAccounts();
15
+ yield deploy("RiskFundV2", {
16
+ contract: "RiskFundV2",
17
+ from: deployer,
18
+ args: [],
19
+ log: true,
20
+ autoMine: true,
21
+ });
22
+ });
23
+ func.tags = ["RiskFundV2"];
24
+ exports.default = func;
25
+ //# sourceMappingURL=006-risk-fund-v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"006-risk-fund-v2.js","sourceRoot":"","sources":["../../deploy/006-risk-fund-v2.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,MAAM,IAAI,GAAG,CAAO,EAAE,gBAAgB,EAAE,WAAW,EAA6B,EAAE,EAAE;IAClF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAC9C,MAAM,MAAM,CAAC,YAAY,EAAE;QACzB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,IAAI;QACT,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;AAE3B,kBAAe,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@venusprotocol/protocol-reserve",
3
3
  "description": "Venus Protocol contracts to manage the income generated by the protocol",
4
- "version": "1.4.0",
4
+ "version": "1.5.0-dev.1",
5
5
  "author": "Venus",
6
6
  "engines": {
7
7
  "node": ">=18.0.0"