perps_test

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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