Importing the Retroshades SDK

Before starting to emit your retroshades, you need to import the Retroshades SDK within your Cargo.toml definition. The SDK will help you define the custom host-functions that are used in the Retroshades-SVM fork, and derive default emit methods for your Retroshade structures.

Remember to set the dependency as optional and under a special compile flag. No Retroshade code should be actually deployed on chain. In this example, we define this compile flag as the mercury flag.

[features]
mercury = ["dep:retroshade-sdk"]

[dependencies]
retroshade-sdk = { version = "0.1.0", optional = true }

Don't forget to also install the latest version of the mercury-cli:

cargo install mercury-cli

Last updated