@rsksmart/powpeg-sdk 1.0.1-beta.0 → 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +23 -0
- package/README.md +12 -0
- package/package.json +1 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Context for AI coding agents
|
|
2
|
+
|
|
3
|
+
## Commands
|
|
4
|
+
- `pnpm lint` - Check for linting issues.
|
|
5
|
+
- `pnpm lint:fix` - Fix auto-fixable issues.
|
|
6
|
+
- `pnpm test` - Run all tests.
|
|
7
|
+
- `pnpm test -- -t <suite_name>` - Run specific test suite.
|
|
8
|
+
- `pnpm build` - Build the project.
|
|
9
|
+
|
|
10
|
+
## Code style guidelines
|
|
11
|
+
- Prefer descriptive, readable names over short, cryptic abbreviations. Follow existing domain vocabulary for consistency.
|
|
12
|
+
- Only add comments for non-obvious behavior or workarounds.
|
|
13
|
+
- Do not add `eslint-disable` comments to bypass linter errors.
|
|
14
|
+
- Do not add `@ts-ignore` comments to bypass type errors.
|
|
15
|
+
|
|
16
|
+
## TypeScript features
|
|
17
|
+
- Do not introduce new enums into the codebase. Retain existing enums. If you require enum-like behaviour, use an `as const` object.
|
|
18
|
+
- Use discriminated unions to model data with mutually exclusive states and make invalid states unrepresentable.
|
|
19
|
+
- Use optional properties extremely sparingly. Only use them when the property is truly optional, and consider whether bugs may be caused by a failure to pass the property.
|
|
20
|
+
|
|
21
|
+
## Testing instructions
|
|
22
|
+
- Do not assert implementation details. A test must fail if, and only if, the intention behind the system is not met.
|
|
23
|
+
- Never mock anything directly related to the tested intention. Try to introduce mocks at the lowest level possible.
|
package/README.md
CHANGED
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
# powpeg-sdk
|
|
5
5
|
SDK for creating native peg-in and peg-out transactions following the PowPeg protocol.
|
|
6
|
+
|
|
7
|
+
# How to publish a beta package?
|
|
8
|
+
|
|
9
|
+
* Update `package.json` `version` field to the format `<version>-beta.<i++>` (eg: 1.0.1-beta.0).
|
|
10
|
+
* Create tag matching the `version` field.
|
|
11
|
+
* Push pre-release for the github package.
|
|
12
|
+
|
|
13
|
+
# How to publish a package?
|
|
14
|
+
|
|
15
|
+
* Update `package.json` `version` field to the format `<version>` (eg: 1.0.1).
|
|
16
|
+
* Create tag matching the `version` field.
|
|
17
|
+
* Publish the github package.
|
package/package.json
CHANGED