-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add docs on contributing
- Loading branch information
1 parent
ebf279c
commit 2601a50
Showing
13 changed files
with
329 additions
and
27 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
common/changes/@neo-one/cli-common-node/release_2020-07-23-21-27.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@neo-one/cli-common-node", | ||
"comment": "Update CLI compile options.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@neo-one/cli-common-node", | ||
"email": "spencercorwin@icloud.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/@neo-one/cli-common/release_2020-07-23-21-27.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@neo-one/cli-common", | ||
"comment": "Update CLI compile options.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@neo-one/cli-common", | ||
"email": "spencercorwin@icloud.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@neo-one/cli", | ||
"comment": "Update CLI compile options.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@neo-one/cli", | ||
"email": "spencercorwin@icloud.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/neo-one-website/blog/2020-07-23-neo-one-2-7-announcement.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
slug: 2020/07/23/neo-one-2-7-announcement | ||
title: NEO•ONE 2.7 Announcement | ||
author: The NEO•ONE Team | ||
twitter: https://twitter.com/neo_one_suite | ||
--- | ||
|
||
## NEO•ONE 2.7 | ||
|
||
We are excited to announce our latest release of NEO•ONE. For this release we have been focused on cleaning up bugs, adding new compiler features, expanding documentation, and preparing for future versions of NEO•ONE as we draw closer to the Neo3 release. | ||
|
||
To get started with NEO•ONE you can install our CLI with | ||
`yarn install @neo-one/cli` | ||
|
||
## Compile | ||
|
||
Starting with NEO•ONE 2.7 you will be able to output your compiled smart contract to various format types as well as generate debug information as per the spec listed [here](https://github.com/ngdseattle/design-notes/blob/master/NDX-DN11%20-%20NEO%20Debug%20Info%20Specification.md). We hope this will give our users more freedom in the end-to-end tooling they choose to use for developing their smart contracts. To get started with testing these new features you can use: | ||
|
||
`yarn install @neo-one/cli` | ||
`yarn neo-one init` | ||
`yarn neo-one compile --json --avm --debug --opcodes` | ||
|
||
For more information on how to enable AVM / debug generation use | ||
|
||
`yarn neo-one compile --help` | ||
|
||
or see the [pull request](https://github.com/neo-one-suite/neo-one/pull/2071). | ||
|
||
### Further Work | ||
|
||
While we have added the ability to output our compiled smart contracts as `.debug` and `.avm` files there is still work to be done to integrate these features with other tooling, like the Neo Blockchain Toolkit. See the PR linked above or visit the new issue page [here](https://github.com/neo-one-suite/neo-one/issues/2113) for more information. Also be sure to check out our [documentation](/docs/how-to-contribute#How-Can-I-Contribute) on building from source if you would like to help contribute to the project! | ||
|
||
## Typescript Updates | ||
|
||
In continuing with our efforts to keep NEO•ONE up to date with Typescript we have [updated](https://github.com/neo-one-suite/neo-one/pull/2063) the project to use TypeScript version 3.9.5. While there aren’t as many new features available in the compiler as our [last](https://github.com/neo-one-suite/neo-one/pull/1984) update we want to keep our feature set as familiar to new developers as we can, especially as we gear up for Neo3. | ||
|
||
## Documentation | ||
|
||
We’ve added several new sections of documentation to the website: | ||
|
||
- [Deployment documentation](/docs/deployment) | ||
- [The NEO•ONE CLI](/docs/cli) | ||
- [Network configuration](/docs/configuration-options) | ||
- [Project contribution](/docs/how-to-contribute#How-Can-I-Contribute) | ||
- [Compiler contribution](/docs/smart-contract-compiler) | ||
|
||
Stumped on something and can’t find documentation for it? Feel free to submit a new [issue](https://github.com/neo-one-suite/neo-one/issues) to request it! | ||
|
||
## Bug Fixes / Feature Changes | ||
|
||
In NEO•ONE 2.7 several bugs have been fixed and features have been updated. You can see all the changes listed below. | ||
|
||
- [#2056 Generated createClient does not wait For account setup](https://github.com/neo-one-suite/neo-one/pull/2056) | ||
- [#2051 Update default network options](https://github.com/neo-one-suite/neo-one/pull/2051) | ||
- [#2093 Fix switch-statement execution](https://github.com/neo-one-suite/neo-one/pull/2093) | ||
- [#2095 Fix number mismatches in SetStorage, ArrayStorage and MapStorage](https://github.com/neo-one-suite/neo-one/pull/2095) | ||
- [#2086 Export `defaultnetwork` helper from CLI](https://github.com/neo-one-suite/neo-one/pull/2086) | ||
- [#2080 Fix missing type declarations in shipped packages](https://github.com/neo-one-suite/neo-one/pull/2091) | ||
- [#2096 Fix ‘receive’ invocations when relaying transactions to a live network](https://github.com/neo-one-suite/neo-one/pull/2096) | ||
- [#2112 Fix error when using typescript migration file for deployment](https://github.com/neo-one-suite/neo-one/pull/2112) | ||
- [#2034 Update npm release process for smoother releases](https://github.com/neo-one-suite/neo-one/pull/2034) | ||
|
||
## Future | ||
|
||
NEO•ONE 2.7 will be the last milestone release for NEO•ONE 2.x, while small bug fixes and integration fixes (like https://github.com/neo-one-suite/neo-one/pull/2034) will continue to be released on the 2.x version our work will primarily focus on updating NEO•ONE to be compatible with the Neo3 protocol. Look out for the upcoming releases that will include Neo3 Preview, TestNet and MainNet compatibility. | ||
|
||
Questions or concerns? Feel free to reach out to us on [GitHub](https://github.com/neo-one-suite/neo-one) or [Twitter](https://twitter.com/neo_one_suite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
--- | ||
slug: CLI | ||
title: CLI | ||
--- | ||
|
||
The NEO•ONE CLI is your entry point for all of NEO•ONE's functionality. | ||
|
||
Run `yarn neo-one --help` to see the CLI commands available and their descriptions. | ||
Run `yarn neo-one <command> --help` to see what arguments are available for that command. | ||
Run `yarn neo-one --version` to get the version of NEO•ONE that you are running. | ||
|
||
--- | ||
|
||
[[toc]] | ||
|
||
--- | ||
|
||
## neo-one init | ||
|
||
Initializes a new project in the current directory. This will create a default `.neo-one.config.ts` configuration file, | ||
a sample `Hello World` smart contract in `neo-one/contracts/HelloWorld.ts`, and a unit test in | ||
`src/__tests__/HelloWorld.ts`. | ||
|
||
| Argument | Type | Default | Description | | ||
| --------- | --------- | ------- | -------------------------------------------------------------------------------------------------------- | | ||
| `--react` | `boolean` | `false` | Setting this to true will generate an example. React component that uses the `HelloWorld` smart contract | | ||
|
||
--- | ||
|
||
## neo-one build | ||
|
||
Builds the project and deploys it to the local development network based on the configuration found in the | ||
NEO•ONE config file. | ||
|
||
| Argument | Type | Default | Description | | ||
| --------- | --------- | ------- | ------------------------------------------------- | | ||
| `--reset` | `boolean` | `false` | Setting this to true will reset the local project | | ||
|
||
--- | ||
|
||
## neo-one new | ||
|
||
Create new resources. `neo-one new private-key` is the only available option for now, which will generate a | ||
new private key. | ||
|
||
--- | ||
|
||
## neo-one start | ||
|
||
Start NEO•ONE services. This command takes one argument after the command (`neo-one start <arg>`) which | ||
can be either `network` or `neotracker`. `neo-one start network` will start the local development network. | ||
`neo-one start neotracker` will start the local NEO Tracker instance. | ||
|
||
--- | ||
|
||
## neo-one stop | ||
|
||
Stop NEO•ONE services. This command takes one argument after the command (`neo-one stop <arg>`) which | ||
can be either `network` or `neotracker`. `neo-one stop network` will stop the local development network. | ||
`neo-one stop neotracker` will stop the local NEO Tracker instance. | ||
|
||
--- | ||
|
||
## neo-one deploy | ||
|
||
Deploys the project using the migration file. | ||
|
||
| Argument | Type | Default | Description | | ||
| ----------- | -------- | -------- | ------------------------------- | | ||
| `--network` | `string` | `"test"` | Network to run the migration on | | ||
|
||
--- | ||
|
||
## neo-one info | ||
|
||
Prints the project configuration. | ||
|
||
--- | ||
|
||
## neo-one compile | ||
|
||
Compiles a project's smart contracts and outputs the code to a local directory. You can set the arguments for this command | ||
either in the NEO•ONE config file (`.neo-one.config.ts`) or as a CLI argument. A CLI argument will override what is found in the | ||
config file. If an argument is not defined as a CLI argument and is not defined in the config file then the below defaults will be used. | ||
|
||
| Argument | Type | Default | Description | | ||
| ----------- | --------- | ------------------- | ---------------------------------------------------------------------------- | | ||
| `--outDir` | `string` | `neo-one/compiled` | Directory to output the compiled code | | ||
| `--path` | `string` | `neo-one/contracts` | Path to the smart contract directory | | ||
| `--json` | `boolean` | `true` | Output the contract with the JSON format | | ||
| `--avm` | `boolean` | `false` | Output the contract with the AVM format | | ||
| `--debug` | `boolean` | `false` | Output additional debug information | | ||
| `--opcodes` | `boolean` | `false` | Output the AVM in a human-readable format for debugging (requires `--debug`) | | ||
|
||
--- | ||
|
||
## neo-one console | ||
|
||
Starts a REPL with project contracts and NEO•ONE Client APIs. | ||
|
||
| Argument | Type | Default | Description | | ||
| ------------ | ------- | ----------- | ----------------------------------------------- | | ||
| `--networks` | `array` | `["local"]` | Networks to initialize before starting the REPL | |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.