@haneullabs/wallet-standard 0.1.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.
Files changed (105) hide show
  1. package/CHANGELOG.md +1438 -0
  2. package/README.md +6 -0
  3. package/dist/cjs/chains.d.ts +16 -0
  4. package/dist/cjs/chains.js +42 -0
  5. package/dist/cjs/chains.js.map +7 -0
  6. package/dist/cjs/detect.d.ts +3 -0
  7. package/dist/cjs/detect.js +31 -0
  8. package/dist/cjs/detect.js.map +7 -0
  9. package/dist/cjs/features/haneulGetCapabilities.d.ts +15 -0
  10. package/dist/cjs/features/haneulGetCapabilities.js +25 -0
  11. package/dist/cjs/features/haneulGetCapabilities.js.map +7 -0
  12. package/dist/cjs/features/haneulReportTransactionEffects.d.ts +26 -0
  13. package/dist/cjs/features/haneulReportTransactionEffects.js +25 -0
  14. package/dist/cjs/features/haneulReportTransactionEffects.js.map +7 -0
  15. package/dist/cjs/features/haneulSignAndExecuteTransaction.d.ts +28 -0
  16. package/dist/cjs/features/haneulSignAndExecuteTransaction.js +25 -0
  17. package/dist/cjs/features/haneulSignAndExecuteTransaction.js.map +7 -0
  18. package/dist/cjs/features/haneulSignAndExecuteTransactionBlock.d.ts +36 -0
  19. package/dist/cjs/features/haneulSignAndExecuteTransactionBlock.js +25 -0
  20. package/dist/cjs/features/haneulSignAndExecuteTransactionBlock.js.map +7 -0
  21. package/dist/cjs/features/haneulSignMessage.d.ts +45 -0
  22. package/dist/cjs/features/haneulSignMessage.js +25 -0
  23. package/dist/cjs/features/haneulSignMessage.js.map +7 -0
  24. package/dist/cjs/features/haneulSignPersonalMessage.d.ts +33 -0
  25. package/dist/cjs/features/haneulSignPersonalMessage.js +25 -0
  26. package/dist/cjs/features/haneulSignPersonalMessage.js.map +7 -0
  27. package/dist/cjs/features/haneulSignTransaction.d.ts +34 -0
  28. package/dist/cjs/features/haneulSignTransaction.js +25 -0
  29. package/dist/cjs/features/haneulSignTransaction.js.map +7 -0
  30. package/dist/cjs/features/haneulSignTransactionBlock.d.ts +38 -0
  31. package/dist/cjs/features/haneulSignTransactionBlock.js +25 -0
  32. package/dist/cjs/features/haneulSignTransactionBlock.js.map +7 -0
  33. package/dist/cjs/features/index.d.ts +28 -0
  34. package/dist/cjs/features/index.js +26 -0
  35. package/dist/cjs/features/index.js.map +7 -0
  36. package/dist/cjs/index.d.ts +6 -0
  37. package/dist/cjs/index.js +32 -0
  38. package/dist/cjs/index.js.map +7 -0
  39. package/dist/cjs/package.json +5 -0
  40. package/dist/cjs/types.d.ts +159 -0
  41. package/dist/cjs/types.js +17 -0
  42. package/dist/cjs/types.js.map +7 -0
  43. package/dist/cjs/wallet.d.ts +18 -0
  44. package/dist/cjs/wallet.js +80 -0
  45. package/dist/cjs/wallet.js.map +7 -0
  46. package/dist/esm/chains.d.ts +16 -0
  47. package/dist/esm/chains.js +22 -0
  48. package/dist/esm/chains.js.map +7 -0
  49. package/dist/esm/detect.d.ts +3 -0
  50. package/dist/esm/detect.js +11 -0
  51. package/dist/esm/detect.js.map +7 -0
  52. package/dist/esm/features/haneulGetCapabilities.d.ts +15 -0
  53. package/dist/esm/features/haneulGetCapabilities.js +5 -0
  54. package/dist/esm/features/haneulGetCapabilities.js.map +7 -0
  55. package/dist/esm/features/haneulReportTransactionEffects.d.ts +26 -0
  56. package/dist/esm/features/haneulReportTransactionEffects.js +5 -0
  57. package/dist/esm/features/haneulReportTransactionEffects.js.map +7 -0
  58. package/dist/esm/features/haneulSignAndExecuteTransaction.d.ts +28 -0
  59. package/dist/esm/features/haneulSignAndExecuteTransaction.js +5 -0
  60. package/dist/esm/features/haneulSignAndExecuteTransaction.js.map +7 -0
  61. package/dist/esm/features/haneulSignAndExecuteTransactionBlock.d.ts +36 -0
  62. package/dist/esm/features/haneulSignAndExecuteTransactionBlock.js +5 -0
  63. package/dist/esm/features/haneulSignAndExecuteTransactionBlock.js.map +7 -0
  64. package/dist/esm/features/haneulSignMessage.d.ts +45 -0
  65. package/dist/esm/features/haneulSignMessage.js +5 -0
  66. package/dist/esm/features/haneulSignMessage.js.map +7 -0
  67. package/dist/esm/features/haneulSignPersonalMessage.d.ts +33 -0
  68. package/dist/esm/features/haneulSignPersonalMessage.js +5 -0
  69. package/dist/esm/features/haneulSignPersonalMessage.js.map +7 -0
  70. package/dist/esm/features/haneulSignTransaction.d.ts +34 -0
  71. package/dist/esm/features/haneulSignTransaction.js +5 -0
  72. package/dist/esm/features/haneulSignTransaction.js.map +7 -0
  73. package/dist/esm/features/haneulSignTransactionBlock.d.ts +38 -0
  74. package/dist/esm/features/haneulSignTransactionBlock.js +5 -0
  75. package/dist/esm/features/haneulSignTransactionBlock.js.map +7 -0
  76. package/dist/esm/features/index.d.ts +28 -0
  77. package/dist/esm/features/index.js +9 -0
  78. package/dist/esm/features/index.js.map +7 -0
  79. package/dist/esm/index.d.ts +6 -0
  80. package/dist/esm/index.js +11 -0
  81. package/dist/esm/index.js.map +7 -0
  82. package/dist/esm/package.json +5 -0
  83. package/dist/esm/types.d.ts +159 -0
  84. package/dist/esm/types.js +1 -0
  85. package/dist/esm/types.js.map +7 -0
  86. package/dist/esm/wallet.d.ts +18 -0
  87. package/dist/esm/wallet.js +60 -0
  88. package/dist/esm/wallet.js.map +7 -0
  89. package/dist/tsconfig.esm.tsbuildinfo +1 -0
  90. package/dist/tsconfig.tsbuildinfo +1 -0
  91. package/package.json +50 -0
  92. package/src/chains.ts +33 -0
  93. package/src/detect.ts +20 -0
  94. package/src/features/haneulGetCapabilities.ts +21 -0
  95. package/src/features/haneulReportTransactionEffects.ts +36 -0
  96. package/src/features/haneulSignAndExecuteTransaction.ts +38 -0
  97. package/src/features/haneulSignAndExecuteTransactionBlock.ts +51 -0
  98. package/src/features/haneulSignMessage.ts +54 -0
  99. package/src/features/haneulSignPersonalMessage.ts +44 -0
  100. package/src/features/haneulSignTransaction.ts +44 -0
  101. package/src/features/haneulSignTransactionBlock.ts +49 -0
  102. package/src/features/index.ts +61 -0
  103. package/src/index.ts +10 -0
  104. package/src/types.ts +175 -0
  105. package/src/wallet.ts +100 -0
