contracts

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	ContractName string      `json:"contractName"`
	ABI          interface{} `json:"abi"`
	Bytecode     string      `json:"bytecode"`
}

func ReadCompiledContract

func ReadCompiledContract(filePath string) (*Contract, error)

type DeployContractResponseBody

type DeployContractResponseBody struct {
	ContractAddress string `json:"contractAddress,omitempty"`
}

func DeployContract

func DeployContract(ethconnectUrl string, abiId string, fromAddress string, params map[string]string, registeredName string) (*DeployContractResponseBody, error)

type PublishAbiResponseBody

type PublishAbiResponseBody struct {
	ID string `json:"id,omitempty"`
}

func PublishABI

func PublishABI(ethconnectUrl string, contract *Contract) (*PublishAbiResponseBody, error)

type RegisterResponseBody

type RegisterResponseBody struct {
	Created      string `json:"created,omitempty"`
	Address      string `json:"string,omitempty"`
	Path         string `json:"path,omitempty"`
	ABI          string `json:"ABI,omitempty"`
	OpenAPI      string `json:"openapi,omitempty"`
	RegisteredAs string `json:"registeredAs,omitempty"`
}

func RegisterContract

func RegisterContract(ethconnectUrl string, abiId string, contractAddress string, fromAddress string, registeredName string, params map[string]string) (*RegisterResponseBody, error)

Jump to

Keyboard shortcuts

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