@aeternity/aepp-sdk 13.1.0 → 13.2.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/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +2162 -1566
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +10 -0
- package/es/AeSdkBase.mjs +27 -0
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.mjs.map +1 -1
- package/es/AeSdkWallet.d.ts +1 -1
- package/es/AeSdkWallet.mjs +53 -20
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Middleware.mjs.map +1 -1
- package/es/MiddlewareSubscriber.mjs +3 -3
- package/es/MiddlewareSubscriber.mjs.map +1 -1
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +44 -2
- package/es/account/Base.mjs +95 -1
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Generalized.d.ts +3 -0
- package/es/account/Generalized.mjs +15 -0
- package/es/account/Generalized.mjs.map +1 -1
- package/es/account/Ledger.d.ts +3 -0
- package/es/account/Ledger.mjs +15 -0
- package/es/account/Ledger.mjs.map +1 -1
- package/es/account/LedgerFactory.mjs.map +1 -1
- package/es/account/Memory.d.ts +10 -0
- package/es/account/Memory.mjs +34 -0
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +4 -0
- package/es/account/Rpc.mjs +29 -0
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +9 -0
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.d.ts +1 -0
- package/es/aepp-wallet-communication/schema.mjs +20 -19
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/compiler/compiler.mjs.map +1 -1
- package/es/apis/middleware/middleware.mjs.map +1 -1
- package/es/apis/middleware/models/index.mjs +340 -124
- package/es/apis/middleware/models/index.mjs.map +1 -1
- package/es/apis/node/node.mjs.map +1 -1
- package/es/chain.mjs +1 -1
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.mjs.map +1 -1
- package/es/channel/Contract.mjs.map +1 -1
- package/es/channel/Spend.mjs.map +1 -1
- package/es/channel/handlers.mjs +2 -2
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.mjs +6 -6
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Contract.mjs +1 -1
- package/es/contract/Contract.mjs.map +1 -1
- package/es/contract/compiler/Cli.mjs.map +1 -1
- package/es/contract/compiler/Http.mjs.map +1 -1
- package/es/contract/delegation-signature.d.ts +2 -1
- package/es/contract/delegation-signature.mjs +39 -8
- package/es/contract/delegation-signature.mjs.map +1 -1
- package/es/contract/ga.mjs.map +1 -1
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +2 -1
- package/es/spend.mjs +4 -2
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/constants.mjs +26 -23
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
- package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
- package/es/tx/builder/field-types/deposit.mjs.map +1 -1
- package/es/tx/builder/field-types/entry.mjs.map +1 -1
- package/es/tx/builder/field-types/fee.mjs.map +1 -1
- package/es/tx/builder/field-types/field.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
- package/es/tx/builder/field-types/index.d.ts +28 -150
- package/es/tx/builder/field-types/index.mjs +28 -56
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/map.mjs.map +1 -1
- package/es/tx/builder/field-types/mptree.mjs +3 -3
- package/es/tx/builder/field-types/mptree.mjs.map +1 -1
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers.mjs.map +1 -1
- package/es/tx/builder/field-types/string.mjs.map +1 -1
- package/es/tx/builder/field-types/ttl.mjs.map +1 -1
- package/es/tx/builder/field-types/u-int.mjs +1 -1
- package/es/tx/builder/field-types/u-int.mjs.map +1 -1
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.mjs +11 -10
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/execution-cost.mjs.map +1 -1
- package/es/tx/transaction-signer.mjs.map +1 -1
- package/es/tx/validator.mjs.map +1 -1
- package/es/utils/amount-formatter.mjs +7 -7
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.mjs +3 -3
- package/es/utils/encoder-types.mjs.map +1 -1
- package/es/utils/encoder.mjs.map +1 -1
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.mjs.map +1 -1
- package/es/utils/typed-data.mjs +0 -1
- package/es/utils/typed-data.mjs.map +1 -1
- package/package.json +35 -35
- package/src/AeSdkBase.ts +36 -0
- package/src/AeSdkWallet.ts +36 -12
- package/src/account/Base.ts +84 -3
- package/src/account/Generalized.ts +15 -0
- package/src/account/Ledger.ts +15 -0
- package/src/account/Memory.ts +53 -1
- package/src/account/Rpc.ts +35 -0
- package/src/aepp-wallet-communication/rpc/types.ts +10 -0
- package/src/aepp-wallet-communication/schema.ts +1 -0
- package/src/chain.ts +1 -1
- package/src/contract/Contract.ts +1 -1
- package/src/contract/delegation-signature.ts +37 -11
- package/src/spend.ts +2 -2
- package/src/tx/builder/field-types/index.ts +28 -58
- package/src/tx/builder/field-types/u-int.ts +1 -1
- package/types-legacy/ts4.2/AeSdkBase.d.ts +10 -0
- package/types-legacy/ts4.2/AeSdkWallet.d.ts +1 -1
- package/types-legacy/ts4.2/account/Base.d.ts +44 -2
- package/types-legacy/ts4.2/account/Generalized.d.ts +3 -0
- package/types-legacy/ts4.2/account/Ledger.d.ts +3 -0
- package/types-legacy/ts4.2/account/Memory.d.ts +10 -0
- package/types-legacy/ts4.2/account/Rpc.d.ts +4 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +9 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +1 -0
- package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.2/spend.d.ts +2 -1
- package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +28 -153
- package/types-legacy/ts4.5/AeSdkBase.d.ts +10 -0
- package/types-legacy/ts4.5/AeSdkWallet.d.ts +1 -1
- package/types-legacy/ts4.5/account/Base.d.ts +44 -2
- package/types-legacy/ts4.5/account/Generalized.d.ts +3 -0
- package/types-legacy/ts4.5/account/Ledger.d.ts +3 -0
- package/types-legacy/ts4.5/account/Memory.d.ts +10 -0
- package/types-legacy/ts4.5/account/Rpc.d.ts +4 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +9 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +1 -0
- package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.5/spend.d.ts +2 -1
- 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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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<[
|