saving in place
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -29,16 +29,6 @@ var (
|
||||
_ = abi.ConvertType
|
||||
)
|
||||
|
||||
// IFlashSwapperFlashSwapParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IFlashSwapperFlashSwapParams struct {
|
||||
Token0 common.Address
|
||||
Token1 common.Address
|
||||
Amount0 *big.Int
|
||||
Amount1 *big.Int
|
||||
To common.Address
|
||||
Data []byte
|
||||
}
|
||||
|
||||
// IFlashSwapperMetaData contains all meta data concerning the IFlashSwapper contract.
|
||||
var IFlashSwapperMetaData = &bind.MetaData{
|
||||
ABI: "[{\"type\":\"function\",\"name\":\"calculateFlashSwapFee\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"fee0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fee1\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"executeFlashSwap\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIFlashSwapper.FlashSwapParams\",\"components\":[{\"name\":\"token0\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"token1\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"FlashSwapExecuted\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"token0\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"token1\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false}]",
|
||||
19
bindings/contracts/shared_types.go
Normal file
19
bindings/contracts/shared_types.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// Code generated - DO NOT EDIT.
|
||||
// This file contains shared types used across multiple contract bindings
|
||||
|
||||
package contracts
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// IFlashSwapperFlashSwapParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IFlashSwapperFlashSwapParams struct {
|
||||
TokenIn common.Address
|
||||
TokenOut common.Address
|
||||
AmountIn *big.Int
|
||||
AmountOut *big.Int
|
||||
ExtraData []byte
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
// Code generated - DO NOT EDIT.
|
||||
// This file is a generated binding and any manual changes will be lost.
|
||||
|
||||
package contracts
|
||||
package core
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@@ -29,29 +29,7 @@ var (
|
||||
_ = abi.ConvertType
|
||||
)
|
||||
|
||||
// IArbitrageArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IArbitrageArbitrageParams struct {
|
||||
Tokens []common.Address
|
||||
Pools []common.Address
|
||||
Amounts []*big.Int
|
||||
SwapData [][]byte
|
||||
MinProfit *big.Int
|
||||
}
|
||||
|
||||
// IArbitrageTriangularArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IArbitrageTriangularArbitrageParams struct {
|
||||
TokenA common.Address
|
||||
TokenB common.Address
|
||||
TokenC common.Address
|
||||
PoolAB common.Address
|
||||
PoolBC common.Address
|
||||
PoolCA common.Address
|
||||
AmountIn *big.Int
|
||||
MinProfit *big.Int
|
||||
SwapDataAB []byte
|
||||
SwapDataBC []byte
|
||||
SwapDataCA []byte
|
||||
}
|
||||
// Type definitions moved to shared_types.go to avoid conflicts
|
||||
|
||||
// IArbitrageMetaData contains all meta data concerning the IArbitrage contract.
|
||||
var IArbitrageMetaData = &bind.MetaData{
|
||||
|
||||
43
bindings/core/shared_types.go
Normal file
43
bindings/core/shared_types.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// Code generated - DO NOT EDIT.
|
||||
// This file was generated by the contract binding generator.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// IArbitrageArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IArbitrageArbitrageParams struct {
|
||||
TokenIn common.Address
|
||||
TokenOut common.Address
|
||||
AmountIn *big.Int
|
||||
MinAmountOut *big.Int
|
||||
ExchangePath []common.Address
|
||||
Data []byte
|
||||
}
|
||||
|
||||
// IArbitrageTriangularArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IArbitrageTriangularArbitrageParams struct {
|
||||
Token0 common.Address
|
||||
Token1 common.Address
|
||||
Token2 common.Address
|
||||
AmountIn *big.Int
|
||||
MinAmountOut *big.Int
|
||||
Exchange0 common.Address
|
||||
Exchange1 common.Address
|
||||
Exchange2 common.Address
|
||||
Data []byte
|
||||
}
|
||||
|
||||
// IFlashSwapperFlashSwapParams is an auto generated low-level Go binding around an user-defined struct.
|
||||
type IFlashSwapperFlashSwapParams struct {
|
||||
Token0 common.Address
|
||||
Token1 common.Address
|
||||
Amount0 *big.Int
|
||||
Amount1 *big.Int
|
||||
Recipient common.Address
|
||||
Data []byte
|
||||
}
|
||||
Reference in New Issue
Block a user