syncswap_router

package
v0.0.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyncSwapRouterABI = SyncSwapRouterMetaData.ABI

SyncSwapRouterABI is the input ABI used to generate the binding from. Deprecated: Use SyncSwapRouterMetaData.ABI instead.

View Source
var SyncSwapRouterBin = SyncSwapRouterMetaData.Bin

SyncSwapRouterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SyncSwapRouterMetaData.Bin instead.

View Source
var SyncSwapRouterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_wETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ApproveFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughLiquidityMinted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TooLittleReceived\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"addLiquidity2\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams[]\",\"name\":\"permits\",\"type\":\"tuple[]\"}],\"name\":\"addLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams[]\",\"name\":\"permits\",\"type\":\"tuple[]\"}],\"name\":\"addLiquidityWithPermit2\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burnLiquidity\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burnLiquiditySingle\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.ArrayPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"burnLiquiditySingleWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.ArrayPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"burnLiquidityWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"enteredPools\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"enteredPoolsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isPoolEntered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"selfPermit2\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"selfPermit2IfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitAllowed\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitAllowedIfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitIfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"stakingPool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.SwapStep[]\",\"name\":\"steps\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"internalType\":\"structIRouter.SwapPath[]\",\"name\":\"paths\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.SwapStep[]\",\"name\":\"steps\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"internalType\":\"structIRouter.SwapPath[]\",\"name\":\"paths\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"swapWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x60c06040523480156200001157600080fd5b5060405162002cfb38038062002cfb833981016040819052620000349162000069565b6001600160a01b039182166080521660a052620000a1565b80516001600160a01b03811681146200006457600080fd5b919050565b600080604083850312156200007d57600080fd5b62000088836200004c565b915062000098602084016200004c565b90509250929050565b60805160a051612c1f620000dc60003960006103eb015260008181610432015281816117df0152818161185b01526118a70152612c1f6000f3fe60806040526004361061014b5760003560e01c80639dd41df2116100b6578063c4b3fc401161006f578063c4b3fc40146103a0578063ced78795146103b3578063e84d494b146103c6578063f2428621146103d9578063f3995c671461040d578063fbfa77cf1461042057600080fd5b80639dd41df2146102f1578063a4a78f0c14610304578063ac9650d814610317578063ad271fa314610337578063b956b3fb14610357578063c2e3140a1461038d57600080fd5b80636291027c116101085780636291027c14610257578063688ee44c146102775780636cbe96fa1461028a5780636cc781cd146102ab5780637d10c9d6146102be57806394ec6d78146102de57600080fd5b80632b4abadb146101505780632cc4081e1461018d578063353766c6146101ad5780634659a494146101da5780634f25b858146101ef57806353c43f1514610237575b600080fd5b34801561015c57600080fd5b5061017061016b366004611939565b610454565b6040516001600160a01b0390911681526020015b60405180910390f35b6101a061019b366004611cd8565b61048c565b6040516101849190611d25565b3480156101b957600080fd5b506101cd6101c8366004611e2e565b6104d5565b6040516101849190611f18565b6101ed6101e8366004611f89565b6105ce565b005b3480156101fb57600080fd5b5061022761020a366004611fe3565b600060208181529281526040808220909352908152205460ff1681565b6040519015158152602001610184565b34801561024357600080fd5b506101a061025236600461201c565b610663565b34801561026357600080fd5b506101ed6102723660046120b8565b610690565b6101ed61028536600461210b565b61078a565b61029d6102983660046121b8565b610814565b604051908152602001610184565b6101ed6102b936600461210b565b610835565b3480156102ca57600080fd5b506101a06102d936600461229c565b6108a4565b61029d6102ec3660046121b8565b61094a565b6101706102ff36600461235e565b610975565b6101ed610312366004611f89565b6109f1565b61032a6103253660046123b2565b610a7f565b6040516101849190612443565b34801561034357600080fd5b506101cd6103523660046124a7565b610bd4565b34801561036357600080fd5b5061029d610372366004612539565b6001600160a01b031660009081526001602052604090205490565b6101ed61039b366004611f89565b610c4d565b61029d6103ae36600461261f565b610cd1565b61029d6103c136600461261f565b610dde565b6101a06103d43660046126f7565b610dfd565b3480156103e557600080fd5b506101707f000000000000000000000000000000000000000000000000000000000000000081565b6101ed61041b366004611f89565b610edc565b34801561042c57600080fd5b506101707f000000000000000000000000000000000000000000000000000000000000000081565b6001602052816000526040600020818154811061047057600080fd5b6000918252602090912001546001600160a01b03169150829050565b604080518082019091526000808252602082015281804211156104c257604051630407b05b60e31b815260040160405180910390fd5b6104cc8585610f14565b95945050505050565b805160208201516040808401519051630b00663360e21b81526060936001600160a01b038f1693632c0198cc93610516933393309390929091600401612762565b600060405180830381600087803b15801561053057600080fd5b505af1158015610544573d6000803e3d6000fd5b505050506105bf8b8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020808f0282810182019093528e82529093508e92508d9182918501908490808284376000920191909152508c92508b91508a90506111a0565b9b9a5050505050505050505050565b6040516323f2ebc360e21b815233600482015230602482015260448101869052606481018590526001608482015260ff841660a482015260c4810183905260e481018290526001600160a01b03871690638fcbaf0c90610104015b600060405180830381600087803b15801561064357600080fd5b505af1158015610657573d6000803e3d6000fd5b50505050505050505050565b6040805180820190915260008082526020820152610685878787878787611312565b979650505050505050565b61069c8333308561143a565b604051636eb1769f60e11b81523060048201526001600160a01b03858116602483015283919085169063dd62ed3e90604401602060405180830381865afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f919061279c565b101561072257610722838560001961152c565b604051637acb775760e01b8152600481018390526001600160a01b038281166024830152851690637acb775790604401600060405180830381600087803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050505050505050565b604051636eb1769f60e11b815233600482015230602482015284906001600160a01b0387169063dd62ed3e90604401602060405180830381865afa1580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa919061279c565b101561080d5761080d8585858585610835565b5050505050565b60006108278a8a8a8a8a8a8a8a8a611616565b9a9950505050505050505050565b604051630b00663360e21b81526001600160a01b03861690632c0198cc9061086b903390309089908990899089906004016127de565b600060405180830381600087803b15801561088557600080fd5b505af1158015610899573d6000803e3d6000fd5b505050505050505050565b60408051808201909152600080825260208201526001600160a01b038816632c0198cc3330853560208701356108dd6040890189612819565b6040518763ffffffff1660e01b81526004016108fe969594939291906127de565b600060405180830381600087803b15801561091857600080fd5b505af115801561092c573d6000803e3d6000fd5b5050505061093e888888888888611312565b98975050505050505050565b600061095d8a8a8a8a8a8a8a8a8a611616565b90506109688a61172b565b9998505050505050505050565b6040516313b8683f60e01b81526000906001600160a01b038516906313b8683f906109a6908690869060040161285f565b6020604051808303816000875af11580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190612873565b949350505050565b604051636eb1769f60e11b8152336004820152306024820152600019906001600160a01b0388169063dd62ed3e90604401602060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a63919061279c565b1015610a7757610a778686868686866105ce565b505050505050565b6060816001600160401b03811115610a9957610a99611965565b604051908082528060200260200182016040528015610acc57816020015b6060815260200190600190039081610ab75790505b50905060005b82811015610bcd5760008030868685818110610af057610af0612890565b9050602002810190610b029190612819565b604051610b109291906128a6565b600060405180830381855af49150503d8060008114610b4b576040519150601f19603f3d011682016040523d82523d6000602084013e610b50565b606091505b509150915081610ba557604481511015610b6957600080fd5b60048101905080806020019051810190610b8391906128b6565b60405162461bcd60e51b8152600401610b9c9190612923565b60405180910390fd5b80848481518110610bb857610bb8612890565b60209081029190910101525050600101610ad2565b5092915050565b60606108278a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c9182918501908490808284376000920191909152508b92508a91508990506111a0565b604051636eb1769f60e11b815233600482015230602482015285906001600160a01b0388169063dd62ed3e90604401602060405180830381865afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbd919061279c565b1015610a7757610a77868686868686610edc565b80516040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905290919060005b82811015610dbb57848181518110610d2457610d24612890565b6020026020010151915081600001516001600160a01b031663d505accf333085602001518660400151876060015188608001518960a001516040518863ffffffff1660e01b8152600401610d7e9796959493929190612936565b600060405180830381600087803b158015610d9857600080fd5b505af1158015610dac573d6000803e3d6000fd5b50505050806001019050610d0a565b50610dcd8d8d8d8d8d8d8d8d8d611616565b9d9c50505050505050505050505050565b6000610df28b8b8b8b8b8b8b8b8b8b610cd1565b90506108278b61172b565b60408051808201909152600080825260208201528280421115610e3357604051630407b05b60e31b815260040160405180910390fd5b610e406020840184612539565b6001600160a01b031663d505accf333060208701356040880135610e6a60808a0160608b01612977565b89608001358a60a001356040518863ffffffff1660e01b8152600401610e969796959493929190612936565b600060405180830381600087803b158015610eb057600080fd5b505af1158015610ec4573d6000803e3d6000fd5b50505050610ed28686610f14565b9695505050505050565b60405163d505accf60e01b81526001600160a01b0387169063d505accf9061062990339030908a908a908a908a908a90600401612936565b604080518082019091526000808252602082015282516040805160608082018352808252600060208084018290528385018290528451608081018652828152808201849052808601839052808401939093528451808601909552818552840152909160008060005b8681101561116e57898181518110610f9657610f96612890565b602002602001015195508560000151600081518110610fb757610fb7612890565b60200260200101519450610fd88660200151866000015188604001516117aa565b8551519250600091505b8282101561116657610ff56001846129a8565b82036110af5784600001516001600160a01b0316637132bb7f866020015133886040015189606001516040518563ffffffff1660e01b815260040161103d94939291906129bb565b60408051808303816000875af115801561105b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107f9190612a32565b80516001600160a01b03168952602080820151908a01805192965090916110a7908390612a4e565b905250611166565b84600001516001600160a01b0316637132bb7f866020015133886040015189606001516040518563ffffffff1660e01b81526004016110f194939291906129bb565b60408051808303816000875af115801561110f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111339190612a32565b508551611141836001612a4e565b8151811061115157611151612890565b60200260200101519450816001019150610fe2565b600101610f7c565b5087876020015110156111945760405163c9f52c7160e01b815260040160405180910390fd5b50505050505092915050565b6040516323b872dd60e01b81523360048201526001600160a01b03881660248201819052604482018890526060916323b872dd906064016020604051808303816000875af11580156111f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121a9190612a61565b5060405163f66eab5b60e01b81526001600160a01b0389169063f66eab5b9061124f9089903390899089908990600401612a83565b6000604051808303816000875af115801561126e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112969190810190612ac0565b805190915060005b81811015611305578681815181106112b8576112b8612890565b60200260200101518382815181106112d2576112d2612890565b60200260200101516020015110156112fd5760405163c9f52c7160e01b815260040160405180910390fd5b60010161129e565b5050979650505050505050565b60408051808201909152600080825260208201526040516323b872dd60e01b81523360048201526001600160a01b0388166024820181905260448201889052906323b872dd906064016020604051808303816000875af115801561137a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139e9190612a61565b506040516313d85e7560e11b81526001600160a01b038816906327b0bcea906113d19088903390889088906004016129bb565b60408051808303816000875af11580156113ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114139190612a32565b90508381602001511015610ed25760405163c9f52c7160e01b815260040160405180910390fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b179052915160009283929088169161149e9190612b55565b6000604051808303816000865af19150503d80600081146114db576040519150601f19603f3d011682016040523d82523d6000602084013e6114e0565b606091505b509150915081158061150e575080511580159061150e57508080602001905181019061150c9190612a61565b155b15610a7757604051631e4e7d0960e21b815260040160405180910390fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b17905291516000928392908716916115889190612b55565b6000604051808303816000865af19150503d80600081146115c5576040519150601f19603f3d011682016040523d82523d6000602084013e6115ca565b606091505b50915091508115806115f857508051158015906115f85750808060200190518101906115f69190612a61565b155b1561080d57604051633e3f8f7360e01b815260040160405180910390fd5b6040805180820190915260008082526020820181905290889060005b8281101561167f578b8b8281811061164c5761164c612890565b9050604002018036038101906116629190612b71565b915061167782600001518e84602001516117aa565b600101611632565b506040516301f3943560e11b81526001600160a01b038d16906303e7286a906116b6908c908c9033908c908c908c90600401612bab565b6020604051808303816000875af11580156116d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f9919061279c565b92508683101561171c5760405163124ca15f60e11b815260040160405180910390fd5b50509998505050505050505050565b6001600160a01b03811660009081526020818152604080832033845290915290205460ff166117a7576001600160a01b0381166000818152602081815260408083203384528252808320805460ff1916600190811790915580835290832080549182018155835291200180546001600160a01b03191690911790555b50565b6001600160a01b03831661185457604051631f2c13e160e31b81526001600160a01b03848116600483015283811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063f9609f0890839060440160206040518083038185885af1158015611829573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061184e919061279c565b50505050565b61188083337f00000000000000000000000000000000000000000000000000000000000000008461143a565b604051631f2c13e160e31b81526001600160a01b03848116600483015283811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063f9609f08906044016020604051808303816000875af11580156118f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184e919061279c565b6001600160a01b03811681146117a757600080fd5b803561193481611914565b919050565b6000806040838503121561194c57600080fd5b823561195781611914565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b038111828210171561199d5761199d611965565b60405290565b604051608081016001600160401b038111828210171561199d5761199d611965565b60405160c081016001600160401b038111828210171561199d5761199d611965565b604080519081016001600160401b038111828210171561199d5761199d611965565b604051601f8201601f191681016001600160401b0381118282101715611a3157611a31611965565b604052919050565b60006001600160401b03821115611a5257611a52611965565b5060051b60200190565b60006001600160401b03821115611a7557611a75611965565b50601f01601f191660200190565b600082601f830112611a9457600080fd5b8135611aa7611aa282611a5c565b611a09565b818152846020838601011115611abc57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611aea57600080fd5b611af7611aa28335611a39565b82358082526020808301929160051b850101851015611b1557600080fd5b602084015b6020853560051b860101811015611ccf576001600160401b038082351115611b4157600080fd5b6060823587018803601f19011215611b5857600080fd5b611b6061197b565b8160208435890101351115611b7457600080fd5b82358701602081013501603f81018913611b8d57600080fd5b611b9d611aa26020830135611a39565b602082810135808352908201919060051b83016040018b1015611bbf57600080fd5b604083015b6040602085013560051b850101811015611c92578581351115611be657600080fd5b803584016080818e03603f19011215611bfe57600080fd5b611c066119a3565b611c136040830135611914565b604082013581528760608301351115611c2b57600080fd5b611c3e8e60406060850135850101611a83565b6020820152611c506080830135611914565b608082013560408201528760a08301351115611c6b57600080fd5b611c7e8e604060a0850135850101611a83565b606082015284525060209283019201611bc4565b50835250611ca7905083358801604001611929565b6020820152606083358801013560408201528085525050602083019250602081019050611b1a565b50949350505050565b600080600060608486031215611ced57600080fd5b83356001600160401b03811115611d0357600080fd5b611d0f86828701611ad9565b9660208601359650604090950135949350505050565b81516001600160a01b0316815260208083015190820152604081015b92915050565b60008083601f840112611d5957600080fd5b5081356001600160401b03811115611d7057600080fd5b602083019150836020828501011115611d8857600080fd5b9250929050565b60008083601f840112611da157600080fd5b5081356001600160401b03811115611db857600080fd5b6020830191508360208260051b8501011115611d8857600080fd5b600060608284031215611de557600080fd5b611ded61197b565b9050813581526020820135602082015260408201356001600160401b03811115611e1657600080fd5b611e2284828501611a83565b60408301525092915050565b60008060008060008060008060008060e08b8d031215611e4d57600080fd5b611e568b611929565b995060208b0135985060408b01356001600160401b0380821115611e7957600080fd5b611e858e838f01611d47565b909a50985060608d0135915080821115611e9e57600080fd5b611eaa8e838f01611d8f565b9098509650869150611ebe60808e01611929565b955060a08d0135915080821115611ed457600080fd5b611ee08e838f01611d47565b909550935060c08d0135915080821115611ef957600080fd5b50611f068d828e01611dd3565b9150509295989b9194979a5092959850565b602080825282518282018190526000919060409081850190868401855b82811015611f6b57611f5b84835180516001600160a01b03168252602090810151910152565b9284019290850190600101611f35565b5091979650505050505050565b803560ff8116811461193457600080fd5b60008060008060008060c08789031215611fa257600080fd5b8635611fad81611914565b95506020870135945060408701359350611fc960608801611f78565b92506080870135915060a087013590509295509295509295565b60008060408385031215611ff657600080fd5b823561200181611914565b9150602083013561201181611914565b809150509250929050565b60008060008060008060c0878903121561203557600080fd5b863561204081611914565b95506020870135945060408701356001600160401b038082111561206357600080fd5b61206f8a838b01611a83565b9550606089013594506080890135915061208882611914565b90925060a0880135908082111561209e57600080fd5b506120ab89828a01611a83565b9150509295509295509295565b600080600080608085870312156120ce57600080fd5b84356120d981611914565b935060208501356120e981611914565b925060408501359150606085013561210081611914565b939692955090935050565b60008060008060006080868803121561212357600080fd5b853561212e81611914565b9450602086013593506040860135925060608601356001600160401b0381111561215757600080fd5b61216388828901611d47565b969995985093965092949392505050565b60008083601f84011261218657600080fd5b5081356001600160401b0381111561219d57600080fd5b6020830191508360208260061b8501011115611d8857600080fd5b600080600080600080600080600060c08a8c0312156121d657600080fd5b89356121e181611914565b985060208a01356001600160401b03808211156121fd57600080fd5b6122098d838e01612174565b909a50985060408c013591508082111561222257600080fd5b61222e8d838e01611d47565b909850965060608c0135955060808c0135915061224a82611914565b90935060a08b0135908082111561226057600080fd5b5061226d8c828d01611d47565b915080935050809150509295985092959850929598565b60006060828403121561229657600080fd5b50919050565b600080600080600080600060e0888a0312156122b757600080fd5b87356122c281611914565b96506020880135955060408801356001600160401b03808211156122e557600080fd5b6122f18b838c01611a83565b965060608a0135955060808a0135915061230a82611914565b90935060a0890135908082111561232057600080fd5b61232c8b838c01611a83565b935060c08a013591508082111561234257600080fd5b5061234f8a828b01612284565b91505092959891949750929550565b60008060006040848603121561237357600080fd5b833561237e81611914565b925060208401356001600160401b0381111561239957600080fd5b6123a586828701611d47565b9497909650939450505050565b600080602083850312156123c557600080fd5b82356001600160401b038111156123db57600080fd5b6123e785828601611d8f565b90969095509350505050565b60005b8381101561240e5781810151838201526020016123f6565b50506000910152565b6000815180845261242f8160208601602086016123f3565b601f01601f19169290920160200192915050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561249a57603f19888603018452612488858351612417565b9450928501929085019060010161246c565b5092979650505050505050565b600080600080600080600080600060c08a8c0312156124c557600080fd5b89356124d081611914565b985060208a0135975060408a01356001600160401b03808211156124f357600080fd5b6124ff8d838e01611d47565b909950975060608c013591508082111561251857600080fd5b6125248d838e01611d8f565b909750955060808c0135915061224a82611914565b60006020828403121561254b57600080fd5b813561255681611914565b9392505050565b600082601f83011261256e57600080fd5b8135602061257e611aa283611a39565b82815260c0928302850182019282820191908785111561259d57600080fd5b8387015b858110156126125781818a0312156125b95760008081fd5b6125c16119c5565b81356125cc81611914565b815281860135868201526040808301359082015260606125ed818401611f78565b908201526080828101359082015260a0808301359082015284529284019281016125a1565b5090979650505050505050565b60008060008060008060008060008060e08b8d03121561263e57600080fd5b6126478b611929565b995060208b01356001600160401b038082111561266357600080fd5b61266f8e838f01612174565b909b50995060408d013591508082111561268857600080fd5b6126948e838f01611d47565b909950975060608d013596508791506126af60808e01611929565b955060a08d01359150808211156126c557600080fd5b6126d18e838f01611d47565b909550935060c08d01359150808211156126ea57600080fd5b50611f068d828e0161255d565b60008060008084860361012081121561270f57600080fd5b85356001600160401b0381111561272557600080fd5b61273188828901611ad9565b955050602086013593506040860135925060c0605f198201121561275457600080fd5b509295919450926060019150565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061068590830184612417565b6000602082840312156127ae57600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905260009061093e90830184866127b5565b6000808335601e1984360301811261283057600080fd5b8301803591506001600160401b0382111561284a57600080fd5b602001915036819003821315611d8857600080fd5b6020815260006109e96020830184866127b5565b60006020828403121561288557600080fd5b815161255681611914565b634e487b7160e01b600052603260045260246000fd5b8183823760009101908152919050565b6000602082840312156128c857600080fd5b81516001600160401b038111156128de57600080fd5b8201601f810184136128ef57600080fd5b80516128fd611aa282611a5c565b81815285602083850101111561291257600080fd5b6104cc8260208301602086016123f3565b6020815260006125566020830184612417565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b60006020828403121561298957600080fd5b61255682611f78565b634e487b7160e01b600052601160045260246000fd5b81810381811115611d4157611d41612992565b6080815260006129ce6080830187612417565b6001600160a01b0386811660208501528516604084015282810360608401526106858185612417565b600060408284031215612a0957600080fd5b612a116119e7565b90508151612a1e81611914565b808252506020820151602082015292915050565b600060408284031215612a4457600080fd5b61255683836129f7565b80820180821115611d4157611d41612992565b600060208284031215612a7357600080fd5b8151801515811461255657600080fd5b608081526000612a966080830188612417565b6001600160a01b03878116602085015286166040840152828103606084015261093e8185876127b5565b60006020808385031215612ad357600080fd5b82516001600160401b03811115612ae957600080fd5b8301601f81018513612afa57600080fd5b8051612b08611aa282611a39565b8082825260208201915060208360061b850101925087831115612b2a57600080fd5b6020840193505b8284101561068557612b4388856129f7565b82528482019150604084019350612b31565b60008251612b678184602087016123f3565b9190910192915050565b600060408284031215612b8357600080fd5b612b8b6119e7565b8235612b9681611914565b81526020928301359281019290925250919050565b608081526000612bbf60808301888a6127b5565b6001600160a01b0387811660208501528616604084015282810360608401526109688185876127b556fea264697066735822122095fbbc130ca3495b5a49a8da7fd76dc80a24b6efe6cccafa816290a945bef7ad64736f6c63430008160033",
}

