Documentation
¶
Overview ¶
Package testnet provides Neo N3 testnet contract deployment.
Index ¶
- Constants
- type Deployer
- func (d *Deployer) DeployContract(nefPath, manifestPath string) (*chain.DeployedContract, error)
- func (d *Deployer) GetAccountHash() util.Uint160
- func (d *Deployer) GetAddress() string
- func (d *Deployer) GetBlockCount() (int64, error)
- func (d *Deployer) GetContractState(contractAddress string) (map[string]interface{}, error)
- func (d *Deployer) GetGASBalance() (string, error)
- func (d *Deployer) GetGASBalanceFloat() (float64, error)
- func (d *Deployer) GetScriptHash() string
- func (d *Deployer) InvokeFunction(contractAddress, method string, args []interface{}) (*chain.InvokeResult, error)
Constants ¶
View Source
const ( DefaultTestnetRPC = "https://testnet1.neo.coz.io:443" DefaultTimeout = 60 * time.Second TestnetMagic = 894710606 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func NewDeployer ¶
func (*Deployer) DeployContract ¶
func (d *Deployer) DeployContract(nefPath, manifestPath string) (*chain.DeployedContract, error)
DeployContract simulates deployment and returns estimated gas costs. For actual deployment, use neo-go CLI.
func (*Deployer) GetAccountHash ¶
func (*Deployer) GetAddress ¶
func (*Deployer) GetBlockCount ¶
func (*Deployer) GetContractState ¶
GetContractState gets the state of a deployed contract.
func (*Deployer) GetGASBalance ¶
func (*Deployer) GetGASBalanceFloat ¶
func (*Deployer) GetScriptHash ¶
func (*Deployer) InvokeFunction ¶
func (d *Deployer) InvokeFunction(contractAddress, method string, args []interface{}) (*chain.InvokeResult, error)
InvokeFunction invokes a contract function (read-only).
Click to show internal directories.
Click to hide internal directories.