Skip to content

Commit

Permalink
version 0.3.0 snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 17, 2024
1 parent c7da21e commit 3d18fb1
Show file tree
Hide file tree
Showing 9 changed files with 461 additions and 689 deletions.
853 changes: 313 additions & 540 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Counter



<a href="https://github.com/solana-program/counter/actions/workflows/main.yml"><img src="https://img.shields.io/github/actions/workflow/status/solana-program/counter/main.yml?logo=GitHub" /></a>
<a href="https://explorer.solana.com/address/CounterProgram111111111111111111111111111111"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-program%2Fcounter%2Fmain%2Fprogram%2Fidl.json&query=%24.version&label=program&logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzEzIiBoZWlnaHQ9IjI4MSIgdmlld0JveD0iMCAwIDMxMyAyODEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF80NzZfMjQzMCkiPgo8cGF0aCBkPSJNMzExLjMxOCAyMjEuMDU3TDI1OS42NiAyNzYuNTU4QzI1OC41MzcgMjc3Ljc2NCAyNTcuMTc4IDI3OC43MjUgMjU1LjY2OSAyNzkuMzgyQzI1NC4xNTkgMjgwLjAzOSAyNTIuNTMgMjgwLjM3OCAyNTAuODg0IDI4MC4zNzdINS45OTcxOUM0LjgyODcgMjgwLjM3NyAzLjY4NTY4IDI4MC4wMzUgMi43MDg1NSAyNzkuMzkzQzEuNzMxNDMgMjc4Ljc1MSAwLjk2Mjc3MSAyNzcuODM3IDAuNDk3MDIgMjc2Ljc2NEMwLjAzMTI2OTEgMjc1LjY5IC0wLjExMTI4NiAyNzQuNTA0IDAuMDg2ODcxMiAyNzMuMzVDMC4yODUwM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mzg0MSA2Ny43OTQzIDIuNzEzNTIgNjguNDM3MkMzLjY4ODYzIDY5LjA4MDIgNC44Mjk4NCA2OS40MjQgNS45OTcxOSA2OS40MjY3WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzQ3Nl8yNDMwKSIvPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNDc2XzI0MzAiIHgxPSIyNi40MTUiIHkxPSIyODcuMDU5IiB4Mj0iMjgzLjczNSIgeTI9Ii0yLjQ5NTc0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIG9mZnNldD0iMC4wOCIgc3RvcC1jb2xvcj0iIzk5NDVGRiIvPgo8c3RvcCBvZmZzZXQ9IjAuMyIgc3RvcC1jb2xvcj0iIzg3NTJGMyIvPgo8c3RvcCBvZmZzZXQ9IjAuNSIgc3RvcC1jb2xvcj0iIzU0OTdENSIvPgo8c3RvcCBvZmZzZXQ9IjAuNiIgc3RvcC1jb2xvcj0iIzQzQjRDQSIvPgo8c3RvcCBvZmZzZXQ9IjAuNzIiIHN0b3AtY29sb3I9IiMyOEUwQjkiLz4KPHN0b3Agb2Zmc2V0PSIwLjk3IiBzdG9wLWNvbG9yPSIjMTlGQjlCIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNDc2XzI0MzAiPgo8cmVjdCB3aWR0aD0iMzEyLjkzIiBoZWlnaHQ9IjI4MC4zNzciIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==&color=9945FF" /></a>
<a href="https://www.npmjs.com/package/@solana-program/counter"><img src="https://img.shields.io/npm/v/%40solana-program%2Fcounter?logo=npm&color=377CC0" /></a>
<a href="https://crates.io/crates/solana-program-counter-client"><img src="https://img.shields.io/crates/v/solana-program-counter-client?logo=rust" /></a>
Expand Down
3 changes: 0 additions & 3 deletions clients/js/env-shim.ts

This file was deleted.

22 changes: 12 additions & 10 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,25 @@
},
"license": "MIT",
"peerDependencies": {
"@solana/web3.js": "2.0.0-preview.3"
"@solana/web3.js": "2.0.0-preview.4"
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@solana/eslint-config-solana": "^3.0.0",
"@solana/web3.js": "2.0.0-preview.3",
"@solana/webcrypto-ed25519-polyfill": "2.0.0-preview.3",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"ava": "^6.1.2",
"@solana/eslint-config-solana": "^3.0.3",
"@solana/web3.js": "2.0.0-preview.4",
"@solana/webcrypto-ed25519-polyfill": "2.0.0-preview.4",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"ava": "^6.1.3",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"rimraf": "^5.0.5",
"tsup": "^8.0.2",
"tsup": "8.1.0",
"tsup": ">=8.0.0 <8.1.1",
"typedoc": "^0.25.12",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.4.2"
"typescript": "^5.5.3"
},
"ava": {
"nodeArguments": ["--no-warnings"],
Expand Down
6 changes: 3 additions & 3 deletions clients/js/src/generated/errors/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export const COUNTER_ERROR__INVALID_AUTHORITY = 0x1770; // 6000
export type CounterError = typeof COUNTER_ERROR__INVALID_AUTHORITY;

let counterErrorMessages: Record<CounterError, string> | undefined;
if (__DEV__) {
if (process.env.NODE_ENV !== 'production') {
counterErrorMessages = {
[COUNTER_ERROR__INVALID_AUTHORITY]: `The provided authority doesn't match the counter account's authority`,
};
}

export function getCounterErrorMessage(code: CounterError): string {
if (__DEV__) {
if (process.env.NODE_ENV !== 'production') {
return (counterErrorMessages as Record<CounterError, string>)[code];
}

return 'Error message not available in production bundles. Compile with `__DEV__` set to true to see more information.';
return 'Error message not available in production bundles.';
}
11 changes: 0 additions & 11 deletions clients/js/src/generated/global.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions clients/js/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { env } from 'node:process';
import path from 'path';
import { defineConfig, Options } from 'tsup';

const SHARED_OPTIONS: Options = {
define: { __VERSION__: `"${env.npm_package_version}"` },
entry: ['./src/index.ts'],
inject: [path.resolve(__dirname, 'env-shim.ts')],
outDir: './dist/src',
outExtension: ({ format }) => ({ js: format === 'cjs' ? '.js' : '.mjs' }),
sourcemap: true,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
},
"devDependencies": {
"@iarna/toml": "^2.2.5",
"@kinobi-so/nodes-from-anchor": "^0.20.1",
"@kinobi-so/renderers-js": "^0.20.2",
"@kinobi-so/renderers-rust": "^0.20.3",
"@kinobi-so/nodes-from-anchor": "^0.20.9",
"@kinobi-so/renderers-js": "^0.21.0",
"@kinobi-so/renderers-rust": "^0.21.0",
"@metaplex-foundation/shank-js": "^0.1.7",
"kinobi": "^0.20.1",
"typescript": "^5.4.2",
"kinobi": "^0.21.0",
"typescript": "^5.5.2",
"zx": "^7.2.3"
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 3d18fb1

Please sign in to comment.