Skip to content

Commit

Permalink
0.1.0 (#38)
Browse files Browse the repository at this point in the history
* fix: Cancel create object gas fee

* Feat/new client (#20)

* feat: Support cjs

* feat: Replace Msg Type by types repo

* feat: Replace Msg Type by types repo

* feat: Basic API

* feat: Account API

* feat: Challenge API

* feat: Crosschain API

* feat: Distrubution API

* feat: Group API

* feat: Payment API

* feat: Sp API

* feat: ChainClient

* feat: Sp API

* feat: Bucket API

* feat: Object API

* feat: Object API

* feat: Client and Examples update

* chore: Storage Example

* feat: Payment Params

* chore: Changeset

* chore: [ci] release (alpha) (#16)

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

* docs: Update Docs (#21)

* docs: Update README (#23)

* chore: Update package.json (#24)

* Feat/common (#25)

* chore: Update package.json

* feat: Add export types

* chore: [ci] release (alpha) (#26)

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

* Feat/common (#28)

* chore: Update package.json

* feat: Add export types

* feat: Support cjs

* chore: Update pnpm lock file

* chore: Example types fix

* feat: Query support nodejs and browser

* fix: Update type

---------

Co-authored-by: rrr523 <gaoyibobo@foxmail.com>

* chore: [ci] release (alpha) (#29)

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

* Docs (#30)

* docs: Update README

* docs: Update README

* fix simulate and broadcast return type (#31)

* fix: Fix Type

* chore: Update Example

* chore: Changeset file

* chore: [ci] release (alpha) (#32)

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

* chore: Clean Code (#37)

---------

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>
Co-authored-by: Bob <106944652+ybgbob@users.noreply.github.com>
  • Loading branch information
4 people authored May 15, 2023
1 parent c3be624 commit cee97f8
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 40 deletions.
6 changes: 6 additions & 0 deletions .changeset/eleven-mayflies-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@bnb-chain/greenfiled-file-handle': patch
'@bnb-chain/greenfield-chain-sdk': patch
---

support commonjs export
8 changes: 8 additions & 0 deletions .changeset/great-walls-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@bnb-chain/greenfiled-file-handle': patch
'@bnb-chain/greenfield-chain-sdk': patch
'@demo/wallet': patch
'@demo/nodejs': patch
---

Query support nodejs and browser
6 changes: 6 additions & 0 deletions .changeset/large-crabs-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@bnb-chain/greenfield-chain-sdk': minor
'@bnb-chain/greenfiled-file-handle': minor
---

New Client
5 changes: 5 additions & 0 deletions .changeset/light-islands-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-chain-sdk': patch
---

cancel create object gas fee
19 changes: 19 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@demo/wallet": "0.0.1",
"@bnb-chain/greenfield-chain-sdk": "0.0.1",
"@bnb-chain/greenfiled-file-handle": "0.0.1",
"@demo/nodejs": "0.0.1"
},
"changesets": [
"eleven-mayflies-fry",
"great-walls-hide",
"large-crabs-cheat",
"light-islands-smile",
"thirty-islands-jam",
"thirty-yaks-appear",
"yellow-lobsters-divide"
]
}
5 changes: 5 additions & 0 deletions .changeset/thirty-yaks-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-chain-sdk': patch
---

commonjs
5 changes: 5 additions & 0 deletions .changeset/yellow-lobsters-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-chain-sdk': patch
---

fix broadcast and simulate type
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@demo/wallet",
"version": "0.0.2",
"version": "0.0.2-alpha.4",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development next dev",
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"dependencies": {
"@bnb-chain/greenfield-chain-sdk": "workspace:*"
}
}
}
35 changes: 34 additions & 1 deletion packages/chain-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
# @bnb-chain/greenfield-chain-sdk

## 0.1.0
## 0.1.0-alpha.4

### Patch Changes

- [#31](https://github.com/bnb-chain/greenfield-js-sdk/pull/31)
[`9b6b781`](https://github.com/bnb-chain/greenfield-js-sdk/commit/9b6b7817501e56b1a2ceb46b60016fc7c35a12ff)
Thanks [@rrr523](https://github.com/rrr523)! - fix broadcast and simulate type

## 0.1.0-alpha.3

### Patch Changes

- [#28](https://github.com/bnb-chain/greenfield-js-sdk/pull/28)
[`884b824`](https://github.com/bnb-chain/greenfield-js-sdk/commit/884b8243c75544cee079b49ccb27b227be554b01)
Thanks [@ybgbob](https://github.com/ybgbob)! - support commonjs export

- [#28](https://github.com/bnb-chain/greenfield-js-sdk/pull/28)
[`884b824`](https://github.com/bnb-chain/greenfield-js-sdk/commit/884b8243c75544cee079b49ccb27b227be554b01)
Thanks [@ybgbob](https://github.com/ybgbob)! - Query support nodejs and browser

- Updated dependencies
[[`884b824`](https://github.com/bnb-chain/greenfield-js-sdk/commit/884b8243c75544cee079b49ccb27b227be554b01),
[`884b824`](https://github.com/bnb-chain/greenfield-js-sdk/commit/884b8243c75544cee079b49ccb27b227be554b01)]:
- @bnb-chain/greenfiled-file-handle@0.1.0-alpha.1

## 0.1.0-alpha.2

### Patch Changes

- [#25](https://github.com/bnb-chain/greenfield-js-sdk/pull/25)
[`4a22580`](https://github.com/bnb-chain/greenfield-js-sdk/commit/4a2258023162cda74dd5c5c792063c61ad3af39a)
Thanks [@rrr523](https://github.com/rrr523)! - commonjs

## 0.1.0-alpha.1

### Minor Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/chain-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bnb-chain/greenfield-chain-sdk",
"version": "0.1.0",
"version": "0.1.0-alpha.4",
"description": "greenfield js chain sdk",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
35 changes: 0 additions & 35 deletions packages/chain-sdk/src/api/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,6 @@ import { MsgCreatePaymentAccount } from '@bnb-chain/greenfield-cosmos-types/gree
import { Basic } from './basic';
import { ITxOption, SimulateOrBroad, SimulateOrBroadResponse } from '..';

type A = {
type: 'foo';
value: string;
};
type B = {
type: 'bar';
value: number;
};

type ReqA = {
simulate: true;
value: string;
};

type ReqB = {
simulate: false;
value: number;
};

type Op = {
xx: boolean;
};

// 重载
function test<T extends Op>(x: T): T['xx'] extends true ? string : number;

function test(x: Op) {
if (x.xx) {
return 'xx';
}
return 111;
}

const a = test({ xx: false });

export interface IAccount {
/**
* retrieves account information for a given address.
Expand Down
2 changes: 1 addition & 1 deletion packages/file-handle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
"tslib": "^2.5.0",
"typescript": "^4.9.5"
}
}
}

0 comments on commit cee97f8

Please sign in to comment.