SyncSwapRouterMetaData contains all meta data concerning the SyncSwapRouter contract.

Functions

This section is empty.

Types

type IPoolTokenAmount

type IPoolTokenAmount struct {
	Token  common.Address
	Amount *big.Int
}

IPoolTokenAmount is an auto generated low-level Go binding around an user-defined struct.

type IRouterArrayPermitParams

type IRouterArrayPermitParams struct {
	ApproveAmount *big.Int
	Deadline      *big.Int
	Signature     []byte
}

IRouterArrayPermitParams is an auto generated low-level Go binding around an user-defined struct.

type IRouterSplitPermitParams

type IRouterSplitPermitParams struct {
	Token         common.Address
	ApproveAmount *big.Int
	Deadline      *big.Int
	V             uint8
	R             [32]byte
	S             [32]byte
}

IRouterSplitPermitParams is an auto generated low-level Go binding around an user-defined struct.

type IRouterSwapPath

type IRouterSwapPath struct {
	Steps    []IRouterSwapStep
	TokenIn  common.Address
	AmountIn *big.Int
}

IRouterSwapPath is an auto generated low-level Go binding around an user-defined struct.

type IRouterSwapStep

type IRouterSwapStep struct {
	Pool         common.Address
	Data         []byte
	Callback     common.Address
	CallbackData []byte
}

