Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit f6bbe8f

Browse files
feat: opt upload process (#19)
* 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>
1 parent b5f12a7 commit f6bbe8f

File tree

20 files changed

+480
-302
lines changed

20 files changed

+480
-302
lines changed

.changeset/pre.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
"mode": "pre",
33
"tag": "alpha",
44
"initialVersions": {
5-
"example-nextjs-with-rainbowkit": "0.0.1",
6-
"example-nextjs-with-walletkit": "0.0.1",
7-
"example-vite-with-walletkit": "0.0.1",
8-
"@node-real/greenfield-uploadkit": "0.0.2",
9-
"website": "0.0.1"
5+
"docs": "0.0.1",
6+
"uploadkit-with-nextjs-rainbowkit": "0.0.1",
7+
"uploadkit-with-nextjs-walletkit": "0.0.1",
8+
"uploadkit-with-vite-walletkit": "0.0.1",
9+
"@node-real/greenfield-uploadkit": "0.0.4"
1010
},
11-
"changesets": [
12-
"five-turtles-attack",
13-
"thin-mirrors-warn"
14-
]
11+
"changesets": ["tall-years-judge"]
1512
}

.changeset/five-turtles-attack.md renamed to .changeset/tall-years-judge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@node-real/greenfield-uploadkit': patch
33
---
44

5-
fix: upload finish error
5+
feat: opt upload process

.changeset/thin-mirrors-warn.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/uploadkit-with-nextjs-rainbowkit/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
14-
"@bnb-chain/greenfield-js-sdk": "1.2.0",
15-
"@bnb-chain/reed-solomon": "^1.1.3",
16-
"@node-real/greenfield-uploadkit": "workspace:*",
13+
"@bnb-chain/greenfield-cosmos-types": "latest",
14+
"@bnb-chain/greenfield-js-sdk": "latest",
15+
"@bnb-chain/reed-solomon": "latest",
16+
"@node-real/greenfield-uploadkit": "latest",
1717
"@rainbow-me/rainbowkit": "^1.3.3",
18-
"@totejs/walletkit": "^1.0.8",
1918
"axios": "^1.6.3",
2019
"next": "^13.5.6",
2120
"react": "^18.2.0",

examples/uploadkit-with-nextjs-walletkit/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
14-
"@bnb-chain/greenfield-js-sdk": "1.2.0",
15-
"@bnb-chain/reed-solomon": "^1.1.3",
16-
"@node-real/greenfield-uploadkit": "workspace:*",
13+
"@bnb-chain/greenfield-cosmos-types": "latest",
14+
"@bnb-chain/greenfield-js-sdk": "latest",
15+
"@bnb-chain/reed-solomon": "latest",
16+
"@node-real/greenfield-uploadkit": "latest",
17+
"@totejs/walletkit": "^1.0.8",
1718
"axios": "^1.6.3",
1819
"next": "^13.5.6",
1920
"react": "^18.2.0",

examples/uploadkit-with-vite-walletkit/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
14-
"@bnb-chain/greenfield-js-sdk": "1.2.0",
15-
"@bnb-chain/reed-solomon": "^1.1.3",
16-
"@node-real/greenfield-uploadkit": "workspace:*",
13+
"@bnb-chain/greenfield-cosmos-types": "latest",
14+
"@bnb-chain/greenfield-js-sdk": "latest",
15+
"@bnb-chain/reed-solomon": "latest",
16+
"@node-real/greenfield-uploadkit": "latest",
1717
"@totejs/walletkit": "^1.0.8",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"prepare": "husky install",
1010
"lint": "pnpm eslint .",
11-
"build": "pnpm run -F \"./packages/**\" -r build",
11+
"dev": "pnpm --F @node-real/greenfield-uploadkit dev",
12+
"build": "pnpm --F @node-real/greenfield-uploadkit build",
1213
"dev:docs": "pnpm --F @node-real/greenfield-uploadkit build:watch & pnpm --F docs dev",
1314
"build:docs": "pnpm --F @node-real/greenfield-uploadkit build && pnpm --F docs build",
1415
"pre:enter": "pnpm changeset pre enter alpha",

