Documentation ¶
Index ¶
- Variables
- func CreateMarketAny(w *Wallet, conn *Connection, proposer *Party, voters ...*Party) (*vega.Market, error)
- func FillAccounts(asset, amount string, parties []*Party) error
- func MarketProposalTxn(now time.Time, oraclePubkey string) (*walletpb.SubmitTransactionRequest, string)
- func MoveByDuration(d time.Duration) error
- func MoveToDate(t time.Time) error
- func OracleTxn(key, value string) *walletpb.SubmitTransactionRequest
- func OrderTxn(marketId string, price, size uint64, side vega.Side, orderT vega.Order_Type, ...) *walletpb.SubmitTransactionRequest
- func SettleMarket(w *Wallet, conn *Connection, oracle *Party) error
- func VoteTxn(proposalID string, vote vega.Vote_Value) *walletpb.SubmitTransactionRequest
- type Connection
- func (c *Connection) Close() error
- func (c *Connection) GetMarkets() ([]*vega.Market, error)
- func (c *Connection) GetProposalByReference(ref string) (*vega.Proposal, error)
- func (c *Connection) GetProposalsByParty(party *Party) ([]*vega.GovernanceData, error)
- func (c *Connection) LastBlockHeight() (uint64, error)
- func (c *Connection) NetworkChainID() (string, error)
- func (c *Connection) VegaTime() (time.Time, error)
- type Party
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedSubmission = errors.New("failed to submit transaction")
View Source
var ErrFaucet = errors.New("faucet failed")
View Source
var ErrMarketCreationFailed = errors.New("market creation failed")
View Source
var ErrTimeForward = errors.New("time forward failed")
Functions ¶
func CreateMarketAny ¶
func FillAccounts ¶
func MarketProposalTxn ¶
func MoveByDuration ¶
func MoveToDate ¶
func OracleTxn ¶
func OracleTxn(key, value string) *walletpb.SubmitTransactionRequest
func OrderTxn ¶
func OrderTxn( marketId string, price, size uint64, side vega.Side, orderT vega.Order_Type, expiresAt time.Time, ) *walletpb.SubmitTransactionRequest
func SettleMarket ¶
func SettleMarket(w *Wallet, conn *Connection, oracle *Party) error
func VoteTxn ¶
func VoteTxn(proposalID string, vote vega.Vote_Value) *walletpb.SubmitTransactionRequest
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection() (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) GetMarkets ¶
func (c *Connection) GetMarkets() ([]*vega.Market, error)
func (*Connection) GetProposalByReference ¶
func (c *Connection) GetProposalByReference(ref string) (*vega.Proposal, error)
func (*Connection) GetProposalsByParty ¶
func (c *Connection) GetProposalsByParty(party *Party) ([]*vega.GovernanceData, error)
func (*Connection) LastBlockHeight ¶
func (c *Connection) LastBlockHeight() (uint64, error)
func (*Connection) NetworkChainID ¶
func (c *Connection) NetworkChainID() (string, error)
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) DeleteParties ¶
func (*Wallet) SubmitTransaction ¶
func (w *Wallet) SubmitTransaction(conn *Connection, party *Party, txn *walletpb.SubmitTransactionRequest) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.