Skip to content

Commit

Permalink
feat: opt upload process (#19)
Browse files Browse the repository at this point in the history
* chore: update versions (#16)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Ensure correct context in encode function (#17)

* fix: upload finish error & scroll style on edge (#15)

* fix: scroll style on edge (#6)

* chore: update versions (alpha) (#7)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: upload finish error (#8)

* chore: update versions (alpha) (#9)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: upload finish error & scroll style on edge

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update versions (#16)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Ensure correct context in encode function

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update versions (#18)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: opt upload process

* chore: update changelog

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 15, 2024
1 parent b5f12a7 commit f6bbe8f
Show file tree
Hide file tree
Showing 20 changed files with 480 additions and 302 deletions.
15 changes: 6 additions & 9 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"example-nextjs-with-rainbowkit": "0.0.1",
"example-nextjs-with-walletkit": "0.0.1",
"example-vite-with-walletkit": "0.0.1",
"@node-real/greenfield-uploadkit": "0.0.2",
"website": "0.0.1"
"docs": "0.0.1",
"uploadkit-with-nextjs-rainbowkit": "0.0.1",
"uploadkit-with-nextjs-walletkit": "0.0.1",
"uploadkit-with-vite-walletkit": "0.0.1",
"@node-real/greenfield-uploadkit": "0.0.4"
},
"changesets": [
"five-turtles-attack",
"thin-mirrors-warn"
]
"changesets": ["tall-years-judge"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@node-real/greenfield-uploadkit': patch
---

fix: upload finish error
feat: opt upload process
5 changes: 0 additions & 5 deletions .changeset/thin-mirrors-warn.md

This file was deleted.

9 changes: 4 additions & 5 deletions examples/uploadkit-with-nextjs-rainbowkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
"lint": "next lint"
},
"dependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
"@bnb-chain/greenfield-js-sdk": "1.2.0",
"@bnb-chain/reed-solomon": "^1.1.3",
"@node-real/greenfield-uploadkit": "workspace:*",
"@bnb-chain/greenfield-cosmos-types": "latest",
"@bnb-chain/greenfield-js-sdk": "latest",
"@bnb-chain/reed-solomon": "latest",
"@node-real/greenfield-uploadkit": "latest",
"@rainbow-me/rainbowkit": "^1.3.3",
"@totejs/walletkit": "^1.0.8",
"axios": "^1.6.3",
"next": "^13.5.6",
"react": "^18.2.0",
Expand Down
9 changes: 5 additions & 4 deletions examples/uploadkit-with-nextjs-walletkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"lint": "next lint"
},
"dependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
"@bnb-chain/greenfield-js-sdk": "1.2.0",
"@bnb-chain/reed-solomon": "^1.1.3",
"@node-real/greenfield-uploadkit": "workspace:*",
"@bnb-chain/greenfield-cosmos-types": "latest",
"@bnb-chain/greenfield-js-sdk": "latest",
"@bnb-chain/reed-solomon": "latest",
"@node-real/greenfield-uploadkit": "latest",
"@totejs/walletkit": "^1.0.8",
"axios": "^1.6.3",
"next": "^13.5.6",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/uploadkit-with-vite-walletkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
"@bnb-chain/greenfield-js-sdk": "1.2.0",
"@bnb-chain/reed-solomon": "^1.1.3",
"@node-real/greenfield-uploadkit": "workspace:*",
"@bnb-chain/greenfield-cosmos-types": "latest",
"@bnb-chain/greenfield-js-sdk": "latest",
"@bnb-chain/reed-solomon": "latest",
"@node-real/greenfield-uploadkit": "latest",
"@totejs/walletkit": "^1.0.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"prepare": "husky install",
"lint": "pnpm eslint .",
"build": "pnpm run -F \"./packages/**\" -r build",
"dev": "pnpm --F @node-real/greenfield-uploadkit dev",
"build": "pnpm --F @node-real/greenfield-uploadkit build",
"dev:docs": "pnpm --F @node-real/greenfield-uploadkit build:watch & pnpm --F docs dev",
"build:docs": "pnpm --F @node-real/greenfield-uploadkit build && pnpm --F docs build",
"pre:enter": "pnpm changeset pre enter alpha",
Expand Down
13 changes: 13 additions & 0 deletions packages/uploadkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @node-real/greenfield-uploadkit

## 0.0.4

### Patch Changes

- 74fdd5c: fix: Ensure correct context in encode function

## 0.0.3

### Patch Changes

- 21b0b97: fix: upload finish error
- 21b0b97: fix: scroll style on edge

## 0.0.3-alpha.1

### Patch Changes
Expand Down
11 changes: 5 additions & 6 deletions packages/uploadkit/dev/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ const options: WalletKitOptions = {
const uploadOptions: UploadKitOptions = {
client: client,
bucketName: 'test-upload-kit',
seedString:
'0xa25fa0de5d5e82b84826a0bce8c84a1bf1b0c8786c586ec696dc52300a9ffe007bb7e10d9901a32b67ed06fdef1d296f6d6fa00fdd33deaeadbd2363fe87708d1c',
checksumFn: async (data: Uint8Array) => {
const rs = new ReedSolomon();
return rs.encode(data);
},
// seedString: '0xa25fa0de5d5e82b84826a0bce8c84a1bf1b0c8786c586ec696dc52300a9ffe007bb7e10d9901a32b67ed06fdef1d296f6d6fa00fdd33deaeadbd2363fe87708d1c',
// checksumFn: async (data: Uint8Array) => {
// const rs = new ReedSolomon();
// return rs.encode(data);
// },
sp: {
operatorAddress: '0x89A1CC91B642DECbC4789474694C606E0E0c420b',
endpoint: 'https://gnfd-testnet-sp1.bnbchain.org',
Expand Down
15 changes: 7 additions & 8 deletions packages/uploadkit/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@node-real/greenfield-uploadkit",
"version": "0.0.3-alpha.1",
"version": "0.0.4",
"author": "node-real",
"description": "Greenfield UploadKit is a React component library for easily uploading objects to BNB Greenfield.",
"homepage": "https://node-real.github.io/greenfield-uploadkit",
"homepage": "https://node-real.github.io/greenfield-toolkit/packages/uploadkit",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/node-real/greenfield-uploadkit.git",
"directory": "packages/greenfield-uploadkit"
"url": "git+https://github.com/node-real/greenfield-toolkit.git",
"directory": "packages/uploadkit"
},
"keywords": [
"Greenfield UploadKit",
Expand All @@ -31,7 +31,7 @@
"build": "vite build"
},
"peerDependencies": {
"@bnb-chain/greenfield-cosmos-types": ">=0.4.0-alpha.30",
"@bnb-chain/greenfield-cosmos-types": ">=0.4.0",
"@bnb-chain/greenfield-js-sdk": ">=1.2.0",
"@bnb-chain/reed-solomon": ">=1.1.3",
"react": ">=17",
Expand All @@ -40,9 +40,9 @@
"wagmi": ">=1"
},
"devDependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
"@bnb-chain/greenfield-cosmos-types": "0.4.0",
"@bnb-chain/greenfield-js-sdk": "1.2.0",
"@bnb-chain/reed-solomon": "^1.1.3",
"@bnb-chain/reed-solomon": "1.1.3",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-node-resolve": "^15.2.3",
"@totejs/walletkit": "^1.0.8",
Expand All @@ -67,7 +67,6 @@
},
"dependencies": {
"@ethersproject/wallet": "^5.7.0",
"axios": "^1.6.3",
"bignumber.js": "^9.1.2"
}
}
Loading

0 comments on commit f6bbe8f

Please sign in to comment.