IRouterSwapStep is an auto generated low-level Go binding around an user-defined struct.

type SyncSwapRouter

type SyncSwapRouter struct {
	SyncSwapRouterCaller     // Read-only binding to the contract
	SyncSwapRouterTransactor // Write-only binding to the contract
	SyncSwapRouterFilterer   // Log filterer for contract events
}

SyncSwapRouter is an auto generated Go binding around an Ethereum contract.

func DeploySyncSwapRouter

func DeploySyncSwapRouter(auth *bind.TransactOpts, backend bind.ContractBackend, _vault common.Address, _wETH common.Address) (common.Address, *types.Transaction, *SyncSwapRouter, error)

DeploySyncSwapRouter deploys a new Ethereum contract, binding an instance of SyncSwapRouter to it.

func NewSyncSwapRouter

func NewSyncSwapRouter(address common.Address, backend bind.ContractBackend) (*SyncSwapRouter, error)

NewSyncSwapRouter creates a new instance of SyncSwapRouter, bound to a specific deployed contract.

type SyncSwapRouterCaller

type SyncSwapRouterCaller struct {
	// contains filtered or unexported fields
}

SyncSwapRouterCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewSyncSwapRouterCaller

func NewSyncSwapRouterCaller(address common.Address, caller bind.ContractCaller) (*SyncSwapRouterCaller, error)

