Skip to content

Commit e09e55c

Browse files
committed
fix: Move signature validation to repository layer with BlockChainType rules
1 parent 61c20fc commit e09e55c

File tree

394 files changed

+130711
-130700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

394 files changed

+130711
-130700
lines changed

.cargo/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# .cargo/config.toml
2-
[net]
3-
git-fetch-with-cli = true
1+
# .cargo/config.toml
2+
[net]
3+
git-fetch-with-cli = true

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# ignore all .git files and directories
2-
.git*
1+
# ignore all .git files and directories
2+
.git*

.env.example

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
RUST_LOG=info
2-
# Additional logging options (file mode)...by default is stdout
3-
# See docker-compose.yaml for more details
4-
# LOG_MODE=file
5-
# LOG_DATA_DIR=logs/
6-
# MONITOR_DATA_DIR=data/
7-
# LOG_MAX_SIZE=1073741824
8-
# METRICS_ENABLED=false
1+
RUST_LOG=info
2+
# Additional logging options (file mode)...by default is stdout
3+
# See docker-compose.yaml for more details
4+
# LOG_MODE=file
5+
# LOG_DATA_DIR=logs/
6+
# MONITOR_DATA_DIR=data/
7+
# LOG_MAX_SIZE=1073741824
8+
# METRICS_ENABLED=false

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 117 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,117 @@
1-
---
2-
name: Bug Report
3-
description: Create a bug report
4-
labels: [T-bug, S-needs-triage]
5-
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
Thanks for taking the time to fill out this bug report! Please provide as much detail as possible.
10-
If you believe you have found a vulnerability, please provide details [here](mailto:[email protected]) instead.
11-
- type: textarea
12-
id: what-happened
13-
attributes:
14-
label: Describe the bug
15-
description: |
16-
A clear and concise description of what the bug is.
17-
If the bug is in a crate you are using (i.e. you are not running the standard `openzeppelin-monitor` binary) please mention that as well.
18-
validations:
19-
required: true
20-
- type: textarea
21-
id: reproduction-steps
22-
attributes:
23-
label: Steps to reproduce
24-
description: Please provide any steps you think might be relevant to reproduce the bug.
25-
placeholder: |
26-
Steps to reproduce:
27-
1. Start '...'
28-
2. Then '...'
29-
3. Check '...'
30-
4. See error
31-
validations:
32-
required: true
33-
- type: textarea
34-
id: logs
35-
attributes:
36-
label: Application logs
37-
description: |
38-
Please provide the relevant application logs leading up to the bug.
39-
render: text
40-
validations:
41-
required: false
42-
- type: dropdown
43-
id: platform
44-
attributes:
45-
label: Platform(s)
46-
description: What platform(s) did this occur on?
47-
multiple: true
48-
options:
49-
- Linux (x86)
50-
- Linux (ARM)
51-
- Mac (Intel)
52-
- Mac (Apple Silicon)
53-
- Windows (x86)
54-
- Windows (ARM)
55-
- type: dropdown
56-
id: deployment
57-
attributes:
58-
label: Deployment Type
59-
description: How are you running openzeppelin-monitor?
60-
multiple: false
61-
options:
62-
- Binary from releases
63-
- Built from source
64-
- Docker container
65-
- Other
66-
validations:
67-
required: true
68-
- type: textarea
69-
id: additional
70-
attributes:
71-
label: Any other context that we need to know specific to the bug?
72-
- type: textarea
73-
id: version
74-
attributes:
75-
label: Version Information
76-
description: Run `openzeppelin-monitor --version` and paste the output
77-
validations:
78-
required: true
79-
- type: textarea
80-
id: monitor-config
81-
attributes:
82-
label: Monitor Configuration
83-
description: |
84-
Please provide the relevant monitor configuration file(s) from your config directory.
85-
Make sure to remove any sensitive information like private keys or API tokens.
86-
render: json
87-
validations:
88-
required: false
89-
- type: dropdown
90-
id: network-type
91-
attributes:
92-
label: Network Type
93-
description: Which blockchain network(s) are you monitoring?
94-
multiple: true
95-
options:
96-
- EVM
97-
- Stellar
98-
- Midnight
99-
- Other
100-
validations:
101-
required: true
102-
- type: input
103-
id: build-command
104-
attributes:
105-
label: Build Command
106-
description: If you built from source, what command did you use?
107-
placeholder: cargo build --release
108-
validations:
109-
required: false
110-
- type: checkboxes
111-
id: terms
112-
attributes:
113-
label: Code of Conduct
114-
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/openzeppelin/openzeppelin-monitor/blob/main/CONTRIBUTING.md#code-of-conduct)
115-
options:
116-
- label: I agree to follow the Code of Conduct
117-
required: true
1+
---
2+
name: Bug Report
3+
description: Create a bug report
4+
labels: [T-bug, S-needs-triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report! Please provide as much detail as possible.
10+
If you believe you have found a vulnerability, please provide details [here](mailto:[email protected]) instead.
11+
- type: textarea
12+
id: what-happened
13+
attributes:
14+
label: Describe the bug
15+
description: |
16+
A clear and concise description of what the bug is.
17+
If the bug is in a crate you are using (i.e. you are not running the standard `openzeppelin-monitor` binary) please mention that as well.
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: reproduction-steps
22+
attributes:
23+
label: Steps to reproduce
24+
description: Please provide any steps you think might be relevant to reproduce the bug.
25+
placeholder: |
26+
Steps to reproduce:
27+
1. Start '...'
28+
2. Then '...'
29+
3. Check '...'
30+
4. See error
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: logs
35+
attributes:
36+
label: Application logs
37+
description: |
38+
Please provide the relevant application logs leading up to the bug.
39+
render: text
40+
validations:
41+
required: false
42+
- type: dropdown
43+
id: platform
44+
attributes:
45+
label: Platform(s)
46+
description: What platform(s) did this occur on?
47+
multiple: true
48+
options:
49+
- Linux (x86)
50+
- Linux (ARM)
51+
- Mac (Intel)
52+
- Mac (Apple Silicon)
53+
- Windows (x86)
54+
- Windows (ARM)
55+
- type: dropdown
56+
id: deployment
57+
attributes:
58+
label: Deployment Type
59+
description: How are you running openzeppelin-monitor?
60+
multiple: false
61+
options:
62+
- Binary from releases
63+
- Built from source
64+
- Docker container
65+
- Other
66+
validations:
67+
required: true
68+
- type: textarea
69+
id: additional
70+
attributes:
71+
label: Any other context that we need to know specific to the bug?
72+
- type: textarea
73+
id: version
74+
attributes:
75+
label: Version Information
76+
description: Run `openzeppelin-monitor --version` and paste the output
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: monitor-config
81+
attributes:
82+
label: Monitor Configuration
83+
description: |
84+
Please provide the relevant monitor configuration file(s) from your config directory.
85+
Make sure to remove any sensitive information like private keys or API tokens.
86+
render: json
87+
validations:
88+
required: false
89+
- type: dropdown
90+
id: network-type
91+
attributes:
92+
label: Network Type
93+
description: Which blockchain network(s) are you monitoring?
94+
multiple: true
95+
options:
96+
- EVM
97+
- Stellar
98+
- Midnight
99+
- Other
100+
validations:
101+
required: true
102+
- type: input
103+
id: build-command
104+
attributes:
105+
label: Build Command
106+
description: If you built from source, what command did you use?
107+
placeholder: cargo build --release
108+
validations:
109+
required: false
110+
- type: checkboxes
111+
id: terms
112+
attributes:
113+
label: Code of Conduct
114+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/openzeppelin/openzeppelin-monitor/blob/main/CONTRIBUTING.md#code-of-conduct)
115+
options:
116+
- label: I agree to follow the Code of Conduct
117+
required: true

.github/ISSUE_TEMPLATE/docs.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
---
2-
name: Documentation
3-
description: Suggest a change to our documentation
4-
labels: [T-documentation, S-needs-triage]
5-
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
If you are unsure if the docs are relevant or needed, please open up a discussion first.
10-
- type: textarea
11-
attributes:
12-
label: Describe the change
13-
description: |
14-
Please describe the documentation you want to change or add, and if it is for end-users or contributors.
15-
validations:
16-
required: true
17-
- type: textarea
18-
attributes:
19-
label: Additional context
20-
description: Add any other context to the feature (like screenshots, resources)
1+
---
2+
name: Documentation
3+
description: Suggest a change to our documentation
4+
labels: [T-documentation, S-needs-triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
If you are unsure if the docs are relevant or needed, please open up a discussion first.
10+
- type: textarea
11+
attributes:
12+
label: Describe the change
13+
description: |
14+
Please describe the documentation you want to change or add, and if it is for end-users or contributors.
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Additional context
20+
description: Add any other context to the feature (like screenshots, resources)

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
---
2-
name: Feature request
3-
description: Suggest a feature
4-
labels: [T-feature, S-needs-triage]
5-
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
Please ensure that the feature has not already been requested in the issue tracker.
10-
- type: textarea
11-
attributes:
12-
label: Describe the feature
13-
description: |
14-
Please describe the feature and what it is aiming to solve, if relevant.
15-
16-
If the feature is for a crate, please include a proposed API surface.
17-
validations:
18-
required: true
19-
- type: textarea
20-
attributes:
21-
label: Additional context
22-
description: Add any other context to the feature (like screenshots, resources)
1+
---
2+
name: Feature request
3+
description: Suggest a feature
4+
labels: [T-feature, S-needs-triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please ensure that the feature has not already been requested in the issue tracker.
10+
- type: textarea
11+
attributes:
12+
label: Describe the feature
13+
description: |
14+
Please describe the feature and what it is aiming to solve, if relevant.
15+
16+
If the feature is for a crate, please include a proposed API surface.
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: Additional context
22+
description: Add any other context to the feature (like screenshots, resources)

.github/RELEASE.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# CI/CD Release Workflow
2-
3-
---
4-
5-
## Workflows
6-
7-
- To trigger a release, use [rc.yml](workflows/rc.yml) workflow.
8-
- It will need specific commit SHA in long format to start the workflow.
9-
- All the commits until that specific commit sha will be included in the release.
10-
- Checks version from `Cargo.toml` and validates if it needs to creates a new release branch. If there is a release branch that already exists for the same version in `Cargo.toml` the workflow will fail.
11-
- Release branch is created in this pattern `release-v<version>`.
12-
13-
- Second workflow [release-please.yml](workflows/release-please.yml) will get triggered on push to release branch automatically.
14-
- This workflow checks if there is any "higher versioned" branches than the current one since this workflow will be triggered for any pushes ( eg. hotfixes ).
15-
- We use [release-please](https://github.com/googleapis/release-please) for managing releases. If there are no "higher versioned" branches release-please step will be triggered.
16-
- Release please automatically creates a PR with Changelog notes to release branch which keeps track of all commits in that release branch and adds a label `autorelease: pending`. It uses [config](release-please/.config.json) & [manifest](release-please/manifest.json) files to generate changelog and track versions. If there are any changes to `Cargo.lock` that commit is pushed to the PR.
17-
- Once approved merge the PR. On merging `release-please` automatically creates a github release with changelog notes & tags the release with that version.
18-
- Workflow has a step to unlock conversation in the now closed PR so that release-please can post a comment and update the label `autorelease: tagged`.
19-
- SBOM generation, Binaries creation for different arch & Docker build and push jobs are triggered.
20-
21-
- If everything looks good post release, raise a PR and merge the `release-v<version>` branch to main (manual step for now).
1+
# CI/CD Release Workflow
2+
3+
---
4+
5+
## Workflows
6+
7+
- To trigger a release, use [rc.yml](workflows/rc.yml) workflow.
8+
- It will need specific commit SHA in long format to start the workflow.
9+
- All the commits until that specific commit sha will be included in the release.
10+
- Checks version from `Cargo.toml` and validates if it needs to creates a new release branch. If there is a release branch that already exists for the same version in `Cargo.toml` the workflow will fail.
11+
- Release branch is created in this pattern `release-v<version>`.
12+
13+
- Second workflow [release-please.yml](workflows/release-please.yml) will get triggered on push to release branch automatically.
14+
- This workflow checks if there is any "higher versioned" branches than the current one since this workflow will be triggered for any pushes ( eg. hotfixes ).
15+
- We use [release-please](https://github.com/googleapis/release-please) for managing releases. If there are no "higher versioned" branches release-please step will be triggered.
16+
- Release please automatically creates a PR with Changelog notes to release branch which keeps track of all commits in that release branch and adds a label `autorelease: pending`. It uses [config](release-please/.config.json) & [manifest](release-please/manifest.json) files to generate changelog and track versions. If there are any changes to `Cargo.lock` that commit is pushed to the PR.
17+
- Once approved merge the PR. On merging `release-please` automatically creates a github release with changelog notes & tags the release with that version.
18+
- Workflow has a step to unlock conversation in the now closed PR so that release-please can post a comment and update the label `autorelease: tagged`.
19+
- SBOM generation, Binaries creation for different arch & Docker build and push jobs are triggered.
20+
21+
- If everything looks good post release, raise a PR and merge the `release-v<version>` branch to main (manual step for now).

0 commit comments

Comments
 (0)