@iota/wallet-standard 0.3.2 → 0.4.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.
- package/CHANGELOG.md +64 -0
- package/dist/cjs/chains.d.ts +1 -0
- package/dist/cjs/chains.d.ts.map +1 -0
- package/dist/cjs/detect.d.ts +1 -0
- package/dist/cjs/detect.d.ts.map +1 -0
- package/dist/cjs/detect.js +2 -4
- package/dist/cjs/detect.js.map +2 -2
- package/dist/cjs/features/index.d.ts +1 -0
- package/dist/cjs/features/index.d.ts.map +1 -0
- package/dist/cjs/features/iotaReportTransactionEffects.d.ts +7 -2
- package/dist/cjs/features/iotaReportTransactionEffects.d.ts.map +1 -0
- package/dist/cjs/features/iotaReportTransactionEffects.js +8 -0
- package/dist/cjs/features/iotaReportTransactionEffects.js.map +2 -2
- package/dist/cjs/features/iotaSignAndExecuteTransaction.d.ts +5 -2
- package/dist/cjs/features/iotaSignAndExecuteTransaction.d.ts.map +1 -0
- package/dist/cjs/features/iotaSignAndExecuteTransaction.js +8 -0
- package/dist/cjs/features/iotaSignAndExecuteTransaction.js.map +2 -2
- package/dist/cjs/features/iotaSignPersonalMessage.d.ts +4 -1
- package/dist/cjs/features/iotaSignPersonalMessage.d.ts.map +1 -0
- package/dist/cjs/features/iotaSignPersonalMessage.js +8 -0
- package/dist/cjs/features/iotaSignPersonalMessage.js.map +2 -2
- package/dist/cjs/features/iotaSignTransaction.d.ts +4 -1
- package/dist/cjs/features/iotaSignTransaction.d.ts.map +1 -0
- package/dist/cjs/features/iotaSignTransaction.js +8 -0
- package/dist/cjs/features/iotaSignTransaction.js.map +2 -2
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/types.d.ts +2 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/wallet.d.ts +1 -0
- package/dist/cjs/wallet.d.ts.map +1 -0
- package/dist/esm/chains.d.ts +1 -0
- package/dist/esm/chains.d.ts.map +1 -0
- package/dist/esm/detect.d.ts +1 -0
- package/dist/esm/detect.d.ts.map +1 -0
- package/dist/esm/detect.js +2 -4
- package/dist/esm/detect.js.map +2 -2
- package/dist/esm/features/index.d.ts +1 -0
- package/dist/esm/features/index.d.ts.map +1 -0
- package/dist/esm/features/iotaReportTransactionEffects.d.ts +7 -2
- package/dist/esm/features/iotaReportTransactionEffects.d.ts.map +1 -0
- package/dist/esm/features/iotaReportTransactionEffects.js +4 -0
- package/dist/esm/features/iotaReportTransactionEffects.js.map +3 -3
- package/dist/esm/features/iotaSignAndExecuteTransaction.d.ts +5 -2
- package/dist/esm/features/iotaSignAndExecuteTransaction.d.ts.map +1 -0
- package/dist/esm/features/iotaSignAndExecuteTransaction.js +4 -0
- package/dist/esm/features/iotaSignAndExecuteTransaction.js.map +3 -3
- package/dist/esm/features/iotaSignPersonalMessage.d.ts +4 -1
- package/dist/esm/features/iotaSignPersonalMessage.d.ts.map +1 -0
- package/dist/esm/features/iotaSignPersonalMessage.js +4 -0
- package/dist/esm/features/iotaSignPersonalMessage.js.map +3 -3
- package/dist/esm/features/iotaSignTransaction.d.ts +4 -1
- package/dist/esm/features/iotaSignTransaction.d.ts.map +1 -0
- package/dist/esm/features/iotaSignTransaction.js +4 -0
- package/dist/esm/features/iotaSignTransaction.js.map +3 -3
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/types.d.ts +2 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/wallet.d.ts +1 -0
- package/dist/esm/wallet.d.ts.map +1 -0
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/detect.ts +2 -4
- package/src/features/iotaReportTransactionEffects.ts +8 -2
- package/src/features/iotaSignAndExecuteTransaction.ts +5 -2
- package/src/features/iotaSignPersonalMessage.ts +4 -1
- package/src/features/iotaSignTransaction.ts +4 -1
- package/src/types.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# @iota/wallet-standard
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- adea573: Enable declarationMap in TS packages
|
|
8
|
+
- 9d88461: Add optional mutable field to UnresolveObject shape
|
|
9
|
+
- Updated dependencies [fe97265]
|
|
10
|
+
- Updated dependencies [d2ed95a]
|
|
11
|
+
- Updated dependencies [379dd4b]
|
|
12
|
+
- Updated dependencies [1a2b37f]
|
|
13
|
+
- Updated dependencies [1a2b37f]
|
|
14
|
+
- Updated dependencies [66d0c0d]
|
|
15
|
+
- Updated dependencies [9c6137c]
|
|
16
|
+
- Updated dependencies [331b7ab]
|
|
17
|
+
- Updated dependencies [adea573]
|
|
18
|
+
- Updated dependencies [bd1fa0b]
|
|
19
|
+
- Updated dependencies [1a2b37f]
|
|
20
|
+
- Updated dependencies [3f80310]
|
|
21
|
+
- Updated dependencies [2a9a1df]
|
|
22
|
+
- Updated dependencies [999224b]
|
|
23
|
+
- Updated dependencies [1a2b37f]
|
|
24
|
+
- Updated dependencies [f3d9079]
|
|
25
|
+
- Updated dependencies [7849d0e]
|
|
26
|
+
- Updated dependencies [0be1d8d]
|
|
27
|
+
- Updated dependencies [235a8d7]
|
|
28
|
+
- Updated dependencies [46171b1]
|
|
29
|
+
- Updated dependencies [9d88461]
|
|
30
|
+
- @iota/iota-sdk@1.12.0
|
|
31
|
+
|
|
32
|
+
## 0.4.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- 22f62d4: Expose variables for feature names
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [43cfa2b]
|
|
41
|
+
- Updated dependencies [3bcb711]
|
|
42
|
+
- Updated dependencies [0296e7d]
|
|
43
|
+
- Updated dependencies [54c7803]
|
|
44
|
+
- Updated dependencies [b903c0a]
|
|
45
|
+
- Updated dependencies [f5a4569]
|
|
46
|
+
- Updated dependencies [19c174f]
|
|
47
|
+
- Updated dependencies [8bd4574]
|
|
48
|
+
- Updated dependencies [5fc7e20]
|
|
49
|
+
- Updated dependencies [7a61cb5]
|
|
50
|
+
- Updated dependencies [f2b8160]
|
|
51
|
+
- Updated dependencies [abcdd2f]
|
|
52
|
+
- Updated dependencies [d5923e9]
|
|
53
|
+
- Updated dependencies [6fc20db]
|
|
54
|
+
- Updated dependencies [b72bfd2]
|
|
55
|
+
- Updated dependencies [38657f6]
|
|
56
|
+
- Updated dependencies [7fa1fde]
|
|
57
|
+
- Updated dependencies [2164846]
|
|
58
|
+
- Updated dependencies [4dc4b84]
|
|
59
|
+
- Updated dependencies [58891a9]
|
|
60
|
+
- Updated dependencies [924bf18]
|
|
61
|
+
- Updated dependencies [21a4820]
|
|
62
|
+
- Updated dependencies [ffbb296]
|
|
63
|
+
- Updated dependencies [088c577]
|
|
64
|
+
- Updated dependencies [0cc417d]
|
|
65
|
+
- @iota/iota-sdk@1.11.0
|
|
66
|
+
|
|
3
67
|
## 0.3.2
|
|
4
68
|
|
|
5
69
|
### Patch Changes
|
package/dist/cjs/chains.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,eAAO,MAAM,gBAAgB,yBAAkE,CAAC;AAEhG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEjE"}
|
package/dist/cjs/detect.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Wallet, WalletWithFeatures } from '@wallet-standard/core';
|
|
2
2
|
import type { MinimallyRequiredFeatures } from './features/index.js';
|
|
3
3
|
export declare function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(wallet: Wallet, additionalFeatures?: (keyof AdditionalFeatures)[]): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures>;
|
|
4
|
+
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../src/detect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAMrE,wBAAgB,8BAA8B,CAAC,kBAAkB,SAAS,MAAM,CAAC,UAAU,CAAC,EACxF,MAAM,EAAE,MAAM,EACd,kBAAkB,GAAE,CAAC,MAAM,kBAAkB,CAAC,EAAO,GACtD,MAAM,IAAI,kBAAkB,CAAC,yBAAyB,GAAG,kBAAkB,CAAC,CAI9E"}
|
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// Modifications Copyright (c) 2024 IOTA Stiftung\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 IOTA 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// Modifications Copyright (c) 2024 IOTA Stiftung\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 IOTA 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 wallet: Wallet,\n additionalFeatures: (keyof AdditionalFeatures)[] = [],\n): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures> {\n return [...REQUIRED_FEATURES, ...additionalFeatures].every(\n (feature) => feature in wallet.features,\n );\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAgD;AAOhD,MAAM,oBAAyD,CAAC,6BAAiB,0BAAc;AAExF,SAAS,+BACZ,QACA,qBAAmD,CAAC,GACwB;AAC5E,SAAO,CAAC,GAAG,mBAAmB,GAAG,kBAAkB,EAAE;AAAA,IACjD,CAAC,YAAY,WAAW,OAAO;AAAA,EACnC;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,8BAA8B,GACrD,oCAAoC,GACpC,0BAA0B,GAC1B,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACnD,qBAAqB,GACrB,YAAY,GAEZ,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAEvC,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CACvD,yBAAyB,GACrB,OAAO,CAAC,YAAY,CAAC,GACrB,OAAO,CAAC,yBAAyB,CAAC,GAClC,gBAAgB,CAAC,OAAO,CAAC,CAChC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEvF,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const IotaReportTransactionEffects = "iota:reportTransactionEffects";
|
|
4
|
+
/** The latest API version of the reportTransactionEffects API. */
|
|
5
|
+
export type IotaReportTransactionEffectsVersion = '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 IotaReportTransactionEffectsFeature = {
|
|
8
12
|
/** Namespace for the feature. */
|
|
9
|
-
|
|
13
|
+
[IotaReportTransactionEffects]: {
|
|
10
14
|
/** Version of the feature API. */
|
|
11
|
-
version:
|
|
15
|
+
version: IotaReportTransactionEffectsVersion;
|
|
12
16
|
reportTransactionEffects: IotaReportTransactionEffectsMethod;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -20,3 +24,4 @@ export interface IotaReportTransactionEffectsInput {
|
|
|
20
24
|
/** Transaction effects as base64 encoded bcs. */
|
|
21
25
|
effects: string;
|
|
22
26
|
}
|
|
27
|
+
//# sourceMappingURL=iotaReportTransactionEffects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaReportTransactionEffects.d.ts","sourceRoot":"","sources":["../../../src/features/iotaReportTransactionEffects.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E,2BAA2B;AAC3B,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAE5E,kEAAkE;AAClE,MAAM,MAAM,mCAAmC,GAAG,OAAO,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,iCAAiC;IACjC,CAAC,4BAA4B,CAAC,EAAE;QAC5B,kCAAkC;QAClC,OAAO,EAAE,mCAAmC,CAAC;QAC7C,wBAAwB,EAAE,kCAAkC,CAAC;KAChE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAC7C,KAAK,EAAE,iCAAiC,KACvC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,sCAAsC;AACtC,MAAM,WAAW,iCAAiC;IAC9C,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,gBAAgB,CAAC;IACxB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -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 iotaReportTransactionEffects_exports = {};
|
|
20
|
+
__export(iotaReportTransactionEffects_exports, {
|
|
21
|
+
IotaReportTransactionEffects: () => IotaReportTransactionEffects
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(iotaReportTransactionEffects_exports);
|
|
24
|
+
const IotaReportTransactionEffects = "iota:reportTransactionEffects";
|
|
17
25
|
//# sourceMappingURL=iotaReportTransactionEffects.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/iotaReportTransactionEffects.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\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 IotaReportTransactionEffectsFeature = {\n /** Namespace for the feature. */\n
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const IotaReportTransactionEffects = 'iota:reportTransactionEffects';\n\n/** The latest API version of the reportTransactionEffects API. */\nexport type IotaReportTransactionEffectsVersion = '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 IotaReportTransactionEffectsFeature = {\n /** Namespace for the feature. */\n [IotaReportTransactionEffects]: {\n /** Version of the feature API. */\n version: IotaReportTransactionEffectsVersion;\n reportTransactionEffects: IotaReportTransactionEffectsMethod;\n };\n};\n\nexport type IotaReportTransactionEffectsMethod = (\n input: IotaReportTransactionEffectsInput,\n) => Promise<void>;\n\n/** Input for signing transactions. */\nexport interface IotaReportTransactionEffectsInput {\n account: WalletAccount;\n chain: IdentifierString;\n /** Transaction effects as base64 encoded bcs. */\n effects: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,MAAM,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { IotaTransactionBlockResponseOptions } from '@iota/iota-sdk/client';
|
|
2
2
|
import type { SignedTransaction, IotaSignTransactionInput } from './iotaSignTransaction.js';
|
|
3
|
-
/**
|
|
3
|
+
/** Name of the feature. */
|
|
4
|
+
export declare const IotaSignAndExecuteTransaction = "iota:signAndExecuteTransaction";
|
|
5
|
+
/** The latest API version of the signAndExecuteTransaction API. */
|
|
4
6
|
export type IotaSignAndExecuteTransactionVersion = '2.0.0';
|
|
5
7
|
/**
|
|
6
8
|
* A Wallet Standard feature for signing a transaction, and submitting it to the
|
|
@@ -9,7 +11,7 @@ export type IotaSignAndExecuteTransactionVersion = '2.0.0';
|
|
|
9
11
|
*/
|
|
10
12
|
export type IotaSignAndExecuteTransactionFeature = {
|
|
11
13
|
/** Namespace for the feature. */
|
|
12
|
-
|
|
14
|
+
[IotaSignAndExecuteTransaction]: {
|
|
13
15
|
/** Version of the feature API. */
|
|
14
16
|
version: IotaSignAndExecuteTransactionVersion;
|
|
15
17
|
signAndExecuteTransaction: IotaSignAndExecuteTransactionMethod;
|
|
@@ -27,3 +29,4 @@ export interface IotaSignAndExecuteTransactionOutput extends SignedTransaction {
|
|
|
27
29
|
/** Transaction effects as base64 encoded bcs. */
|
|
28
30
|
effects: string;
|
|
29
31
|
}
|
|
32
|
+
//# sourceMappingURL=iotaSignAndExecuteTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaSignAndExecuteTransaction.d.ts","sourceRoot":"","sources":["../../../src/features/iotaSignAndExecuteTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,2BAA2B;AAC3B,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAE9E,mEAAmE;AACnE,MAAM,MAAM,oCAAoC,GAAG,OAAO,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG;IAC/C,iCAAiC;IACjC,CAAC,6BAA6B,CAAC,EAAE;QAC7B,kCAAkC;QAClC,OAAO,EAAE,oCAAoC,CAAC;QAC9C,yBAAyB,EAAE,mCAAmC,CAAC;KAClE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAC9C,KAAK,EAAE,kCAAkC,KACxC,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAElD,kDAAkD;AAClD,MAAM,WAAW,kCAAmC,SAAQ,wBAAwB;IAChF,0IAA0I;IAC1I,OAAO,CAAC,EAAE,mCAAmC,CAAC;CACjD;AAED,kDAAkD;AAClD,MAAM,WAAW,mCAAoC,SAAQ,iBAAiB;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -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 iotaSignAndExecuteTransaction_exports = {};
|
|
20
|
+
__export(iotaSignAndExecuteTransaction_exports, {
|
|
21
|
+
IotaSignAndExecuteTransaction: () => IotaSignAndExecuteTransaction
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(iotaSignAndExecuteTransaction_exports);
|
|
24
|
+
const IotaSignAndExecuteTransaction = "iota:signAndExecuteTransaction";
|
|
17
25
|
//# sourceMappingURL=iotaSignAndExecuteTransaction.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/iotaSignAndExecuteTransaction.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaTransactionBlockResponseOptions } from '@iota/iota-sdk/client';\nimport type { SignedTransaction, IotaSignTransactionInput } from './iotaSignTransaction.js';\n\n/** The latest API version of the
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaTransactionBlockResponseOptions } from '@iota/iota-sdk/client';\nimport type { SignedTransaction, IotaSignTransactionInput } from './iotaSignTransaction.js';\n\n/** Name of the feature. */\nexport const IotaSignAndExecuteTransaction = 'iota:signAndExecuteTransaction';\n\n/** The latest API version of the signAndExecuteTransaction API. */\nexport type IotaSignAndExecuteTransactionVersion = '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 IotaSignAndExecuteTransactionFeature = {\n /** Namespace for the feature. */\n [IotaSignAndExecuteTransaction]: {\n /** Version of the feature API. */\n version: IotaSignAndExecuteTransactionVersion;\n signAndExecuteTransaction: IotaSignAndExecuteTransactionMethod;\n };\n};\n\nexport type IotaSignAndExecuteTransactionMethod = (\n input: IotaSignAndExecuteTransactionInput,\n) => Promise<IotaSignAndExecuteTransactionOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface IotaSignAndExecuteTransactionInput extends IotaSignTransactionInput {\n /** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */\n options?: IotaTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface IotaSignAndExecuteTransactionOutput extends SignedTransaction {\n digest: string;\n /** Transaction effects as base64 encoded bcs. */\n effects: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,gCAAgC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const IotaSignPersonalMessage = "iota:signPersonalMessage";
|
|
2
4
|
/** The latest API version of the signPersonalMessage API. */
|
|
3
5
|
export type IotaSignPersonalMessageVersion = '1.0.0';
|
|
4
6
|
/**
|
|
@@ -7,7 +9,7 @@ export type IotaSignPersonalMessageVersion = '1.0.0';
|
|
|
7
9
|
*/
|
|
8
10
|
export type IotaSignPersonalMessageFeature = {
|
|
9
11
|
/** Namespace for the feature. */
|
|
10
|
-
|
|
12
|
+
[IotaSignPersonalMessage]: {
|
|
11
13
|
/** Version of the feature API. */
|
|
12
14
|
version: IotaSignPersonalMessageVersion;
|
|
13
15
|
signPersonalMessage: IotaSignPersonalMessageMethod;
|
|
@@ -28,3 +30,4 @@ export interface SignedPersonalMessage {
|
|
|
28
30
|
/** Base64 encoded signature */
|
|
29
31
|
signature: string;
|
|
30
32
|
}
|
|
33
|
+
//# sourceMappingURL=iotaSignPersonalMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaSignPersonalMessage.d.ts","sourceRoot":"","sources":["../../../src/features/iotaSignPersonalMessage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,2BAA2B;AAC3B,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAElE,6DAA6D;AAC7D,MAAM,MAAM,8BAA8B,GAAG,OAAO,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC,iCAAiC;IACjC,CAAC,uBAAuB,CAAC,EAAE;QACvB,kCAAkC;QAClC,OAAO,EAAE,8BAA8B,CAAC;QACxC,mBAAmB,EAAE,6BAA6B,CAAC;KACtD,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,CACxC,KAAK,EAAE,4BAA4B,KAClC,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAE5C,2CAA2C;AAC3C,MAAM,WAAW,4BAA4B;IACzC,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,2CAA2C;AAC3C,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;CAAG;AAE/E,MAAM,WAAW,qBAAqB;IAClC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -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 iotaSignPersonalMessage_exports = {};
|
|
20
|
+
__export(iotaSignPersonalMessage_exports, {
|
|
21
|
+
IotaSignPersonalMessage: () => IotaSignPersonalMessage
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(iotaSignPersonalMessage_exports);
|
|
24
|
+
const IotaSignPersonalMessage = "iota:signPersonalMessage";
|
|
17
25
|
//# sourceMappingURL=iotaSignPersonalMessage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/iotaSignPersonalMessage.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@wallet-standard/core';\n\n/** The latest API version of the signPersonalMessage API. */\nexport type IotaSignPersonalMessageVersion = '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 */\nexport type IotaSignPersonalMessageFeature = {\n /** Namespace for the feature. */\n
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const IotaSignPersonalMessage = 'iota:signPersonalMessage';\n\n/** The latest API version of the signPersonalMessage API. */\nexport type IotaSignPersonalMessageVersion = '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 */\nexport type IotaSignPersonalMessageFeature = {\n /** Namespace for the feature. */\n [IotaSignPersonalMessage]: {\n /** Version of the feature API. */\n version: IotaSignPersonalMessageVersion;\n signPersonalMessage: IotaSignPersonalMessageMethod;\n };\n};\n\nexport type IotaSignPersonalMessageMethod = (\n input: IotaSignPersonalMessageInput,\n) => Promise<IotaSignPersonalMessageOutput>;\n\n/** Input for signing personal messages. */\nexport interface IotaSignPersonalMessageInput {\n message: Uint8Array;\n account: WalletAccount;\n}\n\n/** Output of signing personal messages. */\nexport interface IotaSignPersonalMessageOutput extends SignedPersonalMessage {}\n\nexport interface SignedPersonalMessage {\n /** Base64 encoded message bytes */\n bytes: string;\n /** Base64 encoded signature */\n signature: string;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,MAAM,0BAA0B;",
|
|
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 IotaSignTransaction = "iota:signTransaction";
|
|
2
4
|
/** The latest API version of the signTransaction API. */
|
|
3
5
|
export type IotaSignTransactionVersion = '2.0.0';
|
|
4
6
|
/**
|
|
@@ -7,7 +9,7 @@ export type IotaSignTransactionVersion = '2.0.0';
|
|
|
7
9
|
*/
|
|
8
10
|
export type IotaSignTransactionFeature = {
|
|
9
11
|
/** Namespace for the feature. */
|
|
10
|
-
|
|
12
|
+
[IotaSignTransaction]: {
|
|
11
13
|
/** Version of the feature API. */
|
|
12
14
|
version: IotaSignTransactionVersion;
|
|
13
15
|
signTransaction: IotaSignTransactionMethod;
|
|
@@ -32,3 +34,4 @@ export interface SignedTransaction {
|
|
|
32
34
|
}
|
|
33
35
|
export interface IotaSignTransactionOutput extends SignedTransaction {
|
|
34
36
|
}
|
|
37
|
+
//# sourceMappingURL=iotaSignTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/features/iotaSignTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E,2BAA2B;AAC3B,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAE1D,yDAAyD;AACzD,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,iCAAiC;IACjC,CAAC,mBAAmB,CAAC,EAAE;QACnB,kCAAkC;QAClC,OAAO,EAAE,0BAA0B,CAAC;QACpC,eAAe,EAAE,yBAAyB,CAAC;KAC9C,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CACpC,KAAK,EAAE,wBAAwB,KAC9B,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACrC,WAAW,EAAE;QAAE,MAAM,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IAC/C,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB;AAED,sCAAsC;AAEtC,MAAM,WAAW,iBAAiB;IAC9B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;CAAG"}
|
|
@@ -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 iotaSignTransaction_exports = {};
|
|
20
|
+
__export(iotaSignTransaction_exports, {
|
|
21
|
+
IotaSignTransaction: () => IotaSignTransaction
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(iotaSignTransaction_exports);
|
|
24
|
+
const IotaSignTransaction = "iota:signTransaction";
|
|
17
25
|
//# sourceMappingURL=iotaSignTransaction.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/iotaSignTransaction.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\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 IotaSignTransactionVersion = '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 IotaSignTransactionFeature = {\n /** Namespace for the feature. */\n
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const IotaSignTransaction = 'iota:signTransaction';\n\n/** The latest API version of the signTransaction API. */\nexport type IotaSignTransactionVersion = '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 IotaSignTransactionFeature = {\n /** Namespace for the feature. */\n [IotaSignTransaction]: {\n /** Version of the feature API. */\n version: IotaSignTransactionVersion;\n signTransaction: IotaSignTransactionMethod;\n };\n};\n\nexport type IotaSignTransactionMethod = (\n input: IotaSignTransactionInput,\n) => Promise<SignedTransaction>;\n\n/** Input for signing transactions. */\nexport interface IotaSignTransactionInput {\n transaction: { toJSON: () => Promise<string> };\n account: WalletAccount;\n chain: IdentifierString;\n signal?: AbortSignal;\n}\n\n/** Output of signing transactions. */\n\nexport interface SignedTransaction {\n /** Transaction as base64 encoded bcs. */\n bytes: string;\n /** Base64 encoded signature */\n signature: string;\n}\n\nexport interface IotaSignTransactionOutput extends SignedTransaction {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,MAAM,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,KAAK,MAAM,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtF,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface UnresolvedObjectArg {
|
|
|
93
93
|
version?: string | null | undefined;
|
|
94
94
|
digest?: string | null | undefined;
|
|
95
95
|
initialSharedVersion?: string | null | undefined;
|
|
96
|
+
mutable?: boolean | null | undefined;
|
|
96
97
|
}
|
|
97
98
|
export type Argument = {
|
|
98
99
|
GasCoin: true;
|
|
@@ -154,3 +155,4 @@ export type Command = {
|
|
|
154
155
|
};
|
|
155
156
|
};
|
|
156
157
|
};
|
|
158
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"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"}
|
package/dist/cjs/types.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\n/** Contains data related to the gas payment for a Transaction */\nexport interface GasData {\n /** The budget set for this transaction */\n budget: string | number | null;\n /** The gas price used for this transaction */\n price: string | number | null;\n /** The owner of the gas coins used to fund the transactions, this is either the sender or the gas sponsor */\n owner: string | null;\n /** The list of IOTA coins to fund the transaction */\n payment: { objectId: string; version: string; digest: string }[] | null;\n}\n\n/**\n * Represent the serialized state of a partially built Transaction\n * This format is designed to support transactions that have not been fully build\n * allowing most properties to be omitted or set to null. It also supports\n * unresolved object references, unresolved pure values, and Transaction Intents.\n */\nexport interface SerializedTransactionDataV2 {\n version: 2;\n /** The sender of the transaction */\n sender: string | null | undefined;\n /** The expiration of the transaction */\n expiration: { Epoch: number } | { None: true } | null | undefined;\n /** The gas data */\n gasData: GasData;\n /** The inputs to the transaction */\n inputs: CallArg[];\n /** The commands to execute */\n commands: Command[];\n /** Extra metadata for implementation specific use-cases */\n extensions?: { [key: string]: unknown };\n}\n\n/**\n * Represents an input to a Transaction, either as a fully resolved Object or Pure input\n * or as an unresolved partial reference which needs to be resolved before the transaction\n * can be serialized to bcs and executed.\n */\nexport type CallArg =\n | {\n Object: ObjectArg;\n }\n | {\n Pure: PureArg;\n }\n | {\n UnresolvedPure: UnresolvedPureArg;\n }\n | {\n UnresolvedObject: UnresolvedObjectArg;\n };\n\nexport type ObjectArg =\n | {\n ImmOrOwnedObject: {\n objectId: string;\n version: string | number;\n digest: string;\n };\n }\n | {\n SharedObject: {\n objectId: string;\n initialSharedVersion: string;\n mutable: boolean;\n };\n }\n | {\n Receiving: {\n objectId: string;\n version: string | number;\n digest: string;\n };\n };\n\nexport interface PureArg {\n bytes: string;\n}\n\n/**\n * Represents an un-serialized pure value.\n * The correct bcs schema will need to be determined before this value can be serialized to bcs */\nexport interface UnresolvedPureArg {\n value: unknown;\n}\n\n/**\n * Represents an unresolved object reference. This allows objects to be referenced by only their ID.\n * version and digest details may also be added to unresolved object references.\n * To fully resolve a reference, the correct ObjectArg type needs to be determined based on the type of object,\n * 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)\n */\nexport interface UnresolvedObjectArg {\n objectId: string;\n version?: string | null | undefined;\n digest?: string | null | undefined;\n initialSharedVersion?: string | null | undefined;\n}\n\nexport type Argument =\n | {\n GasCoin: true;\n }\n | {\n Input: number;\n }\n | {\n Result: number;\n }\n | {\n NestedResult: [number, number];\n };\n\nexport type Command =\n | {\n MoveCall: {\n package: string;\n module: string;\n function: string;\n typeArguments: string[];\n arguments: Argument[];\n };\n }\n | {\n TransferObjects: {\n objects: Argument[];\n address: Argument;\n };\n }\n | {\n SplitCoins: {\n coin: Argument;\n amounts: Argument[];\n };\n }\n | {\n MergeCoins: {\n destination: Argument;\n sources: Argument[];\n };\n }\n | {\n Publish: {\n modules: string[];\n dependencies: string[];\n };\n }\n | {\n MakeMoveVec: {\n type: string | null;\n elements: Argument[];\n };\n }\n | {\n Upgrade: {\n modules: string[];\n dependencies: string[];\n package: string;\n ticket: Argument;\n };\n }\n | {\n $Intent: {\n name: string;\n inputs: { [key: string]: Argument | Argument[] };\n data: { [key: string]: unknown };\n };\n };\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\n/** Contains data related to the gas payment for a Transaction */\nexport interface GasData {\n /** The budget set for this transaction */\n budget: string | number | null;\n /** The gas price used for this transaction */\n price: string | number | null;\n /** The owner of the gas coins used to fund the transactions, this is either the sender or the gas sponsor */\n owner: string | null;\n /** The list of IOTA coins to fund the transaction */\n payment: { objectId: string; version: string; digest: string }[] | null;\n}\n\n/**\n * Represent the serialized state of a partially built Transaction\n * This format is designed to support transactions that have not been fully build\n * allowing most properties to be omitted or set to null. It also supports\n * unresolved object references, unresolved pure values, and Transaction Intents.\n */\nexport interface SerializedTransactionDataV2 {\n version: 2;\n /** The sender of the transaction */\n sender: string | null | undefined;\n /** The expiration of the transaction */\n expiration: { Epoch: number } | { None: true } | null | undefined;\n /** The gas data */\n gasData: GasData;\n /** The inputs to the transaction */\n inputs: CallArg[];\n /** The commands to execute */\n commands: Command[];\n /** Extra metadata for implementation specific use-cases */\n extensions?: { [key: string]: unknown };\n}\n\n/**\n * Represents an input to a Transaction, either as a fully resolved Object or Pure input\n * or as an unresolved partial reference which needs to be resolved before the transaction\n * can be serialized to bcs and executed.\n */\nexport type CallArg =\n | {\n Object: ObjectArg;\n }\n | {\n Pure: PureArg;\n }\n | {\n UnresolvedPure: UnresolvedPureArg;\n }\n | {\n UnresolvedObject: UnresolvedObjectArg;\n };\n\nexport type ObjectArg =\n | {\n ImmOrOwnedObject: {\n objectId: string;\n version: string | number;\n digest: string;\n };\n }\n | {\n SharedObject: {\n objectId: string;\n initialSharedVersion: string;\n mutable: boolean;\n };\n }\n | {\n Receiving: {\n objectId: string;\n version: string | number;\n digest: string;\n };\n };\n\nexport interface PureArg {\n bytes: string;\n}\n\n/**\n * Represents an un-serialized pure value.\n * The correct bcs schema will need to be determined before this value can be serialized to bcs */\nexport interface UnresolvedPureArg {\n value: unknown;\n}\n\n/**\n * Represents an unresolved object reference. This allows objects to be referenced by only their ID.\n * version and digest details may also be added to unresolved object references.\n * To fully resolve a reference, the correct ObjectArg type needs to be determined based on the type of object,\n * 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)\n */\nexport interface UnresolvedObjectArg {\n objectId: string;\n version?: string | null | undefined;\n digest?: string | null | undefined;\n initialSharedVersion?: string | null | undefined;\n mutable?: boolean | null | undefined;\n}\n\nexport type Argument =\n | {\n GasCoin: true;\n }\n | {\n Input: number;\n }\n | {\n Result: number;\n }\n | {\n NestedResult: [number, number];\n };\n\nexport type Command =\n | {\n MoveCall: {\n package: string;\n module: string;\n function: string;\n typeArguments: string[];\n arguments: Argument[];\n };\n }\n | {\n TransferObjects: {\n objects: Argument[];\n address: Argument;\n };\n }\n | {\n SplitCoins: {\n coin: Argument;\n amounts: Argument[];\n };\n }\n | {\n MergeCoins: {\n destination: Argument;\n sources: Argument[];\n };\n }\n | {\n Publish: {\n modules: string[];\n dependencies: string[];\n };\n }\n | {\n MakeMoveVec: {\n type: string | null;\n elements: Argument[];\n };\n }\n | {\n Upgrade: {\n modules: string[];\n dependencies: string[];\n package: string;\n ticket: Argument;\n };\n }\n | {\n $Intent: {\n name: string;\n inputs: { [key: string]: Argument | Argument[] };\n data: { [key: string]: unknown };\n };\n };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/wallet.d.ts
CHANGED
|
@@ -16,3 +16,4 @@ declare module '@wallet-standard/core' {
|
|
|
16
16
|
export type { Wallet } from '@wallet-standard/core';
|
|
17
17
|
export declare function signAndExecuteTransaction(wallet: WalletWithFeatures<Partial<IotaWalletFeatures>>, input: IotaSignAndExecuteTransactionInput): Promise<import("./features/iotaSignAndExecuteTransaction.js").IotaSignAndExecuteTransactionOutput>;
|
|
18
18
|
export declare function signTransaction(wallet: WalletWithFeatures<Partial<IotaWalletFeatures>>, input: IotaSignTransactionInput): Promise<import("./features/iotaSignTransaction.js").SignedTransaction>;
|
|
19
|
+
//# sourceMappingURL=wallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/wallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EACR,kCAAkC,EAClC,wBAAwB,EACxB,kBAAkB,EACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,QAAQ,uBAAuB,CAAC;IACnC,UAAiB,MAAM;QACnB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,qBAAqB;QAClC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B;CACJ;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAAsB,yBAAyB,CAC3C,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EACvD,KAAK,EAAE,kCAAkC,sGAS5C;AAED,wBAAsB,eAAe,CACjC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EACvD,KAAK,EAAE,wBAAwB,0EASlC"}
|
package/dist/esm/chains.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,eAAO,MAAM,gBAAgB,yBAAkE,CAAC;AAEhG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEjE"}
|
package/dist/esm/detect.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Wallet, WalletWithFeatures } from '@wallet-standard/core';
|
|
2
2
|
import type { MinimallyRequiredFeatures } from './features/index.js';
|
|
3
3
|
export declare function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(wallet: Wallet, additionalFeatures?: (keyof AdditionalFeatures)[]): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures>;
|
|
4
|
+
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../src/detect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAMrE,wBAAgB,8BAA8B,CAAC,kBAAkB,SAAS,MAAM,CAAC,UAAU,CAAC,EACxF,MAAM,EAAE,MAAM,EACd,kBAAkB,GAAE,CAAC,MAAM,kBAAkB,CAAC,EAAO,GACtD,MAAM,IAAI,kBAAkB,CAAC,yBAAyB,GAAG,kBAAkB,CAAC,CAI9E"}
|
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// Modifications Copyright (c) 2024 IOTA Stiftung\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 IOTA 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// Modifications Copyright (c) 2024 IOTA Stiftung\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 IOTA 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 wallet: Wallet,\n additionalFeatures: (keyof AdditionalFeatures)[] = [],\n): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures> {\n return [...REQUIRED_FEATURES, ...additionalFeatures].every(\n (feature) => feature in wallet.features,\n );\n}\n"],
|
|
5
|
+
"mappings": "AAIA,SAAS,iBAAiB,sBAAsB;AAOhD,MAAM,oBAAyD,CAAC,iBAAiB,cAAc;AAExF,SAAS,+BACZ,QACA,qBAAmD,CAAC,GACwB;AAC5E,SAAO,CAAC,GAAG,mBAAmB,GAAG,kBAAkB,EAAE;AAAA,IACjD,CAAC,YAAY,WAAW,OAAO;AAAA,EACnC;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,8BAA8B,GACrD,oCAAoC,GACpC,0BAA0B,GAC1B,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACnD,qBAAqB,GACrB,YAAY,GAEZ,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAEvC,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CACvD,yBAAyB,GACrB,OAAO,CAAC,YAAY,CAAC,GACrB,OAAO,CAAC,yBAAyB,CAAC,GAClC,gBAAgB,CAAC,OAAO,CAAC,CAChC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEvF,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
|
|
2
|
+
/** Name of the feature. */
|
|
3
|
+
export declare const IotaReportTransactionEffects = "iota:reportTransactionEffects";
|
|
4
|
+
/** The latest API version of the reportTransactionEffects API. */
|
|
5
|
+
export type IotaReportTransactionEffectsVersion = '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 IotaReportTransactionEffectsFeature = {
|
|
8
12
|
/** Namespace for the feature. */
|
|
9
|
-
|
|
13
|
+
[IotaReportTransactionEffects]: {
|
|
10
14
|
/** Version of the feature API. */
|
|
11
|
-
version:
|
|
15
|
+
version: IotaReportTransactionEffectsVersion;
|
|
12
16
|
reportTransactionEffects: IotaReportTransactionEffectsMethod;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -20,3 +24,4 @@ export interface IotaReportTransactionEffectsInput {
|
|
|
20
24
|
/** Transaction effects as base64 encoded bcs. */
|
|
21
25
|
effects: string;
|
|
22
26
|
}
|
|
27
|
+
//# sourceMappingURL=iotaReportTransactionEffects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaReportTransactionEffects.d.ts","sourceRoot":"","sources":["../../../src/features/iotaReportTransactionEffects.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E,2BAA2B;AAC3B,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAE5E,kEAAkE;AAClE,MAAM,MAAM,mCAAmC,GAAG,OAAO,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,iCAAiC;IACjC,CAAC,4BAA4B,CAAC,EAAE;QAC5B,kCAAkC;QAClC,OAAO,EAAE,mCAAmC,CAAC;QAC7C,wBAAwB,EAAE,kCAAkC,CAAC;KAChE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAC7C,KAAK,EAAE,iCAAiC,KACvC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,sCAAsC;AACtC,MAAM,WAAW,iCAAiC;IAC9C,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,gBAAgB,CAAC;IACxB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
3
|
+
"sources": ["../../../src/features/iotaReportTransactionEffects.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IdentifierString, WalletAccount } from '@wallet-standard/core';\n\n/** Name of the feature. */\nexport const IotaReportTransactionEffects = 'iota:reportTransactionEffects';\n\n/** The latest API version of the reportTransactionEffects API. */\nexport type IotaReportTransactionEffectsVersion = '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 IotaReportTransactionEffectsFeature = {\n /** Namespace for the feature. */\n [IotaReportTransactionEffects]: {\n /** Version of the feature API. */\n version: IotaReportTransactionEffectsVersion;\n reportTransactionEffects: IotaReportTransactionEffectsMethod;\n };\n};\n\nexport type IotaReportTransactionEffectsMethod = (\n input: IotaReportTransactionEffectsInput,\n) => Promise<void>;\n\n/** Input for signing transactions. */\nexport interface IotaReportTransactionEffectsInput {\n account: WalletAccount;\n chain: IdentifierString;\n /** Transaction effects as base64 encoded bcs. */\n effects: string;\n}\n"],
|
|
5
|
+
"mappings": "AAOO,MAAM,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { IotaTransactionBlockResponseOptions } from '@iota/iota-sdk/client';
|
|
2
2
|
import type { SignedTransaction, IotaSignTransactionInput } from './iotaSignTransaction.js';
|
|
3
|
-
/**
|
|
3
|
+
/** Name of the feature. */
|
|
4
|
+
export declare const IotaSignAndExecuteTransaction = "iota:signAndExecuteTransaction";
|
|
5
|
+
/** The latest API version of the signAndExecuteTransaction API. */
|
|
4
6
|
export type IotaSignAndExecuteTransactionVersion = '2.0.0';
|
|
5
7
|
/**
|
|
6
8
|
* A Wallet Standard feature for signing a transaction, and submitting it to the
|
|
@@ -9,7 +11,7 @@ export type IotaSignAndExecuteTransactionVersion = '2.0.0';
|
|
|
9
11
|
*/
|
|
10
12
|
export type IotaSignAndExecuteTransactionFeature = {
|
|
11
13
|
/** Namespace for the feature. */
|
|
12
|
-
|
|
14
|
+
[IotaSignAndExecuteTransaction]: {
|
|
13
15
|
/** Version of the feature API. */
|
|
14
16
|
version: IotaSignAndExecuteTransactionVersion;
|
|
15
17
|
signAndExecuteTransaction: IotaSignAndExecuteTransactionMethod;
|
|
@@ -27,3 +29,4 @@ export interface IotaSignAndExecuteTransactionOutput extends SignedTransaction {
|
|
|
27
29
|
/** Transaction effects as base64 encoded bcs. */
|
|
28
30
|
effects: string;
|
|
29
31
|
}
|
|
32
|
+
//# sourceMappingURL=iotaSignAndExecuteTransaction.d.ts.map
|