@mysten/wallet-standard 0.2.7 → 0.2.8
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/CHANGELOG.md
CHANGED
package/dist/chains.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export declare const SUI_TESTNET_CHAIN = "sui:testnet";
|
|
|
5
5
|
/** Sui Localnet */
|
|
6
6
|
export declare const SUI_LOCALNET_CHAIN = "sui:localnet";
|
|
7
7
|
export declare const SUI_CHAINS: readonly ["sui:devnet", "sui:testnet", "sui:localnet"];
|
|
8
|
-
export
|
|
8
|
+
export type SuiChain = typeof SUI_DEVNET_CHAIN | typeof SUI_TESTNET_CHAIN | typeof SUI_LOCALNET_CHAIN;
|
package/dist/detect.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ConnectFeature, DisconnectFeature, EventsFeature, Wallet, WalletWithFeatures } from "@wallet-standard/core";
|
|
2
2
|
import { SuiSignAndExecuteTransactionFeature } from "./features";
|
|
3
|
-
export
|
|
3
|
+
export type StandardWalletAdapterWallet = WalletWithFeatures<ConnectFeature & EventsFeature & SuiSignAndExecuteTransactionFeature & Partial<DisconnectFeature>>;
|
|
4
4
|
export declare function isStandardWalletAdapterCompatibleWallet(wallet: Wallet): wallet is StandardWalletAdapterWallet;
|
package/dist/features/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import type { SuiSignAndExecuteTransactionFeature } from "./suiSignAndExecuteTra
|
|
|
3
3
|
/**
|
|
4
4
|
* Wallet Standard features that are unique to Sui, and that all Sui wallets are expected to implement.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type SuiFeatures = SuiSignAndExecuteTransactionFeature;
|
|
7
|
+
export type WalletWithSuiFeatures = WalletWithFeatures<SuiFeatures>;
|
|
8
8
|
export * from "./suiSignAndExecuteTransaction";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { SignableTransaction, SuiTransactionResponse } from "@mysten/sui.js";
|
|
2
2
|
/** The latest API version of the signAndExecuteTransaction API. */
|
|
3
|
-
export
|
|
3
|
+
export type SuiSignAndExecuteTransactionVersion = "1.0.0";
|
|
4
4
|
/**
|
|
5
5
|
* A Wallet Standard feature for signing a transaction, and submitting it to the
|
|
6
6
|
* network. The wallet is expected to submit the transaction to the network via RPC,
|
|
7
7
|
* and return the transaction response.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type SuiSignAndExecuteTransactionFeature = {
|
|
10
10
|
/** Namespace for the feature. */
|
|
11
11
|
"sui:signAndExecuteTransaction": {
|
|
12
12
|
/** Version of the feature API. */
|
|
@@ -14,7 +14,7 @@ export declare type SuiSignAndExecuteTransactionFeature = {
|
|
|
14
14
|
signAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type SuiSignAndExecuteTransactionMethod = (input: SuiSignAndExecuteTransactionInput) => Promise<SuiSignAndExecuteTransactionOutput>;
|
|
18
18
|
/** Input for signing and sending transactions. */
|
|
19
19
|
export interface SuiSignAndExecuteTransactionInput {
|
|
20
20
|
transaction: SignableTransaction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/wallet-standard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "A suite of standard utilities for implementing wallets based on the Wallet Standard.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@wallet-standard/core": "1.0.1",
|
|
23
|
-
"@mysten/sui.js": "0.
|
|
23
|
+
"@mysten/sui.js": "0.22.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsup": "^6.5.0",
|
|
27
|
-
"typescript": "^4.
|
|
27
|
+
"typescript": "^4.9.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|