near

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version2         = "V2"
	ValidatorStakeV1 = 0
	ValidatorStakeV2 = 1
)
View Source
const (
	ProofDirectionRight = "Right"
	ProofDirectionLeft  = "Left"
)

Variables

View Source
var (
	NewFunctionCallGas types.Gas = 30 * 10000000000000
	Deposit                      = "0.3"
)

Functions

func Borshify

func Borshify(block client.LightClientBlockView) []byte

func BorshifyOutcomeProof

func BorshifyOutcomeProof(proof client.RpcLightClientExecutionProofResponse) ([]byte, error)

func MustBase58Decode

func MustBase58Decode(str string) []byte

func MustToLittleEndian

func MustToLittleEndian(w io.Writer, data interface{})

Types

type Result

type Result struct {
	BlockHash   string        `json:"block_hash"`
	BlockHeight int           `json:"block_height"`
	Logs        []interface{} `json:"logs"`
	Result      []byte        `json:"result"`
}

type TransferOut

type TransferOut struct {
	FromChain string `json:"from_chain"`
	ToChain   string `json:"to_chain"`
	OrderId   string `json:"order_id"`
}

Jump to

Keyboard shortcuts

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