contracts

package
v0.0.127 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 4 Imported by: 10

Documentation

Overview

Package contracts contains contract types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractType

type ContractType interface {
	// ID gets the unique identifier for the contracts
	ID() int
	// Name gets a the contracts name
	Name() string
	// ContractInfo gets the contract info from the compiler contract.
	ContractInfo() *compiler.Contract
	// ContractName gets the name fo the deployed contract
	ContractName() string
}

ContractType is a contract type interface that contracts need to comply with.

type DeployedContract

type DeployedContract interface {
	// Address is the address where the contract has been deployed
	Address() common.Address
	// ContractHandle is the actual handle returned by deploying the contract
	// this must be cast to be useful
	ContractHandle() interface{}
	// Owner of the contract
	Owner() common.Address
	// DeployTx is the transaction where the contract was created
	DeployTx() *types.Transaction
	// ChainID is the chain id
	ChainID() *big.Int
	// OwnerPtr is a pointer to the owner
	OwnerPtr() *common.Address
}

DeployedContract is the contract interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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