Skip to content

Commit 67eeb29

Browse files
authored
feat: document ts sdk and rename recipient to receiver (#2934)
2 parents 1981197 + 6374e27 commit 67eeb29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+5491
-977
lines changed

.github/workflows/typescript-sdk-publish.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ env:
2424

2525
jobs:
2626
publish-jsr:
27+
# manually temporarily disabled
28+
if: false
2729
name: 'Publish JSR'
2830
runs-on: ['ubuntu-latest']
2931
permissions:
@@ -34,7 +36,13 @@ jobs:
3436
- name: 'Checkout'
3537
uses: actions/checkout@v4
3638

39+
- name: 'Setup bun'
40+
uses: oven-sh/setup-bun@v2
41+
with:
42+
bun-version: 'latest'
43+
3744
- name: 'Publish to JSR'
3845
working-directory: './typescript-sdk'
3946
run: |
40-
npm_config_yes=true npx jsr publish --allow-slow-types
47+
bun install
48+
bun scripts/publish.ts --period patch

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ db.sqlite
7676
db.sqlite3*
7777

7878
move/*/build
79+
.tsup

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ The upgradability of contracts on other chains, connections, token configuration
3838
| [`evm`](./evm) | [EVM] smart contract stack | [Solidity] |
3939
| [`app`](./app) | [app.union.build] | [TypeScript] [Svelte] |
4040
| [`site`](./site) | [union.build] | [TypeScript] [Astro] |
41+
| [`TypeScript SDK`](./typescript-sdk) | TypeScript SDK for interacting with Union | [TypeScript] |
4142

4243
## Quickstart
4344

4445
Install [Nix] to _[reproducibly build](https://en.wikipedia.org/wiki/Reproducible_builds) any component_, and to enter a dev shell with _all dependencies_:
45-
```
46+
47+
```sh
4648
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
4749
```
50+
4851
_(Note that some components can only be built on Linux. If you are using macOS, we recommend using [OrbStack] to easily set up a [NixOS] VM within two minutes. Most Union developers use macOS with [OrbStack], and there is no need to install Nix inside of the [NixOS] VM.)_
4952

5053
You can now _reproducibly_ build any of Union's components from source:
@@ -60,7 +63,7 @@ nix flake show
6063

6164
The result of whatever you build will be in `result/`
6265

63-
You can now also enter our dev shell, which has all of the dependencies (`cargo`, `rustc`, `node`, `go`, etc.) you need to work on any component:
66+
You can now also enter our dev shell, which has all of the dependencies (`cargo`, `rustc`, `node`, `go`, etc.) you need to work on any component:
6467
_(Don't worry, this will not affect your system outside of this repo)_
6568

6669
```sh

app/app.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
{
1010
packages = {
1111
app = unstablePkgs.buildNpmPackage {
12-
npmDepsHash = "sha256-o0iMZ4VvEDlj0OEoieLzZG4J2eeTF4EMRWrYI15e2RY=";
12+
npmDepsHash = "sha256-5wMINt346EVAAPt32eRsFvF7m6rH6taeE55Z9tEme1A=";
1313
src = ./.;
1414
sourceRoot = "app";
15-
npmFlags = [ "--legacy-peer-deps" ];
15+
npmFlags = [ "--legacy-peer-deps" "--ignore-scripts" ];
1616
pname = packageJSON.name;
1717
version = packageJSON.version;
1818
nativeBuildInputs = combinedDeps;

0 commit comments

Comments
 (0)