client

package
v0.0.0-...-f02749d Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const BufSize = ((16 << 20) / 128 * 127)

Variables

This section is empty.

Functions

func GenerateEthereumAccount

func GenerateEthereumAccount(keystoreFile, password string) (string, error)

generateEthereumAccount creates a new Ethereum account and saves it to the specified JSON file

func OfferCarAction

func OfferCarAction(cctx *cli.Context) error

func OfferFileAction

func OfferFileAction(cctx *cli.Context) error

Types

type Offer

type Offer struct {
	CommP    []uint8        `json:"commP"`
	Size     uint64         `json:"size"`
	Cid      string         `json:"cid"`
	Location string         `json:"location"`
	Amount   *big.Int       `json:"amount"`
	Token    common.Address `json:"token"`
}

Mirror OnRamp.sol's `Offer` struct

func MakeOffer

func MakeOffer(commpStr string, sizeStr string, cidStr string, location string, token string, amountStr string, abi abi.ABI) (*Offer, error)

Jump to

Keyboard shortcuts

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