nullchain

package
v0.75.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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 CreateMarketAny(w *Wallet, conn *Connection, proposer *Party, voters ...*Party) (*vega.Market, error)

func FillAccounts

func FillAccounts(asset, amount string, parties []*Party) error

func MarketProposalTxn

func MarketProposalTxn(now time.Time, oraclePubkey string) (*walletpb.SubmitTransactionRequest, string)

func MoveByDuration

func MoveByDuration(d time.Duration) error

func MoveToDate

func MoveToDate(t time.Time) error

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)

func (*Connection) VegaTime

func (c *Connection) VegaTime() (time.Time, error)

type Party

type Party struct {
	// contains filtered or unexported fields
}

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func NewWallet

func NewWallet(root, passphrase string) *Wallet

func (*Wallet) Close added in v0.70.4

func (w *Wallet) Close()

func (*Wallet) DeleteParties

func (w *Wallet) DeleteParties(party []*Party)

func (*Wallet) Login

func (w *Wallet) Login(wallet string)

func (*Wallet) MakeParties

func (w *Wallet) MakeParties(n uint64) ([]*Party, error)

func (*Wallet) SubmitTransaction

func (w *Wallet) SubmitTransaction(conn *Connection, party *Party, txn *walletpb.SubmitTransactionRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL