@mysten/wallet-standard 0.19.9 → 0.20.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +15 -2
  2. package/dist/chains.d.mts +21 -0
  3. package/dist/chains.d.mts.map +1 -0
  4. package/dist/chains.mjs +26 -0
  5. package/dist/chains.mjs.map +1 -0
  6. package/dist/detect.d.mts +8 -0
  7. package/dist/detect.d.mts.map +1 -0
  8. package/dist/detect.mjs +11 -0
  9. package/dist/detect.mjs.map +1 -0
  10. package/dist/features/index.d.mts +25 -0
  11. package/dist/features/index.d.mts.map +1 -0
  12. package/dist/features/suiGetCapabilities.d.mts +19 -0
  13. package/dist/features/suiGetCapabilities.d.mts.map +1 -0
  14. package/dist/features/suiGetCapabilities.mjs +6 -0
  15. package/dist/features/suiGetCapabilities.mjs.map +1 -0
  16. package/dist/features/suiSignAndExecuteTransaction.d.mts +32 -0
  17. package/dist/features/suiSignAndExecuteTransaction.d.mts.map +1 -0
  18. package/dist/features/suiSignAndExecuteTransaction.mjs +7 -0
  19. package/dist/{esm/features/suiSignAndExecuteTransaction.js.map → features/suiSignAndExecuteTransaction.mjs.map} +1 -7
  20. package/dist/features/suiSignAndExecuteTransactionBlock.d.mts +40 -0
  21. package/dist/features/suiSignAndExecuteTransactionBlock.d.mts.map +1 -0
  22. package/dist/features/suiSignAndExecuteTransactionBlock.mjs +7 -0
  23. package/dist/features/suiSignAndExecuteTransactionBlock.mjs.map +1 -0
  24. package/dist/{esm/features/suiSignMessage.d.ts → features/suiSignMessage.d.mts} +25 -19
  25. package/dist/features/suiSignMessage.d.mts.map +1 -0
  26. package/dist/features/suiSignMessage.mjs +10 -0
  27. package/dist/features/suiSignMessage.mjs.map +1 -0
  28. package/dist/features/suiSignPersonalMessage.d.mts +37 -0
  29. package/dist/features/suiSignPersonalMessage.d.mts.map +1 -0
  30. package/dist/features/suiSignPersonalMessage.mjs +7 -0
  31. package/dist/features/suiSignPersonalMessage.mjs.map +1 -0
  32. package/dist/features/suiSignTransaction.d.mts +39 -0
  33. package/dist/features/suiSignTransaction.d.mts.map +1 -0
  34. package/dist/features/suiSignTransaction.mjs +7 -0
  35. package/dist/features/suiSignTransaction.mjs.map +1 -0
  36. package/dist/features/suiSignTransactionBlock.d.mts +42 -0
  37. package/dist/features/suiSignTransactionBlock.d.mts.map +1 -0
  38. package/dist/features/suiSignTransactionBlock.mjs +7 -0
  39. package/dist/features/suiSignTransactionBlock.mjs.map +1 -0
  40. package/dist/index.d.mts +14 -0
  41. package/dist/index.mjs +14 -0
  42. package/dist/types.d.mts +163 -0
  43. package/dist/types.d.mts.map +1 -0
  44. package/dist/wallet.d.mts +24 -0
  45. package/dist/wallet.d.mts.map +1 -0
  46. package/dist/wallet.mjs +45 -0
  47. package/dist/wallet.mjs.map +1 -0
  48. package/package.json +26 -17
  49. package/src/features/index.ts +0 -3
  50. package/src/features/suiSignAndExecuteTransactionBlock.ts +1 -1
  51. package/dist/cjs/chains.d.ts +0 -16
  52. package/dist/cjs/chains.js +0 -42
  53. package/dist/cjs/chains.js.map +0 -7
  54. package/dist/cjs/detect.d.ts +0 -3
  55. package/dist/cjs/detect.js +0 -31
  56. package/dist/cjs/detect.js.map +0 -7
  57. package/dist/cjs/features/index.d.ts +0 -28
  58. package/dist/cjs/features/index.js +0 -26
  59. package/dist/cjs/features/index.js.map +0 -7
  60. package/dist/cjs/features/suiGetCapabilities.d.ts +0 -15
  61. package/dist/cjs/features/suiGetCapabilities.js +0 -25
  62. package/dist/cjs/features/suiGetCapabilities.js.map +0 -7
  63. package/dist/cjs/features/suiReportTransactionEffects.d.ts +0 -26
  64. package/dist/cjs/features/suiReportTransactionEffects.js +0 -25
  65. package/dist/cjs/features/suiReportTransactionEffects.js.map +0 -7
  66. package/dist/cjs/features/suiSignAndExecuteTransaction.d.ts +0 -28
  67. package/dist/cjs/features/suiSignAndExecuteTransaction.js +0 -25
  68. package/dist/cjs/features/suiSignAndExecuteTransaction.js.map +0 -7
  69. package/dist/cjs/features/suiSignAndExecuteTransactionBlock.d.ts +0 -36
  70. package/dist/cjs/features/suiSignAndExecuteTransactionBlock.js +0 -25
  71. package/dist/cjs/features/suiSignAndExecuteTransactionBlock.js.map +0 -7
  72. package/dist/cjs/features/suiSignMessage.d.ts +0 -45
  73. package/dist/cjs/features/suiSignMessage.js +0 -25
  74. package/dist/cjs/features/suiSignMessage.js.map +0 -7
  75. package/dist/cjs/features/suiSignPersonalMessage.d.ts +0 -33
  76. package/dist/cjs/features/suiSignPersonalMessage.js +0 -25
  77. package/dist/cjs/features/suiSignPersonalMessage.js.map +0 -7
  78. package/dist/cjs/features/suiSignTransaction.d.ts +0 -34
  79. package/dist/cjs/features/suiSignTransaction.js +0 -25
  80. package/dist/cjs/features/suiSignTransaction.js.map +0 -7
  81. package/dist/cjs/features/suiSignTransactionBlock.d.ts +0 -38
  82. package/dist/cjs/features/suiSignTransactionBlock.js +0 -25
  83. package/dist/cjs/features/suiSignTransactionBlock.js.map +0 -7
  84. package/dist/cjs/index.d.ts +0 -6
  85. package/dist/cjs/index.js +0 -32
  86. package/dist/cjs/index.js.map +0 -7
  87. package/dist/cjs/package.json +0 -5
  88. package/dist/cjs/types.d.ts +0 -159
  89. package/dist/cjs/types.js +0 -17
  90. package/dist/cjs/types.js.map +0 -7
  91. package/dist/cjs/wallet.d.ts +0 -18
  92. package/dist/cjs/wallet.js +0 -80
  93. package/dist/cjs/wallet.js.map +0 -7
  94. package/dist/esm/chains.d.ts +0 -16
  95. package/dist/esm/chains.js +0 -22
  96. package/dist/esm/chains.js.map +0 -7
  97. package/dist/esm/detect.d.ts +0 -3
  98. package/dist/esm/detect.js +0 -11
  99. package/dist/esm/detect.js.map +0 -7
  100. package/dist/esm/features/index.d.ts +0 -28
  101. package/dist/esm/features/index.js +0 -9
  102. package/dist/esm/features/index.js.map +0 -7
  103. package/dist/esm/features/suiGetCapabilities.d.ts +0 -15
  104. package/dist/esm/features/suiGetCapabilities.js +0 -5
  105. package/dist/esm/features/suiGetCapabilities.js.map +0 -7
  106. package/dist/esm/features/suiReportTransactionEffects.d.ts +0 -26
  107. package/dist/esm/features/suiReportTransactionEffects.js +0 -5
  108. package/dist/esm/features/suiReportTransactionEffects.js.map +0 -7
  109. package/dist/esm/features/suiSignAndExecuteTransaction.d.ts +0 -28
  110. package/dist/esm/features/suiSignAndExecuteTransaction.js +0 -5
  111. package/dist/esm/features/suiSignAndExecuteTransactionBlock.d.ts +0 -36
  112. package/dist/esm/features/suiSignAndExecuteTransactionBlock.js +0 -5
  113. package/dist/esm/features/suiSignAndExecuteTransactionBlock.js.map +0 -7
  114. package/dist/esm/features/suiSignMessage.js +0 -5
  115. package/dist/esm/features/suiSignMessage.js.map +0 -7
  116. package/dist/esm/features/suiSignPersonalMessage.d.ts +0 -33
  117. package/dist/esm/features/suiSignPersonalMessage.js +0 -5
  118. package/dist/esm/features/suiSignPersonalMessage.js.map +0 -7
  119. package/dist/esm/features/suiSignTransaction.d.ts +0 -34
  120. package/dist/esm/features/suiSignTransaction.js +0 -5
  121. package/dist/esm/features/suiSignTransaction.js.map +0 -7
  122. package/dist/esm/features/suiSignTransactionBlock.d.ts +0 -38
  123. package/dist/esm/features/suiSignTransactionBlock.js +0 -5
  124. package/dist/esm/features/suiSignTransactionBlock.js.map +0 -7
  125. package/dist/esm/index.d.ts +0 -6
  126. package/dist/esm/index.js +0 -11
  127. package/dist/esm/index.js.map +0 -7
  128. package/dist/esm/package.json +0 -5
  129. package/dist/esm/types.d.ts +0 -159
  130. package/dist/esm/types.js +0 -1
  131. package/dist/esm/types.js.map +0 -7
  132. package/dist/esm/wallet.d.ts +0 -18
  133. package/dist/esm/wallet.js +0 -60
  134. package/dist/esm/wallet.js.map +0 -7
  135. package/dist/tsconfig.esm.tsbuildinfo +0 -1
  136. package/dist/tsconfig.tsbuildinfo +0 -1
  137. package/src/features/suiReportTransactionEffects.ts +0 -36
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiReportTransactionEffects_exports = {};
20
- __export(suiReportTransactionEffects_exports, {
21
- SuiReportTransactionEffects: () => SuiReportTransactionEffects
22
- });
23
- module.exports = __toCommonJS(suiReportTransactionEffects_exports);
24
- const SuiReportTransactionEffects = "sui:reportTransactionEffects";
25
- //# sourceMappingURL=suiReportTransactionEffects.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,28 +0,0 @@
1
- import type { SignedTransaction, SuiSignTransactionInput } from './suiSignTransaction.js';
2
- /** Name of the feature. */
3
- export declare const SuiSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
4
- /** The latest API version of the signAndExecuteTransactionBlock API. */
5
- export type SuiSignAndExecuteTransactionVersion = '2.0.0';
6
- /**
7
- * A Wallet Standard feature for signing a transaction, and submitting it to the
8
- * network. The wallet is expected to submit the transaction to the network via RPC,
9
- * and return the transaction response.
10
- */
11
- export type SuiSignAndExecuteTransactionFeature = {
12
- /** Namespace for the feature. */
13
- [SuiSignAndExecuteTransaction]: {
14
- /** Version of the feature API. */
15
- version: SuiSignAndExecuteTransactionVersion;
16
- signAndExecuteTransaction: SuiSignAndExecuteTransactionMethod;
17
- };
18
- };
19
- export type SuiSignAndExecuteTransactionMethod = (input: SuiSignAndExecuteTransactionInput) => Promise<SuiSignAndExecuteTransactionOutput>;
20
- /** Input for signing and sending transactions. */
21
- export interface SuiSignAndExecuteTransactionInput extends SuiSignTransactionInput {
22
- }
23
- /** Output of signing and sending transactions. */
24
- export interface SuiSignAndExecuteTransactionOutput extends SignedTransaction {
25
- digest: string;
26
- /** Transaction effects as base64 encoded bcs. */
27
- effects: string;
28
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignAndExecuteTransaction_exports = {};
20
- __export(suiSignAndExecuteTransaction_exports, {
21
- SuiSignAndExecuteTransaction: () => SuiSignAndExecuteTransaction
22
- });
23
- module.exports = __toCommonJS(suiSignAndExecuteTransaction_exports);
24
- const SuiSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
25
- //# sourceMappingURL=suiSignAndExecuteTransaction.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,36 +0,0 @@
1
- import type { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from '@mysten/sui/client';
2
- import type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';
3
- /** Name of the feature. */
4
- export declare const SuiSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
5
- /** The latest API version of the signAndExecuteTransactionBlock API. */
6
- export type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';
7
- /**
8
- * @deprecated Use `sui:signAndExecuteTransaction` instead.
9
- *
10
- * A Wallet Standard feature for signing a transaction, and submitting it to the
11
- * network. The wallet is expected to submit the transaction to the network via RPC,
12
- * and return the transaction response.
13
- */
14
- export type SuiSignAndExecuteTransactionBlockFeature = {
15
- /** Namespace for the feature. */
16
- [SuiSignAndExecuteTransactionBlock]: {
17
- /** Version of the feature API. */
18
- version: SuiSignAndExecuteTransactionBlockVersion;
19
- /** @deprecated Use `sui:signAndExecuteTransaction` instead. */
20
- signAndExecuteTransactionBlock: SuiSignAndExecuteTransactionBlockMethod;
21
- };
22
- };
23
- /** @deprecated Use `sui:signAndExecuteTransaction` instead. */
24
- export type SuiSignAndExecuteTransactionBlockMethod = (input: SuiSignAndExecuteTransactionBlockInput) => Promise<SuiSignAndExecuteTransactionBlockOutput>;
25
- /** Input for signing and sending transactions. */
26
- export interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {
27
- /**
28
- * @deprecated requestType will be ignored by JSON RPC in the future
29
- */
30
- requestType?: ExecuteTransactionRequestType;
31
- /** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */
32
- options?: SuiTransactionBlockResponseOptions;
33
- }
34
- /** Output of signing and sending transactions. */
35
- export interface SuiSignAndExecuteTransactionBlockOutput extends SuiTransactionBlockResponse {
36
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignAndExecuteTransactionBlock_exports = {};
20
- __export(suiSignAndExecuteTransactionBlock_exports, {
21
- SuiSignAndExecuteTransactionBlock: () => SuiSignAndExecuteTransactionBlock
22
- });
23
- module.exports = __toCommonJS(suiSignAndExecuteTransactionBlock_exports);
24
- const SuiSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
25
- //# sourceMappingURL=suiSignAndExecuteTransactionBlock.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,45 +0,0 @@
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";
7
- /**
8
- * The latest API version of the signMessage API.
9
- * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
10
- */
11
- export type SuiSignMessageVersion = '1.0.0';
12
- /**
13
- * A Wallet Standard feature for signing a personal message, and returning the
14
- * message bytes that were signed, and message signature.
15
- *
16
- * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
17
- */
18
- export type SuiSignMessageFeature = {
19
- /** Namespace for the feature. */
20
- [SuiSignMessage]: {
21
- /** Version of the feature API. */
22
- version: SuiSignMessageVersion;
23
- signMessage: SuiSignMessageMethod;
24
- };
25
- };
26
- /** @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature */
27
- export type SuiSignMessageMethod = (input: SuiSignMessageInput) => Promise<SuiSignMessageOutput>;
28
- /**
29
- * Input for signing messages.
30
- * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
31
- */
32
- export interface SuiSignMessageInput {
33
- message: Uint8Array;
34
- account: WalletAccount;
35
- }
36
- /**
37
- * Output of signing messages.
38
- * @deprecated Wallets can still implement this method for compatibility, but this has been replaced by the `sui:signPersonalMessage` feature
39
- */
40
- export interface SuiSignMessageOutput {
41
- /** Base64 message bytes. */
42
- messageBytes: string;
43
- /** Base64 encoded signature */
44
- signature: string;
45
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignMessage_exports = {};
20
- __export(suiSignMessage_exports, {
21
- SuiSignMessage: () => SuiSignMessage
22
- });
23
- module.exports = __toCommonJS(suiSignMessage_exports);
24
- const SuiSignMessage = "sui:signMessage";
25
- //# sourceMappingURL=suiSignMessage.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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 * 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
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
2
- /** Name of the feature. */
3
- export declare const SuiSignPersonalMessage = "sui:signPersonalMessage";
4
- /** The latest API version of the signPersonalMessage API. */
5
- export type SuiSignPersonalMessageVersion = '1.1.0';
6
- /**
7
- * A Wallet Standard feature for signing a personal message, and returning the
8
- * message bytes that were signed, and message signature.
9
- */
10
- export type SuiSignPersonalMessageFeature = {
11
- /** Namespace for the feature. */
12
- [SuiSignPersonalMessage]: {
13
- /** Version of the feature API. */
14
- version: SuiSignPersonalMessageVersion;
15
- signPersonalMessage: SuiSignPersonalMessageMethod;
16
- };
17
- };
18
- export type SuiSignPersonalMessageMethod = (input: SuiSignPersonalMessageInput) => Promise<SuiSignPersonalMessageOutput>;
19
- /** Input for signing personal messages. */
20
- export interface SuiSignPersonalMessageInput {
21
- message: Uint8Array;
22
- account: WalletAccount;
23
- chain?: IdentifierString;
24
- }
25
- /** Output of signing personal messages. */
26
- export interface SuiSignPersonalMessageOutput extends SignedPersonalMessage {
27
- }
28
- export interface SignedPersonalMessage {
29
- /** Base64 encoded message bytes */
30
- bytes: string;
31
- /** Base64 encoded signature */
32
- signature: string;
33
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignPersonalMessage_exports = {};
20
- __export(suiSignPersonalMessage_exports, {
21
- SuiSignPersonalMessage: () => SuiSignPersonalMessage
22
- });
23
- module.exports = __toCommonJS(suiSignPersonalMessage_exports);
24
- const SuiSignPersonalMessage = "sui:signPersonalMessage";
25
- //# sourceMappingURL=suiSignPersonalMessage.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,34 +0,0 @@
1
- import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
2
- /** Name of the feature. */
3
- export declare const SuiSignTransaction = "sui:signTransaction";
4
- /** The latest API version of the signTransaction API. */
5
- export type SuiSignTransactionVersion = '2.0.0';
6
- /**
7
- * A Wallet Standard feature for signing a transaction, and returning the
8
- * serialized transaction and transaction signature.
9
- */
10
- export type SuiSignTransactionFeature = {
11
- /** Namespace for the feature. */
12
- [SuiSignTransaction]: {
13
- /** Version of the feature API. */
14
- version: SuiSignTransactionVersion;
15
- signTransaction: SuiSignTransactionMethod;
16
- };
17
- };
18
- export type SuiSignTransactionMethod = (input: SuiSignTransactionInput) => Promise<SignedTransaction>;
19
- /** Input for signing transactions. */
20
- export interface SuiSignTransactionInput {
21
- transaction: {
22
- toJSON: () => Promise<string>;
23
- };
24
- account: WalletAccount;
25
- chain: IdentifierString;
26
- signal?: AbortSignal;
27
- }
28
- /** Output of signing transactions. */
29
- export interface SignedTransaction {
30
- /** Transaction as base64 encoded bcs. */
31
- bytes: string;
32
- /** Base64 encoded signature */
33
- signature: string;
34
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignTransaction_exports = {};
20
- __export(suiSignTransaction_exports, {
21
- SuiSignTransaction: () => SuiSignTransaction
22
- });
23
- module.exports = __toCommonJS(suiSignTransaction_exports);
24
- const SuiSignTransaction = "sui:signTransaction";
25
- //# sourceMappingURL=suiSignTransaction.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,38 +0,0 @@
1
- import type { Transaction } from '@mysten/sui/transactions';
2
- import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
3
- /** Name of the feature. */
4
- export declare const SuiSignTransactionBlock = "sui:signTransactionBlock";
5
- /** The latest API version of the signTransactionBlock API. */
6
- export type SuiSignTransactionBlockVersion = '1.0.0';
7
- /**
8
- * @deprecated Use `sui:signTransaction` instead.
9
- *
10
- * A Wallet Standard feature for signing a transaction, and returning the
11
- * serialized transaction and transaction signature.
12
- */
13
- export type SuiSignTransactionBlockFeature = {
14
- /** Namespace for the feature. */
15
- [SuiSignTransactionBlock]: {
16
- /** Version of the feature API. */
17
- version: SuiSignTransactionBlockVersion;
18
- /** @deprecated Use `sui:signTransaction` instead. */
19
- signTransactionBlock: SuiSignTransactionBlockMethod;
20
- };
21
- };
22
- /** @deprecated Use `sui:signTransaction` instead. */
23
- export type SuiSignTransactionBlockMethod = (input: SuiSignTransactionBlockInput) => Promise<SuiSignTransactionBlockOutput>;
24
- /** Input for signing transactions. */
25
- export interface SuiSignTransactionBlockInput {
26
- transactionBlock: Transaction;
27
- account: WalletAccount;
28
- chain: IdentifierString;
29
- }
30
- /** Output of signing transactions. */
31
- export interface SuiSignTransactionBlockOutput extends SignedTransactionBlock {
32
- }
33
- export interface SignedTransactionBlock {
34
- /** Transaction as base64 encoded bcs. */
35
- transactionBlockBytes: string;
36
- /** Base64 encoded signature */
37
- signature: string;
38
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var suiSignTransactionBlock_exports = {};
20
- __export(suiSignTransactionBlock_exports, {
21
- SuiSignTransactionBlock: () => SuiSignTransactionBlock
22
- });
23
- module.exports = __toCommonJS(suiSignTransactionBlock_exports);
24
- const SuiSignTransactionBlock = "sui:signTransactionBlock";
25
- //# sourceMappingURL=suiSignTransactionBlock.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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/** 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
- "names": []
7
- }
@@ -1,6 +0,0 @@
1
- export * from '@wallet-standard/core';
2
- export { type Wallet, signAndExecuteTransaction, signTransaction } from './wallet.js';
3
- export * from './features/index.js';
4
- export * from './detect.js';
5
- export * from './chains.js';
6
- export * from './types.js';
package/dist/cjs/index.js DELETED
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
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
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var index_exports = {};
21
- __export(index_exports, {
22
- signAndExecuteTransaction: () => import_wallet.signAndExecuteTransaction,
23
- signTransaction: () => import_wallet.signTransaction
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
- __reExport(index_exports, require("@wallet-standard/core"), module.exports);
27
- var import_wallet = require("./wallet.js");
28
- __reExport(index_exports, require("./features/index.js"), module.exports);
29
- __reExport(index_exports, require("./detect.js"), module.exports);
30
- __reExport(index_exports, require("./chains.js"), module.exports);
31
- __reExport(index_exports, require("./types.js"), module.exports);
32
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nexport * from '@wallet-standard/core';\n\nexport { type Wallet, signAndExecuteTransaction, signTransaction } from './wallet.js';\nexport * from './features/index.js';\nexport * from './detect.js';\nexport * from './chains.js';\nexport * from './types.js';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,0BAAc,kCAHd;AAKA,oBAAwE;AACxE,0BAAc,gCANd;AAOA,0BAAc,wBAPd;AAQA,0BAAc,wBARd;AASA,0BAAc,uBATd;",
6
- "names": []
7
- }
@@ -1,5 +0,0 @@
1
- {
2
- "private": true,
3
- "type": "commonjs",
4
- "sideEffects": false
5
- }