@gearbox-protocol/sdk 1.5.21 → 1.5.23
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/lib/core/creditAccount.d.ts +4 -10
- package/lib/core/creditAccount.js +15 -43
- package/lib/core/creditManager.d.ts +1 -1
- package/lib/core/creditManager.js +25 -19
- package/lib/oracles/priceFeeds.d.ts +1 -0
- package/lib/oracles/priceFeeds.js +2 -1
- package/lib/payload/creditAccount.d.ts +2 -3
- package/lib/payload/creditManager.d.ts +2 -7
- package/lib/types/contracts/test/suites/mainnet/ITokenTestSuite.d.ts +81 -1
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.d.ts +9 -1
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.d.ts +17 -1
- package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.js +124 -0
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts__factory.js +13 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.js +32 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BigNumber } from "ethers";
|
|
2
2
|
import { LpTokensAPY } from "../apy";
|
|
3
|
-
import {
|
|
3
|
+
import { CreditAccountDataPayload } from "../payload/creditAccount";
|
|
4
4
|
import { TokenData } from "../tokens/tokenData";
|
|
5
5
|
import { Asset, LpAsset } from "./assets";
|
|
6
6
|
import { CreditManagerData } from "./creditManager";
|
|
@@ -25,6 +25,9 @@ export declare class CreditAccountData {
|
|
|
25
25
|
isDeleting: boolean;
|
|
26
26
|
enabledTokenMask: BigNumber;
|
|
27
27
|
readonly version: number;
|
|
28
|
+
readonly repayAmount: BigNumber;
|
|
29
|
+
readonly liquidationAmount: BigNumber;
|
|
30
|
+
readonly canBeClosed: boolean;
|
|
28
31
|
constructor(payload: CreditAccountDataPayload);
|
|
29
32
|
balancesSorted(prices: Record<string, BigNumber>, tokens: Record<string, TokenData>): Array<Asset>;
|
|
30
33
|
calcBorrowAmountPlusInterestRate(currentCumulativeIndex: BigNumber): BigNumber;
|
|
@@ -36,15 +39,6 @@ export declare class CreditAccountData {
|
|
|
36
39
|
export declare function sortBalances(balances: Record<string, BigNumber>, prices: Record<string, BigNumber>, tokens: Record<string, TokenData>): Array<[string, BigNumber]>;
|
|
37
40
|
export declare function tokensAbcComparator(t1?: TokenData, t2?: TokenData): 1 | -1;
|
|
38
41
|
export declare function amountAbcComparator(t1: BigNumber, t2: BigNumber): 1 | -1;
|
|
39
|
-
export declare class CreditAccountDataExtended extends CreditAccountData {
|
|
40
|
-
readonly repayAmount: BigNumber;
|
|
41
|
-
readonly liquidationAmount: BigNumber;
|
|
42
|
-
readonly borrowedAmount: BigNumber;
|
|
43
|
-
readonly canBeClosed: boolean;
|
|
44
|
-
readonly cumulativeIndexAtOpen: BigNumber;
|
|
45
|
-
readonly since: number;
|
|
46
|
-
constructor(payload: CreditAccountDataExtendedPayload);
|
|
47
|
-
}
|
|
48
42
|
export interface CalcOverallAPYProps {
|
|
49
43
|
lpAssets: Array<LpAsset>;
|
|
50
44
|
lpAPY: LpTokensAPY | undefined;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.calcOverallAPY = exports.
|
|
3
|
+
exports.calcOverallAPY = exports.amountAbcComparator = exports.tokensAbcComparator = exports.sortBalances = exports.CreditAccountData = void 0;
|
|
19
4
|
var ethers_1 = require("ethers");
|
|
20
5
|
var formatter_1 = require("../utils/formatter");
|
|
21
6
|
var price_1 = require("../utils/price");
|
|
@@ -34,30 +19,32 @@ var CreditAccountData = /** @class */ (function () {
|
|
|
34
19
|
this.creditManager = payload.creditManager.toLowerCase();
|
|
35
20
|
this.underlyingToken = payload.underlying.toLowerCase();
|
|
36
21
|
this.since = ethers_1.BigNumber.from(payload.since).toNumber();
|
|
37
|
-
this.cumulativeIndexAtOpen =
|
|
38
|
-
this.borrowedAmount =
|
|
39
|
-
this.borrowedAmountPlusInterest =
|
|
40
|
-
this.totalValue =
|
|
41
|
-
this.healthFactor =
|
|
42
|
-
ethers_1.BigNumber.from(payload.healthFactor).toNumber() / constants_1.PERCENTAGE_FACTOR;
|
|
22
|
+
this.cumulativeIndexAtOpen = payload.cumulativeIndexAtOpen;
|
|
23
|
+
this.borrowedAmount = payload.borrowedAmount;
|
|
24
|
+
this.borrowedAmountPlusInterest = payload.borrowedAmountPlusInterest;
|
|
25
|
+
this.totalValue = payload.totalValue;
|
|
26
|
+
this.healthFactor = payload.healthFactor.toNumber() / constants_1.PERCENTAGE_FACTOR;
|
|
43
27
|
this.borrowRate =
|
|
44
|
-
|
|
28
|
+
payload.borrowRate
|
|
45
29
|
.mul(constants_1.PERCENTAGE_FACTOR)
|
|
46
30
|
.mul(constants_1.PERCENTAGE_DECIMALS)
|
|
47
31
|
.div(constants_1.RAY)
|
|
48
32
|
.toNumber() / constants_1.PERCENTAGE_FACTOR;
|
|
49
|
-
|
|
33
|
+
payload.balances.forEach(function (b) {
|
|
50
34
|
var tokenLC = b.token.toLowerCase();
|
|
51
35
|
if (b.isAllowed) {
|
|
52
|
-
_this.balances[tokenLC] =
|
|
36
|
+
_this.balances[tokenLC] = b.balance;
|
|
53
37
|
_this.collateralTokens.push(tokenLC);
|
|
54
38
|
}
|
|
55
|
-
_this.allBalances[tokenLC] =
|
|
39
|
+
_this.allBalances[tokenLC] = b.balance;
|
|
56
40
|
_this.allTokens.push(tokenLC);
|
|
57
41
|
});
|
|
58
|
-
this.enabledTokenMask =
|
|
42
|
+
this.enabledTokenMask = payload.enabledTokenMask;
|
|
59
43
|
this.isDeleting = false;
|
|
60
|
-
this.version =
|
|
44
|
+
this.version = payload.version;
|
|
45
|
+
this.repayAmount = payload.repayAmount;
|
|
46
|
+
this.liquidationAmount = payload.liquidationAmount;
|
|
47
|
+
this.canBeClosed = payload.canBeClosed;
|
|
61
48
|
}
|
|
62
49
|
CreditAccountData.prototype.balancesSorted = function (prices, tokens) {
|
|
63
50
|
return sortBalances(this.balances, prices, tokens).map(function (_a) {
|
|
@@ -137,21 +124,6 @@ function amountAbcComparator(t1, t2) {
|
|
|
137
124
|
return (t1 === null || t1 === void 0 ? void 0 : t1.gt(t2)) ? -1 : 1;
|
|
138
125
|
}
|
|
139
126
|
exports.amountAbcComparator = amountAbcComparator;
|
|
140
|
-
var CreditAccountDataExtended = /** @class */ (function (_super) {
|
|
141
|
-
__extends(CreditAccountDataExtended, _super);
|
|
142
|
-
function CreditAccountDataExtended(payload) {
|
|
143
|
-
var _this = _super.call(this, payload) || this;
|
|
144
|
-
_this.borrowedAmount = ethers_1.BigNumber.from(payload.borrowedAmount);
|
|
145
|
-
_this.cumulativeIndexAtOpen = ethers_1.BigNumber.from(payload.cumulativeIndexAtOpen);
|
|
146
|
-
_this.repayAmount = ethers_1.BigNumber.from(payload.repayAmount);
|
|
147
|
-
_this.liquidationAmount = ethers_1.BigNumber.from(payload.liquidationAmount);
|
|
148
|
-
_this.canBeClosed = payload.canBeClosed || false;
|
|
149
|
-
_this.since = ethers_1.BigNumber.from(payload.since).toNumber();
|
|
150
|
-
return _this;
|
|
151
|
-
}
|
|
152
|
-
return CreditAccountDataExtended;
|
|
153
|
-
}(CreditAccountData));
|
|
154
|
-
exports.CreditAccountDataExtended = CreditAccountDataExtended;
|
|
155
127
|
function calcOverallAPY(_a) {
|
|
156
128
|
var lpAssets = _a.lpAssets, lpAPY = _a.lpAPY, prices = _a.prices, tokensList = _a.tokensList, totalValue = _a.totalValue, debt = _a.debt, borrowRate = _a.borrowRate, underlyingToken = _a.underlyingToken;
|
|
157
129
|
if (!lpAPY || !totalValue || !debt)
|
|
@@ -5,7 +5,6 @@ import { TokenData } from "../tokens/tokenData";
|
|
|
5
5
|
import { ICreditManager } from "../types";
|
|
6
6
|
import { Asset } from "./assets";
|
|
7
7
|
export declare class CreditManagerData {
|
|
8
|
-
readonly id: string;
|
|
9
8
|
readonly address: string;
|
|
10
9
|
readonly underlyingToken: string;
|
|
11
10
|
readonly pool: string;
|
|
@@ -41,6 +40,7 @@ export declare class CreditManagerData {
|
|
|
41
40
|
validateOpenAccount(collateral: BigNumber, debt: BigNumber): true;
|
|
42
41
|
protected validateOpenAccountV1(collateral: BigNumber, debt: BigNumber): true;
|
|
43
42
|
protected validateOpenAccountV2(debt: BigNumber): true;
|
|
43
|
+
get id(): string;
|
|
44
44
|
}
|
|
45
45
|
export declare class CreditManagerStat extends CreditManagerData {
|
|
46
46
|
readonly uniqueUsers: number;
|
|
@@ -37,22 +37,21 @@ var errors_1 = require("./errors");
|
|
|
37
37
|
var CreditManagerData = /** @class */ (function () {
|
|
38
38
|
function CreditManagerData(payload) {
|
|
39
39
|
this.isPaused = false;
|
|
40
|
-
this.id = payload.addr.toLowerCase();
|
|
41
40
|
this.address = payload.addr.toLowerCase();
|
|
42
41
|
this.underlyingToken = payload.underlying.toLowerCase();
|
|
43
42
|
this.pool = payload.pool.toLowerCase();
|
|
44
43
|
this.isWETH = payload.isWETH;
|
|
45
44
|
this.canBorrow = payload.canBorrow;
|
|
46
45
|
this.borrowRate =
|
|
47
|
-
|
|
48
|
-
.mul(
|
|
46
|
+
payload.borrowRate
|
|
47
|
+
.mul(payload.feeInterest + constants_1.PERCENTAGE_FACTOR)
|
|
49
48
|
.mul(constants_1.PERCENTAGE_DECIMALS)
|
|
50
49
|
.div(constants_1.RAY)
|
|
51
50
|
.toNumber() / constants_1.PERCENTAGE_FACTOR;
|
|
52
|
-
this.minAmount =
|
|
53
|
-
this.maxAmount =
|
|
51
|
+
this.minAmount = payload.minAmount;
|
|
52
|
+
this.maxAmount = payload.maxAmount;
|
|
54
53
|
this.maxLeverageFactor = ethers_1.BigNumber.from(payload.maxLeverageFactor).toNumber();
|
|
55
|
-
this.availableLiquidity =
|
|
54
|
+
this.availableLiquidity = payload.availableLiquidity;
|
|
56
55
|
this.collateralTokens = payload.collateralTokens.map(function (t) { return t.toLowerCase(); });
|
|
57
56
|
this.adapters = payload.adapters.reduce(function (acc, _a) {
|
|
58
57
|
var _b;
|
|
@@ -62,21 +61,21 @@ var CreditManagerData = /** @class */ (function () {
|
|
|
62
61
|
this.liquidationThresholds = payload.liquidationThresholds.reduce(function (acc, threshold, index) {
|
|
63
62
|
var address = payload.collateralTokens[index];
|
|
64
63
|
if (address)
|
|
65
|
-
acc[address.toLowerCase()] =
|
|
64
|
+
acc[address.toLowerCase()] = threshold;
|
|
66
65
|
return acc;
|
|
67
66
|
}, {});
|
|
68
|
-
this.version =
|
|
69
|
-
this.creditFacade =
|
|
70
|
-
this.creditConfigurator =
|
|
71
|
-
this.isDegenMode = payload.isDegenMode
|
|
72
|
-
this.degenNFT =
|
|
73
|
-
this.isIncreaseDebtForbidden = payload.isIncreaseDebtForbidden
|
|
74
|
-
this.forbiddenTokenMask =
|
|
75
|
-
this.feeInterest =
|
|
76
|
-
this.feeLiquidation =
|
|
77
|
-
this.liquidationDiscount =
|
|
78
|
-
this.feeLiquidationExpired =
|
|
79
|
-
this.liquidationDiscountExpired =
|
|
67
|
+
this.version = payload.version;
|
|
68
|
+
this.creditFacade = payload.creditFacade.toLowerCase();
|
|
69
|
+
this.creditConfigurator = payload.creditConfigurator.toLowerCase();
|
|
70
|
+
this.isDegenMode = payload.isDegenMode;
|
|
71
|
+
this.degenNFT = payload.degenNFT.toLowerCase();
|
|
72
|
+
this.isIncreaseDebtForbidden = payload.isIncreaseDebtForbidden;
|
|
73
|
+
this.forbiddenTokenMask = payload.forbiddenTokenMask;
|
|
74
|
+
this.feeInterest = payload.feeInterest;
|
|
75
|
+
this.feeLiquidation = payload.feeLiquidation;
|
|
76
|
+
this.liquidationDiscount = payload.feeLiquidation;
|
|
77
|
+
this.feeLiquidationExpired = payload.feeLiquidationExpired;
|
|
78
|
+
this.liquidationDiscountExpired = payload.feeLiquidationExpired;
|
|
80
79
|
if (this.creditFacade !== "") {
|
|
81
80
|
txParser_1.TxParser.addCreditFacade(this.creditFacade, token_1.tokenSymbolByAddress[this.underlyingToken]);
|
|
82
81
|
txParser_1.TxParser.addAdapters(payload.adapters.map(function (a) { return ({
|
|
@@ -143,6 +142,13 @@ var CreditManagerData = /** @class */ (function () {
|
|
|
143
142
|
throw new errors_1.OpenAccountError("insufficientPoolLiquidity", ethers_1.BigNumber.from(this.availableLiquidity));
|
|
144
143
|
return true;
|
|
145
144
|
};
|
|
145
|
+
Object.defineProperty(CreditManagerData.prototype, "id", {
|
|
146
|
+
get: function () {
|
|
147
|
+
return this.address;
|
|
148
|
+
},
|
|
149
|
+
enumerable: false,
|
|
150
|
+
configurable: true
|
|
151
|
+
});
|
|
146
152
|
return CreditManagerData;
|
|
147
153
|
}());
|
|
148
154
|
exports.CreditManagerData = CreditManagerData;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.priceFeedsByNetwork = void 0;
|
|
3
|
+
exports.priceFeedsByNetwork = exports.GAS_PRICE_FEED = void 0;
|
|
4
4
|
var oracles_1 = require("./oracles");
|
|
5
|
+
exports.GAS_PRICE_FEED = "0x169e633a2d1e6c10dd91238ba11c4a708dfef37c";
|
|
5
6
|
exports.priceFeedsByNetwork = {
|
|
6
7
|
"1INCH": {
|
|
7
8
|
priceFeedETH: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CreditAccountDataStruct } from "../types/contracts/interfaces/IDataCompressor.sol/IDataCompressor";
|
|
1
|
+
import { CreditAccountDataStruct, CreditAccountDataStructOutput } from "../types/contracts/interfaces/IDataCompressor.sol/IDataCompressor";
|
|
2
2
|
export declare type TokenBalancePayload = CreditAccountDataStruct["balances"];
|
|
3
|
-
export declare type CreditAccountDataPayload =
|
|
4
|
-
export declare type CreditAccountDataExtendedPayload = CreditAccountDataStruct;
|
|
3
|
+
export declare type CreditAccountDataPayload = CreditAccountDataStructOutput;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BigNumberish } from "ethers";
|
|
2
|
-
import {
|
|
2
|
+
import { CreditManagerDataStructOutput } from "../types/contracts/interfaces/IDataCompressor.sol/IDataCompressor";
|
|
3
3
|
export interface AdapterPayload {
|
|
4
4
|
allowedContract: string;
|
|
5
5
|
adapter: string;
|
|
6
6
|
}
|
|
7
|
-
export declare type CreditManagerDataPayload =
|
|
7
|
+
export declare type CreditManagerDataPayload = CreditManagerDataStructOutput;
|
|
8
8
|
export interface CreditManagerStatPayload extends CreditManagerDataPayload {
|
|
9
9
|
allowedContracts?: Array<string>;
|
|
10
10
|
uniqueUsers: number;
|
|
@@ -18,9 +18,4 @@ export interface CreditManagerStatPayload extends CreditManagerDataPayload {
|
|
|
18
18
|
totalRepaid?: BigNumberish;
|
|
19
19
|
totalProfit?: BigNumberish;
|
|
20
20
|
totalLosses?: BigNumberish;
|
|
21
|
-
feeInterest: BigNumberish;
|
|
22
|
-
feeLiquidation: BigNumberish;
|
|
23
|
-
liquidationDiscount: BigNumberish;
|
|
24
|
-
feeLiquidationExpired: BigNumberish;
|
|
25
|
-
liquidationDiscountExpired: BigNumberish;
|
|
26
21
|
}
|
|
@@ -10,19 +10,31 @@ export interface ITokenTestSuiteInterface extends utils.Interface {
|
|
|
10
10
|
"approve(address,address,address)": FunctionFragment;
|
|
11
11
|
"approveMany(uint8[],address,uint8)": FunctionFragment;
|
|
12
12
|
"balanceOf(uint8,address)": FunctionFragment;
|
|
13
|
+
"mint(address,address,uint256)": FunctionFragment;
|
|
14
|
+
"mint(uint8,address,uint256)": FunctionFragment;
|
|
15
|
+
"mintWithTotalSupply(address,address,uint256)": FunctionFragment;
|
|
16
|
+
"mintWithTotalSupply(uint8,address,uint256)": FunctionFragment;
|
|
13
17
|
"symbols(uint8)": FunctionFragment;
|
|
18
|
+
"tokenCount()": FunctionFragment;
|
|
14
19
|
"tokenIndexes(address)": FunctionFragment;
|
|
20
|
+
"tokenTypes(uint8)": FunctionFragment;
|
|
15
21
|
"topUpWETH(address,uint256)": FunctionFragment;
|
|
16
22
|
};
|
|
17
|
-
getFunction(nameOrSignatureOrTopic: "addressOf" | "approve(uint8,address,address,uint256)" | "approve(uint8,address,address)" | "approve(address,address,address)" | "approveMany" | "balanceOf" | "symbols" | "tokenIndexes" | "topUpWETH"): FunctionFragment;
|
|
23
|
+
getFunction(nameOrSignatureOrTopic: "addressOf" | "approve(uint8,address,address,uint256)" | "approve(uint8,address,address)" | "approve(address,address,address)" | "approveMany" | "balanceOf" | "mint(address,address,uint256)" | "mint(uint8,address,uint256)" | "mintWithTotalSupply(address,address,uint256)" | "mintWithTotalSupply(uint8,address,uint256)" | "symbols" | "tokenCount" | "tokenIndexes" | "tokenTypes" | "topUpWETH"): FunctionFragment;
|
|
18
24
|
encodeFunctionData(functionFragment: "addressOf", values: [BigNumberish]): string;
|
|
19
25
|
encodeFunctionData(functionFragment: "approve(uint8,address,address,uint256)", values: [BigNumberish, string, string, BigNumberish]): string;
|
|
20
26
|
encodeFunctionData(functionFragment: "approve(uint8,address,address)", values: [BigNumberish, string, string]): string;
|
|
21
27
|
encodeFunctionData(functionFragment: "approve(address,address,address)", values: [string, string, string]): string;
|
|
22
28
|
encodeFunctionData(functionFragment: "approveMany", values: [BigNumberish[], string, BigNumberish]): string;
|
|
23
29
|
encodeFunctionData(functionFragment: "balanceOf", values: [BigNumberish, string]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "mint(address,address,uint256)", values: [string, string, BigNumberish]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "mint(uint8,address,uint256)", values: [BigNumberish, string, BigNumberish]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "mintWithTotalSupply(address,address,uint256)", values: [string, string, BigNumberish]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "mintWithTotalSupply(uint8,address,uint256)", values: [BigNumberish, string, BigNumberish]): string;
|
|
24
34
|
encodeFunctionData(functionFragment: "symbols", values: [BigNumberish]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "tokenCount", values?: undefined): string;
|
|
25
36
|
encodeFunctionData(functionFragment: "tokenIndexes", values: [string]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "tokenTypes", values: [BigNumberish]): string;
|
|
26
38
|
encodeFunctionData(functionFragment: "topUpWETH", values: [string, BigNumberish]): string;
|
|
27
39
|
decodeFunctionResult(functionFragment: "addressOf", data: BytesLike): Result;
|
|
28
40
|
decodeFunctionResult(functionFragment: "approve(uint8,address,address,uint256)", data: BytesLike): Result;
|
|
@@ -30,8 +42,14 @@ export interface ITokenTestSuiteInterface extends utils.Interface {
|
|
|
30
42
|
decodeFunctionResult(functionFragment: "approve(address,address,address)", data: BytesLike): Result;
|
|
31
43
|
decodeFunctionResult(functionFragment: "approveMany", data: BytesLike): Result;
|
|
32
44
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "mint(address,address,uint256)", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "mint(uint8,address,uint256)", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "mintWithTotalSupply(address,address,uint256)", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "mintWithTotalSupply(uint8,address,uint256)", data: BytesLike): Result;
|
|
33
49
|
decodeFunctionResult(functionFragment: "symbols", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "tokenCount", data: BytesLike): Result;
|
|
34
51
|
decodeFunctionResult(functionFragment: "tokenIndexes", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "tokenTypes", data: BytesLike): Result;
|
|
35
53
|
decodeFunctionResult(functionFragment: "topUpWETH", data: BytesLike): Result;
|
|
36
54
|
events: {};
|
|
37
55
|
}
|
|
@@ -66,10 +84,24 @@ export interface ITokenTestSuite extends BaseContract {
|
|
|
66
84
|
balanceOf(t: BigNumberish, holder: string, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
67
85
|
balance: BigNumber;
|
|
68
86
|
}>;
|
|
87
|
+
"mint(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
88
|
+
from?: string | Promise<string>;
|
|
89
|
+
}): Promise<ContractTransaction>;
|
|
90
|
+
"mint(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
91
|
+
from?: string | Promise<string>;
|
|
92
|
+
}): Promise<ContractTransaction>;
|
|
93
|
+
"mintWithTotalSupply(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
94
|
+
from?: string | Promise<string>;
|
|
95
|
+
}): Promise<ContractTransaction>;
|
|
96
|
+
"mintWithTotalSupply(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
97
|
+
from?: string | Promise<string>;
|
|
98
|
+
}): Promise<ContractTransaction>;
|
|
69
99
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
100
|
+
tokenCount(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
70
101
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<[number] & {
|
|
71
102
|
t: number;
|
|
72
103
|
}>;
|
|
104
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<[number]>;
|
|
73
105
|
topUpWETH(onBehalfOf: string, value: BigNumberish, overrides?: Overrides & {
|
|
74
106
|
from?: string | Promise<string>;
|
|
75
107
|
}): Promise<ContractTransaction>;
|
|
@@ -88,8 +120,22 @@ export interface ITokenTestSuite extends BaseContract {
|
|
|
88
120
|
from?: string | Promise<string>;
|
|
89
121
|
}): Promise<ContractTransaction>;
|
|
90
122
|
balanceOf(t: BigNumberish, holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
123
|
+
"mint(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
124
|
+
from?: string | Promise<string>;
|
|
125
|
+
}): Promise<ContractTransaction>;
|
|
126
|
+
"mint(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
127
|
+
from?: string | Promise<string>;
|
|
128
|
+
}): Promise<ContractTransaction>;
|
|
129
|
+
"mintWithTotalSupply(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
130
|
+
from?: string | Promise<string>;
|
|
131
|
+
}): Promise<ContractTransaction>;
|
|
132
|
+
"mintWithTotalSupply(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
133
|
+
from?: string | Promise<string>;
|
|
134
|
+
}): Promise<ContractTransaction>;
|
|
91
135
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
136
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
92
137
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<number>;
|
|
138
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<number>;
|
|
93
139
|
topUpWETH(onBehalfOf: string, value: BigNumberish, overrides?: Overrides & {
|
|
94
140
|
from?: string | Promise<string>;
|
|
95
141
|
}): Promise<ContractTransaction>;
|
|
@@ -100,8 +146,14 @@ export interface ITokenTestSuite extends BaseContract {
|
|
|
100
146
|
"approve(address,address,address)"(token: string, holder: string, targetContract: string, overrides?: CallOverrides): Promise<void>;
|
|
101
147
|
approveMany(tokensToApprove: BigNumberish[], holder: string, targetContract: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
102
148
|
balanceOf(t: BigNumberish, holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
149
|
+
"mint(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
150
|
+
"mint(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
151
|
+
"mintWithTotalSupply(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
152
|
+
"mintWithTotalSupply(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
103
153
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
154
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
104
155
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<number>;
|
|
156
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<number>;
|
|
105
157
|
topUpWETH(onBehalfOf: string, value: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
106
158
|
};
|
|
107
159
|
filters: {};
|
|
@@ -120,8 +172,22 @@ export interface ITokenTestSuite extends BaseContract {
|
|
|
120
172
|
from?: string | Promise<string>;
|
|
121
173
|
}): Promise<BigNumber>;
|
|
122
174
|
balanceOf(t: BigNumberish, holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
175
|
+
"mint(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
176
|
+
from?: string | Promise<string>;
|
|
177
|
+
}): Promise<BigNumber>;
|
|
178
|
+
"mint(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
179
|
+
from?: string | Promise<string>;
|
|
180
|
+
}): Promise<BigNumber>;
|
|
181
|
+
"mintWithTotalSupply(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
182
|
+
from?: string | Promise<string>;
|
|
183
|
+
}): Promise<BigNumber>;
|
|
184
|
+
"mintWithTotalSupply(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
185
|
+
from?: string | Promise<string>;
|
|
186
|
+
}): Promise<BigNumber>;
|
|
123
187
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
188
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
124
189
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
190
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
125
191
|
topUpWETH(onBehalfOf: string, value: BigNumberish, overrides?: Overrides & {
|
|
126
192
|
from?: string | Promise<string>;
|
|
127
193
|
}): Promise<BigNumber>;
|
|
@@ -141,8 +207,22 @@ export interface ITokenTestSuite extends BaseContract {
|
|
|
141
207
|
from?: string | Promise<string>;
|
|
142
208
|
}): Promise<PopulatedTransaction>;
|
|
143
209
|
balanceOf(t: BigNumberish, holder: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
210
|
+
"mint(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
211
|
+
from?: string | Promise<string>;
|
|
212
|
+
}): Promise<PopulatedTransaction>;
|
|
213
|
+
"mint(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
214
|
+
from?: string | Promise<string>;
|
|
215
|
+
}): Promise<PopulatedTransaction>;
|
|
216
|
+
"mintWithTotalSupply(address,address,uint256)"(token: string, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
217
|
+
from?: string | Promise<string>;
|
|
218
|
+
}): Promise<PopulatedTransaction>;
|
|
219
|
+
"mintWithTotalSupply(uint8,address,uint256)"(t: BigNumberish, to: string, amount: BigNumberish, overrides?: Overrides & {
|
|
220
|
+
from?: string | Promise<string>;
|
|
221
|
+
}): Promise<PopulatedTransaction>;
|
|
144
222
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
223
|
+
tokenCount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
145
224
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
225
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
146
226
|
topUpWETH(onBehalfOf: string, value: BigNumberish, overrides?: Overrides & {
|
|
147
227
|
from?: string | Promise<string>;
|
|
148
228
|
}): Promise<PopulatedTransaction>;
|
package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.d.ts
CHANGED
|
@@ -5,12 +5,15 @@ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../..
|
|
|
5
5
|
export interface ISupportedContractsInterface extends utils.Interface {
|
|
6
6
|
functions: {
|
|
7
7
|
"addressOf(uint8)": FunctionFragment;
|
|
8
|
+
"contractCount()": FunctionFragment;
|
|
8
9
|
"nameOf(uint8)": FunctionFragment;
|
|
9
10
|
};
|
|
10
|
-
getFunction(nameOrSignatureOrTopic: "addressOf" | "nameOf"): FunctionFragment;
|
|
11
|
+
getFunction(nameOrSignatureOrTopic: "addressOf" | "contractCount" | "nameOf"): FunctionFragment;
|
|
11
12
|
encodeFunctionData(functionFragment: "addressOf", values: [BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "contractCount", values?: undefined): string;
|
|
12
14
|
encodeFunctionData(functionFragment: "nameOf", values: [BigNumberish]): string;
|
|
13
15
|
decodeFunctionResult(functionFragment: "addressOf", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "contractCount", data: BytesLike): Result;
|
|
14
17
|
decodeFunctionResult(functionFragment: "nameOf", data: BytesLike): Result;
|
|
15
18
|
events: {};
|
|
16
19
|
}
|
|
@@ -30,21 +33,26 @@ export interface ISupportedContracts extends BaseContract {
|
|
|
30
33
|
removeListener: OnEvent<this>;
|
|
31
34
|
functions: {
|
|
32
35
|
addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
36
|
+
contractCount(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
33
37
|
nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
34
38
|
};
|
|
35
39
|
addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
40
|
+
contractCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
36
41
|
nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
37
42
|
callStatic: {
|
|
38
43
|
addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
44
|
+
contractCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
39
45
|
nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
40
46
|
};
|
|
41
47
|
filters: {};
|
|
42
48
|
estimateGas: {
|
|
43
49
|
addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
50
|
+
contractCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
44
51
|
nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
45
52
|
};
|
|
46
53
|
populateTransaction: {
|
|
47
54
|
addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
55
|
+
contractCount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
48
56
|
nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
49
57
|
};
|
|
50
58
|
}
|
|
@@ -6,15 +6,21 @@ export interface ITokenInterface extends utils.Interface {
|
|
|
6
6
|
functions: {
|
|
7
7
|
"addressOf(uint8)": FunctionFragment;
|
|
8
8
|
"symbols(uint8)": FunctionFragment;
|
|
9
|
+
"tokenCount()": FunctionFragment;
|
|
9
10
|
"tokenIndexes(address)": FunctionFragment;
|
|
11
|
+
"tokenTypes(uint8)": FunctionFragment;
|
|
10
12
|
};
|
|
11
|
-
getFunction(nameOrSignatureOrTopic: "addressOf" | "symbols" | "tokenIndexes"): FunctionFragment;
|
|
13
|
+
getFunction(nameOrSignatureOrTopic: "addressOf" | "symbols" | "tokenCount" | "tokenIndexes" | "tokenTypes"): FunctionFragment;
|
|
12
14
|
encodeFunctionData(functionFragment: "addressOf", values: [BigNumberish]): string;
|
|
13
15
|
encodeFunctionData(functionFragment: "symbols", values: [BigNumberish]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "tokenCount", values?: undefined): string;
|
|
14
17
|
encodeFunctionData(functionFragment: "tokenIndexes", values: [string]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "tokenTypes", values: [BigNumberish]): string;
|
|
15
19
|
decodeFunctionResult(functionFragment: "addressOf", data: BytesLike): Result;
|
|
16
20
|
decodeFunctionResult(functionFragment: "symbols", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "tokenCount", data: BytesLike): Result;
|
|
17
22
|
decodeFunctionResult(functionFragment: "tokenIndexes", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "tokenTypes", data: BytesLike): Result;
|
|
18
24
|
events: {};
|
|
19
25
|
}
|
|
20
26
|
export interface IToken extends BaseContract {
|
|
@@ -34,27 +40,37 @@ export interface IToken extends BaseContract {
|
|
|
34
40
|
functions: {
|
|
35
41
|
addressOf(t: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
36
42
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
43
|
+
tokenCount(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
37
44
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<[number] & {
|
|
38
45
|
t: number;
|
|
39
46
|
}>;
|
|
47
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<[number]>;
|
|
40
48
|
};
|
|
41
49
|
addressOf(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
42
50
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
51
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
43
52
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<number>;
|
|
53
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<number>;
|
|
44
54
|
callStatic: {
|
|
45
55
|
addressOf(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
46
56
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
57
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
47
58
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<number>;
|
|
59
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<number>;
|
|
48
60
|
};
|
|
49
61
|
filters: {};
|
|
50
62
|
estimateGas: {
|
|
51
63
|
addressOf(t: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
52
64
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
65
|
+
tokenCount(overrides?: CallOverrides): Promise<BigNumber>;
|
|
53
66
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
67
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
54
68
|
};
|
|
55
69
|
populateTransaction: {
|
|
56
70
|
addressOf(t: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
57
71
|
symbols(t: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
72
|
+
tokenCount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
58
73
|
tokenIndexes(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
74
|
+
tokenTypes(t: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
59
75
|
};
|
|
60
76
|
}
|
|
@@ -146,6 +146,98 @@ var _abi = [
|
|
|
146
146
|
stateMutability: "view",
|
|
147
147
|
type: "function",
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [
|
|
151
|
+
{
|
|
152
|
+
internalType: "address",
|
|
153
|
+
name: "token",
|
|
154
|
+
type: "address",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "to",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "amount",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
name: "mint",
|
|
168
|
+
outputs: [],
|
|
169
|
+
stateMutability: "nonpayable",
|
|
170
|
+
type: "function",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
inputs: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "enum Tokens",
|
|
176
|
+
name: "t",
|
|
177
|
+
type: "uint8",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "to",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "amount",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: "mint",
|
|
191
|
+
outputs: [],
|
|
192
|
+
stateMutability: "nonpayable",
|
|
193
|
+
type: "function",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "address",
|
|
199
|
+
name: "token",
|
|
200
|
+
type: "address",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "to",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "amount",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
name: "mintWithTotalSupply",
|
|
214
|
+
outputs: [],
|
|
215
|
+
stateMutability: "nonpayable",
|
|
216
|
+
type: "function",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [
|
|
220
|
+
{
|
|
221
|
+
internalType: "enum Tokens",
|
|
222
|
+
name: "t",
|
|
223
|
+
type: "uint8",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
internalType: "address",
|
|
227
|
+
name: "to",
|
|
228
|
+
type: "address",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
internalType: "uint256",
|
|
232
|
+
name: "amount",
|
|
233
|
+
type: "uint256",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
name: "mintWithTotalSupply",
|
|
237
|
+
outputs: [],
|
|
238
|
+
stateMutability: "nonpayable",
|
|
239
|
+
type: "function",
|
|
240
|
+
},
|
|
149
241
|
{
|
|
150
242
|
inputs: [
|
|
151
243
|
{
|
|
@@ -165,6 +257,19 @@ var _abi = [
|
|
|
165
257
|
stateMutability: "view",
|
|
166
258
|
type: "function",
|
|
167
259
|
},
|
|
260
|
+
{
|
|
261
|
+
inputs: [],
|
|
262
|
+
name: "tokenCount",
|
|
263
|
+
outputs: [
|
|
264
|
+
{
|
|
265
|
+
internalType: "uint256",
|
|
266
|
+
name: "",
|
|
267
|
+
type: "uint256",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
type: "function",
|
|
272
|
+
},
|
|
168
273
|
{
|
|
169
274
|
inputs: [
|
|
170
275
|
{
|
|
@@ -184,6 +289,25 @@ var _abi = [
|
|
|
184
289
|
stateMutability: "view",
|
|
185
290
|
type: "function",
|
|
186
291
|
},
|
|
292
|
+
{
|
|
293
|
+
inputs: [
|
|
294
|
+
{
|
|
295
|
+
internalType: "enum Tokens",
|
|
296
|
+
name: "t",
|
|
297
|
+
type: "uint8",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
name: "tokenTypes",
|
|
301
|
+
outputs: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "enum TokenType",
|
|
304
|
+
name: "",
|
|
305
|
+
type: "uint8",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
stateMutability: "view",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
187
311
|
{
|
|
188
312
|
inputs: [
|
|
189
313
|
{
|
|
@@ -25,6 +25,19 @@ var _abi = [
|
|
|
25
25
|
stateMutability: "view",
|
|
26
26
|
type: "function",
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "contractCount",
|
|
31
|
+
outputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
stateMutability: "view",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
28
41
|
{
|
|
29
42
|
inputs: [
|
|
30
43
|
{
|
|
@@ -44,6 +44,19 @@ var _abi = [
|
|
|
44
44
|
stateMutability: "view",
|
|
45
45
|
type: "function",
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [],
|
|
49
|
+
name: "tokenCount",
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
stateMutability: "view",
|
|
58
|
+
type: "function",
|
|
59
|
+
},
|
|
47
60
|
{
|
|
48
61
|
inputs: [
|
|
49
62
|
{
|
|
@@ -63,6 +76,25 @@ var _abi = [
|
|
|
63
76
|
stateMutability: "view",
|
|
64
77
|
type: "function",
|
|
65
78
|
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [
|
|
81
|
+
{
|
|
82
|
+
internalType: "enum Tokens",
|
|
83
|
+
name: "t",
|
|
84
|
+
type: "uint8",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "tokenTypes",
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "enum TokenType",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "uint8",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "view",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
66
98
|
];
|
|
67
99
|
var IToken__factory = /** @class */ (function () {
|
|
68
100
|
function IToken__factory() {
|