@fastxyz/allset-sdk 1.0.0 → 1.0.2-testnet.0

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 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); // on-chain transaction hash
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) {
@@ -121,7 +104,7 @@ import { Signer, FastProvider } from '@fastxyz/sdk';
121
104
  import { executeWithdraw } from '@fastxyz/allset-sdk';
122
105
 
123
106
  const signer = new Signer('0xYourPrivateKey');
124
- const provider = new FastProvider({ rpcUrl: 'https://your-fast-rpc...' });
107
+ const provider = new FastProvider({ url: 'https://your-fast-rpc...' });
125
108
 
126
109
  const result = await executeWithdraw({
127
110
  fastBridgeAddress: 'fast1bridge...',
@@ -146,7 +129,7 @@ import { Signer, FastProvider } from '@fastxyz/sdk';
146
129
  import { executeIntent, buildTransferIntent } from '@fastxyz/allset-sdk';
147
130
 
148
131
  const signer = new Signer('0xYourPrivateKey');
149
- const provider = new FastProvider({ rpcUrl: 'https://...' });
132
+ const provider = new FastProvider({ url: 'https://...' });
150
133
 
151
134
  const result = await executeIntent({
152
135
  fastBridgeAddress: 'fast1bridge...',
package/dist/index.d.ts CHANGED
@@ -531,7 +531,7 @@ declare function executeDeposit(params: ExecuteDepositParams): Promise<BridgeRes
531
531
  * import { Signer, FastProvider } from '@fastxyz/sdk';
532
532
  *
533
533
  * const signer = new Signer(privateKeyHex);
534
- * const provider = new FastProvider({ rpcUrl: 'https://proxy.fast.xyz' });
534
+ * const provider = new FastProvider({ url: 'https://proxy.fast.xyz' });
535
535
  *
536
536
  * const intent = buildTransferIntent(tokenEvmAddress, receiverEvmAddress);
537
537
  * const result = await executeIntent({
@@ -560,7 +560,7 @@ declare function executeIntent(params: ExecuteIntentParams): Promise<BridgeResul
560
560
  * import { Signer, FastProvider } from '@fastxyz/sdk';
561
561
  *
562
562
  * const signer = new Signer(privateKeyHex);
563
- * const provider = new FastProvider({ rpcUrl: 'https://proxy.fast.xyz' });
563
+ * const provider = new FastProvider({ url: 'https://proxy.fast.xyz' });
564
564
  *
565
565
  * const result = await executeWithdraw({
566
566
  * fastBridgeAddress: 'fast1...',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastxyz/allset-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2-testnet.0",
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.0",
46
- "@fastxyz/sdk": "1.0.0"
45
+ "@fastxyz/schema": "2.0.0-testnet.0",
46
+ "@fastxyz/sdk": "2.0.0-testnet.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^25.5.0"