Skip to content

Commit

Permalink
Merge branch 'alpha' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Apr 17, 2024
2 parents 94b3488 + c346d6b commit 8a7bf2c
Show file tree
Hide file tree
Showing 410 changed files with 35,926 additions and 14,209 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-cougars-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': minor
---

feat: Remove approval when creating object
5 changes: 5 additions & 0 deletions .changeset/eleven-dragons-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': major
---

feat: Support delegatedCreateFolder
5 changes: 5 additions & 0 deletions .changeset/fifty-moles-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: bucket toggleSpAsDelegatedAgent API
5 changes: 5 additions & 0 deletions .changeset/grumpy-suns-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: `Bucket.getBucketReadQuota` add monthly field
5 changes: 5 additions & 0 deletions .changeset/heavy-dolphins-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': minor
---

chore: Merge in alpha
5 changes: 5 additions & 0 deletions .changeset/heavy-suits-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': minor
---

feat: Remove approval when create bucket
5 changes: 5 additions & 0 deletions .changeset/nasty-tomatoes-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

fix: Delegated Create Folder APi return parse error message
32 changes: 25 additions & 7 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,29 @@
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@demo/wallet": "0.0.5",
"@demo/nodejs": "0.0.8",
"@bnb-chain/greenfield-js-sdk": "0.2.4",
"@bnb-chain/greenfiled-file-handle": "0.2.1",
"@bnb-chain/greenfield-zk-crypto": "0.0.2"
"greenfield-js-sdk-docs": "0.0.0",
"browser-file-management": "0.1.0",
"@demo/wallet": "0.0.27",
"@demo/nodejs": "0.0.26",
"@bnb-chain/create-gnfd-app": "1.0.0",
"@bnb-chain/greenfiled-file-handle": "1.0.2",
"@bnb-chain/greenfield-js-sdk": "1.2.2",
"@bnb-chain/reed-solomon": "1.1.3",
"@bnb-chain/greenfield-zk-crypto": "1.0.0"
},
"changesets": []
}
"changesets": [
"calm-cougars-kiss",
"eleven-dragons-report",
"fifty-moles-serve",
"grumpy-suns-roll",
"heavy-dolphins-obey",
"heavy-suits-punch",
"nasty-tomatoes-occur",
"rare-vans-talk",
"silent-crews-cover",
"sixty-mayflies-sin",
"strange-maps-begin",
"thin-readers-listen",
"wet-dragons-obey"
]
}
5 changes: 5 additions & 0 deletions .changeset/rare-vans-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: SpResponse - bucketinfo add SpAsDelegatedAgentDisabled and offchainstatus field
5 changes: 5 additions & 0 deletions .changeset/silent-crews-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: Uploading Object support resumable
5 changes: 5 additions & 0 deletions .changeset/sixty-mayflies-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': minor
---

feat: Replace zk crypto with ed25519.
5 changes: 5 additions & 0 deletions .changeset/strange-maps-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: Add delegateUploadObject API
5 changes: 5 additions & 0 deletions .changeset/thin-readers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

fix: OffchainStatus type number -> string
5 changes: 5 additions & 0 deletions .changeset/wet-dragons-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

feat: ed25519 support preview api
11 changes: 0 additions & 11 deletions .codesandbox/ci.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ description: PNPM install deps
runs:
using: composite
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: '18.17.0'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down
29 changes: 29 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/packages/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"
groups:
npm-dependencies:
patterns:
- "@npmcli/arborist"
- "nock"
- "npm"
- "semver"
exclude-patterns:
- "detect-indent" # temp excluded due to https://github.com/dependabot/dependabot-core/pull/5683#issuecomment-1243468605
pnpm-dependencies:
patterns:
- "@pnpm/lockfile-file"
- "@pnpm/dependency-path"
dev-dependencies:
dependency-type: "development"
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: "npm"
update-types: ["version-update:semver-major"]
39 changes: 39 additions & 0 deletions .github/workflows/docs-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

permissions:
contents: write

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/ci-setup

- name: Build
run: pnpm -F greenfield-js-sdk-docs build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./doc-site/build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
25 changes: 25 additions & 0 deletions .github/workflows/issue-close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Issue Close Require

on:
schedule:
- cron: '0 0 * * *'

jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: need reproduce
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
labels: '🤔 Need Reproduce'
inactive-day: 3

- name: needs more info
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
labels: 'needs more info'
inactive-day: 3
body: |
Since the issue was labeled with `needs more info`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
10 changes: 4 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
with:
version: 7
- run: pnpm install
persist-credentials: false

- uses: ./.github/actions/ci-setup

- run: pnpm -F "@bnb-chain/**" run lint
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Case
on:
push:
branches:
- main
- alpha
- beta

jobs:
run-tests:
runs-on: ubuntu-latest

env:
ACCOUNT_ADDRESS: ${{ secrets.ACCOUNT_ADDRESS }}
ACCOUNT_PRIVATEKEY: ${{ secrets.ACCOUNT_PRIVATEKEY }}

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: ./.github/actions/ci-setup

- name: Build
run: pnpm -F "@bnb-chain/**" build

- name: Run Test
run: pnpm -F "@bnb-chain/greenfield-js-sdk" test
Loading

0 comments on commit 8a7bf2c

Please sign in to comment.