Skip to content

Commit 0977037

Browse files
authored
Scaffold Union TypeScript SDK v2 (#4053)
- **feat(ts-sdk): init** - **feat(ts-sdk): scaffold** - **chore(ts-sdk): build with nix** - **chore(ts-sdk): configure tests** - **feat(ts-sdk): run tests in nix** - **fix(ts-sdk): reproducibly publish sdk** - **docs(ts-sdk): document how to build, publish, edit** - **feat(ts-sdk): publish ucs03abi** - **feat(tssdk): first version** - **fix(ts-sdk): simplify** - **feat(ts-sdk): first proper publish** - **chore(ts-sdk): cleanup** - **chore(ts-sdk): cleanup**
2 parents 4f894d6 + 7c0fe99 commit 0977037

File tree

14 files changed

+4359
-1
lines changed

14 files changed

+4359
-1
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
./docs/openapi.nix
198198
./ceremony/ceremony.nix
199199
./site/site.nix
200+
./ts-sdk/ts-sdk.nix
200201
# ./lib/near/near.nix
201202
./typescript-sdk/typescript-sdk.nix
202203
./cosmwasm/ibc-union/lightclient/ethereum/default.nix

ts-sdk/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/**

ts-sdk/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Union TypeScript SDK
2+
3+
`@unionlabs/sdk`
4+
5+
## How to build and test
6+
7+
```sh
8+
nix build .#ts-sdk -L
9+
```
10+
11+
## How to publish
12+
13+
First, bump `version` in `package.json`. Then:
14+
15+
```sh
16+
nix run .#publish-ts-sdk -L
17+
```
18+
19+
## How to develop
20+
21+
```sh
22+
nix develop
23+
cd ts-sdk/
24+
npm install
25+
npm run test-watch
26+
```
27+
28+
## How to update abis
29+
30+
```sh
31+
nix build .#hubble-abis -L
32+
```
33+
34+
copy from `result/` to `src/evm/abi/`

0 commit comments

Comments
 (0)