UpdateGlobalVar

type ContractPrice

ContractPrice(
    int pairId,
    String marketPrice,
)

input:

  • pairId: The contract pair id defined by zkLink.

  • marketPrice: The market price of the contract pair

type SpotPriceInfo

SpotPriceInfo(
    int tokenId,
    String price,
)

input:

  • tokenId: The token id defined by zkLink.

  • price: The spot price of the token.

type FundingInfo

type Parameter

The Parameter struct of UpdateGlobalVar.

func insuranceFundAccount

func feeAccount

func marginInfo

func contractInfo

func feeAccount

func fundingInfos

type UpdateGlobalVar

UpdateGlobalVar transaction type.

func toJson

Get the json str of UpdateGlobalVar

Example

Last updated

Was this helpful?