Overview
Strategists are users or organizations responsible for submitting parameters for Cellar rebalances and other contract calls to Sommelier through the Steward API. To accomplish this they use the Steward API. The Steward API is defined by a protobuf package and can be used with a gRPC client. Strategists must generate proto bindings and a client from the Steward API protobuf files for their preferred language.
Strategists must also generate a Certificate Authority and use it to generate a self-signed certificate, which is the representation of a strategist's identity as a Publisher on the Sommelier chain required to create a trusted connection with the Steward API.
Strategists are also responsible for writing their own logic for interacting with the Steward API in the language of their choice. The Steward API interfaces and gRPC client can be generated in many different languages.
Requests to the Steward API use the type ScheduleRequest
. This request contains contract call data and information used by the Sommelier chain to determine the destination of the contract and the timing of transaction execution. The response type ScheduleResponse
contains information that can be used to query the Sommelier chain in order to confirm that a call, referred to on-chain as a Cork, was submitted and scheduled successfully.
The request's call_data
field contains the actual contract call arguments. Most strategists will be using the CellarV2_5
call data type, which represents calls structured after the Cellar v2.5 architecture.
Strategists can execute a single function call or multiple function calls in the same transaction using the Multicall call type. The most important and complex function callable in Cellar v2.5 is CallOnAdaptor
. It allows one or more adaptor function calls to be executed against a large selection of Sommelier adaptors defined in the Steward API.
Last updated