Versions in this module Expand all Collapse all v0 v0.0.1 Oct 8, 2022 Changes in this version + const DefaultGasPrice + var ErrAccountDoesntExist = errors.New("account does not exist") + var ErrInvalidArgumentEncoding = errors.New("invalid contract argument encoding") + type ContractRequestBase struct + GasLimit uint64 + GasPrice uint64 + Impersonated []byte + ImpersonatedHex string + Value string + ValueAsBigInt *big.Int + type ContractResponseBase struct + Input *vmcommon.VMInput + Output *vmcommon.VMOutput + ReturnCodeString string + type CreateAccountRequest struct + Address []byte + AddressHex string + Balance string + BalanceAsBigInt *big.Int + Nonce uint64 + type CreateAccountResponse struct + Account *worldmock.Account + type DebugFacade struct + func NewDebugFacade() *DebugFacade + func (f *DebugFacade) CreateAccount(request CreateAccountRequest) (*CreateAccountResponse, error) + func (f *DebugFacade) DeploySmartContract(request DeployRequest) (*DeployResponse, error) + func (f *DebugFacade) QuerySmartContract(request QueryRequest) (*QueryResponse, error) + func (f *DebugFacade) RunSmartContract(request RunRequest) (*RunResponse, error) + func (f *DebugFacade) UpgradeSmartContract(request UpgradeRequest) (*UpgradeResponse, error) + type DebugServer struct + func NewDebugServer(facade *DebugFacade, address string) *DebugServer + func (server *DebugServer) Start() error + type DeployRequest struct + Arguments [][]byte + ArgumentsHex []string + Code []byte + CodeHex string + CodeMetadata string + CodeMetadataBytes []byte + CodePath string + type DeployResponse struct + ContractAddress []byte + ContractAddressHex string + type QueryRequest struct + type QueryResponse struct + type RequestBase struct + DatabasePath string + Outcome string + World string + type RequestError struct + InnerErr error + Message string + func NewRequestError(message string) *RequestError + func NewRequestErrorInner(err error) *RequestError + func NewRequestErrorMessageInner(message string, err error) *RequestError + func (err *RequestError) Error() string + func (err *RequestError) Unwrap() error + type ResponseBase struct + Error error + type RunRequest struct + Arguments [][]byte + ArgumentsHex []string + ContractAddress []byte + ContractAddressHex string + Function string + type RunResponse struct + type UpgradeRequest struct + ContractAddress []byte + ContractAddressHex string + type UpgradeResponse struct