@venusprotocol/venus-protocol 5.2.0-dev.3 → 6.0.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.
- package/README.md +10 -0
- 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/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.json +10 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- 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/token/ERC20/utils/SafeERC20.sol/SafeERC20.json +2 -2
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.json +2 -2
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.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/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +2 -2
- 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/@openzeppelin/contracts-upgradeable/utils/math/SafeCastUpgradeable.sol/SafeCastUpgradeable.json +2 -2
- package/artifacts/build-info/ce72ac5d71d669e214b3d20b850e1c74.json +1 -0
- package/artifacts/contracts/Governance/VTreasuryV8.sol/VTreasuryV8.dbg.json +4 -0
- package/artifacts/contracts/Governance/VTreasuryV8.sol/VTreasuryV8.json +200 -0
- package/contracts/Governance/VTreasuryV8.sol +101 -0
- package/deploy/007-deploy-VTreasuryV8.ts +36 -0
- package/deployments/bscmainnet.json +13822 -0
- package/deployments/bsctestnet.json +21256 -0
- package/deployments/ethereum/.chainId +1 -0
- package/deployments/ethereum/VTreasuryV8.json +329 -0
- package/deployments/ethereum/solcInputs/427921aed0a07e3af769b0b61644e89c.json +91 -0
- package/deployments/ethereum.json +200 -0
- package/deployments/sepolia/.chainId +1 -0
- package/deployments/sepolia/VTreasuryV8.json +329 -0
- package/deployments/sepolia/solcInputs/08b51a64331428e03a9b461fcf31d47c.json +87 -0
- package/deployments/sepolia/solcInputs/332645575b586c0b893584ac8a9a94fc.json +87 -0
- package/deployments/sepolia/solcInputs/427921aed0a07e3af769b0b61644e89c.json +91 -0
- package/deployments/sepolia.json +200 -0
- package/dist/deploy/007-deploy-VTreasuryV8.d.ts +3 -0
- package/dist/deploy/007-deploy-VTreasuryV8.js +27 -0
- package/dist/hardhat.config.js +33 -0
- package/dist/typechain/contracts/Governance/VTreasuryV8.d.ts +190 -0
- package/dist/typechain/contracts/Governance/VTreasuryV8.js +3 -0
- package/dist/typechain/contracts/Governance/index.d.ts +1 -0
- package/dist/typechain/factories/contracts/Governance/VTreasuryV8__factory.d.ts +170 -0
- package/dist/typechain/factories/contracts/Governance/VTreasuryV8__factory.js +229 -0
- package/dist/typechain/factories/contracts/Governance/index.d.ts +1 -0
- package/dist/typechain/factories/contracts/Governance/index.js +3 -1
- package/dist/typechain/index.d.ts +2 -0
- package/dist/typechain/index.js +6 -4
- package/package.json +1 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
5
|
+
export interface VTreasuryV8Interface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"acceptOwnership()": FunctionFragment;
|
|
8
|
+
"owner()": FunctionFragment;
|
|
9
|
+
"pendingOwner()": FunctionFragment;
|
|
10
|
+
"renounceOwnership()": FunctionFragment;
|
|
11
|
+
"transferOwnership(address)": FunctionFragment;
|
|
12
|
+
"withdrawTreasuryNative(uint256,address)": FunctionFragment;
|
|
13
|
+
"withdrawTreasuryToken(address,uint256,address)": FunctionFragment;
|
|
14
|
+
};
|
|
15
|
+
getFunction(nameOrSignatureOrTopic: "acceptOwnership" | "owner" | "pendingOwner" | "renounceOwnership" | "transferOwnership" | "withdrawTreasuryNative" | "withdrawTreasuryToken"): FunctionFragment;
|
|
16
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "withdrawTreasuryNative", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "withdrawTreasuryToken", values: [
|
|
23
|
+
PromiseOrValue<string>,
|
|
24
|
+
PromiseOrValue<BigNumberish>,
|
|
25
|
+
PromiseOrValue<string>
|
|
26
|
+
]): string;
|
|
27
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "withdrawTreasuryNative", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "withdrawTreasuryToken", data: BytesLike): Result;
|
|
34
|
+
events: {
|
|
35
|
+
"OwnershipTransferStarted(address,address)": EventFragment;
|
|
36
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
37
|
+
"WithdrawTreasuryNative(uint256,address)": EventFragment;
|
|
38
|
+
"WithdrawTreasuryToken(address,uint256,address)": EventFragment;
|
|
39
|
+
};
|
|
40
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment;
|
|
41
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
42
|
+
getEvent(nameOrSignatureOrTopic: "WithdrawTreasuryNative"): EventFragment;
|
|
43
|
+
getEvent(nameOrSignatureOrTopic: "WithdrawTreasuryToken"): EventFragment;
|
|
44
|
+
}
|
|
45
|
+
export interface OwnershipTransferStartedEventObject {
|
|
46
|
+
previousOwner: string;
|
|
47
|
+
newOwner: string;
|
|
48
|
+
}
|
|
49
|
+
export type OwnershipTransferStartedEvent = TypedEvent<[
|
|
50
|
+
string,
|
|
51
|
+
string
|
|
52
|
+
], OwnershipTransferStartedEventObject>;
|
|
53
|
+
export type OwnershipTransferStartedEventFilter = TypedEventFilter<OwnershipTransferStartedEvent>;
|
|
54
|
+
export interface OwnershipTransferredEventObject {
|
|
55
|
+
previousOwner: string;
|
|
56
|
+
newOwner: string;
|
|
57
|
+
}
|
|
58
|
+
export type OwnershipTransferredEvent = TypedEvent<[
|
|
59
|
+
string,
|
|
60
|
+
string
|
|
61
|
+
], OwnershipTransferredEventObject>;
|
|
62
|
+
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
63
|
+
export interface WithdrawTreasuryNativeEventObject {
|
|
64
|
+
withdrawAmount: BigNumber;
|
|
65
|
+
withdrawAddress: string;
|
|
66
|
+
}
|
|
67
|
+
export type WithdrawTreasuryNativeEvent = TypedEvent<[
|
|
68
|
+
BigNumber,
|
|
69
|
+
string
|
|
70
|
+
], WithdrawTreasuryNativeEventObject>;
|
|
71
|
+
export type WithdrawTreasuryNativeEventFilter = TypedEventFilter<WithdrawTreasuryNativeEvent>;
|
|
72
|
+
export interface WithdrawTreasuryTokenEventObject {
|
|
73
|
+
tokenAddress: string;
|
|
74
|
+
withdrawAmount: BigNumber;
|
|
75
|
+
withdrawAddress: string;
|
|
76
|
+
}
|
|
77
|
+
export type WithdrawTreasuryTokenEvent = TypedEvent<[
|
|
78
|
+
string,
|
|
79
|
+
BigNumber,
|
|
80
|
+
string
|
|
81
|
+
], WithdrawTreasuryTokenEventObject>;
|
|
82
|
+
export type WithdrawTreasuryTokenEventFilter = TypedEventFilter<WithdrawTreasuryTokenEvent>;
|
|
83
|
+
export interface VTreasuryV8 extends BaseContract {
|
|
84
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
85
|
+
attach(addressOrName: string): this;
|
|
86
|
+
deployed(): Promise<this>;
|
|
87
|
+
interface: VTreasuryV8Interface;
|
|
88
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
89
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
90
|
+
listeners(eventName?: string): Array<Listener>;
|
|
91
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
92
|
+
removeAllListeners(eventName?: string): this;
|
|
93
|
+
off: OnEvent<this>;
|
|
94
|
+
on: OnEvent<this>;
|
|
95
|
+
once: OnEvent<this>;
|
|
96
|
+
removeListener: OnEvent<this>;
|
|
97
|
+
functions: {
|
|
98
|
+
acceptOwnership(overrides?: Overrides & {
|
|
99
|
+
from?: PromiseOrValue<string>;
|
|
100
|
+
}): Promise<ContractTransaction>;
|
|
101
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
102
|
+
pendingOwner(overrides?: CallOverrides): Promise<[string]>;
|
|
103
|
+
renounceOwnership(overrides?: Overrides & {
|
|
104
|
+
from?: PromiseOrValue<string>;
|
|
105
|
+
}): Promise<ContractTransaction>;
|
|
106
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
107
|
+
from?: PromiseOrValue<string>;
|
|
108
|
+
}): Promise<ContractTransaction>;
|
|
109
|
+
withdrawTreasuryNative(withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: PayableOverrides & {
|
|
110
|
+
from?: PromiseOrValue<string>;
|
|
111
|
+
}): Promise<ContractTransaction>;
|
|
112
|
+
withdrawTreasuryToken(tokenAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & {
|
|
113
|
+
from?: PromiseOrValue<string>;
|
|
114
|
+
}): Promise<ContractTransaction>;
|
|
115
|
+
};
|
|
116
|
+
acceptOwnership(overrides?: Overrides & {
|
|
117
|
+
from?: PromiseOrValue<string>;
|
|
118
|
+
}): Promise<ContractTransaction>;
|
|
119
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
120
|
+
pendingOwner(overrides?: CallOverrides): Promise<string>;
|
|
121
|
+
renounceOwnership(overrides?: Overrides & {
|
|
122
|
+
from?: PromiseOrValue<string>;
|
|
123
|
+
}): Promise<ContractTransaction>;
|
|
124
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
125
|
+
from?: PromiseOrValue<string>;
|
|
126
|
+
}): Promise<ContractTransaction>;
|
|
127
|
+
withdrawTreasuryNative(withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: PayableOverrides & {
|
|
128
|
+
from?: PromiseOrValue<string>;
|
|
129
|
+
}): Promise<ContractTransaction>;
|
|
130
|
+
withdrawTreasuryToken(tokenAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & {
|
|
131
|
+
from?: PromiseOrValue<string>;
|
|
132
|
+
}): Promise<ContractTransaction>;
|
|
133
|
+
callStatic: {
|
|
134
|
+
acceptOwnership(overrides?: CallOverrides): Promise<void>;
|
|
135
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
136
|
+
pendingOwner(overrides?: CallOverrides): Promise<string>;
|
|
137
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
138
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
139
|
+
withdrawTreasuryNative(withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
140
|
+
withdrawTreasuryToken(tokenAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
141
|
+
};
|
|
142
|
+
filters: {
|
|
143
|
+
"OwnershipTransferStarted(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferStartedEventFilter;
|
|
144
|
+
OwnershipTransferStarted(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferStartedEventFilter;
|
|
145
|
+
"OwnershipTransferred(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
146
|
+
OwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
147
|
+
"WithdrawTreasuryNative(uint256,address)"(withdrawAmount?: null, withdrawAddress?: PromiseOrValue<string> | null): WithdrawTreasuryNativeEventFilter;
|
|
148
|
+
WithdrawTreasuryNative(withdrawAmount?: null, withdrawAddress?: PromiseOrValue<string> | null): WithdrawTreasuryNativeEventFilter;
|
|
149
|
+
"WithdrawTreasuryToken(address,uint256,address)"(tokenAddress?: PromiseOrValue<string> | null, withdrawAmount?: null, withdrawAddress?: PromiseOrValue<string> | null): WithdrawTreasuryTokenEventFilter;
|
|
150
|
+
WithdrawTreasuryToken(tokenAddress?: PromiseOrValue<string> | null, withdrawAmount?: null, withdrawAddress?: PromiseOrValue<string> | null): WithdrawTreasuryTokenEventFilter;
|
|
151
|
+
};
|
|
152
|
+
estimateGas: {
|
|
153
|
+
acceptOwnership(overrides?: Overrides & {
|
|
154
|
+
from?: PromiseOrValue<string>;
|
|
155
|
+
}): Promise<BigNumber>;
|
|
156
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
157
|
+
pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
158
|
+
renounceOwnership(overrides?: Overrides & {
|
|
159
|
+
from?: PromiseOrValue<string>;
|
|
160
|
+
}): Promise<BigNumber>;
|
|
161
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
162
|
+
from?: PromiseOrValue<string>;
|
|
163
|
+
}): Promise<BigNumber>;
|
|
164
|
+
withdrawTreasuryNative(withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: PayableOverrides & {
|
|
165
|
+
from?: PromiseOrValue<string>;
|
|
166
|
+
}): Promise<BigNumber>;
|
|
167
|
+
withdrawTreasuryToken(tokenAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & {
|
|
168
|
+
from?: PromiseOrValue<string>;
|
|
169
|
+
}): Promise<BigNumber>;
|
|
170
|
+
};
|
|
171
|
+
populateTransaction: {
|
|
172
|
+
acceptOwnership(overrides?: Overrides & {
|
|
173
|
+
from?: PromiseOrValue<string>;
|
|
174
|
+
}): Promise<PopulatedTransaction>;
|
|
175
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
176
|
+
pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
177
|
+
renounceOwnership(overrides?: Overrides & {
|
|
178
|
+
from?: PromiseOrValue<string>;
|
|
179
|
+
}): Promise<PopulatedTransaction>;
|
|
180
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
181
|
+
from?: PromiseOrValue<string>;
|
|
182
|
+
}): Promise<PopulatedTransaction>;
|
|
183
|
+
withdrawTreasuryNative(withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: PayableOverrides & {
|
|
184
|
+
from?: PromiseOrValue<string>;
|
|
185
|
+
}): Promise<PopulatedTransaction>;
|
|
186
|
+
withdrawTreasuryToken(tokenAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & {
|
|
187
|
+
from?: PromiseOrValue<string>;
|
|
188
|
+
}): Promise<PopulatedTransaction>;
|
|
189
|
+
};
|
|
190
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { PromiseOrValue } from "../../../common";
|
|
2
|
+
import type { VTreasuryV8, VTreasuryV8Interface } from "../../../contracts/Governance/VTreasuryV8";
|
|
3
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
4
|
+
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
type VTreasuryV8ConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class VTreasuryV8__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: VTreasuryV8ConstructorParams);
|
|
8
|
+
deploy(overrides?: Overrides & {
|
|
9
|
+
from?: PromiseOrValue<string>;
|
|
10
|
+
}): Promise<VTreasuryV8>;
|
|
11
|
+
getDeployTransaction(overrides?: Overrides & {
|
|
12
|
+
from?: PromiseOrValue<string>;
|
|
13
|
+
}): TransactionRequest;
|
|
14
|
+
attach(address: string): VTreasuryV8;
|
|
15
|
+
connect(signer: Signer): VTreasuryV8__factory;
|
|
16
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b5061001a33610024565b6001600255610090565b600180546001600160a01b031916905561003d81610040565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610a8e8061009f6000396000f3fe60806040526004361061006e5760003560e01c80638da5cb5b1161004b5780638da5cb5b146100c1578063e30c3978146100f7578063f2fde38b14610115578063fed7036e1461013557005b8063715018a61461007757806374c17a351461008c57806379ba5097146100ac57005b3661007557005b005b34801561008357600080fd5b50610075610148565b34801561009857600080fd5b506100756100a7366004610914565b61015c565b3480156100b857600080fd5b506100756102c0565b3480156100cd57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b34801561010357600080fd5b506001546001600160a01b03166100db565b34801561012157600080fd5b50610075610130366004610956565b61033a565b61007561014336600461097a565b6103ab565b610150610507565b61015a6000610561565b565b610164610507565b61016c61057a565b610175836105d1565b61017e816105d1565b600082116101d35760405162461bcd60e51b815260206004820152601f60248201527f7769746864726177416d6f756e74206d757374206e6f74206265207a65726f0060448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282906000906001600160a01b038616906370a0823190602401602060405180830381865afa15801561021c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024091906109aa565b90508084111561024e578091505b6102626001600160a01b03861684846105f8565b826001600160a01b0316856001600160a01b03167f6d043f5c542a67e836c8f8bdf640d0de840c85d79c130dcbda8d42c9c056980c846040516102a791815260200190565b60405180910390a350506102bb6001600255565b505050565b60015433906001600160a01b0316811461032e5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101ca565b61033781610561565b50565b610342610507565b600180546001600160a01b0383166001600160a01b031990911681179091556103736000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103b3610507565b6103bb61057a565b6103c4816105d1565b600082116104145760405162461bcd60e51b815260206004820152601f60248201527f7769746864726177416d6f756e74206d757374206e6f74206265207a65726f0060448201526064016101ca565b814780821115610422578091505b6000836001600160a01b03168360405160006040518083038185875af1925050503d806000811461046f576040519150601f19603f3d011682016040523d82523d6000602084013e610474565b606091505b50509050806104b35760405162461bcd60e51b815260206004820152600b60248201526a10d85b1b0819985a5b195960aa1b60448201526064016101ca565b836001600160a01b03167f41448dfa44379fc602c636f8939b0b1b598c481af871c76fbdd8bdfcdaf30dfa846040516104ee91815260200190565b60405180910390a25050506105036001600255565b5050565b6000546001600160a01b0316331461015a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ca565b600180546001600160a01b03191690556103378161064a565b60028054036105cb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101ca565b60028055565b6001600160a01b038116610337576040516342bcdf7f60e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526102bb90849061069a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006106ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661076f9092919063ffffffff16565b905080516000148061071057508080602001905181019061071091906109c3565b6102bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ca565b606061077e8484600085610786565b949350505050565b6060824710156107e75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ca565b600080866001600160a01b031685876040516108039190610a09565b60006040518083038185875af1925050503d8060008114610840576040519150601f19603f3d011682016040523d82523d6000602084013e610845565b606091505b509150915061085687838387610861565b979650505050505050565b606083156108d05782516000036108c9576001600160a01b0385163b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ca565b508161077e565b61077e83838151156108e55781518083602001fd5b8060405162461bcd60e51b81526004016101ca9190610a25565b6001600160a01b038116811461033757600080fd5b60008060006060848603121561092957600080fd5b8335610934816108ff565b925060208401359150604084013561094b816108ff565b809150509250925092565b60006020828403121561096857600080fd5b8135610973816108ff565b9392505050565b6000806040838503121561098d57600080fd5b82359150602083013561099f816108ff565b809150509250929050565b6000602082840312156109bc57600080fd5b5051919050565b6000602082840312156109d557600080fd5b8151801515811461097357600080fd5b60005b83811015610a005781810151838201526020016109e8565b50506000910152565b60008251610a1b8184602087016109e5565b9190910192915050565b6020815260008251806020840152610a448160408501602087016109e5565b601f01601f1916919091016040019291505056fea264697066735822122093d87330f42b9bcbf754eefc1d04b5e948eb71f5034a7230cd66aec48234e18264736f6c63430008140033";
|
|
17
|
+
static readonly abi: readonly [{
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "ZeroAddressNotAllowed";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly anonymous: false;
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly indexed: true;
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "previousOwner";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly indexed: true;
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "newOwner";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly name: "OwnershipTransferStarted";
|
|
35
|
+
readonly type: "event";
|
|
36
|
+
}, {
|
|
37
|
+
readonly anonymous: false;
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly indexed: true;
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
readonly name: "previousOwner";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly indexed: true;
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "newOwner";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "OwnershipTransferred";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
readonly name: "withdrawAmount";
|
|
57
|
+
readonly type: "uint256";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "withdrawAddress";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "WithdrawTreasuryNative";
|
|
65
|
+
readonly type: "event";
|
|
66
|
+
}, {
|
|
67
|
+
readonly anonymous: false;
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly indexed: true;
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "tokenAddress";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly indexed: false;
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "withdrawAmount";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "withdrawAddress";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "WithdrawTreasuryToken";
|
|
85
|
+
readonly type: "event";
|
|
86
|
+
}, {
|
|
87
|
+
readonly stateMutability: "payable";
|
|
88
|
+
readonly type: "fallback";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "acceptOwnership";
|
|
92
|
+
readonly outputs: readonly [];
|
|
93
|
+
readonly stateMutability: "nonpayable";
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "owner";
|
|
98
|
+
readonly outputs: readonly [{
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly name: "";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}];
|
|
103
|
+
readonly stateMutability: "view";
|
|
104
|
+
readonly type: "function";
|
|
105
|
+
}, {
|
|
106
|
+
readonly inputs: readonly [];
|
|
107
|
+
readonly name: "pendingOwner";
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly name: "renounceOwnership";
|
|
118
|
+
readonly outputs: readonly [];
|
|
119
|
+
readonly stateMutability: "nonpayable";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
readonly name: "newOwner";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "transferOwnership";
|
|
128
|
+
readonly outputs: readonly [];
|
|
129
|
+
readonly stateMutability: "nonpayable";
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
readonly name: "withdrawAmount";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "address payable";
|
|
138
|
+
readonly name: "withdrawAddress";
|
|
139
|
+
readonly type: "address";
|
|
140
|
+
}];
|
|
141
|
+
readonly name: "withdrawTreasuryNative";
|
|
142
|
+
readonly outputs: readonly [];
|
|
143
|
+
readonly stateMutability: "payable";
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
}, {
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly internalType: "address";
|
|
148
|
+
readonly name: "tokenAddress";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
}, {
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly name: "withdrawAmount";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}, {
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
readonly name: "withdrawAddress";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}];
|
|
159
|
+
readonly name: "withdrawTreasuryToken";
|
|
160
|
+
readonly outputs: readonly [];
|
|
161
|
+
readonly stateMutability: "nonpayable";
|
|
162
|
+
readonly type: "function";
|
|
163
|
+
}, {
|
|
164
|
+
readonly stateMutability: "payable";
|
|
165
|
+
readonly type: "receive";
|
|
166
|
+
}];
|
|
167
|
+
static createInterface(): VTreasuryV8Interface;
|
|
168
|
+
static connect(address: string, signerOrProvider: Signer | Provider): VTreasuryV8;
|
|
169
|
+
}
|
|
170
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.VTreasuryV8__factory = void 0;
|
|
5
|
+
const ethers_1 = require("ethers");
|
|
6
|
+
const _abi = [
|
|
7
|
+
{
|
|
8
|
+
inputs: [],
|
|
9
|
+
name: "ZeroAddressNotAllowed",
|
|
10
|
+
type: "error",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
anonymous: false,
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
indexed: true,
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "previousOwner",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
indexed: true,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "newOwner",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "OwnershipTransferStarted",
|
|
29
|
+
type: "event",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
anonymous: false,
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
indexed: true,
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "previousOwner",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
indexed: true,
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "newOwner",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "OwnershipTransferred",
|
|
48
|
+
type: "event",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
anonymous: false,
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
indexed: false,
|
|
55
|
+
internalType: "uint256",
|
|
56
|
+
name: "withdrawAmount",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: true,
|
|
61
|
+
internalType: "address",
|
|
62
|
+
name: "withdrawAddress",
|
|
63
|
+
type: "address",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
name: "WithdrawTreasuryNative",
|
|
67
|
+
type: "event",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
anonymous: false,
|
|
71
|
+
inputs: [
|
|
72
|
+
{
|
|
73
|
+
indexed: true,
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "tokenAddress",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
indexed: false,
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
name: "withdrawAmount",
|
|
82
|
+
type: "uint256",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "withdrawAddress",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "WithdrawTreasuryToken",
|
|
92
|
+
type: "event",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
stateMutability: "payable",
|
|
96
|
+
type: "fallback",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: "acceptOwnership",
|
|
101
|
+
outputs: [],
|
|
102
|
+
stateMutability: "nonpayable",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "owner",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "pendingOwner",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "view",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [],
|
|
133
|
+
name: "renounceOwnership",
|
|
134
|
+
outputs: [],
|
|
135
|
+
stateMutability: "nonpayable",
|
|
136
|
+
type: "function",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
inputs: [
|
|
140
|
+
{
|
|
141
|
+
internalType: "address",
|
|
142
|
+
name: "newOwner",
|
|
143
|
+
type: "address",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
name: "transferOwnership",
|
|
147
|
+
outputs: [],
|
|
148
|
+
stateMutability: "nonpayable",
|
|
149
|
+
type: "function",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
inputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "uint256",
|
|
155
|
+
name: "withdrawAmount",
|
|
156
|
+
type: "uint256",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
internalType: "address payable",
|
|
160
|
+
name: "withdrawAddress",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "withdrawTreasuryNative",
|
|
165
|
+
outputs: [],
|
|
166
|
+
stateMutability: "payable",
|
|
167
|
+
type: "function",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
inputs: [
|
|
171
|
+
{
|
|
172
|
+
internalType: "address",
|
|
173
|
+
name: "tokenAddress",
|
|
174
|
+
type: "address",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
internalType: "uint256",
|
|
178
|
+
name: "withdrawAmount",
|
|
179
|
+
type: "uint256",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
internalType: "address",
|
|
183
|
+
name: "withdrawAddress",
|
|
184
|
+
type: "address",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
name: "withdrawTreasuryToken",
|
|
188
|
+
outputs: [],
|
|
189
|
+
stateMutability: "nonpayable",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
stateMutability: "payable",
|
|
194
|
+
type: "receive",
|
|
195
|
+
},
|
|
196
|
+
];
|
|
197
|
+
const _bytecode = "0x608060405234801561001057600080fd5b5061001a33610024565b6001600255610090565b600180546001600160a01b031916905561003d81610040565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610a8e8061009f6000396000f3fe60806040526004361061006e5760003560e01c80638da5cb5b1161004b5780638da5cb5b146100c1578063e30c3978146100f7578063f2fde38b14610115578063fed7036e1461013557005b8063715018a61461007757806374c17a351461008c57806379ba5097146100ac57005b3661007557005b005b34801561008357600080fd5b50610075610148565b34801561009857600080fd5b506100756100a7366004610914565b61015c565b3480156100b857600080fd5b506100756102c0565b3480156100cd57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b34801561010357600080fd5b506001546001600160a01b03166100db565b34801561012157600080fd5b50610075610130366004610956565b61033a565b61007561014336600461097a565b6103ab565b610150610507565b61015a6000610561565b565b610164610507565b61016c61057a565b610175836105d1565b61017e816105d1565b600082116101d35760405162461bcd60e51b815260206004820152601f60248201527f7769746864726177416d6f756e74206d757374206e6f74206265207a65726f0060448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282906000906001600160a01b038616906370a0823190602401602060405180830381865afa15801561021c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024091906109aa565b90508084111561024e578091505b6102626001600160a01b03861684846105f8565b826001600160a01b0316856001600160a01b03167f6d043f5c542a67e836c8f8bdf640d0de840c85d79c130dcbda8d42c9c056980c846040516102a791815260200190565b60405180910390a350506102bb6001600255565b505050565b60015433906001600160a01b0316811461032e5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101ca565b61033781610561565b50565b610342610507565b600180546001600160a01b0383166001600160a01b031990911681179091556103736000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103b3610507565b6103bb61057a565b6103c4816105d1565b600082116104145760405162461bcd60e51b815260206004820152601f60248201527f7769746864726177416d6f756e74206d757374206e6f74206265207a65726f0060448201526064016101ca565b814780821115610422578091505b6000836001600160a01b03168360405160006040518083038185875af1925050503d806000811461046f576040519150601f19603f3d011682016040523d82523d6000602084013e610474565b606091505b50509050806104b35760405162461bcd60e51b815260206004820152600b60248201526a10d85b1b0819985a5b195960aa1b60448201526064016101ca565b836001600160a01b03167f41448dfa44379fc602c636f8939b0b1b598c481af871c76fbdd8bdfcdaf30dfa846040516104ee91815260200190565b60405180910390a25050506105036001600255565b5050565b6000546001600160a01b0316331461015a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ca565b600180546001600160a01b03191690556103378161064a565b60028054036105cb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101ca565b60028055565b6001600160a01b038116610337576040516342bcdf7f60e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526102bb90849061069a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006106ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661076f9092919063ffffffff16565b905080516000148061071057508080602001905181019061071091906109c3565b6102bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ca565b606061077e8484600085610786565b949350505050565b6060824710156107e75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ca565b600080866001600160a01b031685876040516108039190610a09565b60006040518083038185875af1925050503d8060008114610840576040519150601f19603f3d011682016040523d82523d6000602084013e610845565b606091505b509150915061085687838387610861565b979650505050505050565b606083156108d05782516000036108c9576001600160a01b0385163b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ca565b508161077e565b61077e83838151156108e55781518083602001fd5b8060405162461bcd60e51b81526004016101ca9190610a25565b6001600160a01b038116811461033757600080fd5b60008060006060848603121561092957600080fd5b8335610934816108ff565b925060208401359150604084013561094b816108ff565b809150509250925092565b60006020828403121561096857600080fd5b8135610973816108ff565b9392505050565b6000806040838503121561098d57600080fd5b82359150602083013561099f816108ff565b809150509250929050565b6000602082840312156109bc57600080fd5b5051919050565b6000602082840312156109d557600080fd5b8151801515811461097357600080fd5b60005b83811015610a005781810151838201526020016109e8565b50506000910152565b60008251610a1b8184602087016109e5565b9190910192915050565b6020815260008251806020840152610a448160408501602087016109e5565b601f01601f1916919091016040019291505056fea264697066735822122093d87330f42b9bcbf754eefc1d04b5e948eb71f5034a7230cd66aec48234e18264736f6c63430008140033";
|
|
198
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
199
|
+
class VTreasuryV8__factory extends ethers_1.ContractFactory {
|
|
200
|
+
constructor(...args) {
|
|
201
|
+
if (isSuperArgs(args)) {
|
|
202
|
+
super(...args);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
super(_abi, _bytecode, args[0]);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
deploy(overrides) {
|
|
209
|
+
return super.deploy(overrides || {});
|
|
210
|
+
}
|
|
211
|
+
getDeployTransaction(overrides) {
|
|
212
|
+
return super.getDeployTransaction(overrides || {});
|
|
213
|
+
}
|
|
214
|
+
attach(address) {
|
|
215
|
+
return super.attach(address);
|
|
216
|
+
}
|
|
217
|
+
connect(signer) {
|
|
218
|
+
return super.connect(signer);
|
|
219
|
+
}
|
|
220
|
+
static createInterface() {
|
|
221
|
+
return new ethers_1.utils.Interface(_abi);
|
|
222
|
+
}
|
|
223
|
+
static connect(address, signerOrProvider) {
|
|
224
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.VTreasuryV8__factory = VTreasuryV8__factory;
|
|
228
|
+
VTreasuryV8__factory.bytecode = _bytecode;
|
|
229
|
+
VTreasuryV8__factory.abi = _abi;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VTreasury__factory = void 0;
|
|
3
|
+
exports.VTreasuryV8__factory = exports.VTreasury__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
var VTreasury__factory_1 = require("./VTreasury__factory");
|
|
8
8
|
Object.defineProperty(exports, "VTreasury__factory", { enumerable: true, get: function () { return VTreasury__factory_1.VTreasury__factory; } });
|
|
9
|
+
var VTreasuryV8__factory_1 = require("./VTreasuryV8__factory");
|
|
10
|
+
Object.defineProperty(exports, "VTreasuryV8__factory", { enumerable: true, get: function () { return VTreasuryV8__factory_1.VTreasuryV8__factory; } });
|
|
@@ -151,6 +151,8 @@ export type { SwapDebtDelegate } from "./contracts/DelegateBorrowers/SwapDebtDel
|
|
|
151
151
|
export { SwapDebtDelegate__factory } from "./factories/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate__factory";
|
|
152
152
|
export type { VTreasury } from "./contracts/Governance/VTreasury";
|
|
153
153
|
export { VTreasury__factory } from "./factories/contracts/Governance/VTreasury__factory";
|
|
154
|
+
export type { VTreasuryV8 } from "./contracts/Governance/VTreasuryV8";
|
|
155
|
+
export { VTreasuryV8__factory } from "./factories/contracts/Governance/VTreasuryV8__factory";
|
|
154
156
|
export type { InterestRateModel } from "./contracts/InterestRateModels/InterestRateModel";
|
|
155
157
|
export { InterestRateModel__factory } from "./factories/contracts/InterestRateModels/InterestRateModel__factory";
|
|
156
158
|
export type { JumpRateModel } from "./contracts/InterestRateModels/JumpRateModel";
|