@aeternity/aepp-sdk 13.1.0 → 13.2.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 (159) hide show
  1. package/dist/aepp-sdk.browser-script.js +1 -1
  2. package/dist/aepp-sdk.browser-script.js.map +1 -1
  3. package/dist/aepp-sdk.browser.js +1 -1
  4. package/dist/aepp-sdk.browser.js.map +1 -1
  5. package/dist/aepp-sdk.js +2162 -1566
  6. package/dist/aepp-sdk.js.map +1 -1
  7. package/es/AeSdkAepp.mjs.map +1 -1
  8. package/es/AeSdkBase.d.ts +10 -0
  9. package/es/AeSdkBase.mjs +27 -0
  10. package/es/AeSdkBase.mjs.map +1 -1
  11. package/es/AeSdkMethods.mjs.map +1 -1
  12. package/es/AeSdkWallet.d.ts +1 -1
  13. package/es/AeSdkWallet.mjs +53 -20
  14. package/es/AeSdkWallet.mjs.map +1 -1
  15. package/es/Middleware.mjs.map +1 -1
  16. package/es/MiddlewareSubscriber.mjs +3 -3
  17. package/es/MiddlewareSubscriber.mjs.map +1 -1
  18. package/es/Node.mjs.map +1 -1
  19. package/es/account/Base.d.ts +44 -2
  20. package/es/account/Base.mjs +95 -1
  21. package/es/account/Base.mjs.map +1 -1
  22. package/es/account/Generalized.d.ts +3 -0
  23. package/es/account/Generalized.mjs +15 -0
  24. package/es/account/Generalized.mjs.map +1 -1
  25. package/es/account/Ledger.d.ts +3 -0
  26. package/es/account/Ledger.mjs +15 -0
  27. package/es/account/Ledger.mjs.map +1 -1
  28. package/es/account/LedgerFactory.mjs.map +1 -1
  29. package/es/account/Memory.d.ts +10 -0
  30. package/es/account/Memory.mjs +34 -0
  31. package/es/account/Memory.mjs.map +1 -1
  32. package/es/account/Rpc.d.ts +4 -0
  33. package/es/account/Rpc.mjs +29 -0
  34. package/es/account/Rpc.mjs.map +1 -1
  35. package/es/aens.mjs.map +1 -1
  36. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
  37. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  38. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  39. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
  40. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  41. package/es/aepp-wallet-communication/rpc/types.d.ts +9 -0
  42. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  43. package/es/aepp-wallet-communication/schema.d.ts +1 -0
  44. package/es/aepp-wallet-communication/schema.mjs +20 -19
  45. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  46. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  47. package/es/apis/compiler/compiler.mjs.map +1 -1
  48. package/es/apis/middleware/middleware.mjs.map +1 -1
  49. package/es/apis/middleware/models/index.mjs +340 -124
  50. package/es/apis/middleware/models/index.mjs.map +1 -1
  51. package/es/apis/node/node.mjs.map +1 -1
  52. package/es/chain.mjs +1 -1
  53. package/es/chain.mjs.map +1 -1
  54. package/es/channel/Base.mjs.map +1 -1
  55. package/es/channel/Contract.mjs.map +1 -1
  56. package/es/channel/Spend.mjs.map +1 -1
  57. package/es/channel/handlers.mjs +2 -2
  58. package/es/channel/handlers.mjs.map +1 -1
  59. package/es/channel/internal.mjs +6 -6
  60. package/es/channel/internal.mjs.map +1 -1
  61. package/es/contract/Contract.mjs +1 -1
  62. package/es/contract/Contract.mjs.map +1 -1
  63. package/es/contract/compiler/Cli.mjs.map +1 -1
  64. package/es/contract/compiler/Http.mjs.map +1 -1
  65. package/es/contract/delegation-signature.d.ts +2 -1
  66. package/es/contract/delegation-signature.mjs +39 -8
  67. package/es/contract/delegation-signature.mjs.map +1 -1
  68. package/es/contract/ga.mjs.map +1 -1
  69. package/es/oracle.mjs.map +1 -1
  70. package/es/spend.d.ts +2 -1
  71. package/es/spend.mjs +4 -2
  72. package/es/spend.mjs.map +1 -1
  73. package/es/tx/builder/constants.mjs +26 -23
  74. package/es/tx/builder/constants.mjs.map +1 -1
  75. package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
  76. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  77. package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
  78. package/es/tx/builder/field-types/deposit.mjs.map +1 -1
  79. package/es/tx/builder/field-types/entry.mjs.map +1 -1
  80. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  81. package/es/tx/builder/field-types/field.mjs.map +1 -1
  82. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  83. package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
  84. package/es/tx/builder/field-types/index.d.ts +28 -150
  85. package/es/tx/builder/field-types/index.mjs +28 -56
  86. package/es/tx/builder/field-types/index.mjs.map +1 -1
  87. package/es/tx/builder/field-types/map.mjs.map +1 -1
  88. package/es/tx/builder/field-types/mptree.mjs +3 -3
  89. package/es/tx/builder/field-types/mptree.mjs.map +1 -1
  90. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  91. package/es/tx/builder/field-types/pointers.mjs.map +1 -1
  92. package/es/tx/builder/field-types/string.mjs.map +1 -1
  93. package/es/tx/builder/field-types/ttl.mjs.map +1 -1
  94. package/es/tx/builder/field-types/u-int.mjs +1 -1
  95. package/es/tx/builder/field-types/u-int.mjs.map +1 -1
  96. package/es/tx/builder/helpers.mjs.map +1 -1
  97. package/es/tx/builder/index.mjs.map +1 -1
  98. package/es/tx/builder/schema.mjs +11 -10
  99. package/es/tx/builder/schema.mjs.map +1 -1
  100. package/es/tx/execution-cost.mjs.map +1 -1
  101. package/es/tx/transaction-signer.mjs.map +1 -1
  102. package/es/tx/validator.mjs.map +1 -1
  103. package/es/utils/amount-formatter.mjs +7 -7
  104. package/es/utils/amount-formatter.mjs.map +1 -1
  105. package/es/utils/autorest.mjs.map +1 -1
  106. package/es/utils/bignumber.mjs.map +1 -1
  107. package/es/utils/bytes.mjs.map +1 -1
  108. package/es/utils/crypto.mjs.map +1 -1
  109. package/es/utils/encoder-types.mjs +3 -3
  110. package/es/utils/encoder-types.mjs.map +1 -1
  111. package/es/utils/encoder.mjs.map +1 -1
  112. package/es/utils/errors.mjs.map +1 -1
  113. package/es/utils/hd-wallet.mjs.map +1 -1
  114. package/es/utils/keystore.mjs.map +1 -1
  115. package/es/utils/other.mjs.map +1 -1
  116. package/es/utils/semver-satisfies.mjs.map +1 -1
  117. package/es/utils/string.mjs.map +1 -1
  118. package/es/utils/typed-data.mjs +0 -1
  119. package/es/utils/typed-data.mjs.map +1 -1
  120. package/package.json +35 -35
  121. package/src/AeSdkBase.ts +36 -0
  122. package/src/AeSdkWallet.ts +36 -12
  123. package/src/account/Base.ts +84 -3
  124. package/src/account/Generalized.ts +15 -0
  125. package/src/account/Ledger.ts +15 -0
  126. package/src/account/Memory.ts +53 -1
  127. package/src/account/Rpc.ts +35 -0
  128. package/src/aepp-wallet-communication/rpc/types.ts +10 -0
  129. package/src/aepp-wallet-communication/schema.ts +1 -0
  130. package/src/chain.ts +1 -1
  131. package/src/contract/Contract.ts +1 -1
  132. package/src/contract/delegation-signature.ts +37 -11
  133. package/src/spend.ts +2 -2
  134. package/src/tx/builder/field-types/index.ts +28 -58
  135. package/src/tx/builder/field-types/u-int.ts +1 -1
  136. package/types-legacy/ts4.2/AeSdkBase.d.ts +10 -0
  137. package/types-legacy/ts4.2/AeSdkWallet.d.ts +1 -1
  138. package/types-legacy/ts4.2/account/Base.d.ts +44 -2
  139. package/types-legacy/ts4.2/account/Generalized.d.ts +3 -0
  140. package/types-legacy/ts4.2/account/Ledger.d.ts +3 -0
  141. package/types-legacy/ts4.2/account/Memory.d.ts +10 -0
  142. package/types-legacy/ts4.2/account/Rpc.d.ts +4 -0
  143. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +9 -0
  144. package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +1 -0
  145. package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
  146. package/types-legacy/ts4.2/spend.d.ts +2 -1
  147. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +28 -153
  148. package/types-legacy/ts4.5/AeSdkBase.d.ts +10 -0
  149. package/types-legacy/ts4.5/AeSdkWallet.d.ts +1 -1
  150. package/types-legacy/ts4.5/account/Base.d.ts +44 -2
  151. package/types-legacy/ts4.5/account/Generalized.d.ts +3 -0
  152. package/types-legacy/ts4.5/account/Ledger.d.ts +3 -0
  153. package/types-legacy/ts4.5/account/Memory.d.ts +10 -0
  154. package/types-legacy/ts4.5/account/Rpc.d.ts +4 -0
  155. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +9 -0
  156. package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +1 -0
  157. package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
  158. package/types-legacy/ts4.5/spend.d.ts +2 -1
  159. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +28 -153
