You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provider serves as the main interface between our relay system and the Stacks blockchain. It uses the Stacks RPC client to perform blockchain-specific operations required by our relay system.
Structure, configuration, and initialization
Create a Provider struct that implements the common ChainProvider interface from a Config struct, a Stacks client, and a logger.
Implement a Config struct that satisfies the Config interface and additionally any Stacks-specific configuration:
type Config struct {
provider.CommonConfig `json:",inline" yaml:",inline"`
// Add Stacks-specific fields here
}
Implement the following methods for the Config struct:
The provider serves as the main interface between our relay system and the Stacks blockchain. It uses the Stacks RPC client to perform blockchain-specific operations required by our relay system.
Structure, configuration, and initialization
Create a
Provider
struct that implements the commonChainProvider
interface from aConfig
struct, a Stacks client, and a logger.Implement a
Config
struct that satisfies theConfig
interface and additionally any Stacks-specific configuration:Implement the following methods for the
Config
struct:Implementation of
ChainProvider
interfaceImplementation of ChainQuery interface
QueryLatestHeight(ctx context.Context) (uint64, error)
QueryTransactionReceipt(ctx context.Context, txHash string) (*types.Receipt, error)
Acceptance criteria
The text was updated successfully, but these errors were encountered: