Skip to content

Commit

Permalink
finish archor cpi
Browse files Browse the repository at this point in the history
  • Loading branch information
URANI committed Mar 27, 2024
1 parent a900c1f commit 23c46ac
Show file tree
Hide file tree
Showing 13 changed files with 3,904 additions and 53 deletions.
6 changes: 3 additions & 3 deletions demos/02_anchor_cpi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ anchor build

<br>

* Test the program with this file inside `puppet-master/test/puppet-master.ts`:
* Test the program with the following file inside `puppet/test/puppet.ts`:

<br>

Expand Down Expand Up @@ -219,12 +219,12 @@ describe("puppet", () => {

<br>

* Running:
* Copy `puppet-master/target/idl/puppet_master.json` to `puppet/target/idl` and run:

<br>

```shell
cargo test
anchor test
```

<br>
Expand Down
16 changes: 8 additions & 8 deletions demos/02_anchor_cpi/puppet-master/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions demos/02_anchor_cpi/puppet-master/migrations/deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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.

const anchor = require("@coral-xyz/anchor");

module.exports = async function (provider) {
// Configure client to use the provider.
anchor.setProvider(provider);

// Add your deploy script here.
};
Loading

0 comments on commit 23c46ac

Please sign in to comment.