Documentation
¶
Index ¶
Constants ¶
View Source
const ContractServerUrl = "http://localhost:3000"
Variables ¶
View Source
var ( DeployContract = MakeGetAndDecodeFunc[ContractDeployed]("%s/v1/deployContract") DestroyContract = MakeGetAndDecodeFunc[ContractDestroyed]("%s/v1/destroyContract?addr=%s") DeploySLVContract = MakeGetAndDecodeFunc[ContractDeployed]("%s/v1/deploySLVContract") DestroySLVContract = MakeGetAndDecodeFunc[ContractDestroyed]("%s/v1/destroySLVContract?addr=%s") SendEth = MakeGetAndDecodeFunc[Tx]("%s/v1/sendEth?to=%s&value=%s") GetStorageSlotKey = MakeGetAndDecodeFunc[StorageKey]("%s/v1/getStorageKey?contract=%s&label=%s") IncrementCount = MakeGetAndDecodeFunc[CountIncremented]("%s/v1/incrementCount%s?addr=%s") Create2Contract = MakeGetAndDecodeFunc[ContractDeployed]("%s/v1/create2Contract?contract=%s&salt=%s") )
Functions ¶
func MakeGetAndDecodeFunc ¶
Factory which creates endpoint functions
Types ¶
type ContractDeployed ¶
type ContractDestroyed ¶
type ContractDestroyed struct {
BlockNumber int64 `json:"blockNumber"`
}
type CountIncremented ¶
type StorageKey ¶
type StorageKey struct {
Key string `json:"key"`
}
Click to show internal directories.
Click to hide internal directories.