Skip to content

Commit aef3cdd

Browse files
docs: add contribution and security guidance (#14)
* docs: add contribution governance * docs: add CLA contribution guidance
1 parent f8d307c commit aef3cdd

2 files changed

Lines changed: 187 additions & 7 deletions

File tree

‎CODE_OF_CONDUCT.md‎

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Contributor Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our Talus
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
- The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Designated project maintainers and a moderation team (collectively "the enforcers") are
42+
responsible for clarifying and enforcing our standards of acceptable behavior. They will take
43+
appropriate and fair corrective action in response to any behavior that they deem inappropriate,
44+
threatening, offensive, or harmful within the community spaces defined in this Code of Conduct.
45+
46+
The enforcers have the right and responsibility to remove, edit, or reject comments, commits,
47+
code, wiki edits, issues, and other contributions on project-managed platforms that are not
48+
aligned to this Code of Conduct. They will communicate reasons for moderation decisions when
49+
appropriate. This Code of Conduct governs behavior within our community spaces; it does not
50+
extend to governing on-chain interactions which are subject to the rules of the protocol itself.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all project-managed community spaces, including but not
55+
limited to our GitHub repositories, official Discord server, community forums, Telegram groups,
56+
and during project-related events. It also applies when an individual is officially representing
57+
the community in public spaces. Examples of representing our community include using an official
58+
project email address, posting via an official social media account, or acting as an appointed
59+
representative at an online or offline event.
60+
61+
## Enforcement
62+
63+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the
64+
enforcers (as defined in "Enforcement Responsibilities") at [hi]. All complaints will be reviewed
65+
and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the reporter of any
68+
incident. We strive to apply this Code of Conduct consistently, but acknowledge that the
69+
permissionless and pseudonymous nature of some blockchain interactions may present challenges to
70+
enforcement beyond project-controlled platforms. Our focus is on maintaining a healthy
71+
environment within the community spaces we manage.
72+
73+
## Enforcement Guidelines
74+
75+
Community leaders will follow these Community Impact Guidelines in determining the consequences
76+
for any action they deem in violation of this Code of Conduct:
77+
78+
### 1. Correction
79+
80+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or
81+
unwelcome in the community.
82+
83+
**Consequence**: A private, written warning from community leaders, providing clarity around the
84+
nature of the violation and an explanation of why the behavior was inappropriate. A public apology
85+
may be requested.
86+
87+
### 2. Warning
88+
89+
**Community Impact**: A violation through a single incident or series of actions.
90+
91+
**Consequence**: A warning with consequences for continued behavior. No interaction with the
92+
people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a
93+
specified period of time. This includes avoiding interactions in community spaces as well as
94+
external channels like social media. Violating these terms may lead to a temporary or permanent
95+
ban.
96+
97+
### 3. Permanent Ban
98+
99+
**Community Impact**: Demonstrating a pattern of violation of community standards, including
100+
sustained inappropriate behavior, harassment of an individual, or aggression toward or
101+
disparagement of classes of individuals.
102+
103+
**Consequence**: A permanent ban from any sort of public interaction within the community on
104+
project-managed platforms (e.g., GitHub, Discord). We acknowledge that individuals may attempt to
105+
evade such bans using new pseudonymous identities in a permissionless ecosystem; however, we will
106+
enforce these consequences to the best of our ability on the platforms we control.
107+
108+
## Attribution
109+
110+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1,
111+
available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
112+
113+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement
114+
ladder][Mozilla CoC].
115+
116+
For answers to common questions about this code of conduct, see the FAQ at
117+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
118+
[https://www.contributor-covenant.org/translations][translations].
119+
120+
[homepage]: https://www.contributor-covenant.org
121+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
122+
[Mozilla CoC]: https://github.com/mozilla/diversity
123+
[FAQ]: https://www.contributor-covenant.org/faq
124+
[translations]: https://www.contributor-covenant.org/translations
125+
[hi]: hi@talus.network

‎CONTRIBUTING.md‎

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1-
# Contributing
1+
# Contributing to `move-binding`
22

3-
This workspace is a set of layered Rust crates for typed Sui Move interactions.
4-
Changes should preserve the layer boundaries described in `MODEL.md`: low-level Move type
5-
modeling should not depend on transaction building or runtime behavior, and runtime code should
6-
not hide the Read -> Tx -> Commit boundary.
3+
Thank you for considering contributing to this project. These guidelines keep the process clear
4+
and preserve the structure of the workspace.
5+
6+
This workspace is a set of layered Rust crates for typed Sui Move interactions. Changes should
7+
preserve the layer boundaries described in `MODEL.md`: low-level Move type modeling should not
8+
depend on transaction building or runtime behavior, and runtime code should not hide the
9+
Read -> Tx -> Commit boundary.
10+
11+
## CLA
12+
13+
Contributors are required to sign the [CLA]. This process is handled automatically by the
14+
[CLA Assistant].
15+
16+
## Code of Conduct
17+
18+
This project adheres to a [Code of Conduct]. By participating, you are expected to uphold this
19+
code.
20+
21+
## How to Contribute
22+
23+
1. Fork the repository and create your branch from `main`.
24+
2. Follow the coding style used in the project.
25+
3. Write clear, concise commit messages.
26+
4. Add tests for new functionality or behavior changes.
27+
5. Do not introduce `unsafe` Rust unless the safety invariant is documented and reviewed
28+
explicitly.
29+
6. Update documentation to complement user-facing code changes.
30+
7. Update `CHANGELOG.md` for externally visible changes.
731

832
## Local Checks
933

@@ -18,13 +42,32 @@ cargo test --doc --all
1842

1943
CI runs formatting and clippy strictly, plus stable Rust checks and tests.
2044

21-
## Pull Requests
45+
## Reporting Issues
2246

47+
- Use the [Issue Tracker] to report bugs or suggest enhancements.
48+
- Check if the issue already exists before submitting.
49+
- Provide steps to reproduce, expected vs. actual behavior, and relevant logs or screenshots.
50+
51+
## Pull Request Process
52+
53+
- Open a pull request with a clear description of what it does and why.
54+
- Link to the issue it fixes, if applicable.
2355
- Keep changes scoped to one behavioral concern.
56+
- Ensure your branch is up to date with `main`.
2457
- Add or update tests for public API behavior, generated output, transaction construction, and
2558
runtime cursor/effects handling.
2659
- Update the relevant crate README when changing user-facing APIs.
27-
- Update `CHANGELOG.md` for externally visible changes.
60+
- A maintainer will review and may request changes before merge.
61+
62+
## Writing Commit Messages
63+
64+
- Use the [Conventional Commits] specification for commit messages.
65+
- Use the present tense, for example `feat: add typed call builder` instead of
66+
`feat: added typed call builder`.
67+
- Use imperative tone, for example `fix: reject duplicate object inputs` instead of
68+
`fix: rejects duplicate object inputs`.
69+
- Reference a ticket if applicable.
70+
- Add context and an explanation for non-trivial contributions.
2871

2972
## Dependencies
3073

@@ -46,3 +89,15 @@ Publish crates in dependency order:
4689
Before the first crates.io release, `cargo package --workspace` is expected to fail for crates
4790
whose normal dependencies are not published yet. Package each crate after its normal dependencies
4891
are available in the registry.
92+
93+
## License
94+
95+
By contributing, you agree that your contributions will be licensed under the same license as the
96+
project: [LICENSE].
97+
98+
[Issue Tracker]: https://github.com/Talus-Network/move-binding/issues
99+
[Code of Conduct]: CODE_OF_CONDUCT.md
100+
[LICENSE]: LICENSE
101+
[CLA]: https://gist.github.com/devops-talus/82cafc9752547baf4be140b6db1e8fd6
102+
[CLA Assistant]: https://cla-assistant.io/Talus-Network/move-binding
103+
[Conventional Commits]: https://www.conventionalcommits.org/

0 commit comments

Comments
 (0)