Versions in this module Expand all Collapse all v1 v1.1.0 Jan 26, 2023 v1.0.9 Jan 26, 2023 v1.0.8 Jan 21, 2023 Changes in this version type Client + func (c *Client) GetOrdersBySettlementTxHash(ctx context.Context, txHash string) (*OrdersByTxHashResponse, int, error) v1.0.7 Jan 7, 2023 v1.0.6 Jan 7, 2023 Changes in this version type Client + func (c *Client) CancelOrders(ctx context.Context, uids []string) (*string, int, error) + func (c *Client) SignCancelOrders(uid []string) (string, *apitypes.TypedData, error) v1.0.5 Jan 6, 2023 Changes in this version + func SignEip712Order(c *Client, o *CounterOrder) (string, *apitypes.TypedData, error) + func SignEthSignOrder(c *Client, o *CounterOrder) (string, *apitypes.TypedData, error) + type SignOrderFunc func(*Client, *CounterOrder) (string, *apitypes.TypedData, error) v1.0.4 Jan 6, 2023 v1.0.3 Jan 6, 2023 Changes in this version + const GNOSIS_CHAIN_API + const GOERLI_API + const GPv2Settlement + const GPv2_Vault_Relayer + const MAINNET_API + const RPC_GOERLI + const RPC_MAINNET + const RPC_XDAI + const SUBGRAPH_GNOSIS_CHAIN + const SUBGRAPH_GOERLI + const SUBGRAPH_MAINNET + var ChainIds = map[string]int + var Domain = apitypes.TypedDataDomain + var ETHEREUM_TOKEN_LIST = map[string]string + var Eip712OrderTypes = apitypes.Types + var GNOSIS_SCAN_TOKEN_LIST = map[string]string + var GOERLI_TOKEN_LIST = map[string]string + var HostConfig = map[string]string + var Options = ConfigOpts + var RpcConfig = map[string]string + var SigningSchemeConfig = map[string]string + var SubgraphConfig = map[string]string + var TOKEN_ADDRESSES = map[string]map[string]string + var TypedData = apitypes.TypedData type Client + func (c *Client) GetVersion(ctx context.Context) (*VersionResponse, int, error) + type ConfigOpts struct + EthAddress string + Host string + Network string + PrivateKey string + RpcUrl string v1.0.2 Jan 5, 2023 Changes in this version type Client + Subgraph *subgraph.Client v1.0.1 Jan 3, 2023 Changes in this version + type ApproveAllowance struct + TokenAddress string + WalletAddress string + type AuctionResponse struct + Block int + ID int + LatestSettlementBlock int + Orders []struct{ ... } + Prices struct{ ... } + type CancelOrderReq struct + OrderUids []string + Signature string + SigningScheme string + type Client struct + ChainId *big.Int + ChainIdInt int + Eip712OrderTypes apitypes.Types + EthClient *ethclient.Client + Host string + Http *http.Client + Network string + Options util.ConfigOpts + RpcUrl string + TransactionSigner *TransactionSigner + TypedDataDomain apitypes.TypedDataDomain + func NewClient(options util.ConfigOpts) (*Client, error) + func (c *Client) CancelOrder(ctx context.Context, uid string) (*string, int, error) + func (c *Client) CreateOrder(ctx context.Context, o *CounterOrder) (*string, int, error) + func (c *Client) GetAllowance(ctx context.Context, ownerAddress, tokenAddress string) (*big.Int, error) + func (c *Client) GetAuction(ctx context.Context) (*AuctionResponse, int, error) + func (c *Client) GetNativePrice(ctx context.Context, tokenAddress string) (*NativePriceResponse, int, error) + func (c *Client) GetOrdersByTxHash(ctx context.Context, txHash string) (*OrdersByTxHashResponse, int, error) + func (c *Client) GetOrdersByUid(ctx context.Context, uid string) (*OrderByUidResponse, int, error) + func (c *Client) GetOrdersByUser(ctx context.Context, userAddress string, opts *OrdersPaginated) (*OrdersByUserResponse, int, error) + func (c *Client) GetSolverAuctionById(ctx context.Context, auctionId int) (*SolverAuctionByIdResponse, int, error) + func (c *Client) GetSolverAuctionByTxHash(ctx context.Context, txHash string) (*SolverAuctionByTxHashResponse, int, error) + func (c *Client) GetTrades(ctx context.Context, opts *GetTrades) (*TradesResponse, int, error) + func (c *Client) Hash(o *CounterOrder) (common.Hash, error) + func (c *Client) Quote(ctx context.Context, o *QuoteReq) (*QuoteResponse, int, error) + func (c *Client) SetAllowance(ctx context.Context, tokenAddress, tokenAmount string) (*types.Transaction, error) + func (c *Client) SignCancelOrder(uid string) (string, *apitypes.TypedData, error) + func (c *Client) SignHash(hash []byte, pk *ecdsa.PrivateKey) ([]byte, error) + func (c *Client) SignOrder(order *CounterOrder) (*CounterOrder, error) + func (c *Client) Version(ctx context.Context) (*VersionResponse, int, error) + type CounterOrder struct + AppData string + BuyAmount string + BuyToken string + BuyTokenBalance string + FeeAmount string + From string + Kind string + PartiallyFillable bool + Receiver string + SellAmount string + SellToken string + SellTokenBalance string + Signature string + SigningScheme string + ValidTo uint32 + type ErrorCowResponse struct + Code int + Description string + ErrorType string + func (e *ErrorCowResponse) Error() string + type GetTrades struct + OrderUid string + Owner string + type NativePriceResponse struct + Price float64 + type OrderByUidResponse struct + AppData string + AvailableBalance string + BuyAmount string + BuyToken string + BuyTokenBalance string + CreationTime time.Time + EthflowData struct{ ... } + ExecutedBuyAmount string + ExecutedFeeAmount string + ExecutedSellAmount string + ExecutedSellAmountBeforeFees string + FeeAmount string + From string + FullFeeAmount string + Invalidated bool + IsLiquidityOrder bool + Kind string + OnchainUser string + Owner string + PartiallyFillable bool + QuoteID int + Receiver string + SellAmount string + SellToken string + SellTokenBalance string + Signature string + SigningScheme string + Status string + UID string + ValidTo int + type OrdersByTxHashResponse []struct + type OrdersByUserResponse []struct + type OrdersPaginated struct + Limit string + Offset string + type QuoteReq struct + AppData string + BuyToken string + BuyTokenBalance string + From string + Kind string + OnchainOrder bool + PartiallyFillable bool + PriceQuality string + Receiver string + SellAmountBeforeFee string + SellToken string + SellTokenBalance string + SigningScheme string + type QuoteResponse struct + Expiration time.Time + From string + ID int + Quote struct{ ... } + type SolverAuctionByIdResponse struct + AuctionId int + CompetitionSimulationBlock int + GasPrice float64 + LiquidityCollectedBlock int + Solutions []struct{ ... } + TransactionHash string + type SolverAuctionByTxHashResponse struct + AuctionId int + CompetitionSimulationBlock int + GasPrice float64 + LiquidityCollectedBlock int + Solutions []struct{ ... } + TransactionHash string + type TradesResponse []struct + type TransactionSigner struct + Auth *bind.TransactOpts + PrivateKey *ecdsa.PrivateKey + SignerPubKey common.Address + func NewSigner(privateKey string, chainId *big.Int) (*TransactionSigner, error) + type VersionResponse struct + Branch string + Commit string + Version string v1.0.0 Jan 3, 2023