@zlattice/lattice-js
Version:
Lattice blockchain TypeScript SDK with dual module support (CJS + ESM)
58 lines • 2.13 kB
TypeScript
export declare const ADDRESS_TITLE = "zltc";
export declare const ADDRESS_VERSION: number;
export declare const ADDRESS_BYTES_LENGTH = 20;
export declare const HEX_PREFIX: string;
export declare const SM2P256V1_SIGNATURE_REMARK: string;
export declare const SM2P256V1_SIGNATURE_LENGTH: number;
export declare const ZERO_HASH: string;
export declare const ZERO_ADDRESS: string;
export declare const TransactionTypes: {
readonly Genesis: "genesis";
readonly Create: "create";
readonly Send: "send";
readonly Receive: "receive";
readonly DeployContract: "contract";
readonly CallContract: "execute";
readonly UpgradeContract: "update";
};
export type TransactionType = (typeof TransactionTypes)[keyof typeof TransactionTypes];
export declare const TransactionTypeCodeRecord: Record<TransactionType, number>;
export declare const Curves: {
readonly Secp256k1: "Secp256k1";
readonly Sm2p256v1: "Sm2p256v1";
};
export type Curve = (typeof Curves)[keyof typeof Curves];
export declare const ProposalTypes: {
readonly None: 0;
readonly ContractInnerManagement: 1;
readonly ContractLifecycle: 2;
readonly ModifyChainConfiguration: 3;
readonly ChainByChain: 4;
};
export type ProposalType = (typeof ProposalTypes)[keyof typeof ProposalTypes];
export declare const ProposalStates: {
readonly None: 0;
readonly Initiated: 1;
readonly Succeeded: 2;
readonly Failed: 3;
readonly Expired: 4;
readonly Error: 5;
readonly Cancelled: 6;
readonly NotStarted: 7;
};
export type ProposalState = (typeof ProposalStates)[keyof typeof ProposalStates];
export declare const ContractLifecyclePeriods: {
readonly Deploy: 0;
readonly Upgrade: 1;
readonly Revoke: 2;
readonly Freeze: 3;
readonly Unfreeze: 4;
};
export type ContractLifecyclePeriod = (typeof ContractLifecyclePeriods)[keyof typeof ContractLifecyclePeriods];
export declare const VotingRules: {
readonly None: 0;
readonly Dictatorship: 1;
readonly Consensus: 2;
};
export type VotingRule = (typeof VotingRules)[keyof typeof VotingRules];
//# sourceMappingURL=constants.d.ts.map