NewSyncSwapRouterCaller creates a new read-only instance of SyncSwapRouter, bound to a specific deployed contract.

func (*SyncSwapRouterCaller) EnteredPools

func (_SyncSwapRouter *SyncSwapRouterCaller) EnteredPools(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.

Solidity: function enteredPools(address , uint256 ) view returns(address)

func (*SyncSwapRouterCaller) EnteredPoolsLength

func (_SyncSwapRouter *SyncSwapRouterCaller) EnteredPoolsLength(opts *bind.CallOpts, account common.Address) (*big.Int, error)

EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.

Solidity: function enteredPoolsLength(address account) view returns(uint256)

func (*SyncSwapRouterCaller) IsPoolEntered

func (_SyncSwapRouter *SyncSwapRouterCaller) IsPoolEntered(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.

Solidity: function isPoolEntered(address , address ) view returns(bool)

func (*SyncSwapRouterCaller) Vault

func (_SyncSwapRouter *SyncSwapRouterCaller) Vault(opts *bind.CallOpts) (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SyncSwapRouterCaller) WETH

func (_SyncSwapRouter *SyncSwapRouterCaller) WETH(opts *bind.CallOpts) (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xf2428621.

Solidity: function wETH() view returns(address)

type SyncSwapRouterCallerRaw

type SyncSwapRouterCallerRaw struct {
	Contract *SyncSwapRouterCaller // Generic read-only contract binding to access the raw methods on
}

SyncSwapRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*SyncSwapRouterCallerRaw) Call

func (_SyncSwapRouter *SyncSwapRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type SyncSwapRouterCallerSession

type SyncSwapRouterCallerSession struct {
	Contract *SyncSwapRouterCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts         // Call options to use throughout this session
}

SyncSwapRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*SyncSwapRouterCallerSession) EnteredPools

func (_SyncSwapRouter *SyncSwapRouterCallerSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)

EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.

Solidity: function enteredPools(address , uint256 ) view returns(address)

func (*SyncSwapRouterCallerSession) EnteredPoolsLength

func (_SyncSwapRouter *SyncSwapRouterCallerSession) EnteredPoolsLength(account common.Address) (*big.Int, error)

EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.

Solidity: function enteredPoolsLength(address account) view returns(uint256)

func (*SyncSwapRouterCallerSession) IsPoolEntered

func (_SyncSwapRouter *SyncSwapRouterCallerSession) IsPoolEntered(arg0 common.Address, arg1 common.Address) (bool, error)

IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.

Solidity: function isPoolEntered(address , address ) view returns(bool)

func (*SyncSwapRouterCallerSession) Vault

func (_SyncSwapRouter *SyncSwapRouterCallerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SyncSwapRouterCallerSession) WETH

func (_SyncSwapRouter *SyncSwapRouterCallerSession) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xf2428621.

Solidity: function wETH() view returns(address)

type SyncSwapRouterFilterer

type SyncSwapRouterFilterer struct {
	// contains filtered or unexported fields
}

SyncSwapRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewSyncSwapRouterFilterer

func NewSyncSwapRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*SyncSwapRouterFilterer, error)

NewSyncSwapRouterFilterer creates a new log filterer instance of SyncSwapRouter, bound to a specific deployed contract.

type SyncSwapRouterRaw

type SyncSwapRouterRaw struct {
	Contract *SyncSwapRouter // Generic contract binding to access the raw methods on
}

SyncSwapRouterRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*SyncSwapRouterRaw) Call

