@tuwaio/pulsar-core 0.8.3 → 0.9.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 +1 -1
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ pnpm add @tuwaio/pulsar-core @tuwaio/orbit-core zustand immer dayjs
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
> [!IMPORTANT]
|
|
29
|
-
> `@tuwaio/orbit-core` (>=0.
|
|
29
|
+
> `@tuwaio/orbit-core` (>=0.4), `zustand` (5.x), `immer` (11.x) and `dayjs` (1.x) are peer dependencies and must be installed alongside `@tuwaio/pulsar-core`. Add [`@tuwaio/pulsar-evm`](https://pulsar.docs.tuwa.io/packages/pulsar-evm) and/or [`@tuwaio/pulsar-solana`](https://pulsar.docs.tuwa.io/packages/pulsar-solana) for the chain adapters, and [`@tuwaio/pulsar-react`](https://pulsar.docs.tuwa.io/packages/pulsar-react) for React apps.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
package/dist/index.d.mts
CHANGED
|
@@ -56,8 +56,10 @@ type ActionTxKey = `0x${string}` | string;
|
|
|
56
56
|
*/
|
|
57
57
|
type BaseTransaction = {
|
|
58
58
|
/**
|
|
59
|
-
* The chain of the transaction: the numeric chain ID for EVM (for example `1`), or
|
|
60
|
-
* (for example `solana:devnet
|
|
59
|
+
* The chain of the transaction: the numeric chain ID for EVM (for example `1`), or the CAIP-2 chain ID with the
|
|
60
|
+
* genesis hash for Solana (for example `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` for devnet). `executeTxAction` derives
|
|
61
|
+
* it from `desiredChainID` with `setChainId` from `@tuwaio/orbit-core`. Transactions saved by Pulsar 0.8.3 and earlier
|
|
62
|
+
* keep `solana:<cluster>` (for example `solana:devnet`); the trackers and explorer links read both forms.
|
|
61
63
|
*/
|
|
62
64
|
chainId: number | string;
|
|
63
65
|
/**
|
|
@@ -230,7 +232,8 @@ type InitialTransactionParams = Pick<BaseTransaction, 'description' | 'title' |
|
|
|
230
232
|
actionFunction: (...args: unknown[]) => Promise<ActionTxKey | undefined>;
|
|
231
233
|
/**
|
|
232
234
|
* The chain the transaction must be sent on: a numeric chain ID for EVM (the wallet is asked to switch if needed),
|
|
233
|
-
* or a cluster
|
|
235
|
+
* or a Solana cluster (compared with the cluster of the connected wallet) as a moniker such as `'devnet'`, a Wallet
|
|
236
|
+
* Standard chain such as `'solana:devnet'` or a CAIP-2 chain ID with the genesis hash.
|
|
234
237
|
*/
|
|
235
238
|
desiredChainID: number | string;
|
|
236
239
|
/** When `true`, the transaction is created with `isTrackedModalOpen: true`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,10 @@ type ActionTxKey = `0x${string}` | string;
|
|
|
56
56
|
*/
|
|
57
57
|
type BaseTransaction = {
|
|
58
58
|
/**
|
|
59
|
-
* The chain of the transaction: the numeric chain ID for EVM (for example `1`), or
|
|
60
|
-
* (for example `solana:devnet
|
|
59
|
+
* The chain of the transaction: the numeric chain ID for EVM (for example `1`), or the CAIP-2 chain ID with the
|
|
60
|
+
* genesis hash for Solana (for example `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` for devnet). `executeTxAction` derives
|
|
61
|
+
* it from `desiredChainID` with `setChainId` from `@tuwaio/orbit-core`. Transactions saved by Pulsar 0.8.3 and earlier
|
|
62
|
+
* keep `solana:<cluster>` (for example `solana:devnet`); the trackers and explorer links read both forms.
|
|
61
63
|
*/
|
|
62
64
|
chainId: number | string;
|
|
63
65
|
/**
|
|
@@ -230,7 +232,8 @@ type InitialTransactionParams = Pick<BaseTransaction, 'description' | 'title' |
|
|
|
230
232
|
actionFunction: (...args: unknown[]) => Promise<ActionTxKey | undefined>;
|
|
231
233
|
/**
|
|
232
234
|
* The chain the transaction must be sent on: a numeric chain ID for EVM (the wallet is asked to switch if needed),
|
|
233
|
-
* or a cluster
|
|
235
|
+
* or a Solana cluster (compared with the cluster of the connected wallet) as a moniker such as `'devnet'`, a Wallet
|
|
236
|
+
* Standard chain such as `'solana:devnet'` or a CAIP-2 chain ID with the genesis hash.
|
|
234
237
|
*/
|
|
235
238
|
desiredChainID: number | string;
|
|
236
239
|
/** When `true`, the transaction is created with `isTrackedModalOpen: true`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/pulsar-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@tuwaio/orbit-core": ">=0.
|
|
48
|
+
"@tuwaio/orbit-core": ">=0.4",
|
|
49
49
|
"dayjs": "1.x.x",
|
|
50
50
|
"immer": "11.x.x",
|
|
51
51
|
"zustand": "5.x.x"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@tuwaio/orbit-core": "^0.
|
|
54
|
+
"@tuwaio/orbit-core": "^0.4.0",
|
|
55
55
|
"dayjs": "^1.11.23",
|
|
56
56
|
"immer": "^11.1.18",
|
|
57
57
|
"tsup": "^8.5.1",
|