Documentation
¶
Index ¶
Constants ¶
View Source
const ( Mainnet = "mainnet" Goerli = "goerli" Ethereum = "ethereum" )
View Source
const ArtemisEndpoint = "https://artemis.zeus.fyi"
View Source
const ArtemisLocalEndpoint = "http://localhost:9004"
Variables ¶
View Source
var ( ArtemisEthereumMainnet = NewArtemisConfig(Ethereum, Mainnet) ArtemisEthereumGoerli = NewArtemisConfig(Ethereum, Goerli) GlobalArtemisConfigs = []ArtemisConfig{ArtemisEthereumMainnet, ArtemisEthereumGoerli} )
View Source
var Ether = big.NewInt(1e18)
View Source
var Finney = big.NewInt(1e15)
View Source
var Gwei = big.NewInt(1e9)
Functions ¶
This section is empty.
Types ¶
type ArtemisClient ¶
type ArtemisClient struct { ecdsa.Account resty_base.Resty ArtemisConfigs }
func NewArtemisClient ¶
func NewArtemisClient(baseURL, bearer string) ArtemisClient
func NewDefaultArtemisClient ¶
func NewDefaultArtemisClient(bearer string) ArtemisClient
func NewLocalArtemisClient ¶
func NewLocalArtemisClient(bearer string) ArtemisClient
func (*ArtemisClient) SendEther ¶
func (a *ArtemisClient) SendEther(ctx context.Context, rr artemis_req_types.SendEtherPayload, networkRoute ArtemisConfig) (artemis_resp_types.Response, error)
func (*ArtemisClient) SendSignedTx ¶
func (a *ArtemisClient) SendSignedTx(ctx context.Context, rr *artemis_req_types.SignedTxPayload, networkRoute ArtemisConfig) (artemis_resp_types.Response, error)
type ArtemisConfig ¶
func NewArtemisConfig ¶
func NewArtemisConfig(protocol, network string) ArtemisConfig
func (*ArtemisConfig) GetV1BetaBaseRoute ¶
func (a *ArtemisConfig) GetV1BetaBaseRoute() string
type ArtemisConfigs ¶
type ArtemisConfigs []ArtemisConfig
type Web3Client ¶
type Web3Client struct {
web3_actions.Web3Actions
}
func NewWeb3Client ¶
func NewWeb3Client(nodeUrl string, acc *accounts.Account) Web3Client
Source Files
¶
Click to show internal directories.
Click to hide internal directories.