func (_SyncSwapRouter *SyncSwapRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*SyncSwapRouterRaw) Transact

func (_SyncSwapRouter *SyncSwapRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*SyncSwapRouterRaw) Transfer

func (_SyncSwapRouter *SyncSwapRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SyncSwapRouterSession

type SyncSwapRouterSession struct {
	Contract     *SyncSwapRouter   // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

SyncSwapRouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*SyncSwapRouterSession) AddLiquidity

func (_SyncSwapRouter *SyncSwapRouterSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.

Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterSession) AddLiquidity2

func (_SyncSwapRouter *SyncSwapRouterSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.

Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterSession) AddLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.

Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterSession) AddLiquidityWithPermit2

func (_SyncSwapRouter *SyncSwapRouterSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.

Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterSession) BurnLiquidity

func (_SyncSwapRouter *SyncSwapRouterSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.

Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)

func (*SyncSwapRouterSession) BurnLiquiditySingle

func (_SyncSwapRouter *SyncSwapRouterSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.

Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)

func (*SyncSwapRouterSession) BurnLiquiditySingleWithPermit

func (_SyncSwapRouter *SyncSwapRouterSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.

Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)

func (*SyncSwapRouterSession) BurnLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.

Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)

func (*SyncSwapRouterSession) CreatePool

func (_SyncSwapRouter *SyncSwapRouterSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.

Solidity: function createPool(address _factory, bytes data) payable returns(address)

func (*SyncSwapRouterSession) EnteredPools

func (_SyncSwapRouter *SyncSwapRouterSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)

EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.

Solidity: function enteredPools(address , uint256 ) view returns(address)

func (*SyncSwapRouterSession) EnteredPoolsLength

func (_SyncSwapRouter *SyncSwapRouterSession) EnteredPoolsLength(account common.Address) (*big.Int, error)

EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.

Solidity: function enteredPoolsLength(address account) view returns(uint256)

func (*SyncSwapRouterSession) IsPoolEntered

func (_SyncSwapRouter *SyncSwapRouterSession) IsPoolEntered(arg0 common.Address, arg1 common.Address) (bool, error)

IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.

Solidity: function isPoolEntered(address , address ) view returns(bool)

func (*SyncSwapRouterSession) Multicall

func (_SyncSwapRouter *SyncSwapRouterSession) Multicall(data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*SyncSwapRouterSession) SelfPermit

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.

Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterSession) SelfPermit2

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.

Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterSession) SelfPermit2IfNecessary

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.

Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterSession) SelfPermitAllowed

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.

Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterSession) SelfPermitAllowedIfNecessary

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.

Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterSession) SelfPermitIfNecessary

