@aeternity/aepp-sdk
Version:
SDK for the æternity blockchain
127 lines (126 loc) • 3.95 kB
TypeScript
import BigNumber from 'bignumber.js';
/**
* @category transaction builder
*/
export declare const DRY_RUN_ACCOUNT: {
readonly pub: "ak_11111111111111111111111111111111273Yts";
readonly amount: 100000000000000000000000000000000000n;
};
/**
* @category account generalized
* @deprecated transaction builder will ensure that gas doesn't exceed the maximum value by itself
*/
export declare const MAX_AUTH_FUN_GAS = 50000;
/**
* @category utils
*/
export type Int = number | string | BigNumber;
/**
* @category AENS
*/
export type AensName = `${string}.chain`;
/**
* @category transaction builder
*/
export declare const MIN_GAS_PRICE = 1000000000;
/**
* @category AENS
* @see {@link https://github.com/aeternity/aeternity/blob/72e440b8731422e335f879a31ecbbee7ac23a1cf/apps/aecore/src/aec_governance.erl#L67}
* @deprecated use {@link getMinimumNameFee} instead
*/
export declare const NAME_FEE_MULTIPLIER = 100000000000000;
/**
* The next bid should be at least 5% bigger than the previous one
* @category AENS
* @deprecated use {@link computeBidFee} instead
*/
export declare const NAME_FEE_BID_INCREMENT = 0.05;
/**
* Approximately 1 day
* @category AENS
* @see {@link https://github.com/aeternity/aeternity/blob/72e440b8731422e335f879a31ecbbee7ac23a1cf/apps/aecore/src/aec_governance.erl#L272}
* @deprecated use {@link computeAuctionEndBlock} instead
*/
export declare const NAME_BID_TIMEOUT_BLOCKS = 480;
/**
* This is the max length for a domain that requires a base fee to be paid
* @category AENS
* @deprecated use {@link getMinimumNameFee} instead
*/
export declare const NAME_MAX_LENGTH_FEE = 31;
/**
* @category AENS
* @see {@link https://github.com/aeternity/aeternity/blob/72e440b8731422e335f879a31ecbbee7ac23a1cf/apps/aecore/src/aec_governance.erl#L290}
* @see {@link https://github.com/aeternity/protocol/blob/master/AENS.md#protocol-fees-and-protection-times}
* @deprecated use {@link getMinimumNameFee} instead
*/
export declare const NAME_BID_RANGES: {
[k: string]: BigNumber;
};
/**
* @category chain
*/
export declare enum ConsensusProtocolVersion {
Ceres = 6
}
/**
* @category contract
* @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
*/
export declare enum VmVersion {
NoVm = 0,
Sophia = 1,
SophiaImprovementsMinerva = 3,
SophiaImprovementsFortuna = 4,
Fate = 5,
SophiaImprovementsLima = 6,
Fate2 = 7,
Fate3 = 8
}
/**
* @category contract
* @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
*/
export declare enum AbiVersion {
NoAbi = 0,
Sophia = 1,
Fate = 3
}
/**
* Enum with tag types
* @category transaction builder
* @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/serializations.md#binary-serialization}
* @see {@link https://github.com/aeternity/aeserialization/blob/eb68fe331bd476910394966b7f5ede7a74d37e35/src/aeser_chain_objects.erl#L39-L97}
*/
export declare enum Tag {
SignedTx = 11,
SpendTx = 12,
OracleRegisterTx = 22,
OracleQueryTx = 23,
/**
* @deprecated use `OracleRespondTx` instead
*/
OracleResponseTx = 24,
OracleRespondTx = 24,
OracleExtendTx = 25,
NameClaimTx = 32,
NamePreclaimTx = 33,
NameUpdateTx = 34,
NameRevokeTx = 35,
NameTransferTx = 36,
ContractCreateTx = 42,
ContractCallTx = 43,
ChannelCreateTx = 50,
ChannelDepositTx = 51,
ChannelWithdrawTx = 52,
ChannelForceProgressTx = 521,
ChannelCloseMutualTx = 53,
ChannelCloseSoloTx = 54,
ChannelSlashTx = 55,
ChannelSettleTx = 56,
ChannelOffChainTx = 57,
ChannelSnapshotSoloTx = 59,
GaAttachTx = 80,
GaMetaTx = 81,
PayingForTx = 82
}