Skip to content

Commit ecaeae3

Browse files
authored
Update Kinobi to 0.19 and Web3.js to tp3 (#33)
1 parent f8dd8f7 commit ecaeae3

File tree

9 files changed

+82
-3387
lines changed

9 files changed

+82
-3387
lines changed

.changeset/wet-zoos-melt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-solana-program": minor
3+
---
4+
5+
Update Kinobi to 0.19 and Web3.js to tp3

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
env:
10-
SOLANA_VERSION: 1.18.4
10+
SOLANA_VERSION: 1.18.12
1111

1212
jobs:
1313
lint:
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
strategy:
3535
matrix:
36-
solana: ["1.17.24", "1.18.4"]
36+
solana: ["1.17.24", "1.18.12"]
3737
steps:
3838
- name: Git checkout
3939
uses: actions/checkout@v4

template/clients/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"validator:stop": "zx ./scripts/stop-validator.mjs"
88
},
99
"devDependencies": {
10-
"@metaplex-foundation/kinobi": "^0.18.0"
10+
"@metaplex-foundation/kinobi": "^0.19.0"
1111
}
1212
}

template/clients/base/scripts/generate-clients.mjs.njk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import * as k from "@metaplex-foundation/kinobi";
44
import { getAllProgramIdls } from "./utils.mjs";
55

66
// Instanciate Kinobi.
7-
const kinobi = k.createFromIdls(getAllProgramIdls());
7+
const [idl, ...additionalIdls] = getAllProgramIdls();
8+
const kinobi = k.createFromIdl(idl, additionalIdls);
89

910
// Update programs.
1011
kinobi.update(
@@ -18,7 +19,7 @@ kinobi.update(
1819
k.updateAccountsVisitor({
1920
counter: {
2021
seeds: [
21-
k.constantPdaSeedNodeFromString("counter"),
22+
k.constantPdaSeedNodeFromString("utf8", "counter"),
2223
k.variablePdaSeedNode(
2324
"authority",
2425
k.publicKeyTypeNode(),

template/clients/js/clients/js/package.json.njk

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,14 @@
3232
"registry": "https://registry.npmjs.org"
3333
},
3434
"license": "MIT",
35-
"dependencies": {
36-
"@solana/accounts": "^2.0.0-preview",
37-
"@solana/addresses": "^2.0.0-preview",
38-
"@solana/codecs": "^2.0.0-preview",
39-
"@solana/instructions": "^2.0.0-preview",
40-
"@solana/programs": "^2.0.0-preview",
41-
"@solana/signers": "^2.0.0-preview"
35+
"peerDependencies": {
36+
"@solana/web3.js": "tp3"
4237
},
4338
"devDependencies": {
4439
"@ava/typescript": "^4.1.0",
4540
"@solana/eslint-config-solana": "^3.0.0",
46-
"@solana/web3.js": "^2.0.0-preview",
47-
"@solana/webcrypto-ed25519-polyfill": "^2.0.0-preview",
41+
"@solana/web3.js": "tp3",
42+
"@solana/webcrypto-ed25519-polyfill": "tp3",
4843
"@typescript-eslint/eslint-plugin": "^7.3.1",
4944
"@typescript-eslint/parser": "^7.3.1",
5045
"ava": "^6.1.2",

0 commit comments

Comments
 (0)