Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
127a60a
chore(ts-sdk-sui): started
Caglankaan Sep 24, 2025
e7ea531
chore(ts-sdk-sui): added new function
Caglankaan Sep 24, 2025
52dcff8
chore(ts-sdk-sui): added new function
Caglankaan Sep 24, 2025
1b72804
chore(ts-sdk-sui): added new function
Caglankaan Sep 24, 2025
d9544ce
chore(ts-sdk-sui): added new functions
Caglankaan Sep 24, 2025
321dd24
chore(ts-sdk-sui): added different examples
Caglankaan Sep 24, 2025
32bdba6
chore(ts-sdk-sui): added comments
Caglankaan Sep 24, 2025
e916e1c
chore(ts-sdk-sui): created submit instruction function
Caglankaan Sep 25, 2025
a1b6f08
chore(ts-sdk-sui): added readCoinMeta function
Caglankaan Sep 26, 2025
99ed826
chore(ts-sdk-sui): fromWallet function is being called, error fixed o…
Caglankaan Sep 26, 2025
7fdf910
chore(ts-sdk-sui): fromWallet improvements
Caglankaan Sep 26, 2025
6825e0b
chore(ts-sdk-sui): working POC added
Caglankaan Sep 26, 2025
d2238ad
chore(ts-sdk-sui): fixed token order , still issues with display
Caglankaan Sep 29, 2025
2ec3db8
chore(ts-sdk-sui): added suidisplay
Caglankaan Sep 29, 2025
cbfe7c2
chore(ts-sdk-sui): added suitoken
Caglankaan Sep 30, 2025
1a5e346
chore(ts-sdk-sui): fully functional ts-sdk example for sui->union
Caglankaan Sep 30, 2025
bbb70a9
chore(ts-sdk-sui): nix-fmt applied
Caglankaan Oct 1, 2025
00459af
chore(ts-sdk-sui): fixed ts-sdk-evm error
Caglankaan Oct 1, 2025
c80d88f
chore(ts-sdk-sui): added sui to generateSalt type
Caglankaan Oct 1, 2025
7caace9
chore(ts-sdk-sui): added transport interface for extra params
Caglankaan Oct 1, 2025
951db4c
chore(ts-sdk-sui): some cleanup
Caglankaan Oct 3, 2025
08f1ee3
chore(ts-sdk-sui): fixing ci errors
Caglankaan Oct 6, 2025
11b4efb
chore(ts-sdk-sui): fixing ci errors
Caglankaan Oct 6, 2025
de77b97
chore(ts-sdk-sui): fixing ci errors
Caglankaan Oct 6, 2025
afbd96d
fix(ts-sdk-sui): type errors
ehegnes Oct 7, 2025
0e46267
feat(ts-sdk-sui): add docgen
ehegnes Oct 7, 2025
54180f9
fix(ts-sdk-sui,app2): type fixes and formatting
ehegnes Oct 7, 2025
675f43a
chore(ts-sdk): skip flaky unused test cases
ehegnes Oct 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ ts-sdk-evm/docs
ts-sdk-cosmos/build
ts-sdk-cosmos/dist
ts-sdk-cosmos/docs
ts-sdk-sui/build
ts-sdk-sui/dist
ts-sdk-sui/docs
sentinel2/build
docs/src/content/docs/reference/@unionlabs/sdk
docs/src/content/docs/reference/@unionlabs/sdk-evm
Expand Down
4 changes: 4 additions & 0 deletions app2/src/lib/stores/wallets.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ class WalletsStore {
evmAddress: Option.Option<Ucs05.EvmDisplay> = $state(Option.none())
cosmosAddress: Option.Option<Ucs05.CosmosDisplay> = $state(Option.none())
aptosAddress: Option.Option<Ucs05.AnyDisplay> = $state(Option.none())
suiAddress: Option.Option<Ucs05.AnyDisplay> = $state(Option.none())
inputAddress: Option.Option<Ucs05.AnyDisplay> = $state(Option.none())

hasAnyWallet() {
return (
Option.isSome(this.evmAddress)
|| Option.isSome(this.cosmosAddress)
|| Option.isSome(this.aptosAddress)
|| Option.isSome(this.suiAddress)
|| Option.isSome(this.inputAddress)
)
}
Expand All @@ -34,6 +36,7 @@ class WalletsStore {
this.evmAddress,
this.cosmosAddress,
this.aptosAddress,
this.suiAddress,
]),
A.map(Ucs05.anyDisplayToCanonical),
)
Expand All @@ -52,6 +55,7 @@ class WalletsStore {
Option.map((address) => Ucs05.CosmosDisplay.make({ address })),
)),
Match.when("aptos", () => this.aptosAddress),
Match.when("sui", () => this.suiAddress),
Match.exhaustive,
)
}
Expand Down
8 changes: 6 additions & 2 deletions app2/src/lib/transfer/shared/components/Receiver.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ let manualAddress = $state("")
let showClearConfirm = $state(false)
let bookmarkOnAdd = $state(false)

let recentAddresses: Record<string, Array<`0x${string}` | `${string}1${string}`>> = $state({})
let bookmarkedAddresses: Record<string, Array<`0x${string}` | `${string}1${string}`>> = $state({})
let recentAddresses: Record<string, Array<(string & {}) | `0x${string}` | `${string}1${string}`>> =
$state({})
let bookmarkedAddresses: Record<
string,
Array<(string & {}) | `0x${string}` | `${string}1${string}`>
> = $state({})

// Create crossfade transition
const [send, receive] = crossfade({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export const checkAllowances = Effect.fn((
sender,
chain,
),
SuiDisplay: (sender) =>
Effect.fail(
new AllowanceCheckError({ message: "Sui allowance check not implemented" }),
),
}),
Effect.map(A.map(({ token, allowance }) => [token, allowance] as const)),
Effect.map(HashMap.fromIterable),
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@
./ts-sdk/ts-sdk.nix
./ts-sdk-evm/ts-sdk-evm.nix
./ts-sdk-cosmos/ts-sdk-cosmos.nix
./ts-sdk-sui/ts-sdk-sui.nix
./typescript-sdk/typescript-sdk.nix
./cosmwasm/cosmwasm.nix
./evm/evm.nix
Expand Down
147 changes: 147 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ packages:
- 'ts-sdk-evm'
- 'typescript-sdk'
- 'zkgm-dev'
- 'ts-sdk-sui'
1 change: 1 addition & 0 deletions scripts/docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function packages() {
"ts-sdk",
"ts-sdk-evm",
"ts-sdk-cosmos",
"ts-sdk-sui",
].filter((_) => Fs.existsSync(Path.join(_, "docs/modules")))
}

Expand Down
1 change: 1 addition & 0 deletions ts-sdk-sui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/**
21 changes: 21 additions & 0 deletions ts-sdk-sui/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Union.fi Labs, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions ts-sdk-sui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Union TypeScript SDK for SUI

`@unionlabs/sdk-sui`
5 changes: 5 additions & 0 deletions ts-sdk-sui/docgen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "../node_modules/@effect/docgen/schema.json",
"srcLink": "https://github.com/unionlabs/union/tree/main/ts-sdk-sui/src/",
"exclude": ["src/internal/**/*.ts"]
}
Loading