Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modernise tooling and reduce package size #463

Merged
merged 47 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4029268
Resolved SMA-730
joepegler Mar 8, 2024
811b821
Merge branch 'develop' into feat/SMA-730_viem-as-peer-dep
joepegler Mar 8, 2024
5cfed58
fix comma
joepegler Mar 12, 2024
a7a7a19
refactor: replace polygonMumbai with optimism
GabiDev45 Apr 4, 2024
76265aa
Merge branch 'develop' into feat/SMA-730_viem-as-peer-dep
joepegler Apr 8, 2024
ea1c43c
replaced optimism with amoy and fixed some tests
GabiDev45 Apr 10, 2024
23fc41f
Merge branch 'develop' of https://github.com/bcnmy/biconomy-client-sd…
GabiDev45 Apr 10, 2024
29be8ee
chore: shrink package
joepegler Apr 11, 2024
9b24f51
chore: update tooling
joepegler Apr 11, 2024
83b87fe
Merge branch 'develop' into feature/shrink_package_size
joepegler Apr 11, 2024
a5cf0cf
fix: build
joepegler Apr 11, 2024
4ea478e
chore: rename bcnmy/biconomy-client-sdk
joepegler Apr 11, 2024
3663089
fix: coverage
joepegler Apr 11, 2024
8517562
fix: tests
joepegler Apr 11, 2024
31b83fa
ci: fix env vars
joepegler Apr 11, 2024
314143e
ci: reinclude withdrawal tests
joepegler Apr 11, 2024
fa6e394
chore: skip failing tests
joepegler Apr 11, 2024
7073726
ci: size check
joepegler Apr 11, 2024
581889a
bun lockfile
joepegler Apr 11, 2024
38ddc0d
chore: temp disable size-limit
joepegler Apr 11, 2024
3214255
chore: encode abi
joepegler Apr 12, 2024
c87d477
chore: remove ethers package
joepegler Apr 12, 2024
cb0619e
chore: update readme
joepegler Apr 12, 2024
a50a99f
Merge branch 'refactor/replace-mumbai' into feature/shrink_package_size
joepegler Apr 12, 2024
bb91fa1
chore: split tests by package
joepegler Apr 12, 2024
dc92d89
feat: dynamic errors
joepegler Apr 12, 2024
b2813cf
chore: add missing type
joepegler Apr 12, 2024
bb9ba8e
chore: add account as signer
joepegler Apr 12, 2024
8e77b71
chore: fix build
joepegler Apr 12, 2024
311f765
chore: fix tests
joepegler Apr 12, 2024
24fd8d8
fix: tests
joepegler Apr 16, 2024
7dd8655
chore: lint fix
joepegler Apr 16, 2024
853b8bf
ci: test
joepegler Apr 16, 2024
a420c15
chore: add test:ci
joepegler Apr 16, 2024
2d2c865
chore: add cancel-in-progress
joepegler Apr 16, 2024
d38a3b1
fix: bundler url
joepegler Apr 16, 2024
e40a3cb
chore: reinclude stackblitz
joepegler Apr 16, 2024
7c84919
ci: fix
joepegler Apr 16, 2024
60d5d5d
ci: remove decrease allowance
joepegler Apr 16, 2024
445b6f7
ci: cancel-in-progress
joepegler Apr 16, 2024
6597c20
ci: fix tests
joepegler Apr 16, 2024
d0a7ab2
ci: remove branch for testing
joepegler Apr 16, 2024
6514f91
fix: read trigger
joepegler Apr 16, 2024
38d85b2
Updated tooling
joepegler Apr 16, 2024
bfcc6af
fix: versions
joepegler Apr 16, 2024
8daa8b1
Add dev mode
joepegler Apr 16, 2024
76e0aeb
chore: update readme and remove references to contracts
joepegler Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"ignore": []
}
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
E2E_PRIVATE_KEY_ONE=
E2E_PRIVATE_KEY_TWO=
E2E_BICO_PAYMASTER_KEY_MUMBAI=
BUNDLER_URL=https://bundler.biconomy.io/api/v2/80002/cJPK7B3ru.dd7f7861-190d-45ic-af80-6877f74b8f44
E2E_BICO_PAYMASTER_KEY_AMOY=
E2E_BICO_PAYMASTER_KEY_BASE=
E2E_BICO_PAYMASTER_KEY_OP=
BICONOMY_SDK_DEBUG=true
WITH_MAINNET_TESTS=false
CHAIN_ID=80002
CODECOV_TOKEN=
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