func (_SyncSwapRouter *SyncSwapRouterSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.

Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterSession) Stake

func (_SyncSwapRouter *SyncSwapRouterSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x6291027c.

Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()

func (*SyncSwapRouterSession) Swap

func (_SyncSwapRouter *SyncSwapRouterSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x2cc4081e.

Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)

func (*SyncSwapRouterSession) SwapWithPermit

func (_SyncSwapRouter *SyncSwapRouterSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)

SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.

Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)

func (*SyncSwapRouterSession) Vault

func (_SyncSwapRouter *SyncSwapRouterSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SyncSwapRouterSession) WETH

func (_SyncSwapRouter *SyncSwapRouterSession) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xf2428621.

Solidity: function wETH() view returns(address)

type SyncSwapRouterTokenInput

type SyncSwapRouterTokenInput struct {
	Token  common.Address
	Amount *big.Int
}

SyncSwapRouterTokenInput is an auto generated low-level Go binding around an user-defined struct.

type SyncSwapRouterTransactor

type SyncSwapRouterTransactor struct {
	// contains filtered or unexported fields
}

SyncSwapRouterTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewSyncSwapRouterTransactor

func NewSyncSwapRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*SyncSwapRouterTransactor, error)

NewSyncSwapRouterTransactor creates a new write-only instance of SyncSwapRouter, bound to a specific deployed contract.

