@fastxyz/allset-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -19
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: allset-sdk
|
|
3
|
-
description: >
|
|
4
|
-
AllSet SDK for bridging tokens between Fast network and EVM chains. Use executeDeposit
|
|
5
|
-
for EVM → Fast deposits and executeIntent for Fast → EVM withdrawals or custom operations.
|
|
6
|
-
All functions are pure — no embedded config, no file system access. Caller provides all
|
|
7
|
-
chain/contract addresses.
|
|
8
|
-
metadata:
|
|
9
|
-
short-description: Bridge tokens between Fast and EVM chains (pure functions, no config).
|
|
10
|
-
compatibility: Node.js 20+; browser-safe pure helpers (address, deposit, intents).
|
|
11
|
-
---
|
|
12
|
-
|
|
13
1
|
# @fastxyz/allset-sdk
|
|
14
2
|
|
|
15
3
|
AllSet SDK for bridging tokens between [Fast network](https://fast.xyz) and EVM chains.
|
|
@@ -80,12 +68,7 @@ console.log(result.txHash); // EVM transaction hash
|
|
|
80
68
|
Gas is paid in the deposit token (USDC) — no ETH required.
|
|
81
69
|
|
|
82
70
|
```ts
|
|
83
|
-
import {
|
|
84
|
-
smartDeposit,
|
|
85
|
-
encodeDepositCalldata,
|
|
86
|
-
fastAddressToBytes32,
|
|
87
|
-
InsufficientBalanceError,
|
|
88
|
-
} from '@fastxyz/allset-sdk';
|
|
71
|
+
import { smartDeposit, encodeDepositCalldata, fastAddressToBytes32, InsufficientBalanceError } from '@fastxyz/allset-sdk';
|
|
89
72
|
|
|
90
73
|
const receiverBytes32 = fastAddressToBytes32('fast1abc...');
|
|
91
74
|
const depositCalldata = encodeDepositCalldata({
|
|
@@ -105,7 +88,7 @@ try {
|
|
|
105
88
|
depositCalldata,
|
|
106
89
|
});
|
|
107
90
|
|
|
108
|
-
console.log(result.txHash);
|
|
91
|
+
console.log(result.txHash); // on-chain transaction hash
|
|
109
92
|
console.log(result.userOpHash); // ERC-4337 UserOperation hash
|
|
110
93
|
} catch (err) {
|
|
111
94
|
if (err instanceof InsufficientBalanceError) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastxyz/allset-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "AllSet SDK for AllSet bridge flows between Fast and EVM testnets",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"bech32": "^2.0.0",
|
|
43
43
|
"effect": "^3.21.0",
|
|
44
44
|
"viem": "^2.46.2",
|
|
45
|
-
"@fastxyz/schema": "1.0.
|
|
46
|
-
"@fastxyz/sdk": "1.0.
|
|
45
|
+
"@fastxyz/schema": "1.0.1",
|
|
46
|
+
"@fastxyz/sdk": "1.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^25.5.0"
|