Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFelt ¶
func GetAdressFormatFromFelt ¶
func GetAdressFormatFromStr ¶
func GetUniqueEkuboHash ¶
Get a unique pool identifier for the Ekubo pools with given data: TokenA, TokenB, Fee, TickSpacing
Types ¶
type Client ¶
type Client interface { Call(fc rpc.FunctionCall) ([]*felt.Felt, error) GetEvents(from, to uint64, address string, c_token string, keys []string) ([]rpc.EmittedEvent, string, error) GetEventsWithID(from, to rpc.BlockID, address string, c_token string, keys []string) ([]rpc.EmittedEvent, string, error) LastBlock() (*rpc.BlockHashAndNumberOutput, error) NewDex(amm_id int) (Dex, error) }
func NewStarknetClient ¶
type EkuboData ¶
type EkuboData struct { TickSpacing string `json:"tick_spacing"` SqrtPriceLow string `json:"sqrt_price_low,omitempty"` SqrtPriceHigh string `json:"sqrt_price_high,omitempty"` CurrentTick string `json:"current_tick,omitempty"` TickSign string `json:"tick_sign,omitempty"` Liqudity string `json:"liqudity,omitempty"` KeyExtension string `json:"key_extension"` }
Click to show internal directories.
Click to hide internal directories.