func (*SyncSwapRouterTransactor) AddLiquidity

func (_SyncSwapRouter *SyncSwapRouterTransactor) AddLiquidity(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.

Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactor) AddLiquidity2

func (_SyncSwapRouter *SyncSwapRouterTransactor) AddLiquidity2(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.

Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactor) AddLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactor) AddLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.

Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactor) AddLiquidityWithPermit2

func (_SyncSwapRouter *SyncSwapRouterTransactor) AddLiquidityWithPermit2(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.

Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactor) BurnLiquidity

func (_SyncSwapRouter *SyncSwapRouterTransactor) BurnLiquidity(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.

Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)

func (*SyncSwapRouterTransactor) BurnLiquiditySingle

func (_SyncSwapRouter *SyncSwapRouterTransactor) BurnLiquiditySingle(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.

Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactor) BurnLiquiditySingleWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactor) BurnLiquiditySingleWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.

Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactor) BurnLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactor) BurnLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.

Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)

func (*SyncSwapRouterTransactor) CreatePool

func (_SyncSwapRouter *SyncSwapRouterTransactor) CreatePool(opts *bind.TransactOpts, _factory common.Address, data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.

Solidity: function createPool(address _factory, bytes data) payable returns(address)

func (*SyncSwapRouterTransactor) Multicall

func (_SyncSwapRouter *SyncSwapRouterTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*SyncSwapRouterTransactor) SelfPermit

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermit(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.

Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactor) SelfPermit2

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermit2(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.

Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterTransactor) SelfPermit2IfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermit2IfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.

Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterTransactor) SelfPermitAllowed

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermitAllowed(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.

Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactor) SelfPermitAllowedIfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermitAllowedIfNecessary(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.

Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactor) SelfPermitIfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactor) SelfPermitIfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.

Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactor) Stake

