@dzapio/sdk
Version:
A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.
37 lines (36 loc) • 836 B
TypeScript
export declare enum AppEnv {
'production' = "production",
'development' = "development"
}
export declare enum ZapPermitType {
PERMIT = 0,
PERMIT2 = 1
}
export declare enum PermitType {
PERMIT = 0,
PERMIT2_TRANSFER_FROM = 1,
PERMIT2_APPROVE = 2
}
export declare enum TxnStatus {
mining = "mining",
success = "success",
rejected = "rejected",
error = "error",
reverted = "reverted",
pendingWalletConfirmation = "pendingWalletConfirmation",
partialSuccess = "partialSuccess"
}
export declare enum Versions {
V1 = "v1",
V1_2 = "v1.2",
V2 = "v2"
}
export declare enum StatusCodes {
UserRejectedRequest = 4001,
Success = 200,
FunctionNotFound = 32771,
Error = 500,
WalletRPCFailure = 429,
SimulationFailure = 417,
ContractExecutionError = -500
}