UpdateGlobalVar

Parameter

Parameter is an interface which contains 5 types of struct

type ParameterFeeAccount

type ParameterFeeAccount struct {
	AccountId AccountId
}

This parameter is used to modify the collect-fee account.

type ParameterInsuranceFundAccount

type ParameterInsuranceFundAccount struct {
	AccountId AccountId
}

This parameter is used to modify the insurance fund account.

type ParameterMarginInfo

type ParameterMarginInfo struct {
	MarginId MarginId
	TokenId  TokenId
	Ratio    uint8
}

This parameter is used to modify the margin info in the specified index.

type ParameterFundingInfos

This parameter is used to ppdate the funding rates to accumulated funding rates of the Global Vars for all position(contract pair) in this period.

type FundingInfo

type ParameterContractInfo

This parameter is used to modify the info of every perpetual contract pair.

type UpdateGlobalVarBuilder

The builder is used to build new UpdateGlobalVar transaction.

type UpdateGlobalVar

UpdateGlobalVar transaction type, it's a opaque data type.

func NewUpdateGlobalVar

Create a new UpdateGlobalVar transaction.

func (*UpdateGlobalVar) GetBytes

Get the encoded bytes to create the L3 signature. See more in Private Key and Signature

func (*UpdateGlobalVar) TxHash

Get the transaction hash of the transaction.

func (*UpdateGlobalVar) JsonStr

Get the json string of the transaction.

func (*UpdateGlobalVar) IsValid

Check if the transaction is valid or not.

func (*UpdateGlobalVar) ToZklinkTx

Change the transaction to the ZkLinkTx

Last updated

Was this helpful?