UpdateGlobalVar
type ContractPrice
constructor
/**
* @param {number} pair_id
* @param {string} market_price
*/
ContractPrice(pair_id, market_price)input:
pair_id: The contract pair id defined by zkLink.
market_price: The market price of the contract pair
type SpotPriceInfo
constructor
/**
* @param {number} token_id
* @param {string} price
*/
SpotPriceInfo(token_id, price)input:
token_id: The token id defined by zkLink.
price: The spot price of the token.
type FundingInfo
constructor
type MarginInfo
constructor
type ContractInfo
constructor
type Parameter
The Parameter struct of UpdateGlobalVar.
constructor
type UpdateGlobalVarBuilder
constructor
type UpdateGlobalVar
UpdateGlobalVar transaction type.
constructor
Example
Last updated
Was this helpful?