Skip to content

Commit

Permalink
metadata: Add package metadata for publishing (#1)
Browse files Browse the repository at this point in the history
* metadata: Add package metadat for publishing

* Update for anza names

* Make web3.js v1 user stay on v1

* Add description to Cargo.toml

* Make js packages public
  • Loading branch information
joncinque authored Oct 3, 2024
1 parent cb48733 commit f677705
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 9 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# solana-rpc-get-stake-activation
# solana-rpc-client-extensions

Rust and JS code to perform Solana RPC's GetStakeActivation client-side
Rust and JS code to perform Solana RPC calls on the client-side. Currently
covers the following RPC calls and packages:

| RPC Call | Rust Package | JS Package | JS v1 Package |
| --- | --- | --- | --- |
| `GetStakeActivation` | `solana-rpc-get-stake-activation` | `@anza-xyz/solana-rpc-get-stake-activation` | `@anza-xyz/solana-rpc-get-stake-activation-v1` |

## Motivation

Expand Down
23 changes: 19 additions & 4 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
{
"name": "solana-rpc-get-stake-activation",
"version": "1.0.0",
"name": "@anza-xyz/solana-rpc-get-stake-activation",
"version": "2.0.0",
"description": "Client-side replica of Solana RPC's getStakeActivation",
"sideEffects": false,
"module": "./dist/src/index.mjs",
"main": "./dist/src/index.js",
"types": "./dist/types/index.d.ts",
"type": "commonjs",
"keywords": [],
"author": "",
"keywords": [
"blockchain",
"solana",
"rpc",
"web3"
],
"author": "Anza Maintainers <[email protected]>",
"license": "Apache-2.0",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "https://github.com/anza-xyz/solana-rpc-client-extensions"
},
"bugs": {
"url": "https://github.com/anza-xyz/solana-rpc-client-extensions/issues"
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[package]
name = "solana-rpc-get-stake-activation"
version = "0.1.0"
description = "Client-side implementation of Solana RPC's GetStakeActivation"
documentation = "https://docs.rs/solana-rpc-get-stake-activation"
authors = ["Anza Maintainers <[email protected]>"]
repository = "https://github.com/anza-xyz/solana-rpc-client-extensions"
homepage = "https://anza.xyz/"
license = "Apache-2.0"
edition = "2021"

[dependencies]
Expand Down
22 changes: 19 additions & 3 deletions web3js-1.0/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
{
"name": "solana-rpc-get-stake-activation",
"name": "@anza-xyz/solana-rpc-get-stake-activation",
"version": "1.0.0",
"description": "Client-side replica of Solana RPC's getStakeActivation",
"sideEffects": false,
"module": "./dist/src/index.mjs",
"main": "./dist/src/index.js",
"types": "./dist/types/index.d.ts",
"type": "commonjs",
"keywords": [],
"author": "",
"keywords": [
"blockchain",
"solana",
"rpc",
"web3"
],
"author": "Anza Maintainers <[email protected]>",
"license": "Apache-2.0",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "https://github.com/anza-xyz/solana-rpc-client-extensions"
},
"bugs": {
"url": "https://github.com/anza-xyz/solana-rpc-client-extensions/issues"
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
Expand Down

0 comments on commit f677705

Please sign in to comment.