@aeternity/aepp-sdk 12.0.0 → 12.1.2
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.LICENSE.txt +0 -15
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +2 -1
- package/dist/aepp-sdk.browser.js.LICENSE.txt +1 -0
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +20765 -1
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdk.d.ts +7 -7
- package/es/AeSdk.mjs.map +1 -1
- package/es/AeSdkAepp.d.ts +4 -3
- package/es/AeSdkAepp.mjs +2 -1
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +22 -21
- package/es/AeSdkBase.mjs +25 -21
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkWallet.d.ts +4 -3
- package/es/AeSdkWallet.mjs +5 -1
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Node.d.ts +7 -10
- package/es/Node.mjs +63 -57
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +7 -4
- package/es/account/Base.mjs +3 -3
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Memory.d.ts +5 -4
- package/es/account/Memory.mjs +24 -2
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +6 -6
- package/es/account/Rpc.mjs +3 -2
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.d.ts +27 -14
- package/es/aens.mjs +27 -21
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.d.ts +2 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs +5 -2
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +1 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -0
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +5 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection-proxy.d.ts +1 -0
- package/es/aepp-wallet-communication/connection-proxy.mjs +1 -0
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +1 -0
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -5
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +8 -8
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.d.ts +17 -2
- package/es/aepp-wallet-communication/schema.mjs +54 -17
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.d.ts +2 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs +2 -3
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/node/models/index.d.ts +6 -2
- package/es/apis/node/models/index.mjs.map +1 -1
- package/es/apis/node/models/mappers.mjs +4 -2
- package/es/apis/node/models/mappers.mjs.map +1 -1
- package/es/chain.d.ts +92 -64
- package/es/chain.mjs +190 -154
- package/es/chain.mjs.map +1 -1
- package/es/channel/handlers.d.ts +3 -3
- package/es/channel/handlers.mjs +42 -44
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/index.d.ts +43 -52
- package/es/channel/index.mjs +46 -49
- package/es/channel/index.mjs.map +1 -1
- package/es/channel/internal.d.ts +16 -15
- package/es/channel/internal.mjs +67 -62
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Compiler.d.ts +1 -0
- package/es/contract/Compiler.mjs +5 -4
- package/es/contract/Compiler.mjs.map +1 -1
- package/es/contract/aci.d.ts +17 -15
- package/es/contract/aci.mjs +58 -45
- package/es/contract/aci.mjs.map +1 -1
- package/es/contract/ga.d.ts +16 -15
- package/es/contract/ga.mjs +12 -7
- package/es/contract/ga.mjs.map +1 -1
- package/es/contract/methods.d.ts +9 -6
- package/es/contract/methods.mjs +9 -6
- package/es/contract/methods.mjs.map +1 -1
- package/es/deprecated/index.d.ts +143 -0
- package/es/deprecated/index.mjs +162 -0
- package/es/deprecated/index.mjs.map +1 -0
- package/es/deprecated/methods.d.ts +18 -0
- package/es/deprecated/methods.mjs +26 -0
- package/es/deprecated/methods.mjs.map +1 -0
- package/es/index.d.ts +4 -1
- package/es/index.mjs +4 -1
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +69 -62
- package/es/oracle.mjs +121 -103
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +16 -15
- package/es/spend.mjs +19 -30
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/address.d.ts +25 -0
- package/es/tx/builder/address.mjs +45 -0
- package/es/tx/builder/address.mjs.map +1 -0
- package/es/tx/builder/constants.d.ts +55 -26
- package/es/tx/builder/constants.mjs +60 -38
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/coin-amount.d.ts +13 -0
- package/es/tx/builder/field-types/coin-amount.mjs +26 -0
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -0
- package/es/tx/builder/field-types/deposit.d.ts +15 -0
- package/es/tx/builder/field-types/deposit.mjs +19 -0
- package/es/tx/builder/field-types/deposit.mjs.map +1 -0
- package/es/tx/builder/field-types/fee.d.ts +25 -0
- package/es/tx/{min-fee.mjs → builder/field-types/fee.mjs} +62 -60
- package/es/tx/builder/field-types/fee.mjs.map +1 -0
- package/es/tx/builder/field-types/field.d.ts +6 -0
- package/es/tx/builder/field-types/field.mjs +15 -0
- package/es/tx/builder/field-types/field.mjs.map +1 -0
- package/es/tx/builder/field-types/gas-limit.d.ts +12 -0
- package/es/tx/builder/field-types/gas-limit.mjs +33 -0
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -0
- package/es/tx/builder/field-types/gas-price.d.ts +8 -0
- package/es/tx/builder/field-types/gas-price.mjs +18 -0
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -0
- package/es/tx/builder/field-types/index.d.ts +70 -0
- package/es/tx/builder/field-types/index.mjs +25 -0
- package/es/tx/builder/field-types/index.mjs.map +1 -0
- package/es/tx/builder/field-types/name-fee.d.ts +20 -0
- package/es/tx/builder/field-types/name-fee.mjs +24 -0
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -0
- package/es/tx/builder/field-types/name-id.d.ts +14 -0
- package/es/tx/builder/field-types/name-id.mjs +19 -0
- package/es/tx/builder/field-types/name-id.mjs.map +1 -0
- package/es/tx/builder/field-types/name.d.ts +13 -0
- package/es/tx/builder/field-types/name.mjs +18 -0
- package/es/tx/builder/field-types/name.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/es/tx/builder/field-types/short-u-int.mjs +12 -0
- package/es/tx/builder/field-types/short-u-int.mjs.map +1 -0
- package/es/tx/builder/field-types/u-int.d.ts +8 -0
- package/es/tx/builder/field-types/u-int.mjs +14 -0
- package/es/tx/builder/field-types/u-int.mjs.map +1 -0
- package/es/tx/builder/helpers.d.ts +27 -33
- package/es/tx/builder/helpers.mjs +41 -47
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +25 -12
- package/es/tx/builder/index.mjs +74 -83
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +995 -144
- package/es/tx/builder/schema.mjs +121 -170
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/index.d.ts +28 -27
- package/es/tx/index.mjs +97 -117
- package/es/tx/index.mjs.map +1 -1
- package/es/tx/validator.d.ts +4 -3
- package/es/tx/validator.mjs +79 -92
- package/es/tx/validator.mjs.map +1 -1
- package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +1 -1
- package/es/typings/@aeternity__uuid/index.d.mjs.map +1 -1
- package/es/typings/bip32-path/index.d.mjs.map +1 -1
- package/es/typings/blakejs/index.d.mjs.map +1 -1
- package/es/typings/sha-js/index.d.mjs +2 -0
- package/es/typings/sha-js/index.d.mjs.map +1 -0
- package/es/typings/tweetnacl-auth/index.d.mjs.map +1 -1
- package/es/utils/amount-formatter.d.ts +9 -9
- package/es/utils/amount-formatter.mjs +17 -17
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.mjs +7 -7
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bignumber.mjs +2 -1
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/utils/bytes.mjs +1 -1
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +8 -23
- package/es/utils/crypto.mjs +15 -41
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.d.ts +61 -0
- package/es/utils/encoder-types.mjs +36 -0
- package/es/utils/encoder-types.mjs.map +1 -0
- package/es/utils/encoder.d.ts +6 -7
- package/es/utils/encoder.mjs +42 -26
- package/es/utils/encoder.mjs.map +1 -1
- package/es/utils/errors.d.ts +1 -11
- package/es/utils/errors.mjs +4 -20
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.d.ts +18 -2
- package/es/utils/hd-wallet.mjs +64 -34
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/json-big.mjs +2 -2
- package/es/utils/json-big.mjs.map +1 -1
- package/es/utils/keystore.mjs +4 -2
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/mptree.d.ts +2 -2
- package/es/utils/mptree.mjs +11 -6
- package/es/utils/mptree.mjs.map +1 -1
- package/es/utils/other.d.ts +8 -2
- package/es/utils/other.mjs +15 -3
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.d.ts +1 -1
- package/es/utils/semver-satisfies.mjs +2 -2
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.mjs.map +1 -1
- package/package.json +36 -34
- package/src/AeSdk.ts +30 -27
- package/src/AeSdkAepp.ts +93 -84
- package/src/AeSdkBase.ts +148 -130
- package/src/AeSdkWallet.ts +172 -156
- package/src/Node.ts +108 -102
- package/src/account/Base.ts +42 -32
- package/src/account/Memory.ts +45 -30
- package/src/account/Rpc.ts +32 -30
- package/src/aens.ts +124 -108
- package/src/aepp-wallet-communication/connection/Browser.ts +18 -15
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +22 -21
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +63 -52
- package/src/aepp-wallet-communication/connection-proxy.ts +8 -7
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +67 -61
- package/src/aepp-wallet-communication/rpc/types.ts +32 -32
- package/src/aepp-wallet-communication/schema.ts +117 -74
- package/src/aepp-wallet-communication/wallet-detector.ts +29 -28
- package/src/apis/node/code-model-v4.yaml +54 -20
- package/src/apis/node/models/index.ts +6 -2
- package/src/apis/node/models/mappers.ts +4 -2
- package/src/chain.ts +286 -228
- package/src/channel/handlers.ts +424 -372
- package/src/channel/index.ts +285 -251
- package/src/channel/internal.ts +248 -232
- package/src/contract/Compiler.ts +22 -21
- package/src/contract/aci.ts +267 -258
- package/src/contract/ga.ts +93 -72
- package/src/contract/methods.ts +32 -27
- package/src/deprecated/index.ts +172 -0
- package/src/deprecated/methods.ts +25 -0
- package/src/index.ts +37 -32
- package/src/oracle.ts +211 -189
- package/src/spend.ts +82 -70
- package/src/tx/builder/address.ts +50 -0
- package/src/tx/builder/constants.ts +82 -52
- package/src/tx/builder/field-types/coin-amount.ts +27 -0
- package/src/tx/builder/field-types/deposit.ts +21 -0
- package/src/tx/builder/field-types/fee.ts +143 -0
- package/src/tx/builder/field-types/field.ts +9 -0
- package/src/tx/builder/field-types/gas-limit.ts +41 -0
- package/src/tx/builder/field-types/gas-price.ts +16 -0
- package/src/tx/builder/field-types/index.ts +45 -0
- package/src/tx/builder/field-types/name-fee.ts +32 -0
- package/src/tx/builder/field-types/name-id.ts +20 -0
- package/src/tx/builder/field-types/name.ts +18 -0
- package/src/tx/builder/field-types/short-u-int.ts +11 -0
- package/src/tx/builder/field-types/u-int.ts +16 -0
- package/src/tx/builder/helpers.ts +112 -117
- package/src/tx/builder/index.ts +203 -197
- package/src/tx/builder/schema.ts +421 -465
- package/src/tx/index.ts +128 -135
- package/src/tx/validator.ts +165 -161
- package/src/typings/@aeternity__argon2-browser/index.d.ts +1 -1
- package/src/typings/@aeternity__uuid/index.d.ts +3 -1
- package/src/typings/bip32-path/index.d.ts +6 -6
- package/src/typings/blakejs/index.d.ts +4 -32
- package/src/typings/sha-js/index.d.ts +5 -0
- package/src/typings/tweetnacl-auth/index.d.ts +2 -2
- package/src/utils/amount-formatter.ts +41 -41
- package/src/utils/autorest.ts +57 -54
- package/src/utils/bignumber.ts +7 -6
- package/src/utils/bytes.ts +19 -19
- package/src/utils/crypto.ts +82 -94
- package/src/utils/encoder-types.ts +63 -0
- package/src/utils/encoder.ts +104 -56
- package/src/utils/errors.ts +246 -264
- package/src/utils/hd-wallet.ts +114 -82
- package/src/utils/json-big.ts +16 -15
- package/src/utils/keystore.ts +65 -62
- package/src/utils/mptree.ts +59 -56
- package/src/utils/other.ts +26 -18
- package/src/utils/semver-satisfies.ts +15 -11
- package/src/utils/string.ts +10 -10
- package/es/tx/builder/field-types.d.ts +0 -62
- package/es/tx/builder/field-types.mjs +0 -126
- package/es/tx/builder/field-types.mjs.map +0 -1
- package/es/tx/min-fee.d.ts +0 -20
- package/es/tx/min-fee.mjs.map +0 -1
- package/src/tx/builder/field-types.ts +0 -111
- package/src/tx/min-fee.ts +0 -136
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
declare const field: {
|
|
3
|
+
serialize(value: string): Buffer;
|
|
4
|
+
deserialize(value: Buffer): string;
|
|
5
|
+
};
|
|
6
|
+
declare const uInt: {
|
|
7
|
+
serialize(value: import("./u-int").Int): Buffer;
|
|
8
|
+
deserialize(value: Buffer): string;
|
|
9
|
+
};
|
|
10
|
+
declare const shortUInt: {
|
|
11
|
+
serialize(value: number): Buffer;
|
|
12
|
+
deserialize(value: Buffer): number;
|
|
13
|
+
};
|
|
14
|
+
declare const coinAmount: {
|
|
15
|
+
serializeAettos(value: string | undefined): string;
|
|
16
|
+
serializeOptional(value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
17
|
+
serialize(value: import("./u-int").Int, options: import("./coin-amount").Options): Buffer;
|
|
18
|
+
deserialize(value: Buffer): string;
|
|
19
|
+
};
|
|
20
|
+
declare const deposit: {
|
|
21
|
+
serialize(value: import("./u-int").Int | undefined, options: import("./coin-amount").Options): Buffer;
|
|
22
|
+
serializeAettos(value: string | undefined): string;
|
|
23
|
+
serializeOptional(value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
24
|
+
deserialize(value: Buffer): string;
|
|
25
|
+
};
|
|
26
|
+
declare const fee: {
|
|
27
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
28
|
+
txType: import("../constants").Tag;
|
|
29
|
+
rebuildTx: (params: any) => any;
|
|
30
|
+
_computingMinFee?: string | undefined;
|
|
31
|
+
}): string;
|
|
32
|
+
serialize: (value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options) => Buffer;
|
|
33
|
+
serializeOptional(value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
34
|
+
deserialize(value: Buffer): string;
|
|
35
|
+
};
|
|
36
|
+
declare const gasLimit: {
|
|
37
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
38
|
+
txType: import("../constants").Tag;
|
|
39
|
+
rebuildTx: (params: any) => any;
|
|
40
|
+
gasMax: number;
|
|
41
|
+
_computingGasLimit?: number | undefined;
|
|
42
|
+
}): Buffer;
|
|
43
|
+
deserialize(value: Buffer): number;
|
|
44
|
+
};
|
|
45
|
+
declare const gasPrice: {
|
|
46
|
+
serializeAettos(value?: string | undefined): string;
|
|
47
|
+
serialize: (value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options) => Buffer;
|
|
48
|
+
serializeOptional(value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
49
|
+
deserialize(value: Buffer): string;
|
|
50
|
+
};
|
|
51
|
+
declare const name: {
|
|
52
|
+
serialize(value: `${string}.chain`): Buffer;
|
|
53
|
+
deserialize(value: Buffer): `${string}.chain`;
|
|
54
|
+
};
|
|
55
|
+
declare const nameFee: {
|
|
56
|
+
serializeAettos(_value: string | undefined, txFields: {
|
|
57
|
+
name: `${string}.chain`;
|
|
58
|
+
}): string;
|
|
59
|
+
serialize(value: import("./u-int").Int | undefined, txFields: {
|
|
60
|
+
name: `${string}.chain`;
|
|
61
|
+
} & import("./coin-amount").Options): Buffer;
|
|
62
|
+
serializeOptional(value: import("./u-int").Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
63
|
+
deserialize(value: Buffer): string;
|
|
64
|
+
};
|
|
65
|
+
declare const nameId: {
|
|
66
|
+
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
67
|
+
deserialize(value: Buffer): `nm_${string}`;
|
|
68
|
+
};
|
|
69
|
+
export declare type Field = typeof field | typeof uInt | typeof shortUInt | typeof coinAmount | typeof deposit | typeof fee | typeof gasLimit | typeof gasPrice | typeof name | typeof nameFee | typeof nameId;
|
|
70
|
+
export { field, uInt, shortUInt, coinAmount, deposit, fee, gasLimit, gasPrice, name, nameFee, nameId, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _field from "./field.mjs";
|
|
2
|
+
import _uInt from "./u-int.mjs";
|
|
3
|
+
import _shortUInt from "./short-u-int.mjs";
|
|
4
|
+
import _coinAmount from "./coin-amount.mjs";
|
|
5
|
+
import _deposit from "./deposit.mjs";
|
|
6
|
+
import _fee from "./fee.mjs";
|
|
7
|
+
import _gasLimit from "./gas-limit.mjs";
|
|
8
|
+
import _gasPrice from "./gas-price.mjs";
|
|
9
|
+
import _name from "./name.mjs";
|
|
10
|
+
import _nameFee from "./name-fee.mjs";
|
|
11
|
+
import _nameId from "./name-id.mjs"; // TODO: remove after fixing https://github.com/Gerrit0/typedoc-plugin-missing-exports/issues/15
|
|
12
|
+
|
|
13
|
+
const field = _field;
|
|
14
|
+
const uInt = _uInt;
|
|
15
|
+
const shortUInt = _shortUInt;
|
|
16
|
+
const coinAmount = _coinAmount;
|
|
17
|
+
const deposit = _deposit;
|
|
18
|
+
const fee = _fee;
|
|
19
|
+
const gasLimit = _gasLimit;
|
|
20
|
+
const gasPrice = _gasPrice;
|
|
21
|
+
const name = _name;
|
|
22
|
+
const nameFee = _nameFee;
|
|
23
|
+
const nameId = _nameId;
|
|
24
|
+
export { field, uInt, shortUInt, coinAmount, deposit, fee, gasLimit, gasPrice, name, nameFee, nameId };
|
|
25
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["_field","_uInt","_shortUInt","_coinAmount","_deposit","_fee","_gasLimit","_gasPrice","_name","_nameFee","_nameId","field","uInt","shortUInt","coinAmount","deposit","fee","gasLimit","gasPrice","name","nameFee","nameId"],"sources":["../../../../src/tx/builder/field-types/index.ts"],"sourcesContent":["import _field from './field';\nimport _uInt from './u-int';\nimport _shortUInt from './short-u-int';\nimport _coinAmount from './coin-amount';\n\nimport _deposit from './deposit';\nimport _fee from './fee';\nimport _gasLimit from './gas-limit';\nimport _gasPrice from './gas-price';\nimport _name from './name';\nimport _nameFee from './name-fee';\nimport _nameId from './name-id';\n\n// TODO: remove after fixing https://github.com/Gerrit0/typedoc-plugin-missing-exports/issues/15\nconst field = _field;\nconst uInt = _uInt;\nconst shortUInt = _shortUInt;\nconst coinAmount = _coinAmount;\n\nconst deposit = _deposit;\nconst fee = _fee;\nconst gasLimit = _gasLimit;\nconst gasPrice = _gasPrice;\nconst name = _name;\nconst nameFee = _nameFee;\nconst nameId = _nameId;\n\nexport type Field = typeof field | typeof uInt | typeof shortUInt | typeof coinAmount\n | typeof deposit | typeof fee | typeof gasLimit | typeof gasPrice | typeof name | typeof nameFee\n | typeof nameId;\n\nexport {\n field,\n uInt,\n shortUInt,\n coinAmount,\n\n deposit,\n fee,\n gasLimit,\n gasPrice,\n name,\n nameFee,\n nameId,\n};\n"],"mappings":"OAAOA,M;OACAC,K;OACAC,U;OACAC,W;OAEAC,Q;OACAC,I;OACAC,S;OACAC,S;OACAC,K;OACAC,Q;OACAC,O,uBAEP;;AACA,MAAMC,KAAK,GAAGX,MAAd;AACA,MAAMY,IAAI,GAAGX,KAAb;AACA,MAAMY,SAAS,GAAGX,UAAlB;AACA,MAAMY,UAAU,GAAGX,WAAnB;AAEA,MAAMY,OAAO,GAAGX,QAAhB;AACA,MAAMY,GAAG,GAAGX,IAAZ;AACA,MAAMY,QAAQ,GAAGX,SAAjB;AACA,MAAMY,QAAQ,GAAGX,SAAjB;AACA,MAAMY,IAAI,GAAGX,KAAb;AACA,MAAMY,OAAO,GAAGX,QAAhB;AACA,MAAMY,MAAM,GAAGX,OAAf;AAMA,SACEC,KADF,EAEEC,IAFF,EAGEC,SAHF,EAIEC,UAJF,EAMEC,OANF,EAOEC,GAPF,EAQEC,QARF,EASEC,QATF,EAUEC,IAVF,EAWEC,OAXF,EAYEC,MAZF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Int } from './u-int';
|
|
3
|
+
import coinAmount from './coin-amount';
|
|
4
|
+
import { AensName } from '../constants';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
serializeAettos(_value: string | undefined, txFields: {
|
|
7
|
+
name: AensName;
|
|
8
|
+
}): string;
|
|
9
|
+
/**
|
|
10
|
+
* @param value - AENS name fee Buffer
|
|
11
|
+
* @param txFields - Transaction fields
|
|
12
|
+
* @param txFields.name - AENS Name in transaction
|
|
13
|
+
*/
|
|
14
|
+
serialize(value: Int | undefined, txFields: {
|
|
15
|
+
name: AensName;
|
|
16
|
+
} & Parameters<(typeof coinAmount)['serialize']>[1]): Buffer;
|
|
17
|
+
serializeOptional(value: Int | undefined, { denomination, ...options }: import("./coin-amount").Options): Buffer;
|
|
18
|
+
deserialize(value: Buffer): string;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { getMinimumNameFee } from "../helpers.mjs";
|
|
3
|
+
import { InsufficientNameFeeError } from "../../../utils/errors.mjs";
|
|
4
|
+
import coinAmount from "./coin-amount.mjs";
|
|
5
|
+
export default { ...coinAmount,
|
|
6
|
+
|
|
7
|
+
serializeAettos(_value, txFields) {
|
|
8
|
+
const minNameFee = getMinimumNameFee(txFields.name);
|
|
9
|
+
const value = new BigNumber(_value !== null && _value !== void 0 ? _value : minNameFee);
|
|
10
|
+
if (minNameFee.gt(value)) throw new InsufficientNameFeeError(value, minNameFee);
|
|
11
|
+
return value.toFixed();
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param value - AENS name fee Buffer
|
|
16
|
+
* @param txFields - Transaction fields
|
|
17
|
+
* @param txFields.name - AENS Name in transaction
|
|
18
|
+
*/
|
|
19
|
+
serialize(value, txFields) {
|
|
20
|
+
return coinAmount.serializeOptional.call(this, value, txFields);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=name-fee.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name-fee.mjs","names":["BigNumber","getMinimumNameFee","InsufficientNameFeeError","coinAmount","serializeAettos","_value","txFields","minNameFee","name","value","gt","toFixed","serialize","serializeOptional","call"],"sources":["../../../../src/tx/builder/field-types/name-fee.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { getMinimumNameFee } from '../helpers';\nimport { InsufficientNameFeeError } from '../../../utils/errors';\nimport { Int } from './u-int';\nimport coinAmount from './coin-amount';\nimport { AensName } from '../constants';\n\nexport default {\n ...coinAmount,\n\n serializeAettos(\n _value: string | undefined,\n txFields: { name: AensName },\n ): string {\n const minNameFee = getMinimumNameFee(txFields.name);\n const value = new BigNumber(_value ?? minNameFee);\n if (minNameFee.gt(value)) throw new InsufficientNameFeeError(value, minNameFee);\n return value.toFixed();\n },\n\n /**\n * @param value - AENS name fee Buffer\n * @param txFields - Transaction fields\n * @param txFields.name - AENS Name in transaction\n */\n serialize(\n value: Int | undefined,\n txFields: { name: AensName } & Parameters<typeof coinAmount['serialize']>[1],\n ): Buffer {\n return coinAmount.serializeOptional.call(this, value, txFields);\n },\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,cAAtB;SACSC,iB;SACAC,wB;OAEFC,U;AAGP,eAAe,EACb,GAAGA,UADU;;EAGbC,eAAe,CACbC,MADa,EAEbC,QAFa,EAGL;IACR,MAAMC,UAAU,GAAGN,iBAAiB,CAACK,QAAQ,CAACE,IAAV,CAApC;IACA,MAAMC,KAAK,GAAG,IAAIT,SAAJ,CAAcK,MAAd,aAAcA,MAAd,cAAcA,MAAd,GAAwBE,UAAxB,CAAd;IACA,IAAIA,UAAU,CAACG,EAAX,CAAcD,KAAd,CAAJ,EAA0B,MAAM,IAAIP,wBAAJ,CAA6BO,KAA7B,EAAoCF,UAApC,CAAN;IAC1B,OAAOE,KAAK,CAACE,OAAN,EAAP;EACD,CAXY;;EAab;AACF;AACA;AACA;AACA;EACEC,SAAS,CACPH,KADO,EAEPH,QAFO,EAGC;IACR,OAAOH,UAAU,CAACU,iBAAX,CAA6BC,IAA7B,CAAkC,IAAlC,EAAwCL,KAAxC,EAA+CH,QAA/C,CAAP;EACD;;AAvBY,CAAf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { AensName } from '../constants';
|
|
3
|
+
import { Encoded } from '../../../utils/encoder';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/**
|
|
6
|
+
* @param value - AENS name ID
|
|
7
|
+
*/
|
|
8
|
+
serialize(value: AensName | Encoded.Name): Buffer;
|
|
9
|
+
/**
|
|
10
|
+
* @param value - AENS name ID Buffer
|
|
11
|
+
*/
|
|
12
|
+
deserialize(value: Buffer): Encoded.Name;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { produceNameId, isNameValid } from "../helpers.mjs";
|
|
2
|
+
import { writeId, readId } from "../address.mjs";
|
|
3
|
+
export default {
|
|
4
|
+
/**
|
|
5
|
+
* @param value - AENS name ID
|
|
6
|
+
*/
|
|
7
|
+
serialize(value) {
|
|
8
|
+
return writeId(isNameValid(value) ? produceNameId(value) : value);
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @param value - AENS name ID Buffer
|
|
13
|
+
*/
|
|
14
|
+
deserialize(value) {
|
|
15
|
+
return readId(value);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=name-id.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name-id.mjs","names":["produceNameId","isNameValid","writeId","readId","serialize","value","deserialize"],"sources":["../../../../src/tx/builder/field-types/name-id.ts"],"sourcesContent":["import { AensName } from '../constants';\nimport { produceNameId, isNameValid } from '../helpers';\nimport { writeId, readId } from '../address';\nimport { Encoded } from '../../../utils/encoder';\n\nexport default {\n /**\n * @param value - AENS name ID\n */\n serialize(value: AensName | Encoded.Name): Buffer {\n return writeId(isNameValid(value) ? produceNameId(value) : value);\n },\n\n /**\n * @param value - AENS name ID Buffer\n */\n deserialize(value: Buffer): Encoded.Name {\n return readId(value) as Encoded.Name;\n },\n};\n"],"mappings":"SACSA,a,EAAeC,W;SACfC,O,EAASC,M;AAGlB,eAAe;EACb;AACF;AACA;EACEC,SAAS,CAACC,KAAD,EAAyC;IAChD,OAAOH,OAAO,CAACD,WAAW,CAACI,KAAD,CAAX,GAAqBL,aAAa,CAACK,KAAD,CAAlC,GAA4CA,KAA7C,CAAd;EACD,CANY;;EAQb;AACF;AACA;EACEC,WAAW,CAACD,KAAD,EAA8B;IACvC,OAAOF,MAAM,CAACE,KAAD,CAAb;EACD;;AAbY,CAAf"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { AensName } from '../constants';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
/**
|
|
5
|
+
* @param value - AENS name
|
|
6
|
+
*/
|
|
7
|
+
serialize(value: AensName): Buffer;
|
|
8
|
+
/**
|
|
9
|
+
* @param value - AENS name
|
|
10
|
+
*/
|
|
11
|
+
deserialize(value: Buffer): AensName;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import field from "./field.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
/**
|
|
4
|
+
* @param value - AENS name
|
|
5
|
+
*/
|
|
6
|
+
serialize(value) {
|
|
7
|
+
return field.serialize(value);
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @param value - AENS name
|
|
12
|
+
*/
|
|
13
|
+
deserialize(value) {
|
|
14
|
+
return field.deserialize(value);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=name.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name.mjs","names":["field","serialize","value","deserialize"],"sources":["../../../../src/tx/builder/field-types/name.ts"],"sourcesContent":["import field from './field';\nimport { AensName } from '../constants';\n\nexport default {\n /**\n * @param value - AENS name\n */\n serialize(value: AensName): Buffer {\n return field.serialize(value);\n },\n\n /**\n * @param value - AENS name\n */\n deserialize(value: Buffer): AensName {\n return field.deserialize(value) as AensName;\n },\n};\n"],"mappings":"OAAOA,K;AAGP,eAAe;EACb;AACF;AACA;EACEC,SAAS,CAACC,KAAD,EAA0B;IACjC,OAAOF,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAP;EACD,CANY;;EAQb;AACF;AACA;EACEC,WAAW,CAACD,KAAD,EAA0B;IACnC,OAAOF,KAAK,CAACG,WAAN,CAAkBD,KAAlB,CAAP;EACD;;AAbY,CAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"short-u-int.mjs","names":["uInt","serialize","value","deserialize"],"sources":["../../../../src/tx/builder/field-types/short-u-int.ts"],"sourcesContent":["import uInt from './u-int';\n\nexport default {\n serialize(value: number): Buffer {\n return uInt.serialize(value);\n },\n\n deserialize(value: Buffer): number {\n return +uInt.deserialize(value);\n },\n};\n"],"mappings":"OAAOA,I;AAEP,eAAe;EACbC,SAAS,CAACC,KAAD,EAAwB;IAC/B,OAAOF,IAAI,CAACC,SAAL,CAAeC,KAAf,CAAP;EACD,CAHY;;EAKbC,WAAW,CAACD,KAAD,EAAwB;IACjC,OAAO,CAACF,IAAI,CAACG,WAAL,CAAiBD,KAAjB,CAAR;EACD;;AAPY,CAAf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { readInt, writeInt } from "../helpers.mjs";
|
|
2
|
+
import { ArgumentError } from "../../../utils/errors.mjs";
|
|
3
|
+
export default {
|
|
4
|
+
serialize(value) {
|
|
5
|
+
if (value < 0) throw new ArgumentError('value', 'greater or equal to 0', value);
|
|
6
|
+
return writeInt(value);
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
deserialize(value) {
|
|
10
|
+
return readInt(value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=u-int.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"u-int.mjs","names":["readInt","writeInt","ArgumentError","serialize","value","deserialize"],"sources":["../../../../src/tx/builder/field-types/u-int.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { readInt, writeInt } from '../helpers';\nimport { ArgumentError } from '../../../utils/errors';\n\nexport type Int = number | string | BigNumber;\n\nexport default {\n serialize(value: Int): Buffer {\n if (value < 0) throw new ArgumentError('value', 'greater or equal to 0', value);\n return writeInt(value);\n },\n\n deserialize(value: Buffer): string {\n return readInt(value);\n },\n};\n"],"mappings":"SACSA,O,EAASC,Q;SACTC,a;AAIT,eAAe;EACbC,SAAS,CAACC,KAAD,EAAqB;IAC5B,IAAIA,KAAK,GAAG,CAAZ,EAAe,MAAM,IAAIF,aAAJ,CAAkB,OAAlB,EAA2B,uBAA3B,EAAoDE,KAApD,CAAN;IACf,OAAOH,QAAQ,CAACG,KAAD,CAAf;EACD,CAJY;;EAMbC,WAAW,CAACD,KAAD,EAAwB;IACjC,OAAOJ,OAAO,CAACI,KAAD,CAAd;EACD;;AARY,CAAf"}
|
|
@@ -1,111 +1,103 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Encoded } from '../../utils/encoder';
|
|
4
|
+
import { AensName } from './constants';
|
|
5
|
+
import { NamePointer } from '../../apis/node';
|
|
6
6
|
/**
|
|
7
7
|
* JavaScript-based Transaction builder helper function's
|
|
8
8
|
*/
|
|
9
|
-
export declare const createSalt: typeof salt;
|
|
10
|
-
export { encode, decode };
|
|
11
|
-
export interface Pointer {
|
|
12
|
-
key: string;
|
|
13
|
-
id: string;
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
10
|
* Build a contract public key
|
|
11
|
+
* @category contract
|
|
17
12
|
* @param ownerId - The public key of the owner account
|
|
18
13
|
* @param nonce - the nonce of the transaction
|
|
19
14
|
* @returns Contract public key
|
|
20
15
|
*/
|
|
21
|
-
export declare function buildContractId(ownerId:
|
|
16
|
+
export declare function buildContractId(ownerId: Encoded.AccountAddress, nonce: number | BigNumber): Encoded.ContractAddress;
|
|
22
17
|
/**
|
|
23
18
|
* Build a oracle query id
|
|
19
|
+
* @category oracle
|
|
24
20
|
* @param senderId - The public key of the sender account
|
|
25
21
|
* @param nonce - the nonce of the transaction
|
|
26
22
|
* @param oracleId - The oracle public key
|
|
27
23
|
* @returns Contract public key
|
|
28
24
|
*/
|
|
29
|
-
export declare function oracleQueryId(senderId:
|
|
25
|
+
export declare function oracleQueryId(senderId: Encoded.AccountAddress, nonce: number | BigNumber | string, oracleId: Encoded.OracleAddress): Encoded.OracleQueryId;
|
|
30
26
|
/**
|
|
31
27
|
* Format the salt into a 64-byte hex string
|
|
28
|
+
* @category transaction builder
|
|
32
29
|
* @param salt - Random number
|
|
33
30
|
* @returns Zero-padded hex string of salt
|
|
34
31
|
*/
|
|
35
32
|
export declare function formatSalt(salt: number): Buffer;
|
|
36
33
|
/**
|
|
37
34
|
* Encode an AENS name
|
|
38
|
-
*
|
|
35
|
+
* @category AENS
|
|
39
36
|
* @param name - Name to encode
|
|
40
37
|
* @returns `nm_` prefixed encoded AENS name
|
|
41
38
|
*/
|
|
42
|
-
export declare function produceNameId(name: AensName):
|
|
39
|
+
export declare function produceNameId(name: AensName): Encoded.Name;
|
|
43
40
|
/**
|
|
44
41
|
* Generate the commitment hash by hashing the formatted salt and
|
|
45
42
|
* name, base 58 encoding the result and prepending 'cm_'
|
|
46
|
-
*
|
|
43
|
+
* @category transaction builder
|
|
47
44
|
* @param name - Name to be registered
|
|
48
45
|
* @param salt - Random salt
|
|
49
46
|
* @returns Commitment hash
|
|
50
47
|
*/
|
|
51
|
-
export declare function commitmentHash(name: AensName, salt?: number):
|
|
52
|
-
/**
|
|
53
|
-
* Utility function to create and _id type
|
|
54
|
-
* @param hashId - Encoded hash
|
|
55
|
-
* @returns Buffer Buffer with ID tag and decoded HASh
|
|
56
|
-
*/
|
|
57
|
-
export declare function writeId(hashId: string): Buffer;
|
|
58
|
-
/**
|
|
59
|
-
* Utility function to read and _id type
|
|
60
|
-
* @param buf - Data
|
|
61
|
-
* @returns Encoided hash string with prefix
|
|
62
|
-
*/
|
|
63
|
-
export declare function readId(buf: Buffer): string;
|
|
48
|
+
export declare function commitmentHash(name: AensName, salt?: number): Encoded.Commitment;
|
|
64
49
|
/**
|
|
65
50
|
* Utility function to convert int to bytes
|
|
51
|
+
* @category transaction builder
|
|
66
52
|
* @param val - Value
|
|
67
53
|
* @returns Buffer Buffer from number(BigEndian)
|
|
68
54
|
*/
|
|
69
55
|
export declare function writeInt(val: number | string | BigNumber): Buffer;
|
|
70
56
|
/**
|
|
71
57
|
* Utility function to convert bytes to int
|
|
58
|
+
* @category transaction builder
|
|
72
59
|
* @param buf - Value
|
|
73
60
|
* @returns Buffer Buffer from number(BigEndian)
|
|
74
61
|
*/
|
|
75
62
|
export declare function readInt(buf?: Buffer): string;
|
|
76
63
|
/**
|
|
77
64
|
* Helper function to build pointers for name update TX
|
|
65
|
+
* @category transaction builder
|
|
78
66
|
* @param pointers - Array of pointers
|
|
79
67
|
* `([ { key: 'account_pubkey', id: 'ak_32klj5j23k23j5423l434l2j3423'} ])`
|
|
80
68
|
* @returns Serialized pointers array
|
|
81
69
|
*/
|
|
82
|
-
export declare function buildPointers(pointers:
|
|
70
|
+
export declare function buildPointers(pointers: NamePointer[]): Buffer[][];
|
|
83
71
|
/**
|
|
84
72
|
* Helper function to read pointers from name update TX
|
|
73
|
+
* @category transaction builder
|
|
85
74
|
* @param pointers - Array of pointers
|
|
86
75
|
* @returns Deserialize pointer array
|
|
87
76
|
*/
|
|
88
|
-
export declare function readPointers(pointers: Array<[key: string, id: Buffer]>):
|
|
77
|
+
export declare function readPointers(pointers: Array<[key: string, id: Buffer]>): NamePointer[];
|
|
89
78
|
/**
|
|
90
79
|
* Is AENS name valid
|
|
80
|
+
* @category AENS
|
|
91
81
|
* @param name - AENS name
|
|
92
82
|
*/
|
|
93
83
|
export declare function isNameValid(name: string): name is AensName;
|
|
84
|
+
declare const encodingToPointerKey: readonly [readonly [Encoded.Encoding.AccountAddress, "account_pubkey"], readonly [Encoded.Encoding.OracleAddress, "oracle_pubkey"], readonly [Encoded.Encoding.ContractAddress, "contract_pubkey"], readonly [Encoded.Encoding.Channel, "channel"]];
|
|
94
85
|
/**
|
|
86
|
+
* @category AENS
|
|
95
87
|
* @param identifier - account/oracle/contract address, or channel
|
|
96
88
|
* @returns default AENS pointer key
|
|
97
89
|
*/
|
|
98
|
-
export declare function getDefaultPointerKey(identifier:
|
|
90
|
+
export declare function getDefaultPointerKey(identifier: Encoded.Generic<typeof encodingToPointerKey[number][0]>): typeof encodingToPointerKey[number][1];
|
|
99
91
|
/**
|
|
100
92
|
* Get the minimum AENS name fee
|
|
101
|
-
*
|
|
93
|
+
* @category AENS
|
|
102
94
|
* @param name - the AENS name to get the fee for
|
|
103
95
|
* @returns the minimum fee for the AENS name auction
|
|
104
96
|
*/
|
|
105
97
|
export declare function getMinimumNameFee(name: AensName): BigNumber;
|
|
106
98
|
/**
|
|
107
99
|
* Compute bid fee for AENS auction
|
|
108
|
-
*
|
|
100
|
+
* @category AENS
|
|
109
101
|
* @param name - the AENS name to get the fee for
|
|
110
102
|
* @param options - Options
|
|
111
103
|
* @param options.startFee - Auction start fee
|
|
@@ -118,7 +110,7 @@ export declare function computeBidFee(name: AensName, { startFee, increment }?:
|
|
|
118
110
|
}): BigNumber;
|
|
119
111
|
/**
|
|
120
112
|
* Compute auction end height
|
|
121
|
-
*
|
|
113
|
+
* @category AENS
|
|
122
114
|
* @param name - Name to compute auction end for
|
|
123
115
|
* @param claimHeight - Auction starting height
|
|
124
116
|
* @see {@link https://github.com/aeternity/aeternity/blob/72e440b8731422e335f879a31ecbbee7ac23a1cf/apps/aecore/src/aec_governance.erl#L273}
|
|
@@ -127,5 +119,7 @@ export declare function computeBidFee(name: AensName, { startFee, increment }?:
|
|
|
127
119
|
export declare function computeAuctionEndBlock(name: AensName, claimHeight: number): number;
|
|
128
120
|
/**
|
|
129
121
|
* Is name accept going to auction
|
|
122
|
+
* @category AENS
|
|
130
123
|
*/
|
|
131
124
|
export declare function isAuctionName(name: AensName): boolean;
|
|
125
|
+
export {};
|