Skip to content

Commit

Permalink
Merge pull request #556 from bcnmy/develop
Browse files Browse the repository at this point in the history
chore: release v4.6.0
  • Loading branch information
joepegler authored Aug 12, 2024
2 parents c3ed995 + c997163 commit 32f4608
Show file tree
Hide file tree
Showing 30 changed files with 1,641 additions and 698 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ E2E_BICO_PAYMASTER_KEY_AMOY=
E2E_BICO_PAYMASTER_KEY_BASE=
CHAIN_ID=80002
CODECOV_TOKEN=
TESTING=false
SILENCE_LABS_NPM_TOKEN=npm_XXX
TESTING=false
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ jobs:

- name: Build
uses: ./.github/actions/build
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/install-dependencies
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Run the account tests
run: bun run test:ci -t=Account:Write
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/install-dependencies
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Set remote url
run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/bcnmy/biconomy-client-sdk.git
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/install-dependencies
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Use commitlint to check PR title
run: echo "${{ github.event.pull_request.title }}" | bun commitlint
2 changes: 0 additions & 2 deletions .github/workflows/size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:

- name: Build
uses: ./.github/actions/build
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Report bundle size
uses: andresz1/size-limit-action@master
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-read.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/install-dependencies
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Run the tests
run: bun run test:ci -t=Read
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/install-dependencies
env:
SILENCE_LABS_NPM_TOKEN: ${{ secrets.SILENCE_LABS_NPM_TOKEN }}

- name: Run the account tests
run: bun run test:ci -t=Account:Write
Expand Down
8 changes: 4 additions & 4 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
{
"name": "core (esm)",
"path": "./dist/_esm/index.js",
"limit": "80 kB",
"limit": "140 kB",
"import": "*",
"ignore": ["node:fs", "fs"]
},
{
"name": "core (cjs)",
"path": "./dist/_cjs/index.js",
"limit": "80 kB",
"limit": "140 kB",
"ignore": ["node:fs", "fs"]
},
{
"name": "account (tree-shaking)",
"path": "./dist/_esm/index.js",
"limit": "80 kB",
"limit": "140 kB",
"import": "{ createSmartAccountClient }",
"ignore": ["node:fs", "fs"]
},
Expand All @@ -36,7 +36,7 @@
{
"name": "modules (tree-shaking)",
"path": "./dist/_esm/modules/index.js",
"limit": "80 kB",
"limit": "140 kB",
"import": "{ createSessionKeyManagerModule }",
"ignore": ["node:fs", "fs"]
}
Expand Down
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# @biconomy/account

## 4.5.4
## 4.5.5

### Patch Changes

- Fix CJS builds

## 4.5.4

### Patch Changes

- Distributed Session Keys

## 4.5.3
## 4.6.0

### Minor Changes

- Sessions Dx
- Distributed Sessions

## 4.5.2

Expand Down
3 changes: 1 addition & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"_types",
"bun.lockb",
"docs",
"dist",
"walletprovider-sdk"
"dist"
]
},
"organizeImports": {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 0 additions & 2 deletions bunfig.toml

This file was deleted.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"sideEffects": false,
"name": "@biconomy/account",
"author": "Biconomy",
"version": "4.5.4",
"version": "4.6.0",
"description": "SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.",
"keywords": [
"erc-7579",
Expand Down Expand Up @@ -97,6 +97,7 @@
"dotenv": "^16.4.5",
"ethers": "^6.12.0",
"gh-pages": "^6.1.1",
"node-gyp-build": "^4.8.1",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"size-limit": "^11",
Expand All @@ -106,7 +107,7 @@
"vitest": "^1.3.1"
},
"peerDependencies": {
"typescript": "^5",
"typescript": "^5.5.3",
"viem": "^2"
},
"commitlint": {
Expand All @@ -119,7 +120,7 @@
"commit-msg": "npx --no -- commitlint --edit ${1}"
},
"dependencies": {
"merkletreejs": "^0.4.0",
"@silencelaboratories/walletprovider-sdk": "^0.1.0"
"@silencelaboratories/walletprovider-sdk": "^0.1.0",
"merkletreejs": "^0.4.0"
}
}
14 changes: 8 additions & 6 deletions src/account/BaseSmartContractAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export abstract class BaseSmartContractAccount<
* @param _params -- Typed Data params to sign
*/
async signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`> {
return this.signer.signTypedData(_params)
throw new Error("signTypedData not supported")
}

/**
Expand All @@ -158,14 +158,16 @@ export abstract class BaseSmartContractAccount<
* @param params -- Typed Data params to sign
*/
async signTypedDataWith6492(
// @ts-ignore
params: SignTypedDataParams
): Promise<`0x${string}`> {
const [isDeployed, signature] = await Promise.all([
this.isAccountDeployed(),
this.signTypedData(params)
])
throw new Error("signTypedDataWith6492 not supported")
// const [isDeployed, signature] = await Promise.all([
// this.isAccountDeployed(),
// this.signTypedData(params)
// ])

return this.create6492Signature(isDeployed, signature)
// return this.create6492Signature(isDeployed, signature)
}

/**
Expand Down
Loading

0 comments on commit 32f4608

Please sign in to comment.