packages/uploadkit/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @node-real/greenfield-uploadkit
22

3+
## 0.0.4
4+
5+
### Patch Changes
6+
7+
- 74fdd5c: fix: Ensure correct context in encode function
8+
9+
## 0.0.3
10+
11+
### Patch Changes
12+
13+
- 21b0b97: fix: upload finish error
14+
- 21b0b97: fix: scroll style on edge
15+
316
## 0.0.3-alpha.1
417

518
### Patch Changes

packages/uploadkit/dev/App.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ const options: WalletKitOptions = {
4141
const uploadOptions: UploadKitOptions = {
4242
client: client,
4343
bucketName: 'test-upload-kit',
44-
seedString:
45-
'0xa25fa0de5d5e82b84826a0bce8c84a1bf1b0c8786c586ec696dc52300a9ffe007bb7e10d9901a32b67ed06fdef1d296f6d6fa00fdd33deaeadbd2363fe87708d1c',
46-
checksumFn: async (data: Uint8Array) => {
47-
const rs = new ReedSolomon();
48-
return rs.encode(data);
49-
},
44+
// seedString: '0xa25fa0de5d5e82b84826a0bce8c84a1bf1b0c8786c586ec696dc52300a9ffe007bb7e10d9901a32b67ed06fdef1d296f6d6fa00fdd33deaeadbd2363fe87708d1c',
45+
// checksumFn: async (data: Uint8Array) => {
46+
// const rs = new ReedSolomon();
47+
// return rs.encode(data);
48+
// },
5049
sp: {
5150
operatorAddress: '0x89A1CC91B642DECbC4789474694C606E0E0c420b',
5251
endpoint: 'https://gnfd-testnet-sp1.bnbchain.org',

packages/uploadkit/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@node-real/greenfield-uploadkit",
3-
"version": "0.0.3-alpha.1",
3+
"version": "0.0.4",
44
"author": "node-real",
55
"description": "Greenfield UploadKit is a React component library for easily uploading objects to BNB Greenfield.",
6-
"homepage": "https://node-real.github.io/greenfield-uploadkit",
6+
"homepage": "https://node-real.github.io/greenfield-toolkit/packages/uploadkit",
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "git+https://github.com/node-real/greenfield-uploadkit.git",
11-
"directory": "packages/greenfield-uploadkit"
10+
"url": "git+https://github.com/node-real/greenfield-toolkit.git",
11+
"directory": "packages/uploadkit"
1212
},
1313
"keywords": [
1414
"Greenfield UploadKit",
@@ -31,7 +31,7 @@
3131
"build": "vite build"
3232
},
3333
"peerDependencies": {
34-
"@bnb-chain/greenfield-cosmos-types": ">=0.4.0-alpha.30",
34+
"@bnb-chain/greenfield-cosmos-types": ">=0.4.0",
3535
"@bnb-chain/greenfield-js-sdk": ">=1.2.0",
3636
"@bnb-chain/reed-solomon": ">=1.1.3",
3737
"react": ">=17",
@@ -40,9 +40,9 @@
4040
"wagmi": ">=1"
4141
},
4242
"devDependencies": {
43-
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.30",
43+
"@bnb-chain/greenfield-cosmos-types": "0.4.0",
4444
"@bnb-chain/greenfield-js-sdk": "1.2.0",
45-
"@bnb-chain/reed-solomon": "^1.1.3",
45+
"@bnb-chain/reed-solomon": "1.1.3",
4646
"@rollup/plugin-inject": "^5.0.3",
4747
"@rollup/plugin-node-resolve": "^15.2.3",
4848
"@totejs/walletkit": "^1.0.8",
@@ -67,7 +67,6 @@
6767
},
6868
"dependencies": {
6969
"@ethersproject/wallet": "^5.7.0",
70-
"axios": "^1.6.3",
7170
"bignumber.js": "^9.1.2"
7271
}
7372
}

0 commit comments

Comments
 (0)