protocolx

package
v0.0.0-...-c471892 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer struct {
	*contract.ContractsRepository
	// contains filtered or unexported fields
}

func NewDeployer

func NewDeployer(rpcURL *url.URL, repo *contract.ContractsRepository, senderAddress string) (*Deployer, error)

func (*Deployer) ConfirmContract

func (d *Deployer) ConfirmContract(c *contract.DeployedContract) (err error)

func (*Deployer) CreateContract

func (d *Deployer) CreateContract(c *contract.CompiledContract, jsonParams []byte, opts *deployer.Options) (err error)

func (*Deployer) Mine

func (d *Deployer) Mine() error

type RPC

type RPC struct {
	BaseURL *url.URL
}

func NewRPC

func NewRPC(baseurl string) (*RPC, error)

func (*RPC) Call

func (rpc *RPC) Call(result interface{}, method string, params ...interface{}) (err error)

type TransactionReceipt

type TransactionReceipt struct {
	TxID    contract.Bytes `json:"txid"`
	Sender  string         `json:"sender"`
	Hash160 contract.Bytes `json:"hash160"`
	Address contract.Bytes `json:"address"`
}

Jump to

Keyboard shortcuts

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