@@ -0,0 +1,26 @@
1
+ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
2
+ /** Name of the feature. */
3
+ export declare const HaneulReportTransactionEffects = "sui:reportTransactionEffects";
4
+ /** The latest API version of the reportTransactionEffects API. */
5
+ export type HaneulReportTransactionEffectsVersion = '1.0.0';
6
+ /**
7
+ * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp
8
+ * The feature allows wallets to updated their caches using the effects of the transaction
9
+ * executed outside of the wallet
10
+ */
11
+ export type HaneulReportTransactionEffectsFeature = {
12
+ /** Namespace for the feature. */
13
+ [HaneulReportTransactionEffects]: {
14
+ /** Version of the feature API. */
15
+ version: HaneulReportTransactionEffectsVersion;
16
+ reportTransactionEffects: HaneulReportTransactionEffectsMethod;
17
+ };
18
+ };
19
+ export type HaneulReportTransactionEffectsMethod = (input: HaneulReportTransactionEffectsInput) => Promise<void>;
20
+ /** Input for signing transactions. */
21
+ export interface HaneulReportTransactionEffectsInput {
22
+ account: WalletAccount;
23
+ chain: IdentifierString;
24
+ /** Transaction effects as base64 encoded bcs. */
25
+ effects: string;
26
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulReportTransactionEffects = "sui:reportTransactionEffects";
2
+ export {
3
+ HaneulReportTransactionEffects
4
+ };
5
+ //# sourceMappingURL=haneulReportTransactionEffects.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulReportTransactionEffects.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 HaneulReportTransactionEffects = 'sui:reportTransactionEffects';\n\n/** The latest API version of the reportTransactionEffects API. */\nexport type HaneulReportTransactionEffectsVersion = '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 HaneulReportTransactionEffectsFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulReportTransactionEffects]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulReportTransactionEffectsVersion;\n\t\treportTransactionEffects: HaneulReportTransactionEffectsMethod;\n\t};\n};\n\nexport type HaneulReportTransactionEffectsMethod = (\n\tinput: HaneulReportTransactionEffectsInput,\n) => Promise<void>;\n\n/** Input for signing transactions. */\nexport interface HaneulReportTransactionEffectsInput {\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
5
+ "mappings": "AAMO,MAAM,iCAAiC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
1
+ import type { SignedTransaction, HaneulSignTransactionInput } from './haneulSignTransaction.js';
2
+ /** Name of the feature. */
3
+ export declare const HaneulSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
4
+ /** The latest API version of the signAndExecuteTransactionBlock API. */
5
+ export type HaneulSignAndExecuteTransactionVersion = '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 HaneulSignAndExecuteTransactionFeature = {
12
+ /** Namespace for the feature. */
13
+ [HaneulSignAndExecuteTransaction]: {
14
+ /** Version of the feature API. */
15
+ version: HaneulSignAndExecuteTransactionVersion;
16
+ signAndExecuteTransaction: HaneulSignAndExecuteTransactionMethod;
17
+ };
18
+ };
19
+ export type HaneulSignAndExecuteTransactionMethod = (input: HaneulSignAndExecuteTransactionInput) => Promise<HaneulSignAndExecuteTransactionOutput>;
20
+ /** Input for signing and sending transactions. */
21
+ export interface HaneulSignAndExecuteTransactionInput extends HaneulSignTransactionInput {
22
+ }
23
+ /** Output of signing and sending transactions. */
24
+ export interface HaneulSignAndExecuteTransactionOutput extends SignedTransaction {
25
+ digest: string;
26
+ /** Transaction effects as base64 encoded bcs. */
27
+ effects: string;
28
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignAndExecuteTransaction = "sui:signAndExecuteTransaction";
2
+ export {
3
+ HaneulSignAndExecuteTransaction
4
+ };
5
+ //# sourceMappingURL=haneulSignAndExecuteTransaction.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignAndExecuteTransaction.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { SignedTransaction, HaneulSignTransactionInput } from './haneulSignTransaction.js';\n\n/** Name of the feature. */\nexport const HaneulSignAndExecuteTransaction = 'sui:signAndExecuteTransaction';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type HaneulSignAndExecuteTransactionVersion = '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 HaneulSignAndExecuteTransactionFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignAndExecuteTransaction]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignAndExecuteTransactionVersion;\n\t\tsignAndExecuteTransaction: HaneulSignAndExecuteTransactionMethod;\n\t};\n};\n\nexport type HaneulSignAndExecuteTransactionMethod = (\n\tinput: HaneulSignAndExecuteTransactionInput,\n) => Promise<HaneulSignAndExecuteTransactionOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface HaneulSignAndExecuteTransactionInput extends HaneulSignTransactionInput {}\n\n/** Output of signing and sending transactions. */\nexport interface HaneulSignAndExecuteTransactionOutput extends SignedTransaction {\n\tdigest: string;\n\t/** Transaction effects as base64 encoded bcs. */\n\teffects: string;\n}\n"],
5
+ "mappings": "AAMO,MAAM,kCAAkC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,36 @@
1
+ import type { ExecuteTransactionRequestType, HaneulTransactionBlockResponse, HaneulTransactionBlockResponseOptions } from '@haneullabs/haneul/client';
2
+ import type { HaneulSignTransactionBlockInput } from './haneulSignTransactionBlock.js';
3
+ /** Name of the feature. */
4
+ export declare const HaneulSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
5
+ /** The latest API version of the signAndExecuteTransactionBlock API. */
6
+ export type HaneulSignAndExecuteTransactionBlockVersion = '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 HaneulSignAndExecuteTransactionBlockFeature = {
15
+ /** Namespace for the feature. */
16
+ [HaneulSignAndExecuteTransactionBlock]: {
17
+ /** Version of the feature API. */
18
+ version: HaneulSignAndExecuteTransactionBlockVersion;
19
+ /** @deprecated Use `sui:signAndExecuteTransaction` instead. */
20
+ signAndExecuteTransactionBlock: HaneulSignAndExecuteTransactionBlockMethod;
21
+ };
22
+ };
23
+ /** @deprecated Use `sui:signAndExecuteTransaction` instead. */
24
+ export type HaneulSignAndExecuteTransactionBlockMethod = (input: HaneulSignAndExecuteTransactionBlockInput) => Promise<HaneulSignAndExecuteTransactionBlockOutput>;
25
+ /** Input for signing and sending transactions. */
26
+ export interface HaneulSignAndExecuteTransactionBlockInput extends HaneulSignTransactionBlockInput {
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?: HaneulTransactionBlockResponseOptions;
33
+ }
34
+ /** Output of signing and sending transactions. */
35
+ export interface HaneulSignAndExecuteTransactionBlockOutput extends HaneulTransactionBlockResponse {
36
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignAndExecuteTransactionBlock = "sui:signAndExecuteTransactionBlock";
2
+ export {
3
+ HaneulSignAndExecuteTransactionBlock
4
+ };
5
+ //# sourceMappingURL=haneulSignAndExecuteTransactionBlock.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignAndExecuteTransactionBlock.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tHaneulTransactionBlockResponse,\n\tHaneulTransactionBlockResponseOptions,\n} from '@haneullabs/haneul/client';\n\nimport type { HaneulSignTransactionBlockInput } from './haneulSignTransactionBlock.js';\n\n/** Name of the feature. */\nexport const HaneulSignAndExecuteTransactionBlock = 'sui:signAndExecuteTransactionBlock';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type HaneulSignAndExecuteTransactionBlockVersion = '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 HaneulSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignAndExecuteTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignAndExecuteTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\n\t\tsignAndExecuteTransactionBlock: HaneulSignAndExecuteTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\nexport type HaneulSignAndExecuteTransactionBlockMethod = (\n\tinput: HaneulSignAndExecuteTransactionBlockInput,\n) => Promise<HaneulSignAndExecuteTransactionBlockOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface HaneulSignAndExecuteTransactionBlockInput extends HaneulSignTransactionBlockInput {\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?: HaneulTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface HaneulSignAndExecuteTransactionBlockOutput extends HaneulTransactionBlockResponse {}\n"],
5
+ "mappings": "AAYO,MAAM,uCAAuC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,45 @@
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 HaneulSignMessage = "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 HaneulSignMessageVersion = '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 HaneulSignMessageFeature = {
19
+ /** Namespace for the feature. */
20
+ [HaneulSignMessage]: {
21
+ /** Version of the feature API. */
22
+ version: HaneulSignMessageVersion;
23
+ signMessage: HaneulSignMessageMethod;
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 HaneulSignMessageMethod = (input: HaneulSignMessageInput) => Promise<HaneulSignMessageOutput>;
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 HaneulSignMessageInput {
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 HaneulSignMessageOutput {
41
+ /** Base64 message bytes. */
42
+ messageBytes: string;
43
+ /** Base64 encoded signature */
44
+ signature: string;
45
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignMessage = "sui:signMessage";
2
+ export {
3
+ HaneulSignMessage
4
+ };
5
+ //# sourceMappingURL=haneulSignMessage.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignMessage.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 HaneulSignMessage = '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 HaneulSignMessageVersion = '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 HaneulSignMessageFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignMessage]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignMessageVersion;\n\t\tsignMessage: HaneulSignMessageMethod;\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 HaneulSignMessageMethod = (input: HaneulSignMessageInput) => Promise<HaneulSignMessageOutput>;\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 HaneulSignMessageInput {\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 HaneulSignMessageOutput {\n\t/** Base64 message bytes. */\n\tmessageBytes: string;\n\t/** Base64 encoded signature */\n\tsignature: string;\n}\n"],
5
+ "mappings": "AASO,MAAM,oBAAoB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
2
+ /** Name of the feature. */
3
+ export declare const HaneulSignPersonalMessage = "sui:signPersonalMessage";
4
+ /** The latest API version of the signPersonalMessage API. */
5
+ export type HaneulSignPersonalMessageVersion = '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 HaneulSignPersonalMessageFeature = {
11
+ /** Namespace for the feature. */
12
+ [HaneulSignPersonalMessage]: {
13
+ /** Version of the feature API. */
14
+ version: HaneulSignPersonalMessageVersion;
15
+ signPersonalMessage: HaneulSignPersonalMessageMethod;
16
+ };
17
+ };
18
+ export type HaneulSignPersonalMessageMethod = (input: HaneulSignPersonalMessageInput) => Promise<HaneulSignPersonalMessageOutput>;
19
+ /** Input for signing personal messages. */
20
+ export interface HaneulSignPersonalMessageInput {
21
+ message: Uint8Array;
22
+ account: WalletAccount;
23
+ chain?: IdentifierString;
24
+ }
25
+ /** Output of signing personal messages. */
26
+ export interface HaneulSignPersonalMessageOutput extends SignedPersonalMessage {
27
+ }
28
+ export interface SignedPersonalMessage {
29
+ /** Base64 encoded message bytes */
30
+ bytes: string;
31
+ /** Base64 encoded signature */
32
+ signature: string;
33
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignPersonalMessage = "sui:signPersonalMessage";
2
+ export {
3
+ HaneulSignPersonalMessage
4
+ };
5
+ //# sourceMappingURL=haneulSignPersonalMessage.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignPersonalMessage.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 HaneulSignPersonalMessage = 'sui:signPersonalMessage';\n\n/** The latest API version of the signPersonalMessage API. */\nexport type HaneulSignPersonalMessageVersion = '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 HaneulSignPersonalMessageFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignPersonalMessage]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignPersonalMessageVersion;\n\t\tsignPersonalMessage: HaneulSignPersonalMessageMethod;\n\t};\n};\n\nexport type HaneulSignPersonalMessageMethod = (\n\tinput: HaneulSignPersonalMessageInput,\n) => Promise<HaneulSignPersonalMessageOutput>;\n\n/** Input for signing personal messages. */\nexport interface HaneulSignPersonalMessageInput {\n\tmessage: Uint8Array;\n\taccount: WalletAccount;\n\tchain?: IdentifierString;\n}\n\n/** Output of signing personal messages. */\nexport interface HaneulSignPersonalMessageOutput 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": "AAMO,MAAM,4BAA4B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
2
+ /** Name of the feature. */
3
+ export declare const HaneulSignTransaction = "sui:signTransaction";
4
+ /** The latest API version of the signTransaction API. */
5
+ export type HaneulSignTransactionVersion = '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 HaneulSignTransactionFeature = {
11
+ /** Namespace for the feature. */
12
+ [HaneulSignTransaction]: {
13
+ /** Version of the feature API. */
14
+ version: HaneulSignTransactionVersion;
15
+ signTransaction: HaneulSignTransactionMethod;
16
+ };
17
+ };
18
+ export type HaneulSignTransactionMethod = (input: HaneulSignTransactionInput) => Promise<SignedTransaction>;
19
+ /** Input for signing transactions. */
20
+ export interface HaneulSignTransactionInput {
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
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignTransaction = "sui:signTransaction";
2
+ export {
3
+ HaneulSignTransaction
4
+ };
5
+ //# sourceMappingURL=haneulSignTransaction.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignTransaction.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 HaneulSignTransaction = 'sui:signTransaction';\n\n/** The latest API version of the signTransaction API. */\nexport type HaneulSignTransactionVersion = '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 HaneulSignTransactionFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignTransaction]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignTransactionVersion;\n\t\tsignTransaction: HaneulSignTransactionMethod;\n\t};\n};\n\nexport type HaneulSignTransactionMethod = (\n\tinput: HaneulSignTransactionInput,\n) => Promise<SignedTransaction>;\n\n/** Input for signing transactions. */\nexport interface HaneulSignTransactionInput {\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": "AAMO,MAAM,wBAAwB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,38 @@
1
+ import type { Transaction } from '@haneullabs/haneul/transactions';
2
+ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
3
+ /** Name of the feature. */
4
+ export declare const HaneulSignTransactionBlock = "sui:signTransactionBlock";
5
+ /** The latest API version of the signTransactionBlock API. */
6
+ export type HaneulSignTransactionBlockVersion = '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 HaneulSignTransactionBlockFeature = {
14
+ /** Namespace for the feature. */
15
+ [HaneulSignTransactionBlock]: {
16
+ /** Version of the feature API. */
17
+ version: HaneulSignTransactionBlockVersion;
18
+ /** @deprecated Use `sui:signTransaction` instead. */
19
+ signTransactionBlock: HaneulSignTransactionBlockMethod;
20
+ };
21
+ };
22
+ /** @deprecated Use `sui:signTransaction` instead. */
23
+ export type HaneulSignTransactionBlockMethod = (input: HaneulSignTransactionBlockInput) => Promise<HaneulSignTransactionBlockOutput>;
24
+ /** Input for signing transactions. */
25
+ export interface HaneulSignTransactionBlockInput {
26
+ transactionBlock: Transaction;
27
+ account: WalletAccount;
28
+ chain: IdentifierString;
29
+ }
30
+ /** Output of signing transactions. */
31
+ export interface HaneulSignTransactionBlockOutput extends SignedTransactionBlock {
32
+ }
33
+ export interface SignedTransactionBlock {
34
+ /** Transaction as base64 encoded bcs. */
35
+ transactionBlockBytes: string;
36
+ /** Base64 encoded signature */
37
+ signature: string;
38
+ }
@@ -0,0 +1,5 @@
1
+ const HaneulSignTransactionBlock = "sui:signTransactionBlock";
2
+ export {
3
+ HaneulSignTransactionBlock
4
+ };
5
+ //# sourceMappingURL=haneulSignTransactionBlock.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/haneulSignTransactionBlock.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Transaction } from '@haneullabs/haneul/transactions';\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const HaneulSignTransactionBlock = 'sui:signTransactionBlock';\n\n/** The latest API version of the signTransactionBlock API. */\nexport type HaneulSignTransactionBlockVersion = '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 HaneulSignTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[HaneulSignTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: HaneulSignTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signTransaction` instead. */\n\t\tsignTransactionBlock: HaneulSignTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signTransaction` instead. */\nexport type HaneulSignTransactionBlockMethod = (\n\tinput: HaneulSignTransactionBlockInput,\n) => Promise<HaneulSignTransactionBlockOutput>;\n\n/** Input for signing transactions. */\nexport interface HaneulSignTransactionBlockInput {\n\ttransactionBlock: Transaction;\n\taccount: WalletAccount;\n\tchain: IdentifierString;\n}\n\n/** Output of signing transactions. */\nexport interface HaneulSignTransactionBlockOutput 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": "AAOO,MAAM,6BAA6B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
1
+ import type { IdentifierRecord, StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature, WalletWithFeatures } from '@wallet-standard/core';
2
+ import type { HaneulReportTransactionEffectsFeature } from './haneulReportTransactionEffects.js';
3
+ import type { HaneulSignAndExecuteTransactionFeature } from './haneulSignAndExecuteTransaction.js';
4
+ import type { HaneulSignAndExecuteTransactionBlockFeature } from './haneulSignAndExecuteTransactionBlock.js';
5
+ import type { HaneulSignMessageFeature } from './haneulSignMessage.js';
6
+ import type { HaneulSignPersonalMessageFeature } from './haneulSignPersonalMessage.js';
7
+ import type { HaneulSignTransactionFeature } from './haneulSignTransaction.js';
8
+ import type { HaneulSignTransactionBlockFeature } from './haneulSignTransactionBlock.js';
9
+ import type { HaneulGetCapabilitiesFeature } from './haneulGetCapabilities.js';
10
+ /**
11
+ * Wallet Standard features that are unique to Haneul, and that all Haneul wallets are expected to implement.
12
+ */
13
+ export type HaneulFeatures = Partial<HaneulSignTransactionBlockFeature> & Partial<HaneulSignAndExecuteTransactionBlockFeature> & HaneulSignPersonalMessageFeature & HaneulSignAndExecuteTransactionFeature & HaneulSignTransactionFeature & Partial<HaneulSignMessageFeature> & Partial<HaneulReportTransactionEffectsFeature> & Partial<HaneulGetCapabilitiesFeature>;
14
+ export type HaneulWalletFeatures = StandardConnectFeature & StandardEventsFeature & HaneulFeatures & Partial<StandardDisconnectFeature>;
15
+ export type WalletWithHaneulFeatures = WalletWithFeatures<HaneulWalletFeatures>;
16
+ /**
17
+ * Represents a wallet with the absolute minimum feature set required to function in the Haneul ecosystem.
18
+ */
19
+ export type WalletWithRequiredFeatures = WalletWithFeatures<MinimallyRequiredFeatures & Partial<HaneulFeatures> & Partial<StandardDisconnectFeature> & IdentifierRecord<unknown>>;
20
+ export type MinimallyRequiredFeatures = StandardConnectFeature & StandardEventsFeature;
21
+ export * from './haneulSignMessage.js';
22
+ export * from './haneulSignTransactionBlock.js';
23
+ export * from './haneulSignTransaction.js';
24
+ export * from './haneulSignAndExecuteTransactionBlock.js';
25
+ export * from './haneulSignAndExecuteTransaction.js';
26
+ export * from './haneulSignPersonalMessage.js';
27
+ export * from './haneulReportTransactionEffects.js';
28
+ export * from './haneulGetCapabilities.js';
@@ -0,0 +1,9 @@
1
+ export * from "./haneulSignMessage.js";
2
+ export * from "./haneulSignTransactionBlock.js";
3
+ export * from "./haneulSignTransaction.js";
4
+ export * from "./haneulSignAndExecuteTransactionBlock.js";
5
+ export * from "./haneulSignAndExecuteTransaction.js";
6
+ export * from "./haneulSignPersonalMessage.js";
7
+ export * from "./haneulReportTransactionEffects.js";
8
+ export * from "./haneulGetCapabilities.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tIdentifierRecord,\n\tStandardConnectFeature,\n\tStandardDisconnectFeature,\n\tStandardEventsFeature,\n\tWalletWithFeatures,\n} from '@wallet-standard/core';\n\nimport type { HaneulReportTransactionEffectsFeature } from './haneulReportTransactionEffects.js';\nimport type { HaneulSignAndExecuteTransactionFeature } from './haneulSignAndExecuteTransaction.js';\nimport type { HaneulSignAndExecuteTransactionBlockFeature } from './haneulSignAndExecuteTransactionBlock.js';\nimport type { HaneulSignMessageFeature } from './haneulSignMessage.js';\nimport type { HaneulSignPersonalMessageFeature } from './haneulSignPersonalMessage.js';\nimport type { HaneulSignTransactionFeature } from './haneulSignTransaction.js';\nimport type { HaneulSignTransactionBlockFeature } from './haneulSignTransactionBlock.js';\nimport type { HaneulGetCapabilitiesFeature } from './haneulGetCapabilities.js';\n\n/**\n * Wallet Standard features that are unique to Haneul, and that all Haneul wallets are expected to implement.\n */\nexport type HaneulFeatures = Partial<HaneulSignTransactionBlockFeature> &\n\tPartial<HaneulSignAndExecuteTransactionBlockFeature> &\n\tHaneulSignPersonalMessageFeature &\n\tHaneulSignAndExecuteTransactionFeature &\n\tHaneulSignTransactionFeature &\n\t// This deprecated feature should be removed once wallets update to the new method:\n\tPartial<HaneulSignMessageFeature> &\n\tPartial<HaneulReportTransactionEffectsFeature> &\n\tPartial<HaneulGetCapabilitiesFeature>;\n\nexport type HaneulWalletFeatures = StandardConnectFeature &\n\tStandardEventsFeature &\n\tHaneulFeatures &\n\t// Disconnect is an optional feature:\n\tPartial<StandardDisconnectFeature>;\n\nexport type WalletWithHaneulFeatures = WalletWithFeatures<HaneulWalletFeatures>;\n\n/**\n * Represents a wallet with the absolute minimum feature set required to function in the Haneul ecosystem.\n */\nexport type WalletWithRequiredFeatures = WalletWithFeatures<\n\tMinimallyRequiredFeatures &\n\t\tPartial<HaneulFeatures> &\n\t\tPartial<StandardDisconnectFeature> &\n\t\tIdentifierRecord<unknown>\n>;\n\nexport type MinimallyRequiredFeatures = StandardConnectFeature & StandardEventsFeature;\n\nexport * from './haneulSignMessage.js';\nexport * from './haneulSignTransactionBlock.js';\nexport * from './haneulSignTransaction.js';\nexport * from './haneulSignAndExecuteTransactionBlock.js';\nexport * from './haneulSignAndExecuteTransaction.js';\nexport * from './haneulSignPersonalMessage.js';\nexport * from './haneulReportTransactionEffects.js';\nexport * from './haneulGetCapabilities.js';\n"],
5
+ "mappings": "AAqDA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,11 @@
1
+ export * from "@wallet-standard/core";
2
+ import { 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";
7
+ export {
8
+ signAndExecuteTransaction,
9
+ signTransaction
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
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": "AAGA,cAAc;AAEd,SAAsB,2BAA2B,uBAAuB;AACxE,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "private": true,
3
+ "type": "module",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,159 @@
1
+ /** Contains data related to the gas payment for a Transaction */
2
+ export interface GasData {
3
+ /** The budget set for this transaction */
4
+ budget: string | number | null;
5
+ /** The gas price used for this transaction */
6
+ price: string | number | null;
7
+ /** The owner of the gas coins used to fund the transactions, this is either the sender or the gas sponsor */
8
+ owner: string | null;
9
+ /** The list of SUI coins to fund the transaction */
10
+ payment: {
11
+ objectId: string;
12
+ version: string;
13
+ digest: string;
14
+ }[] | null;
15
+ }
16
+ /**
17
+ * Represent the serialized state of a partially built Transaction
18
+ * This format is designed to support transactions that have not been fully build
19
+ * allowing most properties to be omitted or set to null. It also supports
20
+ * unresolved object references, unresolved pure values, and Transaction Intents.
21
+ */
22
+ export interface SerializedTransactionDataV2 {
23
+ version: 2;
24
+ /** The sender of the transaction */
25
+ sender: string | null | undefined;
26
+ /** The expiration of the transaction */
27
+ expiration: {
28
+ Epoch: number;
29
+ } | {
30
+ None: true;
31
+ } | null | undefined;
32
+ /** The gas data */
33
+ gasData: GasData;
34
+ /** The inputs to the transaction */
35
+ inputs: CallArg[];
36
+ /** The commands to execute */
37
+ commands: Command[];
38
+ /** Extra metadata for implementation specific use-cases */
39
+ extensions?: {
40
+ [key: string]: unknown;
41
+ };
42
+ /** The digest of the transaction, may be set when the transaction is fully resolved */
43
+ digest: string | null | undefined;
44
+ }
45
+ /**
46
+ * Represents an input to a Transaction, either as a fully resolved Object or Pure input
47
+ * or as an unresolved partial reference which needs to be resolved before the transaction
48
+ * can be serialized to bcs and executed.
49
+ */
50
+ export type CallArg = {
51
+ Object: ObjectArg;
52
+ } | {
53
+ Pure: PureArg;
54
+ } | {
55
+ UnresolvedPure: UnresolvedPureArg;
56
+ } | {
57
+ UnresolvedObject: UnresolvedObjectArg;
58
+ };
59
+ export type ObjectArg = {
60
+ ImmOrOwnedObject: {
61
+ objectId: string;
62
+ version: string | number;
63
+ digest: string;
64
+ };
65
+ } | {
66
+ SharedObject: {
67
+ objectId: string;
68
+ initialSharedVersion: string;
69
+ mutable: boolean;
70
+ };
71
+ } | {
72
+ Receiving: {
73
+ objectId: string;
74
+ version: string | number;
75
+ digest: string;
76
+ };
77
+ };
78
+ export interface PureArg {
79
+ bytes: string;
80
+ }
81
+ /**
82
+ * Represents an un-serialized pure value.
83
+ * The correct bcs schema will need to be determined before this value can be serialized to bcs */
84
+ export interface UnresolvedPureArg {
85
+ value: unknown;
86
+ }
87
+ /**
88
+ * Represents an unresolved object reference. This allows objects to be referenced by only their ID.
89
+ * version and digest details may also be added to unresolved object references.
90
+ * To fully resolve a reference, the correct ObjectArg type needs to be determined based on the type of object,
91
+ * and how it used in the transaction (eg, is it used mutably if it's shared, and is it a receiving object if it's not shared)
92
+ */
93
+ export interface UnresolvedObjectArg {
94
+ objectId: string;
95
+ version?: string | null | undefined;
96
+ digest?: string | null | undefined;
97
+ initialSharedVersion?: string | null | undefined;
98
+ mutable?: boolean | null | undefined;
99
+ }
100
+ export type Argument = {
101
+ GasCoin: true;
102
+ } | {
103
+ Input: number;
104
+ } | {
105
+ Result: number;
106
+ } | {
107
+ NestedResult: [number, number];
108
+ };
109
+ export type Command = {
110
+ MoveCall: {
111
+ package: string;
112
+ module: string;
113
+ function: string;
114
+ typeArguments: string[];
115
+ arguments: Argument[];
116
+ };
117
+ } | {
118
+ TransferObjects: {
119
+ objects: Argument[];
120
+ address: Argument;
121
+ };
122
+ } | {
123
+ SplitCoins: {
124
+ coin: Argument;
125
+ amounts: Argument[];
126
+ };
127
+ } | {
128
+ MergeCoins: {
129
+ destination: Argument;
130
+ sources: Argument[];
131
+ };
132
+ } | {
133
+ Publish: {
134
+ modules: string[];
135
+ dependencies: string[];
136
+ };
137
+ } | {
138
+ MakeMoveVec: {
139
+ type: string | null;
140
+ elements: Argument[];
141
+ };
142
+ } | {
143
+ Upgrade: {
144
+ modules: string[];
145
+ dependencies: string[];
146
+ package: string;
147
+ ticket: Argument;
148
+ };
149
+ } | {
150
+ $Intent: {
151
+ name: string;
152
+ inputs: {
153
+ [key: string]: Argument | Argument[];
154
+ };
155
+ data: {
156
+ [key: string]: unknown;
157
+ };
158
+ };
159
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }