Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayUser ¶
type GatewayUser struct { Wallets []wallet.Wallet HTTPClient *ethclient.Client WSClient *ethclient.Client // contains filtered or unexported fields }
GatewayUser TODO (@ziga) refactor GatewayUser and integrate it with OGlib. GatewayUser is a struct that includes everything a gateway user has and uses (userID, wallets, http & ws addresses and client )
func NewGatewayUser ¶
func (GatewayUser) GetUserAccountsBalances ¶
func (u GatewayUser) GetUserAccountsBalances() ([]*big.Int, error)
func (GatewayUser) RegisterAccounts ¶
func (u GatewayUser) RegisterAccounts() error
func (GatewayUser) RegisterAccountsPersonalSign ¶
func (u GatewayUser) RegisterAccountsPersonalSign() error
type JSONRPCMessage ¶
type JSONRPCMessage struct { Version string `json:"jsonrpc,omitempty"` ID json.RawMessage `json:"id,omitempty"` Method string `json:"method,omitempty"` Params json.RawMessage `json:"params,omitempty"` Error *JSONError `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` }
JSONRPCMessage value of this type can a JSON-RPC request, notification, successful response or error response. Which one it is depends on the fields.
Click to show internal directories.
Click to hide internal directories.