examples

package
v0.0.0-...-4973f8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMulticallRequest

func BuildMulticallRequest() (*steward_proto.ScheduleRequest, error)

func CreateInsecureSimulateClient

func CreateInsecureSimulateClient()

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL