@venusprotocol/venus-protocol 7.3.0-dev.3 → 7.3.0-dev.4
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/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/Ownable2Step.sol/Ownable2Step.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/math/SafeCastUpgradeable.sol/SafeCastUpgradeable.dbg.json +1 -1
- package/artifacts/build-info/5d3c5040759360fa4c28ba5b26a6b9f1.json +1 -0
- package/artifacts/contracts/Governance/VTreasuryV8.sol/VTreasuryV8.dbg.json +1 -1
- package/artifacts/contracts/test/MockToken.sol/MockToken.dbg.json +4 -0
- package/artifacts/contracts/test/MockToken.sol/MockToken.json +315 -0
- package/contracts/test/MockToken.sol +22 -0
- package/deploy/010-deploy-mock-tokens.ts +30 -0
- package/deploy/011-deploy-markets.ts +92 -0
- package/deployments/bscmainnet/JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps.json +380 -0
- package/deployments/bscmainnet/solcInputs/7830d2b3dd486e9651687b362529ec15.json +345 -0
- package/deployments/bscmainnet/vFDUSD_Proxy.json +2382 -0
- package/deployments/bscmainnet.json +11054 -11355
- package/deployments/bscmainnet_addresses.json +2 -1
- package/deployments/bsctestnet/JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps.json +380 -0
- package/deployments/bsctestnet/MockFDUSD.json +458 -0
- package/deployments/bsctestnet/solcInputs/7830d2b3dd486e9651687b362529ec15.json +345 -0
- package/deployments/bsctestnet/solcInputs/f4ba922efa57be24c0606389b67afaaa.json +46 -0
- package/deployments/bsctestnet/vFDUSD_Proxy.json +2382 -0
- package/deployments/bsctestnet.json +17362 -17871
- package/deployments/bsctestnet_addresses.json +3 -1
- package/dist/deploy/010-deploy-mock-tokens.d.ts +3 -0
- package/dist/deploy/010-deploy-mock-tokens.js +24 -0
- package/dist/deploy/011-deploy-markets.d.ts +3 -0
- package/dist/deploy/011-deploy-markets.js +76 -0
- package/dist/deployments/bscmainnet.json +11054 -11355
- package/dist/deployments/bscmainnet_addresses.json +202 -0
- package/dist/deployments/bsctestnet.json +17362 -17871
- package/dist/deployments/bsctestnet_addresses.json +121 -0
- package/dist/hardhat.config.js +1 -3
- package/dist/helpers/deploymentConfig.d.ts +47 -0
- package/dist/helpers/deploymentConfig.js +157 -0
- package/dist/helpers/utils.d.ts +2 -0
- package/dist/helpers/utils.js +27 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +198 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/ERC20.js +3 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +166 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.js +3 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
- package/dist/typechain/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain/contracts/test/MockToken.d.ts +214 -0
- package/dist/typechain/contracts/test/MockToken.js +3 -0
- package/dist/typechain/contracts/test/index.d.ts +1 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +239 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +326 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +178 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +239 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +3 -1
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/index.js +3 -1
- package/dist/typechain/factories/contracts/test/MockToken__factory.d.ts +253 -0
- package/dist/typechain/factories/contracts/test/MockToken__factory.js +344 -0
- package/dist/typechain/factories/contracts/test/index.d.ts +1 -0
- package/dist/typechain/factories/contracts/test/index.js +3 -1
- package/dist/typechain/index.d.ts +6 -0
- package/dist/typechain/index.js +12 -6
- package/package.json +1 -1
- package/artifacts/build-info/836b5274e4a94df50d1ff043d8579f59.json +0 -1
- package/deployments/bscmainnet/Comptroller.json +0 -2237
- package/deployments/bsctestnet/Comptroller.json +0 -2754
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import type { PromiseOrValue } from "../../../common";
|
|
2
|
+
import type { MockToken, MockTokenInterface } from "../../../contracts/test/MockToken";
|
|
3
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
4
|
+
import { Signer, ContractFactory, BigNumberish, Overrides } from "ethers";
|
|
5
|
+
type MockTokenConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class MockToken__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: MockTokenConstructorParams);
|
|
8
|
+
deploy(name_: PromiseOrValue<string>, symbol_: PromiseOrValue<string>, decimals_: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
9
|
+
from?: PromiseOrValue<string>;
|
|
10
|
+
}): Promise<MockToken>;
|
|
11
|
+
getDeployTransaction(name_: PromiseOrValue<string>, symbol_: PromiseOrValue<string>, decimals_: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
12
|
+
from?: PromiseOrValue<string>;
|
|
13
|
+
}): TransactionRequest;
|
|
14
|
+
attach(address: string): MockToken;
|
|
15
|
+
connect(signer: Signer): MockToken__factory;
|
|
16
|
+
static readonly bytecode = "0x60a06040523480156200001157600080fd5b5060405162000c9f38038062000c9f83398101604081905262000034916200012a565b828260036200004483826200023e565b5060046200005382826200023e565b50505060ff16608052506200030a9050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008d57600080fd5b81516001600160401b0380821115620000aa57620000aa62000065565b604051601f8301601f19908116603f01168101908282118183101715620000d557620000d562000065565b81604052838152602092508683858801011115620000f257600080fd5b600091505b83821015620001165785820183015181830184015290820190620000f7565b600093810190920192909252949350505050565b6000806000606084860312156200014057600080fd5b83516001600160401b03808211156200015857600080fd5b62000166878388016200007b565b945060208601519150808211156200017d57600080fd5b506200018c868287016200007b565b925050604084015160ff81168114620001a457600080fd5b809150509250925092565b600181811c90821680620001c457607f821691505b602082108103620001e557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023957600081815260208120601f850160051c81016020861015620002145750805b601f850160051c820191505b81811015620002355782815560010162000220565b5050505b505050565b81516001600160401b038111156200025a576200025a62000065565b62000272816200026b8454620001af565b84620001eb565b602080601f831160018114620002aa5760008415620002915750858301515b600019600386901b1c1916600185901b17855562000235565b600085815260208120601f198616915b82811015620002db57888601518255948401946001909101908401620002ba565b5085821015620002fa5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161097962000326600039600061012601526109796000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80635791589711610071578063579158971461016357806370a082311461017857806395d89b41146101a1578063a457c2d7146101a9578063a9059cbb146101bc578063dd62ed3e146101cf57600080fd5b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100fa57806323b872dd1461010c578063313ce5671461011f5780633950935114610150575b600080fd5b6100c16101e2565b6040516100ce91906107aa565b60405180910390f35b6100ea6100e5366004610814565b610274565b60405190151581526020016100ce565b6002545b6040519081526020016100ce565b6100ea61011a36600461083e565b61028e565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100ce565b6100ea61015e366004610814565b6102b2565b61017661017136600461087a565b6102d4565b005b6100fe610186366004610893565b6001600160a01b031660009081526020819052604090205490565b6100c16102e1565b6100ea6101b7366004610814565b6102f0565b6100ea6101ca366004610814565b610370565b6100fe6101dd3660046108b5565b61037e565b6060600380546101f1906108e8565b80601f016020809104026020016040519081016040528092919081815260200182805461021d906108e8565b801561026a5780601f1061023f5761010080835404028352916020019161026a565b820191906000526020600020905b81548152906001019060200180831161024d57829003601f168201915b5050505050905090565b6000336102828185856103a9565b60019150505b92915050565b60003361029c8582856104cd565b6102a7858585610547565b506001949350505050565b6000336102828185856102c5838361037e565b6102cf9190610922565b6103a9565b6102de33826106eb565b50565b6060600480546101f1906108e8565b600033816102fe828661037e565b9050838110156103635760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102a782868684036103a9565b600033610282818585610547565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661040b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161035a565b6001600160a01b03821661046c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161035a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006104d9848461037e565b9050600019811461054157818110156105345760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161035a565b61054184848484036103a9565b50505050565b6001600160a01b0383166105ab5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161035a565b6001600160a01b03821661060d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161035a565b6001600160a01b038316600090815260208190526040902054818110156106855760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161035a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610541565b6001600160a01b0382166107415760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161035a565b80600260008282546107539190610922565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b818110156107d7578581018301518582016040015282016107bb565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461080f57600080fd5b919050565b6000806040838503121561082757600080fd5b610830836107f8565b946020939093013593505050565b60008060006060848603121561085357600080fd5b61085c846107f8565b925061086a602085016107f8565b9150604084013590509250925092565b60006020828403121561088c57600080fd5b5035919050565b6000602082840312156108a557600080fd5b6108ae826107f8565b9392505050565b600080604083850312156108c857600080fd5b6108d1836107f8565b91506108df602084016107f8565b90509250929050565b600181811c908216806108fc57607f821691505b60208210810361091c57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561028857634e487b7160e01b600052601160045260246000fdfea2646970667358221220f513c17ca161f9a552f68fc09ae122683585ee68b58b2787910f2be4dd0d4f0c64736f6c63430008140033";
|
|
17
|
+
static readonly abi: readonly [{
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "string";
|
|
20
|
+
readonly name: "name_";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "string";
|
|
24
|
+
readonly name: "symbol_";
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "uint8";
|
|
28
|
+
readonly name: "decimals_";
|
|
29
|
+
readonly type: "uint8";
|
|
30
|
+
}];
|
|
31
|
+
readonly stateMutability: "nonpayable";
|
|
32
|
+
readonly type: "constructor";
|
|
33
|
+
}, {
|
|
34
|
+
readonly anonymous: false;
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly indexed: true;
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "owner";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly indexed: true;
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
readonly name: "spender";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly indexed: false;
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "value";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "Approval";
|
|
52
|
+
readonly type: "event";
|
|
53
|
+
}, {
|
|
54
|
+
readonly anonymous: false;
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly indexed: true;
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "from";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly indexed: true;
|
|
62
|
+
readonly internalType: "address";
|
|
63
|
+
readonly name: "to";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly indexed: false;
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
readonly name: "value";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
readonly name: "Transfer";
|
|
72
|
+
readonly type: "event";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly name: "owner";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "spender";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "allowance";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "spender";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
readonly name: "amount";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "approve";
|
|
102
|
+
readonly outputs: readonly [{
|
|
103
|
+
readonly internalType: "bool";
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bool";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly name: "account";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "balanceOf";
|
|
116
|
+
readonly outputs: readonly [{
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
readonly stateMutability: "view";
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly name: "decimals";
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly internalType: "uint8";
|
|
128
|
+
readonly name: "";
|
|
129
|
+
readonly type: "uint8";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "view";
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
}, {
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
readonly name: "spender";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "subtractedValue";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "decreaseAllowance";
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly internalType: "bool";
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "bool";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "nonpayable";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [{
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "amount";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}];
|
|
157
|
+
readonly name: "faucet";
|
|
158
|
+
readonly outputs: readonly [];
|
|
159
|
+
readonly stateMutability: "nonpayable";
|
|
160
|
+
readonly type: "function";
|
|
161
|
+
}, {
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly name: "spender";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "addedValue";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "increaseAllowance";
|
|
172
|
+
readonly outputs: readonly [{
|
|
173
|
+
readonly internalType: "bool";
|
|
174
|
+
readonly name: "";
|
|
175
|
+
readonly type: "bool";
|
|
176
|
+
}];
|
|
177
|
+
readonly stateMutability: "nonpayable";
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly name: "name";
|
|
182
|
+
readonly outputs: readonly [{
|
|
183
|
+
readonly internalType: "string";
|
|
184
|
+
readonly name: "";
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
}];
|
|
187
|
+
readonly stateMutability: "view";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "symbol";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly internalType: "string";
|
|
194
|
+
readonly name: "";
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly name: "totalSupply";
|
|
202
|
+
readonly outputs: readonly [{
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
}];
|
|
207
|
+
readonly stateMutability: "view";
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
}, {
|
|
210
|
+
readonly inputs: readonly [{
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
readonly name: "to";
|
|
213
|
+
readonly type: "address";
|
|
214
|
+
}, {
|
|
215
|
+
readonly internalType: "uint256";
|
|
216
|
+
readonly name: "amount";
|
|
217
|
+
readonly type: "uint256";
|
|
218
|
+
}];
|
|
219
|
+
readonly name: "transfer";
|
|
220
|
+
readonly outputs: readonly [{
|
|
221
|
+
readonly internalType: "bool";
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "bool";
|
|
224
|
+
}];
|
|
225
|
+
readonly stateMutability: "nonpayable";
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
}, {
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly name: "from";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "to";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "amount";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "transferFrom";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly internalType: "bool";
|
|
244
|
+
readonly name: "";
|
|
245
|
+
readonly type: "bool";
|
|
246
|
+
}];
|
|
247
|
+
readonly stateMutability: "nonpayable";
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
}];
|
|
250
|
+
static createInterface(): MockTokenInterface;
|
|
251
|
+
static connect(address: string, signerOrProvider: Signer | Provider): MockToken;
|
|
252
|
+
}
|
|
253
|
+
export {};
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MockToken__factory = void 0;
|
|
5
|
+
const ethers_1 = require("ethers");
|
|
6
|
+
const _abi = [
|
|
7
|
+
{
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
internalType: "string",
|
|
11
|
+
name: "name_",
|
|
12
|
+
type: "string",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
internalType: "string",
|
|
16
|
+
name: "symbol_",
|
|
17
|
+
type: "string",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint8",
|
|
21
|
+
name: "decimals_",
|
|
22
|
+
type: "uint8",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
stateMutability: "nonpayable",
|
|
26
|
+
type: "constructor",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
anonymous: false,
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
indexed: true,
|
|
33
|
+
internalType: "address",
|
|
34
|
+
name: "owner",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "spender",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: false,
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "value",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "Approval",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
anonymous: false,
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "from",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "to",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "value",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "Transfer",
|
|
76
|
+
type: "event",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [
|
|
80
|
+
{
|
|
81
|
+
internalType: "address",
|
|
82
|
+
name: "owner",
|
|
83
|
+
type: "address",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "spender",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "allowance",
|
|
92
|
+
outputs: [
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
stateMutability: "view",
|
|
100
|
+
type: "function",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "spender",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "amount",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "approve",
|
|
116
|
+
outputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "bool",
|
|
119
|
+
name: "",
|
|
120
|
+
type: "bool",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
stateMutability: "nonpayable",
|
|
124
|
+
type: "function",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [
|
|
128
|
+
{
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "account",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
name: "balanceOf",
|
|
135
|
+
outputs: [
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
stateMutability: "view",
|
|
143
|
+
type: "function",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
inputs: [],
|
|
147
|
+
name: "decimals",
|
|
148
|
+
outputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint8",
|
|
151
|
+
name: "",
|
|
152
|
+
type: "uint8",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
stateMutability: "view",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "address",
|
|
162
|
+
name: "spender",
|
|
163
|
+
type: "address",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
internalType: "uint256",
|
|
167
|
+
name: "subtractedValue",
|
|
168
|
+
type: "uint256",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
name: "decreaseAllowance",
|
|
172
|
+
outputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "bool",
|
|
175
|
+
name: "",
|
|
176
|
+
type: "bool",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
stateMutability: "nonpayable",
|
|
180
|
+
type: "function",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "amount",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: "faucet",
|
|
191
|
+
outputs: [],
|
|
192
|
+
stateMutability: "nonpayable",
|
|
193
|
+
type: "function",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "address",
|
|
199
|
+
name: "spender",
|
|
200
|
+
type: "address",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "uint256",
|
|
204
|
+
name: "addedValue",
|
|
205
|
+
type: "uint256",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
name: "increaseAllowance",
|
|
209
|
+
outputs: [
|
|
210
|
+
{
|
|
211
|
+
internalType: "bool",
|
|
212
|
+
name: "",
|
|
213
|
+
type: "bool",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
stateMutability: "nonpayable",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [],
|
|
221
|
+
name: "name",
|
|
222
|
+
outputs: [
|
|
223
|
+
{
|
|
224
|
+
internalType: "string",
|
|
225
|
+
name: "",
|
|
226
|
+
type: "string",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
stateMutability: "view",
|
|
230
|
+
type: "function",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
inputs: [],
|
|
234
|
+
name: "symbol",
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "string",
|
|
238
|
+
name: "",
|
|
239
|
+
type: "string",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
stateMutability: "view",
|
|
243
|
+
type: "function",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [],
|
|
247
|
+
name: "totalSupply",
|
|
248
|
+
outputs: [
|
|
249
|
+
{
|
|
250
|
+
internalType: "uint256",
|
|
251
|
+
name: "",
|
|
252
|
+
type: "uint256",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
stateMutability: "view",
|
|
256
|
+
type: "function",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
inputs: [
|
|
260
|
+
{
|
|
261
|
+
internalType: "address",
|
|
262
|
+
name: "to",
|
|
263
|
+
type: "address",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
internalType: "uint256",
|
|
267
|
+
name: "amount",
|
|
268
|
+
type: "uint256",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
name: "transfer",
|
|
272
|
+
outputs: [
|
|
273
|
+
{
|
|
274
|
+
internalType: "bool",
|
|
275
|
+
name: "",
|
|
276
|
+
type: "bool",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
stateMutability: "nonpayable",
|
|
280
|
+
type: "function",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
inputs: [
|
|
284
|
+
{
|
|
285
|
+
internalType: "address",
|
|
286
|
+
name: "from",
|
|
287
|
+
type: "address",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
internalType: "address",
|
|
291
|
+
name: "to",
|
|
292
|
+
type: "address",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
internalType: "uint256",
|
|
296
|
+
name: "amount",
|
|
297
|
+
type: "uint256",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
name: "transferFrom",
|
|
301
|
+
outputs: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "bool",
|
|
304
|
+
name: "",
|
|
305
|
+
type: "bool",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
stateMutability: "nonpayable",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
];
|
|
312
|
+
const _bytecode = "0x60a06040523480156200001157600080fd5b5060405162000c9f38038062000c9f83398101604081905262000034916200012a565b828260036200004483826200023e565b5060046200005382826200023e565b50505060ff16608052506200030a9050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008d57600080fd5b81516001600160401b0380821115620000aa57620000aa62000065565b604051601f8301601f19908116603f01168101908282118183101715620000d557620000d562000065565b81604052838152602092508683858801011115620000f257600080fd5b600091505b83821015620001165785820183015181830184015290820190620000f7565b600093810190920192909252949350505050565b6000806000606084860312156200014057600080fd5b83516001600160401b03808211156200015857600080fd5b62000166878388016200007b565b945060208601519150808211156200017d57600080fd5b506200018c868287016200007b565b925050604084015160ff81168114620001a457600080fd5b809150509250925092565b600181811c90821680620001c457607f821691505b602082108103620001e557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023957600081815260208120601f850160051c81016020861015620002145750805b601f850160051c820191505b81811015620002355782815560010162000220565b5050505b505050565b81516001600160401b038111156200025a576200025a62000065565b62000272816200026b8454620001af565b84620001eb565b602080601f831160018114620002aa5760008415620002915750858301515b600019600386901b1c1916600185901b17855562000235565b600085815260208120601f198616915b82811015620002db57888601518255948401946001909101908401620002ba565b5085821015620002fa5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161097962000326600039600061012601526109796000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80635791589711610071578063579158971461016357806370a082311461017857806395d89b41146101a1578063a457c2d7146101a9578063a9059cbb146101bc578063dd62ed3e146101cf57600080fd5b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100fa57806323b872dd1461010c578063313ce5671461011f5780633950935114610150575b600080fd5b6100c16101e2565b6040516100ce91906107aa565b60405180910390f35b6100ea6100e5366004610814565b610274565b60405190151581526020016100ce565b6002545b6040519081526020016100ce565b6100ea61011a36600461083e565b61028e565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100ce565b6100ea61015e366004610814565b6102b2565b61017661017136600461087a565b6102d4565b005b6100fe610186366004610893565b6001600160a01b031660009081526020819052604090205490565b6100c16102e1565b6100ea6101b7366004610814565b6102f0565b6100ea6101ca366004610814565b610370565b6100fe6101dd3660046108b5565b61037e565b6060600380546101f1906108e8565b80601f016020809104026020016040519081016040528092919081815260200182805461021d906108e8565b801561026a5780601f1061023f5761010080835404028352916020019161026a565b820191906000526020600020905b81548152906001019060200180831161024d57829003601f168201915b5050505050905090565b6000336102828185856103a9565b60019150505b92915050565b60003361029c8582856104cd565b6102a7858585610547565b506001949350505050565b6000336102828185856102c5838361037e565b6102cf9190610922565b6103a9565b6102de33826106eb565b50565b6060600480546101f1906108e8565b600033816102fe828661037e565b9050838110156103635760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102a782868684036103a9565b600033610282818585610547565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661040b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161035a565b6001600160a01b03821661046c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161035a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006104d9848461037e565b9050600019811461054157818110156105345760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161035a565b61054184848484036103a9565b50505050565b6001600160a01b0383166105ab5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161035a565b6001600160a01b03821661060d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161035a565b6001600160a01b038316600090815260208190526040902054818110156106855760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161035a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610541565b6001600160a01b0382166107415760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161035a565b80600260008282546107539190610922565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b818110156107d7578581018301518582016040015282016107bb565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461080f57600080fd5b919050565b6000806040838503121561082757600080fd5b610830836107f8565b946020939093013593505050565b60008060006060848603121561085357600080fd5b61085c846107f8565b925061086a602085016107f8565b9150604084013590509250925092565b60006020828403121561088c57600080fd5b5035919050565b6000602082840312156108a557600080fd5b6108ae826107f8565b9392505050565b600080604083850312156108c857600080fd5b6108d1836107f8565b91506108df602084016107f8565b90509250929050565b600181811c908216806108fc57607f821691505b60208210810361091c57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561028857634e487b7160e01b600052601160045260246000fdfea2646970667358221220f513c17ca161f9a552f68fc09ae122683585ee68b58b2787910f2be4dd0d4f0c64736f6c63430008140033";
|
|
313
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
314
|
+
class MockToken__factory extends ethers_1.ContractFactory {
|
|
315
|
+
constructor(...args) {
|
|
316
|
+
if (isSuperArgs(args)) {
|
|
317
|
+
super(...args);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
super(_abi, _bytecode, args[0]);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
deploy(name_, symbol_, decimals_, overrides) {
|
|
324
|
+
return super.deploy(name_, symbol_, decimals_, overrides || {});
|
|
325
|
+
}
|
|
326
|
+
getDeployTransaction(name_, symbol_, decimals_, overrides) {
|
|
327
|
+
return super.getDeployTransaction(name_, symbol_, decimals_, overrides || {});
|
|
328
|
+
}
|
|
329
|
+
attach(address) {
|
|
330
|
+
return super.attach(address);
|
|
331
|
+
}
|
|
332
|
+
connect(signer) {
|
|
333
|
+
return super.connect(signer);
|
|
334
|
+
}
|
|
335
|
+
static createInterface() {
|
|
336
|
+
return new ethers_1.utils.Interface(_abi);
|
|
337
|
+
}
|
|
338
|
+
static connect(address, signerOrProvider) {
|
|
339
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
exports.MockToken__factory = MockToken__factory;
|
|
343
|
+
MockToken__factory.bytecode = _bytecode;
|
|
344
|
+
MockToken__factory.abi = _abi;
|
|
@@ -26,6 +26,7 @@ export { FeeToken__factory } from "./FeeToken__factory";
|
|
|
26
26
|
export { FixedPriceOracle__factory } from "./FixedPriceOracle__factory";
|
|
27
27
|
export { InterestRateModelHarness__factory } from "./InterestRateModelHarness__factory";
|
|
28
28
|
export { LiquidatorHarness__factory } from "./LiquidatorHarness__factory";
|
|
29
|
+
export { MockToken__factory } from "./MockToken__factory";
|
|
29
30
|
export { MockVBNB__factory } from "./MockVBNB__factory";
|
|
30
31
|
export { PrimeScenario__factory } from "./PrimeScenario__factory";
|
|
31
32
|
export { SimplePriceOracle__factory } from "./SimplePriceOracle__factory";
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.XVSVestingHarness__factory = exports.XVSVaultScenario__factory = exports.XVSVaultHarness__factory = exports.WBNB__factory = exports.VRTVaultHarness__factory = exports.VRTConverterHarness__factory = exports.VBep20MockDelegate__factory = exports.VAIControllerHarness__factory = exports.Structs__factory = exports.SimplePriceOracle__factory = exports.PrimeScenario__factory = exports.MockVBNB__factory = exports.LiquidatorHarness__factory = exports.InterestRateModelHarness__factory = exports.FixedPriceOracle__factory = exports.FeeToken__factory = exports.Fauceteer__factory = exports.EvilXDelegator__factory = exports.EvilToken__factory = exports.DiamondHarnessInterface__factory = exports.DiamondHarness__factory = exports.Counter__factory = exports.ComptrollerScenario__factory = exports.ComptrollerMock__factory = exports.AccessControlManagerMock__factory = exports.assets = exports.xvsHarnessSol = exports.wbtcSol = exports.vBep20HarnessSol = exports.vaiHarnessSol = exports.refreshSpeedsProxySol = exports.mockProtocolShareReserveSol = exports.mockMcdSol = exports.mockDeflationaryTokenSol = exports.faucetTokenSol = exports.falseMarkerSol = exports.evilXTokenSol = exports.constSol = exports.comptrollerHarnessSol = exports.bep20Sol = void 0;
|
|
26
|
+
exports.XVSVestingHarness__factory = exports.XVSVaultScenario__factory = exports.XVSVaultHarness__factory = exports.WBNB__factory = exports.VRTVaultHarness__factory = exports.VRTConverterHarness__factory = exports.VBep20MockDelegate__factory = exports.VAIControllerHarness__factory = exports.Structs__factory = exports.SimplePriceOracle__factory = exports.PrimeScenario__factory = exports.MockVBNB__factory = exports.MockToken__factory = exports.LiquidatorHarness__factory = exports.InterestRateModelHarness__factory = exports.FixedPriceOracle__factory = exports.FeeToken__factory = exports.Fauceteer__factory = exports.EvilXDelegator__factory = exports.EvilToken__factory = exports.DiamondHarnessInterface__factory = exports.DiamondHarness__factory = exports.Counter__factory = exports.ComptrollerScenario__factory = exports.ComptrollerMock__factory = exports.AccessControlManagerMock__factory = exports.assets = exports.xvsHarnessSol = exports.wbtcSol = exports.vBep20HarnessSol = exports.vaiHarnessSol = exports.refreshSpeedsProxySol = exports.mockProtocolShareReserveSol = exports.mockMcdSol = exports.mockDeflationaryTokenSol = exports.faucetTokenSol = exports.falseMarkerSol = exports.evilXTokenSol = exports.constSol = exports.comptrollerHarnessSol = exports.bep20Sol = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
@@ -68,6 +68,8 @@ var InterestRateModelHarness__factory_1 = require("./InterestRateModelHarness__f
|
|
|
68
68
|
Object.defineProperty(exports, "InterestRateModelHarness__factory", { enumerable: true, get: function () { return InterestRateModelHarness__factory_1.InterestRateModelHarness__factory; } });
|
|
69
69
|
var LiquidatorHarness__factory_1 = require("./LiquidatorHarness__factory");
|
|
70
70
|
Object.defineProperty(exports, "LiquidatorHarness__factory", { enumerable: true, get: function () { return LiquidatorHarness__factory_1.LiquidatorHarness__factory; } });
|
|
71
|
+
var MockToken__factory_1 = require("./MockToken__factory");
|
|
72
|
+
Object.defineProperty(exports, "MockToken__factory", { enumerable: true, get: function () { return MockToken__factory_1.MockToken__factory; } });
|
|
71
73
|
var MockVBNB__factory_1 = require("./MockVBNB__factory");
|
|
72
74
|
Object.defineProperty(exports, "MockVBNB__factory", { enumerable: true, get: function () { return MockVBNB__factory_1.MockVBNB__factory; } });
|
|
73
75
|
var PrimeScenario__factory_1 = require("./PrimeScenario__factory");
|
|
@@ -47,6 +47,10 @@ export type { ITransparentUpgradeableProxy } from "./@openzeppelin/contracts/pro
|
|
|
47
47
|
export { ITransparentUpgradeableProxy__factory } from "./factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory";
|
|
48
48
|
export type { TransparentUpgradeableProxy } from "./@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy";
|
|
49
49
|
export { TransparentUpgradeableProxy__factory } from "./factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory";
|
|
50
|
+
export type { ERC20 } from "./@openzeppelin/contracts/token/ERC20/ERC20";
|
|
51
|
+
export { ERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/ERC20__factory";
|
|
52
|
+
export type { IERC20Metadata } from "./@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata";
|
|
53
|
+
export { IERC20Metadata__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory";
|
|
50
54
|
export type { IERC20Permit } from "./@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit";
|
|
51
55
|
export { IERC20Permit__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory";
|
|
52
56
|
export type { IERC20 } from "./@openzeppelin/contracts/token/ERC20/IERC20";
|
|
@@ -313,6 +317,8 @@ export type { IPrime } from "./contracts/test/MockProtocolShareReserve.sol/IPrim
|
|
|
313
317
|
export { IPrime__factory } from "./factories/contracts/test/MockProtocolShareReserve.sol/IPrime__factory";
|
|
314
318
|
export type { MockProtocolShareReserve } from "./contracts/test/MockProtocolShareReserve.sol/MockProtocolShareReserve";
|
|
315
319
|
export { MockProtocolShareReserve__factory } from "./factories/contracts/test/MockProtocolShareReserve.sol/MockProtocolShareReserve__factory";
|
|
320
|
+
export type { MockToken } from "./contracts/test/MockToken";
|
|
321
|
+
export { MockToken__factory } from "./factories/contracts/test/MockToken__factory";
|
|
316
322
|
export type { MockVBNB } from "./contracts/test/MockVBNB";
|
|
317
323
|
export { MockVBNB__factory } from "./factories/contracts/test/MockVBNB__factory";
|
|
318
324
|
export type { PrimeScenario } from "./contracts/test/PrimeScenario";
|