@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.
Files changed (71) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/cjs/chains.d.ts +1 -0
  3. package/dist/cjs/chains.d.ts.map +1 -0
  4. package/dist/cjs/detect.d.ts +1 -0
  5. package/dist/cjs/detect.d.ts.map +1 -0
  6. package/dist/cjs/detect.js +2 -4
  7. package/dist/cjs/detect.js.map +2 -2
  8. package/dist/cjs/features/index.d.ts +1 -0
  9. package/dist/cjs/features/index.d.ts.map +1 -0
  10. package/dist/cjs/features/iotaReportTransactionEffects.d.ts +7 -2
  11. package/dist/cjs/features/iotaReportTransactionEffects.d.ts.map +1 -0
  12. package/dist/cjs/features/iotaReportTransactionEffects.js +8 -0
  13. package/dist/cjs/features/iotaReportTransactionEffects.js.map +2 -2
  14. package/dist/cjs/features/iotaSignAndExecuteTransaction.d.ts +5 -2
  15. package/dist/cjs/features/iotaSignAndExecuteTransaction.d.ts.map +1 -0
  16. package/dist/cjs/features/iotaSignAndExecuteTransaction.js +8 -0
  17. package/dist/cjs/features/iotaSignAndExecuteTransaction.js.map +2 -2
  18. package/dist/cjs/features/iotaSignPersonalMessage.d.ts +4 -1
  19. package/dist/cjs/features/iotaSignPersonalMessage.d.ts.map +1 -0
  20. package/dist/cjs/features/iotaSignPersonalMessage.js +8 -0
  21. package/dist/cjs/features/iotaSignPersonalMessage.js.map +2 -2
  22. package/dist/cjs/features/iotaSignTransaction.d.ts +4 -1
  23. package/dist/cjs/features/iotaSignTransaction.d.ts.map +1 -0
  24. package/dist/cjs/features/iotaSignTransaction.js +8 -0
  25. package/dist/cjs/features/iotaSignTransaction.js.map +2 -2
  26. package/dist/cjs/index.d.ts +1 -0
  27. package/dist/cjs/index.d.ts.map +1 -0
  28. package/dist/cjs/types.d.ts +2 -0
  29. package/dist/cjs/types.d.ts.map +1 -0
  30. package/dist/cjs/types.js.map +1 -1
  31. package/dist/cjs/wallet.d.ts +1 -0
  32. package/dist/cjs/wallet.d.ts.map +1 -0
  33. package/dist/esm/chains.d.ts +1 -0
  34. package/dist/esm/chains.d.ts.map +1 -0
  35. package/dist/esm/detect.d.ts +1 -0
  36. package/dist/esm/detect.d.ts.map +1 -0
  37. package/dist/esm/detect.js +2 -4
  38. package/dist/esm/detect.js.map +2 -2
  39. package/dist/esm/features/index.d.ts +1 -0
  40. package/dist/esm/features/index.d.ts.map +1 -0
  41. package/dist/esm/features/iotaReportTransactionEffects.d.ts +7 -2
  42. package/dist/esm/features/iotaReportTransactionEffects.d.ts.map +1 -0
  43. package/dist/esm/features/iotaReportTransactionEffects.js +4 -0
  44. package/dist/esm/features/iotaReportTransactionEffects.js.map +3 -3
  45. package/dist/esm/features/iotaSignAndExecuteTransaction.d.ts +5 -2
  46. package/dist/esm/features/iotaSignAndExecuteTransaction.d.ts.map +1 -0
  47. package/dist/esm/features/iotaSignAndExecuteTransaction.js +4 -0
  48. package/dist/esm/features/iotaSignAndExecuteTransaction.js.map +3 -3
  49. package/dist/esm/features/iotaSignPersonalMessage.d.ts +4 -1
  50. package/dist/esm/features/iotaSignPersonalMessage.d.ts.map +1 -0
  51. package/dist/esm/features/iotaSignPersonalMessage.js +4 -0
  52. package/dist/esm/features/iotaSignPersonalMessage.js.map +3 -3
  53. package/dist/esm/features/iotaSignTransaction.d.ts +4 -1
  54. package/dist/esm/features/iotaSignTransaction.d.ts.map +1 -0
  55. package/dist/esm/features/iotaSignTransaction.js +4 -0
  56. package/dist/esm/features/iotaSignTransaction.js.map +3 -3
  57. package/dist/esm/index.d.ts +1 -0
  58. package/dist/esm/index.d.ts.map +1 -0
  59. package/dist/esm/types.d.ts +2 -0
  60. package/dist/esm/types.d.ts.map +1 -0
  61. package/dist/esm/wallet.d.ts +1 -0
  62. package/dist/esm/wallet.d.ts.map +1 -0
  63. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +2 -2
  66. package/src/detect.ts +2 -4
  67. package/src/features/iotaReportTransactionEffects.ts +8 -2
  68. package/src/features/iotaSignAndExecuteTransaction.ts +5 -2
  69. package/src/features/iotaSignPersonalMessage.ts +4 -1
  70. package/src/features/iotaSignTransaction.ts +4 -1
  71. package/src/types.ts +1 -0
