Non-framework update
Explains how to upload the smartcontract configuration onto Seascape CDN
We assume that you installed the `seascape` module in your project. If not then please follow the Seascape SDK/Installation instructions.
We assume that you already defined how to configure the smartcontracts path. So that you can give it to the website/backend developers. For more reminding please check the Configuration format page.
We also assume that you got the credentials and setted up the .env with the CDN credentials. For more information check the CDN Write module page.
Scripts
Why would you update without the framework?
First, you would need the Configuration file itself. If the configuration doesn't exist, then CdnRead will create an empty configuration for you.
Once you called the CdnRead.initConfig(
), it will make the configuration available at global.seascapeConfig
variable.
Then we need to prepare the smartcontract that we want to update. Here is the rest of the main function().
Check the <project name> and <project env>. Those are indicating the path of the configuration file.
Then, we set the configuration onto CDN using the setHardhatSmartcontract
() function of CdnWrite
module.
The uploaded smartcontract config will be available for checking at:
Once the smartcontract configuration is uploaded onto the CDN, as the Smartcontract writer should share the project name, project environment, Smartcontract name, the methods to call, the logs to listen to the appropriate developers.
Last updated