49 changes: 0 additions & 49 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/1_general_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 💡 General Inquiry & Suggestions
description: Share general questions or suggestions that don't fit other categories
title: "[GENERAL] "
labels: ["question", "enhancement"]
body:
- type: markdown
attributes:
value: "Got a question or suggestion? We're all ears!"
- type: textarea
attributes:
label: Inquiry or Suggestion
description: What would you like to share with us?
placeholder: "I'm wondering about..."
validations:
required: false
- type: input
attributes:
label: Relevant Links or References
description: Optionally, add any relevant links or references.
placeholder: "e.g., https://github.com/example"
- type: checkboxes
attributes:
label: Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct.
required: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Bug Report
description: File a bug/issue
title: "bug: <title>"
name: 🐛 Bug Report & Test Failures
description: Report unexpected behaviors or failing tests
title: "[BUG] "
labels: ["bug", "help wanted"]
body:
- type: markdown
attributes:
Expand Down
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/3_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ✨ Feature Requests & Performance Improvements
description: Suggest a new feature or performance enhancement
title: "[FEATURE] "
labels: ["enhancement", "good first issue"]
body:
- type: markdown
attributes:
value: "Your suggestions inspire us to improve. Share your ideas below!"
- type: input
attributes:
label: Feature or Improvement Description
description: Describe the feature or improvement you're suggesting.
placeholder: "e.g., Add support for platform Z."
validations:
required: true
- type: textarea
attributes:
label: Benefits & Outcomes
description: Explain the benefits of your suggestion and the expected outcomes.
placeholder: "This improvement will improve performance by 30%..."
- type: input
attributes:
label: Any References?
description: Provide links or references to similar features or standards.
placeholder: "EIP-1234, https://github.com/example"
- type: checkboxes
attributes:
label: Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct.
required: true
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/4_security_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🔒 Security Pre-Screening
description: Pre-screening for security-related reports
title: "[SECURITY PRE-SCREEN] "
labels: ["security", "triage needed"]
body:
- type: markdown
attributes:
value: "Security is our top priority. If you've discovered a potential security issue please proceed."
- type: checkboxes
attributes:
label: Security Level Acknowledgement
options:
- label: "I understand this issue will be public. It is NOT critical or high risk and does not endanger deployed contracts. If it is please email: security@biconomy.io"
required: true
- type: input
attributes:
label: Overview
description: Provide a summary of the non-critical security concern or question.
placeholder: "e.g., Questions about the audit process."
validations:
required: true
- type: textarea
attributes:
label: Additional Details
description: Offer more detail on your concern or question.
placeholder: "Provide any additional context..."
- type: input
attributes:
label: Suggestions for Mitigation
description: (Optional) Suggest ways to address the concern.
placeholder: "Potential mitigation steps include..."
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/5_document_improvement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 📚 Documentation Improvement
description: Propose improvements or report issues with documentation
title: "[DOCS] "
labels: ["documentation"]
body:
- type: markdown
attributes:
value: "Help us enhance our documentation for everyone."
- type: input
attributes:
label: Documentation Page/Section
description: Which page or section are you referring to?
placeholder: "e.g., README.md, TSDoc guidelines."
validations:
required: true
- type: textarea
attributes:
label: Suggested Improvements
description: Detail the improvements or corrections needed.
placeholder: "The section on XYZ could clarify..."
validations:
required: true
- type: input
attributes:
label: Additional Comments
description: Any other comments or suggestions?
placeholder: "Consider adding examples for..."
- type: checkboxes
attributes:
label: Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct.
required: true
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/6_build_deployment_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🛠 Build & Deployment Issues
description: Report issues
title: "[BUILD/DEPLOY] "
labels: ["bug", "help wanted"]
body:
- type: markdown
attributes:
value: "Help us identify build or deployment problems to improve our processes."
- type: input
attributes:
label: Issue Summary
description: Briefly describe the issue encountered.
placeholder: "e.g., Failed to deploy contract due to..."
validations:
required: true
- type: textarea
attributes:
label: Error Logs & Messages
description: Provide any error logs or messages seen.
placeholder: "Error: Failed to..."
validations:
required: true
- type: input
attributes:
label: Environment & Tools
description: Mention the tools and environment where the issue occurred.
placeholder: "e.g., Truffle v5.3, Rinkeby testnet"
- type: checkboxes
attributes:
label: Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct.
required: true
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Pull Request for Smart Contract Improvement

**Describe your changes:**

<!-- Briefly describe what you're changing or fixing. -->

**Link any related issues:**

<!-- Link any related issues here. -->

**Testing:**

<!-- Describe how the changes were tested. Include steps if applicable. -->

**Note:** Please ensure all tests and lint checks pass before requesting a review. If there are any errors, fix them prior to submission.

**Checklist:**

- [ ] I have performed a self-review of my own code.
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [ ] I have made corresponding changes to the documentation, if applicable.
- [ ] My changes generate no new warnings or errors.
16 changes: 16 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Build"
description: "Prepare repository, all dependencies and build"

runs:
using: "composite"
steps:
- name: Set up Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
shell: bash
run: bun install --frozen-lockfile

- name: Build
shell: bash
run: bun run build
14 changes: 14 additions & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Install dependencies"
description: "Prepare repository and all dependencies"

runs:
using: "composite"
steps:
- name: Set up Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
shell: bash
run: |
bun install buffer
bun install --frozen-lockfile
Loading
Loading