@mysten/wallet-standard 0.14.9 → 0.15.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/CHANGELOG.md +6 -0
- package/dist/cjs/detect.js +2 -4
- package/dist/cjs/detect.js.map +2 -2
- package/dist/cjs/features/suiReportTransactionEffects.d.ts +6 -2
- package/dist/cjs/features/suiReportTransactionEffects.js +8 -0
- package/dist/cjs/features/suiReportTransactionEffects.js.map +2 -2
- package/dist/cjs/features/suiSignAndExecuteTransaction.d.ts +3 -1
- package/dist/cjs/features/suiSignAndExecuteTransaction.js +8 -0
- package/dist/cjs/features/suiSignAndExecuteTransaction.js.map +2 -2
- package/dist/cjs/features/suiSignAndExecuteTransactionBlock.d.ts +3 -1
- package/dist/cjs/features/suiSignAndExecuteTransactionBlock.js +8 -0
- package/dist/cjs/features/suiSignAndExecuteTransactionBlock.js.map +2 -2
- package/dist/cjs/features/suiSignMessage.d.ts +6 -1
- package/dist/cjs/features/suiSignMessage.js +8 -0
- package/dist/cjs/features/suiSignMessage.js.map +2 -2
- package/dist/cjs/features/suiSignPersonalMessage.d.ts +3 -1
- package/dist/cjs/features/suiSignPersonalMessage.js +8 -0
- package/dist/cjs/features/suiSignPersonalMessage.js.map +2 -2
- package/dist/cjs/features/suiSignTransaction.d.ts +3 -1
- package/dist/cjs/features/suiSignTransaction.js +8 -0
- package/dist/cjs/features/suiSignTransaction.js.map +2 -2
- package/dist/cjs/features/suiSignTransactionBlock.d.ts +3 -1
- package/dist/cjs/features/suiSignTransactionBlock.js +8 -0
- package/dist/cjs/features/suiSignTransactionBlock.js.map +2 -2
- package/dist/esm/detect.js +2 -4
- package/dist/esm/detect.js.map +2 -2
- package/dist/esm/features/suiReportTransactionEffects.d.ts +6 -2
- package/dist/esm/features/suiReportTransactionEffects.js +4 -0
- package/dist/esm/features/suiReportTransactionEffects.js.map +3 -3
- package/dist/esm/features/suiSignAndExecuteTransaction.d.ts +3 -1
- package/dist/esm/features/suiSignAndExecuteTransaction.js +4 -0
- package/dist/esm/features/suiSignAndExecuteTransaction.js.map +3 -3
- package/dist/esm/features/suiSignAndExecuteTransactionBlock.d.ts +3 -1
- package/dist/esm/features/suiSignAndExecuteTransactionBlock.js +4 -0
- package/dist/esm/features/suiSignAndExecuteTransactionBlock.js.map +3 -3
- package/dist/esm/features/suiSignMessage.d.ts +6 -1
- package/dist/esm/features/suiSignMessage.js +4 -0
- package/dist/esm/features/suiSignMessage.js.map +3 -3
- package/dist/esm/features/suiSignPersonalMessage.d.ts +3 -1
- package/dist/esm/features/suiSignPersonalMessage.js +4 -0
- package/dist/esm/features/suiSignPersonalMessage.js.map +3 -3
- package/dist/esm/features/suiSignTransaction.d.ts +3 -1
- package/dist/esm/features/suiSignTransaction.js +4 -0
- package/dist/esm/features/suiSignTransaction.js.map +3 -3
- package/dist/esm/features/suiSignTransactionBlock.d.ts +3 -1
- package/dist/esm/features/suiSignTransactionBlock.js +4 -0
- package/dist/esm/features/suiSignTransactionBlock.js.map +3 -3
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/detect.ts +2 -4
- package/src/features/suiReportTransactionEffects.ts +8 -2
- package/src/features/suiSignAndExecuteTransaction.ts +4 -1
- package/src/features/suiSignAndExecuteTransactionBlock.ts +4 -1
- package/src/features/suiSignMessage.ts +7 -1
- package/src/features/suiSignPersonalMessage.ts +4 -1
- package/src/features/suiSignTransaction.ts +4 -1
- package/src/features/suiSignTransactionBlock.ts +4 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/detect.js
CHANGED
|
@@ -21,10 +21,8 @@ __export(detect_exports, {
|
|
|
21
21
|
isWalletWithRequiredFeatureSet: () => isWalletWithRequiredFeatureSet
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(detect_exports);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"standard:events"
|
|
27
|
-
];
|
|
24
|
+
var import_core = require("@wallet-standard/core");
|
|
25
|
+
const REQUIRED_FEATURES = [import_core.StandardConnect, import_core.StandardEvents];
|
|
28
26
|
function isWalletWithRequiredFeatureSet(wallet, additionalFeatures = []) {
|
|
29
27
|
return [...REQUIRED_FEATURES, ...additionalFeatures].every(
|
|
30
28
|
(feature) => feature in wallet.features
|
package/dist/cjs/detect.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/detect.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Wallet, WalletWithFeatures } from '@wallet-standard/core';\n\nimport type { MinimallyRequiredFeatures } from './features/index.js';\n\n// These features are absolutely required for wallets to function in the Sui ecosystem.\n// Eventually, as wallets have more consistent support of features, we may want to extend this list.\nconst REQUIRED_FEATURES: (keyof MinimallyRequiredFeatures)[] = [
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { StandardConnect, StandardEvents } from '@wallet-standard/core';\nimport type { Wallet, WalletWithFeatures } from '@wallet-standard/core';\n\nimport type { MinimallyRequiredFeatures } from './features/index.js';\n\n// These features are absolutely required for wallets to function in the Sui ecosystem.\n// Eventually, as wallets have more consistent support of features, we may want to extend this list.\nconst REQUIRED_FEATURES: (keyof MinimallyRequiredFeatures)[] = [StandardConnect, StandardEvents];\n\nexport function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(\n\twallet: Wallet,\n\tadditionalFeatures: (keyof AdditionalFeatures)[] = [],\n): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures> {\n\treturn [...REQUIRED_FEATURES, ...additionalFeatures].every(\n\t\t(feature) => feature in wallet.features,\n\t);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAgD;AAOhD,MAAM,oBAAyD,CAAC,6BAAiB,0BAAc;AAExF,SAAS,+BACf,QACA,qBAAmD,CAAC,GAC2B;AAC/E,SAAO,CAAC,GAAG,mBAAmB,GAAG,kBAAkB,EAAE;AAAA,IACpD,CAAC,YAAY,WAAW,OAAO;AAAA,EAChC;AACD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiReportTransactionEffects = "sui:reportTransactionEffects";
|
|
4
|
+
/** The latest API version of the reportTransactionEffects API. */
|
|
5
|
+
export type SuiReportTransactionEffectsVersion = '1.0.0';
|
|
2
6
|
/**
|
|
3
7
|
* A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp
|
|
4
8
|
* The feature allows wallets to updated their caches using the effects of the transaction
|
|
@@ -6,9 +10,9 @@ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
|
6
10
|
*/
|
|
7
11
|
export type SuiReportTransactionEffectsFeature = {
|
|
8
12
|
/** Namespace for the feature. */
|
|
9
|
-
|
|
13
|
+
[SuiReportTransactionEffects]: {
|
|
10
14
|
/** Version of the feature API. */
|
|
11
|
-
version:
|
|
15
|
+
version: SuiReportTransactionEffectsVersion;
|
|
12
16
|
reportTransactionEffects: SuiReportTransactionEffectsMethod;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiReportTransactionEffects_exports = {};
|
|
20
|
+
__export(suiReportTransactionEffects_exports, {
|
|
21
|
+
SuiReportTransactionEffects: () => SuiReportTransactionEffects
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiReportTransactionEffects_exports);
|
|
24
|
+
const SuiReportTransactionEffects = "sui:reportTransactionEffects";
|
|
17
25
|
//# sourceMappingURL=suiReportTransactionEffects.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiReportTransactionEffects.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/**\n * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp\n * The feature allows wallets to updated their caches using the effects of the transaction\n * executed outside of the wallet\n */\nexport type SuiReportTransactionEffectsFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const SuiReportTransactionEffects = 'sui:reportTransactionEffects';\n\n/** The latest API version of the reportTransactionEffects API. */\nexport type SuiReportTransactionEffectsVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp\n * The feature allows wallets to updated their caches using the effects of the transaction\n * executed outside of the wallet\n */\nexport type SuiReportTransactionEffectsFeature = {\n\t/** Namespace for the feature. */\n\t[SuiReportTransactionEffects]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiReportTransactionEffectsVersion;\n\t\treportTransactionEffects: SuiReportTransactionEffectsMethod;\n\t};\n};\n\nexport type SuiReportTransactionEffectsMethod = (\n\tinput: SuiReportTransactionEffectsInput,\n) => Promise<void>;\n\n/** Input for signing transactions. */\nexport interface SuiReportTransactionEffectsInput {\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,8BAA8B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
|
|
2
4
|
/** The latest API version of the signAndExecuteTransactionBlock API. */
|
|
3
5
|
export type SuiSignAndExecuteTransactionVersion = '2.0.0';
|
|
4
6
|
/**
|
|
@@ -8,7 +10,7 @@ export type SuiSignAndExecuteTransactionVersion = '2.0.0';
|
|
|
8
10
|
*/
|
|
9
11
|
export type SuiSignAndExecuteTransactionFeature = {
|
|
10
12
|
/** Namespace for the feature. */
|
|
11
|
-
|
|
13
|
+
[SuiSignAndExecuteTransaction]: {
|
|
12
14
|
/** Version of the feature API. */
|
|
13
15
|
version: SuiSignAndExecuteTransactionVersion;
|
|
14
16
|
signAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignAndExecuteTransaction_exports = {};
|
|
20
|
+
__export(suiSignAndExecuteTransaction_exports, {
|
|
21
|
+
SuiSignAndExecuteTransaction: () => SuiSignAndExecuteTransaction
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignAndExecuteTransaction_exports);
|
|
24
|
+
const SuiSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
|
|
17
25
|
//# sourceMappingURL=suiSignAndExecuteTransaction.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignAndExecuteTransaction.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionVersion = '2.0.0';\n\n/**\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransaction = 'sui:signAndExecuteTransaction';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionVersion = '2.0.0';\n\n/**\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransaction]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionVersion;\n\t\tsignAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;\n\t};\n};\n\nexport type SuiSignAndExecuteTransactionMethod = (\n\tinput: SuiSignAndExecuteTransactionInput,\n) => Promise<SuiSignAndExecuteTransactionOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionInput extends SuiSignTransactionInput {}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionOutput extends SignedTransaction {\n\tdigest: string;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from '@mysten/sui/client';
|
|
2
2
|
import type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';
|
|
3
|
+
/** Name of the feature. */
|
|
4
|
+
export declare const SuiSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
|
|
3
5
|
/** The latest API version of the signAndExecuteTransactionBlock API. */
|
|
4
6
|
export type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';
|
|
5
7
|
/**
|
|
@@ -11,7 +13,7 @@ export type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';
|
|
|
11
13
|
*/
|
|
12
14
|
export type SuiSignAndExecuteTransactionBlockFeature = {
|
|
13
15
|
/** Namespace for the feature. */
|
|
14
|
-
|
|
16
|
+
[SuiSignAndExecuteTransactionBlock]: {
|
|
15
17
|
/** Version of the feature API. */
|
|
16
18
|
version: SuiSignAndExecuteTransactionBlockVersion;
|
|
17
19
|
/** @deprecated Use `sui:signAndExecuteTransaction` instead. */
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignAndExecuteTransactionBlock_exports = {};
|
|
20
|
+
__export(suiSignAndExecuteTransactionBlock_exports, {
|
|
21
|
+
SuiSignAndExecuteTransactionBlock: () => SuiSignAndExecuteTransactionBlock
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignAndExecuteTransactionBlock_exports);
|
|
24
|
+
const SuiSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
|
|
17
25
|
//# sourceMappingURL=suiSignAndExecuteTransactionBlock.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignAndExecuteTransactionBlock.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tSuiTransactionBlockResponse,\n\tSuiTransactionBlockResponseOptions,\n} from '@mysten/sui/client';\n\nimport type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signAndExecuteTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tSuiTransactionBlockResponse,\n\tSuiTransactionBlockResponseOptions,\n} from '@mysten/sui/client';\n\nimport type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransactionBlock = 'sui:signAndExecuteTransactionBlock';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signAndExecuteTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\n\t\tsignAndExecuteTransactionBlock: SuiSignAndExecuteTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\nexport type SuiSignAndExecuteTransactionBlockMethod = (\n\tinput: SuiSignAndExecuteTransactionBlockInput,\n) => Promise<SuiSignAndExecuteTransactionBlockOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {\n\t/**\n\t * @deprecated requestType will be ignored by JSON RPC in the future\n\t */\n\trequestType?: ExecuteTransactionRequestType;\n\t/** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */\n\toptions?: SuiTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockOutput extends SuiTransactionBlockResponse {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,oCAAoC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/**
|
|
3
|
+
* Name of the feature.
|
|
4
|
+
* @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
|
|
5
|
+
**/
|
|
6
|
+
export declare const SuiSignMessage = "sui:signMessage";
|
|
2
7
|
/**
|
|
3
8
|
* The latest API version of the signMessage API.
|
|
4
9
|
* @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
|
|
@@ -12,7 +17,7 @@ export type SuiSignMessageVersion = '1.0.0';
|
|
|
12
17
|
*/
|
|
13
18
|
export type SuiSignMessageFeature = {
|
|
14
19
|
/** Namespace for the feature. */
|
|
15
|
-
|
|
20
|
+
[SuiSignMessage]: {
|
|
16
21
|
/** Version of the feature API. */
|
|
17
22
|
version: SuiSignMessageVersion;
|
|
18
23
|
signMessage: SuiSignMessageMethod;
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignMessage_exports = {};
|
|
20
|
+
__export(suiSignMessage_exports, {
|
|
21
|
+
SuiSignMessage: () => SuiSignMessage
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignMessage_exports);
|
|
24
|
+
const SuiSignMessage = "sui:signMessage";
|
|
17
25
|
//# sourceMappingURL=suiSignMessage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignMessage.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@wallet-standard/core';\n\n/**\n * The latest API version of the signMessage API.\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport type SuiSignMessageVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for signing a personal message, and returning the\n * message bytes that were signed, and message signature.\n *\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport type SuiSignMessageFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@wallet-standard/core';\n\n/**\n * Name of the feature.\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n **/\nexport const SuiSignMessage = 'sui:signMessage';\n\n/**\n * The latest API version of the signMessage API.\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport type SuiSignMessageVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for signing a personal message, and returning the\n * message bytes that were signed, and message signature.\n *\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport type SuiSignMessageFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignMessage]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignMessageVersion;\n\t\tsignMessage: SuiSignMessageMethod;\n\t};\n};\n\n/** @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature */\nexport type SuiSignMessageMethod = (input: SuiSignMessageInput) => Promise<SuiSignMessageOutput>;\n\n/**\n * Input for signing messages.\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport interface SuiSignMessageInput {\n\tmessage: Uint8Array;\n\taccount: WalletAccount;\n}\n\n/**\n * Output of signing messages.\n * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature\n */\nexport interface SuiSignMessageOutput {\n\t/** Base64 message bytes. */\n\tmessageBytes: string;\n\t/** Base64 encoded signature */\n\tsignature: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,MAAM,iBAAiB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiSignPersonalMessage = "sui:signPersonalMessage";
|
|
2
4
|
/** The latest API version of the signPersonalMessage API. */
|
|
3
5
|
export type SuiSignPersonalMessageVersion = '1.1.0';
|
|
4
6
|
/**
|
|
@@ -7,7 +9,7 @@ export type SuiSignPersonalMessageVersion = '1.1.0';
|
|
|
7
9
|
*/
|
|
8
10
|
export type SuiSignPersonalMessageFeature = {
|
|
9
11
|
/** Namespace for the feature. */
|
|
10
|
-
|
|
12
|
+
[SuiSignPersonalMessage]: {
|
|
11
13
|
/** Version of the feature API. */
|
|
12
14
|
version: SuiSignPersonalMessageVersion;
|
|
13
15
|
signPersonalMessage: SuiSignPersonalMessageMethod;
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignPersonalMessage_exports = {};
|
|
20
|
+
__export(suiSignPersonalMessage_exports, {
|
|
21
|
+
SuiSignPersonalMessage: () => SuiSignPersonalMessage
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignPersonalMessage_exports);
|
|
24
|
+
const SuiSignPersonalMessage = "sui:signPersonalMessage";
|
|
17
25
|
//# sourceMappingURL=suiSignPersonalMessage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignPersonalMessage.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** The latest API version of the signPersonalMessage API. */\nexport type SuiSignPersonalMessageVersion = '1.1.0';\n\n/**\n * A Wallet Standard feature for signing a personal message, and returning the\n * message bytes that were signed, and message signature.\n */\nexport type SuiSignPersonalMessageFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const SuiSignPersonalMessage = 'sui:signPersonalMessage';\n\n/** The latest API version of the signPersonalMessage API. */\nexport type SuiSignPersonalMessageVersion = '1.1.0';\n\n/**\n * A Wallet Standard feature for signing a personal message, and returning the\n * message bytes that were signed, and message signature.\n */\nexport type SuiSignPersonalMessageFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignPersonalMessage]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignPersonalMessageVersion;\n\t\tsignPersonalMessage: SuiSignPersonalMessageMethod;\n\t};\n};\n\nexport type SuiSignPersonalMessageMethod = (\n\tinput: SuiSignPersonalMessageInput,\n) => Promise<SuiSignPersonalMessageOutput>;\n\n/** Input for signing personal messages. */\nexport interface SuiSignPersonalMessageInput {\n\tmessage: Uint8Array;\n\taccount: WalletAccount;\n\tchain?: IdentifierString;\n}\n\n/** Output of signing personal messages. */\nexport interface SuiSignPersonalMessageOutput extends SignedPersonalMessage {}\n\nexport interface SignedPersonalMessage {\n\t/** Base64 encoded message bytes */\n\tbytes: string;\n\t/** Base64 encoded signature */\n\tsignature: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,yBAAyB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiSignTransaction = "sui:signTransaction";
|
|
2
4
|
/** The latest API version of the signTransaction API. */
|
|
3
5
|
export type SuiSignTransactionVersion = '2.0.0';
|
|
4
6
|
/**
|
|
@@ -7,7 +9,7 @@ export type SuiSignTransactionVersion = '2.0.0';
|
|
|
7
9
|
*/
|
|
8
10
|
export type SuiSignTransactionFeature = {
|
|
9
11
|
/** Namespace for the feature. */
|
|
10
|
-
|
|
12
|
+
[SuiSignTransaction]: {
|
|
11
13
|
/** Version of the feature API. */
|
|
12
14
|
version: SuiSignTransactionVersion;
|
|
13
15
|
signTransaction: SuiSignTransactionMethod;
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignTransaction_exports = {};
|
|
20
|
+
__export(suiSignTransaction_exports, {
|
|
21
|
+
SuiSignTransaction: () => SuiSignTransaction
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignTransaction_exports);
|
|
24
|
+
const SuiSignTransaction = "sui:signTransaction";
|
|
17
25
|
//# sourceMappingURL=suiSignTransaction.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignTransaction.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** The latest API version of the signTransaction API. */\nexport type SuiSignTransactionVersion = '2.0.0';\n\n/**\n * A Wallet Standard feature for signing a transaction, and returning the\n * serialized transaction and transaction signature.\n */\nexport type SuiSignTransactionFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const SuiSignTransaction = 'sui:signTransaction';\n\n/** The latest API version of the signTransaction API. */\nexport type SuiSignTransactionVersion = '2.0.0';\n\n/**\n * A Wallet Standard feature for signing a transaction, and returning the\n * serialized transaction and transaction signature.\n */\nexport type SuiSignTransactionFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignTransaction]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignTransactionVersion;\n\t\tsignTransaction: SuiSignTransactionMethod;\n\t};\n};\n\nexport type SuiSignTransactionMethod = (\n\tinput: SuiSignTransactionInput,\n) => Promise<SignedTransaction>;\n\n/** Input for signing transactions. */\nexport interface SuiSignTransactionInput {\n\ttransaction: { toJSON: () => Promise<string> };\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n\tsignal?: AbortSignal;\n}\n\n/** Output of signing transactions. */\n\nexport interface SignedTransaction {\n\t/** Transaction as base64 encoded bcs. */\n\tbytes: string;\n\t/** Base64 encoded signature */\n\tsignature: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,qBAAqB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
3
|
+
/** Name of the feature. */
|
|
4
|
+
export declare const SuiSignTransactionBlock = "sui:signTransactionBlock";
|
|
3
5
|
/** The latest API version of the signTransactionBlock API. */
|
|
4
6
|
export type SuiSignTransactionBlockVersion = '1.0.0';
|
|
5
7
|
/**
|
|
@@ -10,7 +12,7 @@ export type SuiSignTransactionBlockVersion = '1.0.0';
|
|
|
10
12
|
*/
|
|
11
13
|
export type SuiSignTransactionBlockFeature = {
|
|
12
14
|
/** Namespace for the feature. */
|
|
13
|
-
|
|
15
|
+
[SuiSignTransactionBlock]: {
|
|
14
16
|
/** Version of the feature API. */
|
|
15
17
|
version: SuiSignTransactionBlockVersion;
|
|
16
18
|
/** @deprecated Use `sui:signTransaction` instead. */
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var suiSignTransactionBlock_exports = {};
|
|
20
|
+
__export(suiSignTransactionBlock_exports, {
|
|
21
|
+
SuiSignTransactionBlock: () => SuiSignTransactionBlock
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(suiSignTransactionBlock_exports);
|
|
24
|
+
const SuiSignTransactionBlock = "sui:signTransactionBlock";
|
|
17
25
|
//# sourceMappingURL=suiSignTransactionBlock.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/suiSignTransactionBlock.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Transaction } from '@mysten/sui/transactions';\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** The latest API version of the signTransactionBlock API. */\nexport type SuiSignTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and returning the\n * serialized transaction and transaction signature.\n */\nexport type SuiSignTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Transaction } from '@mysten/sui/transactions';\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const SuiSignTransactionBlock = 'sui:signTransactionBlock';\n\n/** The latest API version of the signTransactionBlock API. */\nexport type SuiSignTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and returning the\n * serialized transaction and transaction signature.\n */\nexport type SuiSignTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signTransaction` instead. */\n\t\tsignTransactionBlock: SuiSignTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signTransaction` instead. */\nexport type SuiSignTransactionBlockMethod = (\n\tinput: SuiSignTransactionBlockInput,\n) => Promise<SuiSignTransactionBlockOutput>;\n\n/** Input for signing transactions. */\nexport interface SuiSignTransactionBlockInput {\n\ttransactionBlock: Transaction;\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n}\n\n/** Output of signing transactions. */\nexport interface SuiSignTransactionBlockOutput extends SignedTransactionBlock {}\n\nexport interface SignedTransactionBlock {\n\t/** Transaction as base64 encoded bcs. */\n\ttransactionBlockBytes: string;\n\t/** Base64 encoded signature */\n\tsignature: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,MAAM,0BAA0B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/detect.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"standard:events"
|
|
4
|
-
];
|
|
1
|
+
import { StandardConnect, StandardEvents } from "@wallet-standard/core";
|
|
2
|
+
const REQUIRED_FEATURES = [StandardConnect, StandardEvents];
|
|
5
3
|
function isWalletWithRequiredFeatureSet(wallet, additionalFeatures = []) {
|
|
6
4
|
return [...REQUIRED_FEATURES, ...additionalFeatures].every(
|
|
7
5
|
(feature) => feature in wallet.features
|
package/dist/esm/detect.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/detect.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Wallet, WalletWithFeatures } from '@wallet-standard/core';\n\nimport type { MinimallyRequiredFeatures } from './features/index.js';\n\n// These features are absolutely required for wallets to function in the Sui ecosystem.\n// Eventually, as wallets have more consistent support of features, we may want to extend this list.\nconst REQUIRED_FEATURES: (keyof MinimallyRequiredFeatures)[] = [
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { StandardConnect, StandardEvents } from '@wallet-standard/core';\nimport type { Wallet, WalletWithFeatures } from '@wallet-standard/core';\n\nimport type { MinimallyRequiredFeatures } from './features/index.js';\n\n// These features are absolutely required for wallets to function in the Sui ecosystem.\n// Eventually, as wallets have more consistent support of features, we may want to extend this list.\nconst REQUIRED_FEATURES: (keyof MinimallyRequiredFeatures)[] = [StandardConnect, StandardEvents];\n\nexport function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(\n\twallet: Wallet,\n\tadditionalFeatures: (keyof AdditionalFeatures)[] = [],\n): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures> {\n\treturn [...REQUIRED_FEATURES, ...additionalFeatures].every(\n\t\t(feature) => feature in wallet.features,\n\t);\n}\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,iBAAiB,sBAAsB;AAOhD,MAAM,oBAAyD,CAAC,iBAAiB,cAAc;AAExF,SAAS,+BACf,QACA,qBAAmD,CAAC,GAC2B;AAC/E,SAAO,CAAC,GAAG,mBAAmB,GAAG,kBAAkB,EAAE;AAAA,IACpD,CAAC,YAAY,WAAW,OAAO;AAAA,EAChC;AACD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiReportTransactionEffects = "sui:reportTransactionEffects";
|
|
4
|
+
/** The latest API version of the reportTransactionEffects API. */
|
|
5
|
+
export type SuiReportTransactionEffectsVersion = '1.0.0';
|
|
2
6
|
/**
|
|
3
7
|
* A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp
|
|
4
8
|
* The feature allows wallets to updated their caches using the effects of the transaction
|
|
@@ -6,9 +10,9 @@ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
|
6
10
|
*/
|
|
7
11
|
export type SuiReportTransactionEffectsFeature = {
|
|
8
12
|
/** Namespace for the feature. */
|
|
9
|
-
|
|
13
|
+
[SuiReportTransactionEffects]: {
|
|
10
14
|
/** Version of the feature API. */
|
|
11
|
-
version:
|
|
15
|
+
version: SuiReportTransactionEffectsVersion;
|
|
12
16
|
reportTransactionEffects: SuiReportTransactionEffectsMethod;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
3
|
+
"sources": ["../../../src/features/suiReportTransactionEffects.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const SuiReportTransactionEffects = 'sui:reportTransactionEffects';\n\n/** The latest API version of the reportTransactionEffects API. */\nexport type SuiReportTransactionEffectsVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp\n * The feature allows wallets to updated their caches using the effects of the transaction\n * executed outside of the wallet\n */\nexport type SuiReportTransactionEffectsFeature = {\n\t/** Namespace for the feature. */\n\t[SuiReportTransactionEffects]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiReportTransactionEffectsVersion;\n\t\treportTransactionEffects: SuiReportTransactionEffectsMethod;\n\t};\n};\n\nexport type SuiReportTransactionEffectsMethod = (\n\tinput: SuiReportTransactionEffectsInput,\n) => Promise<void>;\n\n/** Input for signing transactions. */\nexport interface SuiReportTransactionEffectsInput {\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
|
|
5
|
+
"mappings": "AAMO,MAAM,8BAA8B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const SuiSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
|
|
2
4
|
/** The latest API version of the signAndExecuteTransactionBlock API. */
|
|
3
5
|
export type SuiSignAndExecuteTransactionVersion = '2.0.0';
|
|
4
6
|
/**
|
|
@@ -8,7 +10,7 @@ export type SuiSignAndExecuteTransactionVersion = '2.0.0';
|
|
|
8
10
|
*/
|
|
9
11
|
export type SuiSignAndExecuteTransactionFeature = {
|
|
10
12
|
/** Namespace for the feature. */
|
|
11
|
-
|
|
13
|
+
[SuiSignAndExecuteTransaction]: {
|
|
12
14
|
/** Version of the feature API. */
|
|
13
15
|
version: SuiSignAndExecuteTransactionVersion;
|
|
14
16
|
signAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
3
|
+
"sources": ["../../../src/features/suiSignAndExecuteTransaction.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransaction = 'sui:signAndExecuteTransaction';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionVersion = '2.0.0';\n\n/**\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransaction]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionVersion;\n\t\tsignAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;\n\t};\n};\n\nexport type SuiSignAndExecuteTransactionMethod = (\n\tinput: SuiSignAndExecuteTransactionInput,\n) => Promise<SuiSignAndExecuteTransactionOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionInput extends SuiSignTransactionInput {}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionOutput extends SignedTransaction {\n\tdigest: string;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
|
|
5
|
+
"mappings": "AAMO,MAAM,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from '@mysten/sui/client';
|
|
2
2
|
import type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';
|
|
3
|
+
/** Name of the feature. */
|
|
4
|
+
export declare const SuiSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
|
|
3
5
|
/** The latest API version of the signAndExecuteTransactionBlock API. */
|
|
4
6
|
export type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';
|
|
5
7
|
/**
|
|
@@ -11,7 +13,7 @@ export type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';
|
|
|
11
13
|
*/
|
|
12
14
|
export type SuiSignAndExecuteTransactionBlockFeature = {
|
|
13
15
|
/** Namespace for the feature. */
|
|
14
|
-
|
|
16
|
+
[SuiSignAndExecuteTransactionBlock]: {
|
|
15
17
|
/** Version of the feature API. */
|
|
16
18
|
version: SuiSignAndExecuteTransactionBlockVersion;
|
|
17
19
|
/** @deprecated Use `sui:signAndExecuteTransaction` instead. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
3
|
+
"sources": ["../../../src/features/suiSignAndExecuteTransactionBlock.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tSuiTransactionBlockResponse,\n\tSuiTransactionBlockResponseOptions,\n} from '@mysten/sui/client';\n\nimport type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransactionBlock = 'sui:signAndExecuteTransactionBlock';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signAndExecuteTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\n\t\tsignAndExecuteTransactionBlock: SuiSignAndExecuteTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\nexport type SuiSignAndExecuteTransactionBlockMethod = (\n\tinput: SuiSignAndExecuteTransactionBlockInput,\n) => Promise<SuiSignAndExecuteTransactionBlockOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {\n\t/**\n\t * @deprecated requestType will be ignored by JSON RPC in the future\n\t */\n\trequestType?: ExecuteTransactionRequestType;\n\t/** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */\n\toptions?: SuiTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockOutput extends SuiTransactionBlockResponse {}\n"],
|
|
5
|
+
"mappings": "AAYO,MAAM,oCAAoC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/**
|
|
3
|
+
* Name of the feature.
|
|
4
|
+
* @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
|
|
5
|
+
**/
|
|
6
|
+
export declare const SuiSignMessage = "sui:signMessage";
|
|
2
7
|
/**
|
|
3
8
|
* The latest API version of the signMessage API.
|
|
4
9
|
* @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
|
|
@@ -12,7 +17,7 @@ export type SuiSignMessageVersion = '1.0.0';
|
|
|
12
17
|
*/
|
|
13
18
|
export type SuiSignMessageFeature = {
|
|
14
19
|
/** Namespace for the feature. */
|
|
15
|
-
|
|
20
|
+
[SuiSignMessage]: {
|
|
16
21
|
/** Version of the feature API. */
|
|
17
22
|
version: SuiSignMessageVersion;
|
|
18
23
|
signMessage: SuiSignMessageMethod;
|