@@ -1,157 +1,32 @@
1
1
  /// <reference types="node" />
2
- import _address from './address';
3
- import _array from './array';
4
- import _encoded from './encoded';
5
- import _entry from './entry';
6
- import _enumeration from './enumeration';
7
- import _map from './map';
8
- import _mptree from './mptree';
9
- import _nonce from './nonce';
10
- import _shortUIntConst from './short-u-int-const';
11
- import _wrapped from './wrapped';
12
- declare const abiVersion: {
13
- _getProtocolDetails(c: import("../constants").ConsensusProtocolVersion, tag: import("../constants").Tag): import("../constants").AbiVersion;
14
- serialize(value: import("../constants").AbiVersion | undefined, { tag }: {
15
- tag: import("../constants").Tag;
16
- }, { consensusProtocolVersion }: {
17
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
18
- }): Buffer;
19
- prepare(value: import("../constants").AbiVersion | undefined, { tag }: {
20
- tag: import("../constants").Tag;
21
- }, options: {
22
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
23
- onNode?: import("../../..").Node | undefined;
24
- }): Promise<import("../constants").AbiVersion | undefined>;
25
- deserialize(buffer: Buffer): import("../constants").AbiVersion;
26
- };
27
- declare const address: typeof _address;
28
- declare const array: typeof _array;
29
- declare const boolean: {
30
- serialize(value: boolean): Buffer;
31
- deserialize(buffer: Buffer): boolean;
32
- };
33
- declare const coinAmount: {
34
- serializeAettos(value: string | undefined, params: {}): string;
35
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
36
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
37
- }): Buffer;
38
- deserialize(value: Buffer): string;
39
- };
40
- declare const ctVersion: {
41
- serialize(value: import("./ct-version").CtVersion | undefined, params: {}, { consensusProtocolVersion }: {
42
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
43
- }): Buffer;
44
- prepare(value: import("./ct-version").CtVersion | undefined, params: {}, options: {
45
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
46
- onNode?: import("../../..").Node | undefined;
47
- }): Promise<import("./ct-version").CtVersion | undefined>;
48
- deserialize(buffer: Buffer): import("./ct-version").CtVersion;
49
- };
50
- declare const deposit: {
51
- serialize(value: import("../constants").Int | undefined, options: {}, parameters: {
52
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
53
- }): Buffer;
54
- serializeAettos(value: string | undefined, params: {}): string;
55
- deserialize(value: Buffer): string;
56
- };
57
- declare const encoded: typeof _encoded;
58
- declare const entry: typeof _entry;
59
- declare const enumeration: typeof _enumeration;
60
- declare const fee: {
61
- serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
62
- rebuildTx: (params: any) => `tx_${string}`;
63
- unpackTx: typeof import("..").unpackTx;
64
- buildTx: typeof import("..").buildTx;
65
- _computingMinFee?: import("bignumber.js").BigNumber | undefined;
66
- _pickBiggerFee?: boolean | undefined;
67
- }): string;
68
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
69
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
70
- }): Buffer;
71
- deserialize(value: Buffer): string;
72
- };
73
- declare const field: {
74
- serialize(value: string): Buffer;
75
- deserialize(value: Buffer): string;
76
- };
77
- declare const gasLimit: {
78
- serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, _computingGasLimit, }: {
79
- tag: import("../constants").Tag;
80
- rebuildTx: (params: any) => any;
81
- unpackTx: typeof import("..").unpackTx;
82
- buildTx: typeof import("..").buildTx;
83
- _computingGasLimit?: number | undefined;
84
- }, { gasMax }: {
85
- gasMax?: number | undefined;
86
- }): Buffer;
87
- deserialize(value: Buffer): number;
88
- };
89
- declare const gasPrice: {
90
- serializeAettos(value?: string | undefined): string;
91
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
92
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
93
- }): Buffer;
94
- deserialize(value: Buffer): string;
95
- };
96
- declare const map: typeof _map;
97
- declare const mptree: typeof _mptree;
98
- declare const name: {
99
- serialize(value: `${string}.chain`): Buffer;
100
- deserialize(value: Buffer): `${string}.chain`;
101
- };
102
- declare const nameFee: {
103
- serializeAettos(_value: string | undefined, txFields: {
104
- name: `${string}.chain`;
105
- }): string;
106
- serialize(value: import("../constants").Int | undefined, txFields: {
107
- name: `${string}.chain`;
108
- }, parameters: {
109
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
110
- }): Buffer;
111
- deserialize(value: Buffer): string;
112
- };
113
- declare const nameId: {
114
- serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
115
- deserialize: (value: Buffer) => `nm_${string}`;
116
- };
117
- declare const nonce: typeof _nonce;
118
- declare const pointers: {
119
- serialize(pointers: (import("../../../apis/node").NamePointer & {
120
- id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
121
- })[]): Buffer[][];
122
- deserialize(pointers: [
123
- key: Buffer,
124
- id: Buffer
125
- ][]): (import("../../../apis/node").NamePointer & {
126
- id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
127
- })[];
128
- };
129
- declare const raw: {
130
- serialize(buffer: Uint8Array): Buffer;
131
- deserialize(buffer: Buffer): Buffer;
132
- };
133
- declare const shortUInt: {
134
- serialize(value: number): Buffer;
135
- deserialize(value: Buffer): number;
136
- };
137
- declare const shortUIntConst: typeof _shortUIntConst;
138
- declare const string: {
139
- serialize(string: string): Buffer;
140
- deserialize(buffer: Buffer): string;
141
- };
142
- declare const ttl: {
143
- serialize(value: number | undefined): Buffer;
144
- prepare(value: number | undefined, params: {}, { onNode, absoluteTtl }: {
145
- onNode?: import("../../..").Node | undefined;
146
- absoluteTtl?: boolean | undefined;
147
- }): Promise<number | undefined>;
148
- deserialize(value: Buffer): number;
149
- };
150
- declare const uInt: {
151
- serialize(value: import("../constants").Int): Buffer;
152
- deserialize(value: Buffer): string;
153
- };
154
- declare const wrapped: typeof _wrapped;
2
+ import abiVersion from './abi-version';
3
+ import address from './address';
4
+ import array from './array';
5
+ import boolean from './boolean';
6
+ import coinAmount from './coin-amount';
7
+ import ctVersion from './ct-version';
8
+ import deposit from './deposit';
9
+ import encoded from './encoded';
10
+ import entry from './entry';
11
+ import enumeration from './enumeration';
12
+ import fee from './fee';
13
+ import field from './field';
14
+ import gasLimit from './gas-limit';
15
+ import gasPrice from './gas-price';
16
+ import map from './map';
17
+ import mptree from './mptree';
18
+ import name from './name';
19
+ import nameFee from './name-fee';
20
+ import nameId from './name-id';
21
+ import nonce from './nonce';
22
+ import pointers from './pointers';
23
+ import raw from './raw';
24
+ import shortUInt from './short-u-int';
25
+ import shortUIntConst from './short-u-int-const';
26
+ import string from './string';
27
+ import ttl from './ttl';
28
+ import uInt from './u-int';
29
+ import wrapped from './wrapped';
155
30
  export type BinaryData = Buffer | Buffer[] | Buffer[][] | Array<[
156
31
  Buffer,
157
32
  Array<[