Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DeployTONContractOp = cldfops.NewOperation( "ton/ops/deploy", semver.MustParse("0.1.0"), "Deploys a TON contract in a generic way", deployTONContract, )
Functions ¶
func InvokeDeployContractOperation ¶
func InvokeDeployContractOperation(b cldfops.Bundle, dp *dep.DependencyProvider, chainSelector uint64, compiledContract ton.CompiledContract, storage any, messageBody any, coin string) (*ds.AddressRef, error)
InvokeDeployContractOperation invokes the generic TON contract deployment operation. It always executes the deployment operation and returns an error if the deployment fails.
Types ¶
type DeployContractInput ¶
type DeployContractInput struct {
Name tvm.FullyQualifiedName
Storage any
MessageBody any
ContractCode *cell.Cell
Coins string
}
func (*DeployContractInput) Validate ¶
func (i *DeployContractInput) Validate() error
type DeployContractOutput ¶
type DeployContractResult ¶
type DeployContractResult struct {
AddressRef *ds.AddressRef
TraceExitCode tvm.ExitCode
}
func InvokeDeployContractOperationWithTrace ¶
func InvokeDeployContractOperationWithTrace(b cldfops.Bundle, dp *dep.DependencyProvider, chainSelector uint64, compiledContract ton.CompiledContract, storage any, messageBody any, coin string) (*DeployContractResult, error)
InvokeDeployContractOperationWithTrace is InvokeDeployContractOperation plus the deployment trace's first non-success exit code.