func (_SyncSwapRouter *SyncSwapRouterTransactor) Stake(opts *bind.TransactOpts, stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x6291027c.

Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()

func (*SyncSwapRouterTransactor) Swap

func (_SyncSwapRouter *SyncSwapRouterTransactor) Swap(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x2cc4081e.

Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactor) SwapWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactor) SwapWithPermit(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)

SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.

Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)

type SyncSwapRouterTransactorRaw

type SyncSwapRouterTransactorRaw struct {
	Contract *SyncSwapRouterTransactor // Generic write-only contract binding to access the raw methods on
}

SyncSwapRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*SyncSwapRouterTransactorRaw) Transact

func (_SyncSwapRouter *SyncSwapRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*SyncSwapRouterTransactorRaw) Transfer

func (_SyncSwapRouter *SyncSwapRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SyncSwapRouterTransactorSession

type SyncSwapRouterTransactorSession struct {
	Contract     *SyncSwapRouterTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

SyncSwapRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*SyncSwapRouterTransactorSession) AddLiquidity

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.

Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactorSession) AddLiquidity2

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.

Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactorSession) AddLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.

Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactorSession) AddLiquidityWithPermit2

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)

AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.

Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)

func (*SyncSwapRouterTransactorSession) BurnLiquidity

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.

Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)

func (*SyncSwapRouterTransactorSession) BurnLiquiditySingle

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.

Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactorSession) BurnLiquiditySingleWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.

Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactorSession) BurnLiquidityWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)

BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.

Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)

func (*SyncSwapRouterTransactorSession) CreatePool

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.

Solidity: function createPool(address _factory, bytes data) payable returns(address)

func (*SyncSwapRouterTransactorSession) Multicall

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*SyncSwapRouterTransactorSession) SelfPermit

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.

Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactorSession) SelfPermit2

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.

Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterTransactorSession) SelfPermit2IfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.

Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()

func (*SyncSwapRouterTransactorSession) SelfPermitAllowed

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.

Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactorSession) SelfPermitAllowedIfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.

Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactorSession) SelfPermitIfNecessary

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.

Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()

func (*SyncSwapRouterTransactorSession) Stake

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x6291027c.

Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()

func (*SyncSwapRouterTransactorSession) Swap

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x2cc4081e.

Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)

func (*SyncSwapRouterTransactorSession) SwapWithPermit

func (_SyncSwapRouter *SyncSwapRouterTransactorSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)

SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.

Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL