Documentation
¶
Index ¶
- func BuildMulticallRequest() (*steward_proto.ScheduleRequest, error)
- func CreateInsecureSimulateClient()
- func CreateTlsClient() (*grpc.ClientConn, steward_proto.ContractCallServiceClient, error)
- func CreateTlsStatusClient() (steward_proto.StatusServiceClient, error)
- func ExampleAdaptorCall()
- func ExampleBroadcastRequests()
- func ExampleCheckStewardStatus()
- func ExampleMulticall()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMulticallRequest ¶
func BuildMulticallRequest() (*steward_proto.ScheduleRequest, error)
func CreateInsecureSimulateClient ¶
func CreateInsecureSimulateClient()
func CreateTlsClient ¶
func CreateTlsClient() (*grpc.ClientConn, steward_proto.ContractCallServiceClient, error)
func CreateTlsStatusClient ¶
func CreateTlsStatusClient() (steward_proto.StatusServiceClient, error)
When running the production server, Steward exposes a Status/Version method that shows the current running version of Steward. It can be useful for verifying connectivity and compatability. TLS authentication is required to access this endpoint.
func ExampleAdaptorCall ¶
func ExampleAdaptorCall()
func ExampleBroadcastRequests ¶
func ExampleBroadcastRequests()
Requests to schedule a contract call must be sent to many Steward instances. This is required because calls that do not have enough votes of approval from the validator set will not be executed. Right now there is no single endpoint that handles broadcastic the call to each Steward instance, so we must query the endpoints and then send the request to each one.
This example includes a concurrent loop that sends the request to each subscriber, which is the optimal way to broadcast in production due to the time constraint of the scheduled height.
func ExampleCheckStewardStatus ¶
func ExampleCheckStewardStatus()
func ExampleMulticall ¶
func ExampleMulticall()
Types ¶
This section is empty.