Documentation ¶
Index ¶
- Variables
- func Price(base, quote *big.Float) *big.Float
- func SignHash(orderHash common.Hash, privateKey *ecdsa.PrivateKey) (string, error)
- func SignHashEIP712(orderHash common.Hash, privateKey *ecdsa.PrivateKey) (string, error)
- func SignHashEthSign(orderHash common.Hash, privateKey *ecdsa.PrivateKey) (string, error)
- func VerifySignature(signature []byte, address common.Address, hash common.Hash) bool
- func VerifySignatureEIP712(signature []byte, address common.Address, hash common.Hash) bool
- func VerifySignatureEthSign(signature []byte, address common.Address, hash common.Hash) bool
- type Asset
- type AssetPair
- type AssetPairs
- type Fees
- type Order
- type Signature
- type UnsignedOrder
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnknownAsset = Asset{Symbol: "UNKNOWN"}
)
Functions ¶
func SignHashEIP712 ¶
func SignHashEthSign ¶
func VerifySignature ¶
func VerifySignatureEIP712 ¶
Types ¶
type Asset ¶
type AssetPairs ¶
type AssetPairs struct {
Records []AssetPair
}
type Fees ¶
func (*Fees) UnmarshalJSON ¶
type Order ¶
type Order struct { OrderHash common.Hash ExchangeContractAddress common.Address Sender common.Address Maker common.Address Taker common.Address MakerTokenAddress common.Address TakerTokenAddress common.Address FeeRecipient common.Address MakerTokenAmount *big.Int TakerTokenAmount *big.Int MakerFee *big.Int TakerFee *big.Int ExpirationUnixTimestampSec time.Time Signature string Salt *big.Int }
func (*Order) CalculateOrderHash ¶
func (*Order) MarshalJSON ¶
func (*Order) MarshalJSONOrderData ¶
func (*Order) UnmarshalJSON ¶
type UnsignedOrder ¶
type UnsignedOrder struct { ExchangeContractAddress common.Address Maker common.Address Taker common.Address MakerTokenAddress common.Address TakerTokenAddress common.Address MakerTokenAmount *big.Int TakerTokenAmount *big.Int ExpirationUnixTimestampSec time.Time Salt *big.Int }
func (*UnsignedOrder) MarshalJSON ¶
func (o *UnsignedOrder) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.