-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.8.0' into thiagodeev/rpcv08-finalChanges
- Loading branch information
Showing
51 changed files
with
13,556 additions
and
11,077 deletions.
There are no files selected for viewing
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,16 @@ | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@4081bf99e2866ebe428fc0477b69eb4fcda7220a #v4.4.0 | ||
with: | ||
fail-on-severity: high |
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ rpc*/.env.testnet | |
|
||
tmp/ | ||
|
||
examples/**/*.json | ||
examples/**/*.sum | ||
|
||
*/**/*abi.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,55 @@ | ||
# Contributors Guide | ||
|
||
starknet.go is an open-source Golang Library for Cairo written by NethermindEth. | ||
We welcome all contributions to this repository to help enrich the Starknet community. | ||
**starknet.go** is an open-source Golang library for Cairo developed by NethermindEth. We welcome all contributions to this repository to help enrich the Starknet community. | ||
|
||
## How to Contribute | ||
|
||
We operate and maintain this project with an issue and pull request model. We will track | ||
the GitHub issues section [Issues](https://github.com/NethermindEth/starknet.go/issues) of this repository | ||
and contributors can submit [Pull | ||
Requests](https://github.com/NethermindEth/starknet.go/pulls) for review by the maintainers. | ||
We operate and maintain this project using an issue and pull request model. Please track the GitHub issues section [Issues](https://github.com/NethermindEth/starknet.go/issues) of this repository, and contributors can submit [Pull Requests](https://github.com/NethermindEth/starknet.go/pulls) for review by the maintainers. | ||
|
||
### General Work-Flow | ||
|
||
We recommend the following work-flow for contributors: | ||
We recommend the following work-flow for contributors: | ||
|
||
1. **Find an issue** to work on and use comments to communicate your intentions and ask questions. | ||
2. **Work in a feature branch** of your personal fork (github.com/YOUR_NAME/starknet.go) of the main repository (github.com/NethermindEth/starknet.go). | ||
3. After you have implemented or resolved the issue, **create a pull-request** to merge your changes in the main repository | ||
4. Wait for the repository maintainers to **review your changes** to ensure the issue is addressed. | ||
5. If the issue is addressed the repository maintainers will **merge your pull-request** | ||
1. **Find an issue** to work on and use comments to communicate your intentions and ask questions. | ||
2. **Work in a feature branch** of your personal fork (github.com/YOUR_NAME/starknet.go) of the main repository (github.com/NethermindEth/starknet.go). | ||
3. After you have implemented or resolved the issue, **create a pull request** to merge your changes into the main repository. | ||
4. Wait for the repository maintainers to **review your changes** to ensure the issue is addressed. | ||
5. If the issue is resolved, the repository maintainers will **merge your pull request**. | ||
|
||
### Helpful Article on contribution | ||
### Linter Checks | ||
|
||
[guide](https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/) | ||
**starknet.go** now requires linter checks to pass. Please follow these steps to install and run the linter: | ||
|
||
1. **Install `golangci-lint`:** | ||
|
||
```bash | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.0 | ||
``` | ||
|
||
2. **Run the linter:** | ||
|
||
```bash | ||
golangci-lint run | ||
``` | ||
|
||
Ensure that there are no linter errors before submitting your pull request. | ||
|
||
3. **Run the linter on a specific file in a specific directory:** | ||
|
||
To run the linter on a specific file, use: | ||
|
||
```bash | ||
golangci-lint run path/to/your/file.go | ||
``` | ||
|
||
To run the linter on all files in a specific directory, use: | ||
|
||
```bash | ||
golangci-lint run path/to/your/directory | ||
``` | ||
|
||
Replace `path/to/your/file.go` and `path/to/your/directory` with the actual file and directory paths. | ||
|
||
### Helpful Article on Contribution | ||
|
||
For a detailed guide on contributing to a GitHub project, check out this [guide](https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This example shows how to sign and verify a typed data. | ||
|
||
Steps: | ||
1. Rename the ".env.template" file located at the root of the "examples" folder to ".env" | ||
1. Uncomment, and assign your Sepolia testnet endpoint to the `RPC_PROVIDER_URL` variable in the ".env" file | ||
1. Uncomment, and assign your account address to the `ACCOUNT_ADDRESS` variable in the ".env" file (make sure to have a few ETH in it) | ||
1. Uncomment, and assign your starknet public key to the `PUBLIC_KEY` variable in the ".env" file | ||
1. Uncomment, and assign your private key to the `PRIVATE_KEY` variable in the ".env" file | ||
1. Make sure you are in the "typedData" directory | ||
1. Execute `go run main.go` | ||
|
||
The message hash, signature and the verification result will be printed at the end of the execution. |
Oops, something went wrong.