@solana/web3.js
Advanced tools
Comparing version 0.11.9 to 0.11.10
@@ -24,3 +24,2 @@ | ||
### macOS | ||
The following depends on Homebrew, instructions on how to install Homebrew are at https://brew.sh | ||
@@ -35,1 +34,32 @@ | ||
## Development | ||
### Quick start | ||
To get started create a `makefile` containing: | ||
```make | ||
include path/to/bpf.mk | ||
``` | ||
and `src/program.c` containing: | ||
```c | ||
#include <solana_sdk.h> | ||
bool entrypoint(const uint8_t *input) { | ||
SolKeyedAccounts ka[1]; | ||
uint8_t *data; | ||
uint64_t data_len; | ||
if (!sol_deserialize(buf, ka, SOL_ARRAY_SIZE(ka), NULL, &data, &data_len)) { | ||
return false; | ||
} | ||
print_params(1, ka, data, data_len); | ||
return true; | ||
} | ||
``` | ||
Then run `make` to build `out/program.o`. | ||
Run `make help` for more details. | ||
### Limitations | ||
* Programs must be fully contained within a single .c file | ||
* No libc is available but `solana_sdk.h` provides a minimal set of | ||
primitives. |
@@ -1,2 +0,2 @@ | ||
0.10.0 | ||
f6b709ca48f3f54df852e1828acdda55bbb4ac7a | ||
0.10.1 | ||
3345d059e8f20c24686e93f66bfaa72be3a5f481 |
{ | ||
"name": "@solana/web3.js", | ||
"version": "0.11.9", | ||
"version": "0.11.10", | ||
"description": "Solana Javascript API", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov", | ||
"fetch-bpf-sdk": "test -d bpf-sdk || curl http://solana-sdk.s3.amazonaws.com/0.10.0/bpf-sdk.tar.bz2 | tar jxv", | ||
"fetch-bpf-sdk": "test -d bpf-sdk || curl http://solana-sdk.s3.amazonaws.com/0.10.1/bpf-sdk.tar.bz2 | tar jxv", | ||
"flow": "flow stop; flow-typed install jest@22 && flow", | ||
@@ -50,0 +50,0 @@ "flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11084419