2020-07-05 21:44:19 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
import { Contract, ContractFactory, Signer } from "ethers";
|
|
|
|
import { Provider } from "ethers/providers";
|
|
|
|
import { UnsignedTransaction } from "ethers/utils/transaction";
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
import { TransactionOverrides } from ".";
|
|
|
|
import { MockKyberProxy } from "./MockKyberProxy";
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
export class MockKyberProxyFactory extends ContractFactory {
|
|
|
|
constructor(signer?: Signer) {
|
|
|
|
super(_abi, _bytecode, signer);
|
|
|
|
}
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
deploy(
|
|
|
|
_tokenToBurn: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<MockKyberProxy> {
|
2020-07-05 21:44:19 +00:00
|
|
|
return super.deploy(_tokenToBurn, overrides) as Promise<MockKyberProxy>;
|
|
|
|
}
|
|
|
|
getDeployTransaction(
|
|
|
|
_tokenToBurn: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): UnsignedTransaction {
|
|
|
|
return super.getDeployTransaction(_tokenToBurn, overrides);
|
|
|
|
}
|
|
|
|
attach(address: string): MockKyberProxy {
|
|
|
|
return super.attach(address) as MockKyberProxy;
|
|
|
|
}
|
|
|
|
connect(signer: Signer): MockKyberProxyFactory {
|
|
|
|
return super.connect(signer) as MockKyberProxyFactory;
|
|
|
|
}
|
2020-08-07 17:29:13 +00:00
|
|
|
static connect(
|
|
|
|
address: string,
|
|
|
|
signerOrProvider: Signer | Provider
|
|
|
|
): MockKyberProxy {
|
2020-07-05 21:44:19 +00:00
|
|
|
return new Contract(address, _abi, signerOrProvider) as MockKyberProxy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const _abi = [
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "contract MintableERC20",
|
|
|
|
name: "_tokenToBurn",
|
|
|
|
type: "address"
|
|
|
|
}
|
2020-07-05 21:44:19 +00:00
|
|
|
],
|
2020-08-07 17:29:13 +00:00
|
|
|
stateMutability: "nonpayable",
|
|
|
|
type: "constructor"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [],
|
2020-08-07 17:29:13 +00:00
|
|
|
name: "tokenToBurn",
|
2020-07-05 21:44:19 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "contract MintableERC20",
|
|
|
|
name: "",
|
|
|
|
type: "address"
|
|
|
|
}
|
2020-07-05 21:44:19 +00:00
|
|
|
],
|
2020-08-07 17:29:13 +00:00
|
|
|
stateMutability: "view",
|
|
|
|
type: "function"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "contract IERC20",
|
|
|
|
name: "_fromToken",
|
|
|
|
type: "address"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_amount",
|
|
|
|
type: "uint256"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "contract IERC20",
|
|
|
|
name: "_toToken",
|
|
|
|
type: "address"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_receiver",
|
|
|
|
type: "address"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_maxAmount",
|
|
|
|
type: "uint256"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "minConversionRate",
|
|
|
|
type: "uint256"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_referral",
|
|
|
|
type: "address"
|
2020-07-05 21:44:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "bytes",
|
|
|
|
name: "_filtering",
|
|
|
|
type: "bytes"
|
|
|
|
}
|
2020-07-05 21:44:19 +00:00
|
|
|
],
|
2020-08-07 17:29:13 +00:00
|
|
|
name: "tradeWithHint",
|
2020-07-05 21:44:19 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-07 17:29:13 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "",
|
|
|
|
type: "uint256"
|
|
|
|
}
|
2020-07-05 21:44:19 +00:00
|
|
|
],
|
2020-08-07 17:29:13 +00:00
|
|
|
stateMutability: "payable",
|
|
|
|
type: "function"
|
|
|
|
}
|
2020-07-05 21:44:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-08-10 18:20:08 +00:00
|
|
|
"0x608060405234801561001057600080fd5b506040516106b53803806106b58339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610650806100656000396000f3fe6080604052600436106100295760003560e01c806329589f611461002e5780634f1b86eb146100ec575b600080fd5b6100da600480360361010081101561004557600080fd5b6001600160a01b0382358116926020810135926040820135831692606083013581169260808101359260a08201359260c0830135169190810190610100810160e082013564010000000081111561009b57600080fd5b8201836020820111156100ad57600080fd5b803590602001918460018302840111640100000000831117156100cf57600080fd5b50909250905061011d565b60408051918252519081900360200190f35b3480156100f857600080fd5b50610101610266565b604080516001600160a01b039092168252519081900360200190f35b600080546040805163140e25ad60e31b8152670de0b6b3a7640000600482015290516001600160a01b039092169163a0712d689160248082019260209290919082900301818787803b15801561017257600080fd5b505af1158015610186573d6000803e3d6000fd5b505050506040513d602081101561019c57600080fd5b50516101ef576040805162461bcd60e51b815260206004820181905260248201527f54524144455f574954485f48494e542e205265766572746564206d696e742829604482015290519081900360640190fd5b6101f7610275565b6001600160a01b03168a6001600160a01b03161461022a5761022a6001600160a01b038b1633308c63ffffffff61028d16565b60005461024f906001600160a01b031633670de0b6b3a764000063ffffffff6102ed16565b50670de0b6b3a76400009998505050505050505050565b6000546001600160a01b031681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526102e7908590610344565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261033f908490610344565b505050565b6060610399826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166103f59092919063ffffffff16565b80519091501561033f578080602001905160208110156103b857600080fd5b505161033f5760405162461bcd60e51b815260040180806020018281038252602a8152602001806105f1602a913960400191505060405180910390fd5b6060610404848460008561040c565b949350505050565b6060610417856105b7565b610468576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106104a75780518252601f199092019160209182019101610488565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610509576040519150601f19603f3d011682016040523d82523d6000602084013e61050e565b606091505b509150915081156105225791506104049050565b8051156105325780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561057c578181015183820152602001610564565b50505050905090810190601f1680156105a95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061040457505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122099f447de7dc340bb9fad6029140c928c6fde2d7c3b3f7bb83714a93e38cb1f2f64736f6c63430006080033";
|