Documentation ¶
Index ¶
- type TestPerpsMarket
- func (m *TestPerpsMarket) Close()
- func (m *TestPerpsMarket) CommitOrder(marketIDS string, sizeS string)
- func (m *TestPerpsMarket) CreateAccount()
- func (m *TestPerpsMarket) GetApproval()
- func (m *TestPerpsMarket) GetCollateralAmount(marketIDS string)
- func (m *TestPerpsMarket) GetMaxCollateralAmount(marketIDS string)
- func (m *TestPerpsMarket) GetUSDTBalance()
- func (m *TestPerpsMarket) GrantPermission(idS string, permissionS string, userS string)
- func (m *TestPerpsMarket) ModifyCollateral(marketIDS string, amountS string)
- func (m *TestPerpsMarket) SetApproval(amountS string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestPerpsMarket ¶
type TestPerpsMarket struct { TestAddress common.Address TestAccount *big.Int // contains filtered or unexported fields }
func GetTestPerpsMarket ¶
func GetTestPerpsMarket(rpcUrl string, perpsMarketAddress string, sUSDTAddress string, chainID int) *TestPerpsMarket
func (*TestPerpsMarket) Close ¶
func (m *TestPerpsMarket) Close()
func (*TestPerpsMarket) CommitOrder ¶
func (m *TestPerpsMarket) CommitOrder(marketIDS string, sizeS string)
func (*TestPerpsMarket) CreateAccount ¶
func (m *TestPerpsMarket) CreateAccount()
func (*TestPerpsMarket) GetApproval ¶
func (m *TestPerpsMarket) GetApproval()
func (*TestPerpsMarket) GetCollateralAmount ¶
func (m *TestPerpsMarket) GetCollateralAmount(marketIDS string)
func (*TestPerpsMarket) GetMaxCollateralAmount ¶
func (m *TestPerpsMarket) GetMaxCollateralAmount(marketIDS string)
func (*TestPerpsMarket) GetUSDTBalance ¶
func (m *TestPerpsMarket) GetUSDTBalance()
func (*TestPerpsMarket) GrantPermission ¶
func (m *TestPerpsMarket) GrantPermission(idS string, permissionS string, userS string)
func (*TestPerpsMarket) ModifyCollateral ¶
func (m *TestPerpsMarket) ModifyCollateral(marketIDS string, amountS string)
func (*TestPerpsMarket) SetApproval ¶
func (m *TestPerpsMarket) SetApproval(amountS string)
Click to show internal directories.
Click to hide internal directories.