@@ -4,6 +4,12 @@
4
4
 
5
5
  import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
6
6
 
7
+ /** Name of the feature. */
8
+ export const IotaReportTransactionEffects = 'iota:reportTransactionEffects';
9
+
10
+ /** The latest API version of the reportTransactionEffects API. */
11
+ export type IotaReportTransactionEffectsVersion = '1.0.0';
12
+
7
13
  /**
8
14
  * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp
9
15
  * The feature allows wallets to updated their caches using the effects of the transaction
@@ -11,9 +17,9 @@ import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
11
17
  */
12
18
  export type IotaReportTransactionEffectsFeature = {
13
19
  /** Namespace for the feature. */
14
- 'iota:reportTransactionEffects': {
20
+ [IotaReportTransactionEffects]: {
15
21
  /** Version of the feature API. */
16
- version: '1.0.0';
22
+ version: IotaReportTransactionEffectsVersion;
17
23
  reportTransactionEffects: IotaReportTransactionEffectsMethod;
18
24
  };
19
25
  };
@@ -5,7 +5,10 @@
5
5
  import type { IotaTransactionBlockResponseOptions } from '@iota/iota-sdk/client';
6
6
  import type { SignedTransaction, IotaSignTransactionInput } from './iotaSignTransaction.js';
7
7
 
8
- /** The latest API version of the signAndExecuteTransactionBlock API. */
8
+ /** Name of the feature. */
9
+ export const IotaSignAndExecuteTransaction = 'iota:signAndExecuteTransaction';
10
+
11
+ /** The latest API version of the signAndExecuteTransaction API. */
9
12
  export type IotaSignAndExecuteTransactionVersion = '2.0.0';
10
13
 
11
14
  /**
@@ -15,7 +18,7 @@ export type IotaSignAndExecuteTransactionVersion = '2.0.0';
15
18
  */
16
19
  export type IotaSignAndExecuteTransactionFeature = {
17
20
  /** Namespace for the feature. */
18
- 'iota:signAndExecuteTransaction': {
21
+ [IotaSignAndExecuteTransaction]: {
19
22
  /** Version of the feature API. */
20
23
  version: IotaSignAndExecuteTransactionVersion;
21
24
  signAndExecuteTransaction: IotaSignAndExecuteTransactionMethod;
@@ -4,6 +4,9 @@
4
4
 
5
5
  import type { WalletAccount } from '@wallet-standard/core';
6
6
 
7
+ /** Name of the feature. */
8
+ export const IotaSignPersonalMessage = 'iota:signPersonalMessage';
9
+
7
10
  /** The latest API version of the signPersonalMessage API. */
8
11
  export type IotaSignPersonalMessageVersion = '1.0.0';
9
12
 
@@ -13,7 +16,7 @@ export type IotaSignPersonalMessageVersion = '1.0.0';
13
16
  */
14
17
  export type IotaSignPersonalMessageFeature = {
15
18
  /** Namespace for the feature. */
16
- 'iota:signPersonalMessage': {
19
+ [IotaSignPersonalMessage]: {
17
20
  /** Version of the feature API. */
18
21
  version: IotaSignPersonalMessageVersion;
19
22
  signPersonalMessage: IotaSignPersonalMessageMethod;
@@ -4,6 +4,9 @@
4
4
 
5
5
  import type { IdentifierString, WalletAccount } from '@wallet-standard/core';
6
6
 
7
+ /** Name of the feature. */
8
+ export const IotaSignTransaction = 'iota:signTransaction';
9
+
7
10
  /** The latest API version of the signTransaction API. */
8
11
  export type IotaSignTransactionVersion = '2.0.0';
9
12
 
@@ -13,7 +16,7 @@ export type IotaSignTransactionVersion = '2.0.0';
13
16
  */
14
17
  export type IotaSignTransactionFeature = {
15
18
  /** Namespace for the feature. */
16
- 'iota:signTransaction': {
19
+ [IotaSignTransaction]: {
17
20
  /** Version of the feature API. */
18
21
  version: IotaSignTransactionVersion;
19
22
  signTransaction: IotaSignTransactionMethod;
package/src/types.ts CHANGED
@@ -100,6 +100,7 @@ export interface UnresolvedObjectArg {
100
100
  version?: string | null | undefined;
101
101
  digest?: string | null | undefined;
102
102
  initialSharedVersion?: string | null | undefined;
103
+ mutable?: boolean | null | undefined;
103
104
  }
104
105
 
105
106
  export type Argument =