2022-01-21 10:21:46 -08:00
|
|
|
// Migrations are an early feature. Currently, they're nothing more than this
|
|
|
|
// single deploy script that's invoked from the CLI, injecting a provider
|
|
|
|
// configured from the workspace's Anchor.toml.
|
|
|
|
|
2023-02-21 23:36:59 -08:00
|
|
|
const anchor = require('@coral-xyz/anchor');
|
2022-01-21 10:21:46 -08:00
|
|
|
|
|
|
|
module.exports = async function (provider) {
|
|
|
|
// Configure client to use the provider.
|
|
|
|
anchor.setProvider(provider);
|
|
|
|
|
|
|
|
// Add your deploy script here.
|
2023-02-21 23:36:59 -08:00
|
|
|
};
|