Categorygithub.com/ParadigmFoundation/go-zrx
modulepackage
0.0.0-20200227075757-2cf345db6e80
Repository: https://github.com/paradigmfoundation/go-zrx.git
Documentation: pkg.go.dev

# README

go-zrx Build Status GoDoc

Go library with helpful tools for interacting with the 0x system

# Functions

ECSignatureToBytes converts a 0x ECSignature to it's bytes representation Ideally this would be a method on *signer.ECSignature.
EncodeERC20AssetData returns the encoded asset data for the token address Details: https://github.com/0xProject/0x-protocol-specification/blob/master/v3/v3-specification.md#assetdata.
GeneratePseudoRandomSalt generates a pseudo-random integer bound by (2^256 - 1).
No description provided by the author
SignTransaction signs the 0x transaction with the supplied Signer.

# Constants

No description provided by the author
No description provided by the author
ECSignatureLength is the length, in bytes, of a ECSignature.
TypeEIP712Domain is the name of the EIP-712 domain type.
TypeZeroExTransaction is the name of the 0x transaction type.
ZeroExProtocolName is the EIP-712 domain name of the 0x protocol.
ZeroExProtocolVersion is the EIP-712 domain version of the 0x protocol.
ZeroExTestChainID is the chain ID of the 0x ganache snapshot network.

# Variables

 EIP712Types are the EIP-712 type definitions for the relevant 0x types and domain.
EXECUTE_FILL_TX_GAS_LIMIT is the maximum gas cost (with buffer) of executing a single fill transaction This value accounts for a scenario in which a 0x staking epoch has ended and must be settled.
NULL_ADDRESS is the Ethereum address with 20 null bytes.
PROTOCOL_FEE_MULTIPLIER is the value that a fill transaction's gas price must be multipled by, and paid in ETH https://github.com/0xProject/0x-protocol-specification/blob/master/v3/v3-specification.md#protocol-fees.

# Structs

SignedTransaction represents a signed 0x transaction.
Transaction represents 0x transaction (see ZEIP-18).
No description provided by the author