Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emeris/types

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emeris/types - npm Package Compare versions

Comparing version 0.1.1-pr-165-d9d41c5159d49e3db1201aac46eef09206010929.0 to 0.1.1-pr-166-9c65d1ac045d77ef745506ed741109f8aa10cb04.0

179

lib/EmerisFees.d.ts

@@ -23,6 +23,177 @@ import { Static } from "@sinclair/typebox";

};
export declare const FeesRequest: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
export declare const FeesRequest: import("@sinclair/typebox").TObject<{
gasPriceLevel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<GasPriceLevel>[]>>;
tx: import("@sinclair/typebox").TAny;
}>>;
txs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
chainName: import("@sinclair/typebox").TString;
signingAddress: import("@sinclair/typebox").TString;
txs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"transfer">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferBackward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferForward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"swap">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"createPool">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"addLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"withdrawLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"claim">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"stake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"unstake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"switch">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>]>>;
}>>;
}>;
export declare const FeesResponse: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{

@@ -32,2 +203,4 @@ gasUsed: import("@sinclair/typebox").TString;

denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;

@@ -34,0 +207,0 @@ }>>;

9

lib/EmerisFees.js

@@ -5,2 +5,3 @@ "use strict";

const typebox_1 = require("@sinclair/typebox");
const EmerisTransactions_1 = require("./EmerisTransactions");
var GasPriceLevel;

@@ -16,10 +17,10 @@ (function (GasPriceLevel) {

}));
exports.FeesRequest = typebox_1.Type.Strict(typebox_1.Type.Array(typebox_1.Type.Object({
exports.FeesRequest = typebox_1.Type.Strict(typebox_1.Type.Object({
gasPriceLevel: typebox_1.Type.Optional(typebox_1.Type.Enum(GasPriceLevel)),
tx: typebox_1.Type.Any()
})));
txs: typebox_1.Type.Array(EmerisTransactions_1.AbstractTransactionMappingRequest)
}));
exports.FeesResponse = typebox_1.Type.Strict(typebox_1.Type.Array(typebox_1.Type.Object({
gasUsed: typebox_1.Type.String(),
fee: typebox_1.Type.Array(Coin),
fee: typebox_1.Type.Array(EmerisTransactions_1.AbstractAmount),
totalUSD: typebox_1.Type.Number()
})));
import { EmerisDEXInfo } from '.';
import * as Base from './EmerisBase';
import { Static } from "@sinclair/typebox";
export declare type FeeWDenom = {

@@ -72,8 +73,9 @@ amount: Base.GasPrice;

};
export declare type AbstractAmount = {
denom: string;
base_denom?: string;
chain_name?: string;
amount: string;
};
export declare const AbstractAmount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
export declare type AbstractAmount = Static<typeof AbstractAmount>;
export declare type AbstractFee = {

@@ -83,125 +85,777 @@ amount: AbstractAmount;

};
export declare type AbstractTransferTransactionData = {
amount: AbstractAmount;
fromAddress: string;
toAddress: string;
chainName: string;
};
export declare type AbstractTransferTransaction = {
type: 'transfer';
protocol?: EmerisDEXInfo.DEX;
data: AbstractTransferTransactionData;
};
export declare type AbstractIBCTransferTransactionData = {
amount: AbstractAmount;
fromAddress: string;
toAddress: string;
toChain: string;
through: string;
chainName: string;
};
export declare type AbstractIBCTransferBackwardTransaction = {
type: 'IBCtransferBackward';
protocol?: EmerisDEXInfo.DEX;
data: AbstractIBCTransferTransactionData;
};
export declare type AbstractIBCTransferForwardTransaction = {
type: 'IBCtransferForward';
protocol?: EmerisDEXInfo.DEX;
data: AbstractIBCTransferTransactionData;
};
export declare type AbstractSwapTransactionData = {
from: AbstractAmount;
to: AbstractAmount;
pool: Record<string, unknown>;
chainName: string;
};
export declare type AbstractSwapTransaction = {
type: 'swap';
protocol?: EmerisDEXInfo.DEX;
data: AbstractSwapTransactionData;
};
export declare type AbstractCreatePoolTransactionData = {
coinA: AbstractAmount;
coinB: AbstractAmount;
extensions?: Record<string, unknown>;
chainName: string;
};
export declare type AbstractCreatePoolTransaction = {
type: 'createPool';
protocol?: EmerisDEXInfo.DEX;
data: AbstractCreatePoolTransactionData;
};
export declare type AbstractAddLiquidityTransactionData = {
coinA: AbstractAmount;
coinB: AbstractAmount;
pool: Record<string, unknown>;
chainName: string;
};
export declare type AbstractAddLiquidityTransaction = {
type: 'addLiquidity';
protocol?: EmerisDEXInfo.DEX;
data: AbstractAddLiquidityTransactionData;
};
export declare type AbstractWithdrawLiquidityTransactionData = {
poolCoin: AbstractAmount;
pool: Record<string, unknown>;
chainName: string;
};
export declare type AbstractWithdrawLiquidityTransaction = {
type: 'withdrawLiquidity';
protocol?: EmerisDEXInfo.DEX;
data: AbstractWithdrawLiquidityTransactionData;
};
export declare type AbstractClaimRewardsTransactionData = {
total: string;
rewards: {
reward: string;
validator_address: string;
}[];
chainName: string;
};
export declare type AbstractClaimRewardsTransaction = {
type: 'claim';
protocol?: EmerisDEXInfo.DEX;
data: AbstractClaimRewardsTransactionData;
};
export declare type AbstractStakeTransactionData = {
validatorAddress: string;
amount: AbstractAmount;
chainName: string;
};
export declare type AbstractStakeTransaction = {
type: 'stake';
protocol?: EmerisDEXInfo.DEX;
data: AbstractStakeTransactionData[];
};
export declare type AbstractUnstakeTransactionData = {
validatorAddress: string;
amount: AbstractAmount;
chainName: string;
};
export declare type AbstractUnstakeTransaction = {
type: 'unstake';
protocol?: EmerisDEXInfo.DEX;
data: AbstractUnstakeTransactionData;
};
export declare type AbstractRestakeTransactionData = {
validatorSrcAddress: string;
validatorDstAddress: string;
amount: AbstractAmount;
chainName: string;
};
export declare type AbstractRestakeTransaction = {
type: 'switch';
protocol?: EmerisDEXInfo.DEX;
data: AbstractRestakeTransactionData;
};
export declare type AbstractTransactionData = AbstractTransferTransactionData | AbstractIBCTransferTransactionData | AbstractSwapTransactionData | AbstractCreatePoolTransactionData | AbstractAddLiquidityTransactionData | AbstractWithdrawLiquidityTransactionData | AbstractClaimRewardsTransactionData | AbstractStakeTransactionData | AbstractUnstakeTransactionData | AbstractRestakeTransactionData;
export declare type AbstractTransaction = AbstractTransferTransaction | AbstractIBCTransferBackwardTransaction | AbstractIBCTransferForwardTransaction | AbstractSwapTransaction | AbstractCreatePoolTransaction | AbstractAddLiquidityTransaction | AbstractWithdrawLiquidityTransaction | AbstractClaimRewardsTransaction | AbstractStakeTransaction | AbstractUnstakeTransaction | AbstractRestakeTransaction;
export declare type AbstractTransactionMappingRequest = {
chainName: string;
signingAddress: string;
txs: AbstractTransaction[];
};
export declare const AbstractTransferTransactionData: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractTransferTransactionData = Static<typeof AbstractTransferTransactionData>;
export declare const AbstractTransferTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"transfer">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractTransferTransaction = Static<typeof AbstractTransferTransaction>;
export declare const AbstractIBCTransferTransactionData: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractIBCTransferTransactionData = Static<typeof AbstractIBCTransferTransactionData>;
export declare const AbstractIBCTransferBackwardTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferBackward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractIBCTransferBackwardTransaction = Static<typeof AbstractIBCTransferBackwardTransaction>;
export declare const AbstractIBCTransferForwardTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferForward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractIBCTransferForwardTransaction = Static<typeof AbstractIBCTransferForwardTransaction>;
export declare const AbstractSwapTransactionData: import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractSwapTransactionData = Static<typeof AbstractSwapTransactionData>;
export declare const AbstractSwapTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"swap">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractSwapTransaction = Static<typeof AbstractSwapTransactionData>;
export declare const AbstractCreatePoolTransactionData: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractCreatePoolTransactionData = Static<typeof AbstractCreatePoolTransactionData>;
export declare const AbstractCreatePoolTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"createPool">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractCreatePoolTransaction = Static<typeof AbstractCreatePoolTransaction>;
export declare const AbstractAddLiquidityTransactionData: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractAddLiquidityTransactionData = Static<typeof AbstractAddLiquidityTransactionData>;
export declare const AbstractAddLiquidityTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"addLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractAddLiquidityTransaction = Static<typeof AbstractAddLiquidityTransaction>;
export declare const AbstractWithdrawLiquidityTransactionData: import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractWithdrawLiquidityTransactionData = Static<typeof AbstractWithdrawLiquidityTransactionData>;
export declare const AbstractWithdrawLiquidityTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"withdrawLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractWithdrawLiquidityTransaction = Static<typeof AbstractWithdrawLiquidityTransaction>;
export declare const AbstractClaimRewardsTransactionData: import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractClaimRewardsTransactionData = Static<typeof AbstractClaimRewardsTransactionData>;
export declare const AbstractClaimRewardsTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"claim">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractClaimRewardsTransaction = Static<typeof AbstractClaimRewardsTransaction>;
export declare const AbstractStakeTransactionData: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractStakeTransactionData = Static<typeof AbstractStakeTransactionData>;
export declare const AbstractStakeTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"stake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>>;
}>;
export declare type AbstractStakeTransaction = Static<typeof AbstractStakeTransaction>;
export declare const AbstractUnstakeTransactionData: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractUnstakeTransactionData = Static<typeof AbstractUnstakeTransactionData>;
export declare const AbstractUnstakeTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"unstake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractUnstakeTransaction = Static<typeof AbstractUnstakeTransaction>;
export declare const AbstractRestakeTransactionData: import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
export declare type AbstractRestakeTransactionData = Static<typeof AbstractRestakeTransactionData>;
export declare const AbstractRestakeTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"switch">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>;
export declare type AbstractRestakeTransaction = Static<typeof AbstractRestakeTransaction>;
export declare const AbstractTransactionData: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>, import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>]>;
export declare type AbstractTransactionData = Static<typeof AbstractTransactionData>;
export declare const AbstractTransaction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"transfer">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferBackward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferForward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"swap">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"createPool">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"addLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"withdrawLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"claim">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"stake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"unstake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"switch">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>]>;
export declare type AbstractTransaction = Static<typeof AbstractTransaction>;
export declare const AbstractTransactionMappingRequest: import("@sinclair/typebox").TObject<{
chainName: import("@sinclair/typebox").TString;
signingAddress: import("@sinclair/typebox").TString;
txs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"transfer">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferBackward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"IBCtransferForward">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
fromAddress: import("@sinclair/typebox").TString;
toAddress: import("@sinclair/typebox").TString;
toChain: import("@sinclair/typebox").TString;
through: import("@sinclair/typebox").TString;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"swap">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
from: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
to: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"createPool">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
extensions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"addLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
coinA: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
coinB: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"withdrawLiquidity">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
poolCoin: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
pool: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"claim">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
total: import("@sinclair/typebox").TString;
rewards: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
reward: import("@sinclair/typebox").TString;
validator_address: import("@sinclair/typebox").TString;
}>>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"stake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"unstake">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"switch">;
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>;
data: import("@sinclair/typebox").TObject<{
validatorSrcAddress: import("@sinclair/typebox").TString;
validatorDstAddress: import("@sinclair/typebox").TString;
amount: import("@sinclair/typebox").TObject<{
denom: import("@sinclair/typebox").TString;
base_denom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chain_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
amount: import("@sinclair/typebox").TString;
}>;
chainName: import("@sinclair/typebox").TString;
}>;
}>]>>;
}>;
export declare type AbstractTransactionMappingRequest = Static<typeof AbstractTransactionMappingRequest>;
//# sourceMappingURL=EmerisTransactions.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractTransactionMappingRequest = exports.AbstractTransaction = exports.AbstractTransactionData = exports.AbstractRestakeTransaction = exports.AbstractRestakeTransactionData = exports.AbstractUnstakeTransaction = exports.AbstractUnstakeTransactionData = exports.AbstractStakeTransaction = exports.AbstractStakeTransactionData = exports.AbstractClaimRewardsTransaction = exports.AbstractClaimRewardsTransactionData = exports.AbstractWithdrawLiquidityTransaction = exports.AbstractWithdrawLiquidityTransactionData = exports.AbstractAddLiquidityTransaction = exports.AbstractAddLiquidityTransactionData = exports.AbstractCreatePoolTransaction = exports.AbstractCreatePoolTransactionData = exports.AbstractSwapTransaction = exports.AbstractSwapTransactionData = exports.AbstractIBCTransferForwardTransaction = exports.AbstractIBCTransferBackwardTransaction = exports.AbstractIBCTransferTransactionData = exports.AbstractTransferTransaction = exports.AbstractTransferTransactionData = exports.AbstractAmount = void 0;
const _1 = require(".");
const typebox_1 = require("@sinclair/typebox");
exports.AbstractAmount = typebox_1.Type.Strict(typebox_1.Type.Object({
denom: typebox_1.Type.String(),
base_denom: typebox_1.Type.Optional(typebox_1.Type.String()),
chain_name: typebox_1.Type.Optional(typebox_1.Type.String()),
amount: typebox_1.Type.String(),
}));
exports.AbstractTransferTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
amount: exports.AbstractAmount,
fromAddress: typebox_1.Type.String(),
toAddress: typebox_1.Type.String(),
chainName: typebox_1.Type.String(),
}));
exports.AbstractTransferTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('transfer'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractTransferTransactionData
}));
exports.AbstractIBCTransferTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
amount: exports.AbstractAmount,
fromAddress: typebox_1.Type.String(),
toAddress: typebox_1.Type.String(),
toChain: typebox_1.Type.String(),
through: typebox_1.Type.String(),
chainName: typebox_1.Type.String(),
}));
exports.AbstractIBCTransferBackwardTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('IBCtransferBackward'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractIBCTransferTransactionData
}));
exports.AbstractIBCTransferForwardTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('IBCtransferForward'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractIBCTransferTransactionData
}));
exports.AbstractSwapTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
from: exports.AbstractAmount,
to: exports.AbstractAmount,
pool: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
chainName: typebox_1.Type.String()
}));
exports.AbstractSwapTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('swap'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractSwapTransactionData,
}));
exports.AbstractCreatePoolTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
coinA: exports.AbstractAmount,
coinB: exports.AbstractAmount,
extensions: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
chainName: typebox_1.Type.String(),
}));
exports.AbstractCreatePoolTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('createPool'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractCreatePoolTransactionData
}));
exports.AbstractAddLiquidityTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
coinA: exports.AbstractAmount,
coinB: exports.AbstractAmount,
pool: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
chainName: typebox_1.Type.String(),
}));
exports.AbstractAddLiquidityTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('addLiquidity'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractAddLiquidityTransactionData
}));
exports.AbstractWithdrawLiquidityTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
poolCoin: exports.AbstractAmount,
pool: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
chainName: typebox_1.Type.String(),
}));
exports.AbstractWithdrawLiquidityTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('withdrawLiquidity'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractWithdrawLiquidityTransactionData
}));
const Rewards = typebox_1.Type.Strict(typebox_1.Type.Array(typebox_1.Type.Strict(typebox_1.Type.Object({ reward: typebox_1.Type.String(), validator_address: typebox_1.Type.String() }))));
exports.AbstractClaimRewardsTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
total: typebox_1.Type.String(),
rewards: Rewards,
chainName: typebox_1.Type.String(),
}));
exports.AbstractClaimRewardsTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('claim'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractClaimRewardsTransactionData
}));
exports.AbstractStakeTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
validatorAddress: typebox_1.Type.String(),
amount: exports.AbstractAmount,
chainName: typebox_1.Type.String(),
}));
exports.AbstractStakeTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('stake'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: typebox_1.Type.Array(exports.AbstractStakeTransactionData),
}));
exports.AbstractUnstakeTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
validatorAddress: typebox_1.Type.String(),
amount: exports.AbstractAmount,
chainName: typebox_1.Type.String(),
}));
exports.AbstractUnstakeTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('unstake'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractUnstakeTransactionData,
}));
exports.AbstractRestakeTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
validatorSrcAddress: typebox_1.Type.String(),
validatorDstAddress: typebox_1.Type.String(),
amount: exports.AbstractAmount,
chainName: typebox_1.Type.String(),
}));
exports.AbstractRestakeTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('switch'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(_1.EmerisDEXInfo.DEX)),
data: exports.AbstractRestakeTransactionData,
}));
exports.AbstractTransactionData = typebox_1.Type.Union([exports.AbstractTransferTransactionData, exports.AbstractIBCTransferTransactionData, exports.AbstractSwapTransactionData, exports.AbstractCreatePoolTransactionData, exports.AbstractAddLiquidityTransactionData, exports.AbstractWithdrawLiquidityTransactionData, exports.AbstractClaimRewardsTransactionData, exports.AbstractStakeTransactionData, exports.AbstractUnstakeTransactionData, exports.AbstractRestakeTransactionData]);
exports.AbstractTransaction = typebox_1.Type.Union([exports.AbstractTransferTransaction, exports.AbstractIBCTransferBackwardTransaction, exports.AbstractIBCTransferForwardTransaction, exports.AbstractSwapTransaction, exports.AbstractCreatePoolTransaction, exports.AbstractAddLiquidityTransaction, exports.AbstractWithdrawLiquidityTransaction, exports.AbstractClaimRewardsTransaction, exports.AbstractStakeTransaction, exports.AbstractUnstakeTransaction, exports.AbstractRestakeTransaction]);
exports.AbstractTransactionMappingRequest = typebox_1.Type.Strict(typebox_1.Type.Object({
chainName: typebox_1.Type.String(),
signingAddress: typebox_1.Type.String(),
txs: typebox_1.Type.Array(exports.AbstractTransaction),
}));
{
"name": "@emeris/types",
"version": "0.1.1-pr-165-d9d41c5159d49e3db1201aac46eef09206010929.0+d9d41c5",
"version": "0.1.1-pr-166-9c65d1ac045d77ef745506ed741109f8aa10cb04.0+9c65d1a",
"description": "Emeris common types",

@@ -23,3 +23,3 @@ "author": "Ignite, Inc <hello@ignt.com>",

},
"gitHead": "d9d41c5159d49e3db1201aac46eef09206010929"
"gitHead": "9c65d1ac045d77ef745506ed741109f8aa10cb04"
}
import { Static, Type } from "@sinclair/typebox";
import { Denom } from "./EmerisDEXInfo";
import { Transaction, TransactionData } from "./EmerisTransactions";
import { AbstractAmount, AbstractTransactionMappingRequest, Transaction, TransactionData } from "./EmerisTransactions";

@@ -31,10 +31,10 @@ export enum GasPriceLevel {

export const FeesRequest = Type.Strict(Type.Array(Type.Object({
export const FeesRequest = Type.Strict(Type.Object({
gasPriceLevel: Type.Optional(Type.Enum(GasPriceLevel)),
tx: Type.Any()
})));
txs: Type.Array(AbstractTransactionMappingRequest)
}));
export const FeesResponse = Type.Strict(Type.Array(Type.Object({
gasUsed: Type.String(),
fee: Type.Array(Coin),
fee: Type.Array(AbstractAmount),
totalUSD: Type.Number()

@@ -41,0 +41,0 @@ })));

import { EmerisDEXInfo } from '.';
import * as Base from './EmerisBase';
import { Static, StaticArray,Type } from "@sinclair/typebox";

@@ -82,8 +83,10 @@ export type FeeWDenom = {

};
export type AbstractAmount = {
denom: string;
base_denom?: string;
chain_name?: string;
amount: string;
}
export const AbstractAmount = Type.Strict(Type.Object({
denom: Type.String(),
base_denom: Type.Optional(Type.String()),
chain_name: Type.Optional(Type.String()),
amount: Type.String(),
}));
export type AbstractAmount = Static<typeof AbstractAmount>
export type AbstractFee = {

@@ -93,125 +96,167 @@ amount: AbstractAmount;

}
export type AbstractTransferTransactionData = {
amount: AbstractAmount;
fromAddress: string;
toAddress: string;
chainName: string;
}
export type AbstractTransferTransaction = {
type: 'transfer';
protocol?: EmerisDEXInfo.DEX;
data: AbstractTransferTransactionData;
}
export type AbstractIBCTransferTransactionData = {
amount: AbstractAmount;
fromAddress: string;
toAddress: string;
toChain: string;
through: string;
chainName: string;
}
export type AbstractIBCTransferBackwardTransaction = {
type: 'IBCtransferBackward';
protocol?: EmerisDEXInfo.DEX;
data: AbstractIBCTransferTransactionData;
}
export type AbstractIBCTransferForwardTransaction = {
type: 'IBCtransferForward';
protocol?: EmerisDEXInfo.DEX;
data: AbstractIBCTransferTransactionData;
}
export type AbstractSwapTransactionData = {
from: AbstractAmount;
to: AbstractAmount;
pool: Record<string, unknown>;
chainName: string;
}
export type AbstractSwapTransaction = {
type: 'swap';
protocol?: EmerisDEXInfo.DEX;
data: AbstractSwapTransactionData;
}
export type AbstractCreatePoolTransactionData = {
coinA: AbstractAmount;
coinB: AbstractAmount;
extensions?: Record<string, unknown>
chainName: string;
}
export type AbstractCreatePoolTransaction = {
type: 'createPool';
protocol?: EmerisDEXInfo.DEX;
data: AbstractCreatePoolTransactionData;
}
export type AbstractAddLiquidityTransactionData = {
coinA: AbstractAmount;
coinB: AbstractAmount;
pool: Record<string, unknown>;
chainName: string;
}
export type AbstractAddLiquidityTransaction = {
type: 'addLiquidity';
protocol?: EmerisDEXInfo.DEX;
data: AbstractAddLiquidityTransactionData;
}
export type AbstractWithdrawLiquidityTransactionData = {
poolCoin: AbstractAmount
pool: Record<string, unknown>;
chainName: string;
}
export type AbstractWithdrawLiquidityTransaction = {
type: 'withdrawLiquidity';
protocol?: EmerisDEXInfo.DEX;
data: AbstractWithdrawLiquidityTransactionData;
}
export type AbstractClaimRewardsTransactionData = {
total: string;
rewards: { reward: string; validator_address: string }[];
chainName: string;
}
export type AbstractClaimRewardsTransaction = {
type: 'claim';
protocol?: EmerisDEXInfo.DEX;
data: AbstractClaimRewardsTransactionData;
}
export const AbstractTransferTransactionData = Type.Strict(Type.Object({
amount: AbstractAmount,
fromAddress: Type.String(),
toAddress: Type.String(),
chainName: Type.String(),
}));
export type AbstractTransferTransactionData = Static<typeof AbstractTransferTransactionData>
export const AbstractTransferTransaction = Type.Strict(Type.Object({
type: Type.Literal('transfer'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractTransferTransactionData
}));
export type AbstractTransferTransaction = Static<typeof AbstractTransferTransaction>;
export type AbstractStakeTransactionData = {
validatorAddress: string;
amount: AbstractAmount;
chainName: string;
};
export const AbstractIBCTransferTransactionData = Type.Strict(Type.Object({
amount: AbstractAmount,
fromAddress: Type.String(),
toAddress: Type.String(),
toChain: Type.String(),
through: Type.String(),
chainName: Type.String(),
}));
export type AbstractIBCTransferTransactionData = Static<typeof AbstractIBCTransferTransactionData>
export type AbstractStakeTransaction = {
type: 'stake';
protocol?: EmerisDEXInfo.DEX;
data: AbstractStakeTransactionData[];
}
export type AbstractUnstakeTransactionData = {
validatorAddress: string;
amount: AbstractAmount;
chainName: string;
};
export type AbstractUnstakeTransaction = {
type: 'unstake';
protocol?: EmerisDEXInfo.DEX;
data: AbstractUnstakeTransactionData;
}
export const AbstractIBCTransferBackwardTransaction = Type.Strict(Type.Object({
type: Type.Literal('IBCtransferBackward'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractIBCTransferTransactionData
}));
export type AbstractIBCTransferBackwardTransaction = Static<typeof AbstractIBCTransferBackwardTransaction>
export const AbstractIBCTransferForwardTransaction = Type.Strict(Type.Object({
type: Type.Literal('IBCtransferForward'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractIBCTransferTransactionData
}));
export type AbstractIBCTransferForwardTransaction = Static<typeof AbstractIBCTransferForwardTransaction>
export const AbstractSwapTransactionData = Type.Strict(Type.Object({
from: AbstractAmount,
to: AbstractAmount,
pool: Type.Record(Type.String(),Type.Unknown()),
chainName: Type.String()
}));
export type AbstractSwapTransactionData = Static<typeof AbstractSwapTransactionData>
export const AbstractSwapTransaction = Type.Strict(Type.Object({
type: Type.Literal('swap'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractSwapTransactionData,
}));
export type AbstractSwapTransaction = Static<typeof AbstractSwapTransactionData>;
export type AbstractRestakeTransactionData = {
validatorSrcAddress: string;
validatorDstAddress: string;
amount: AbstractAmount;
chainName: string;
};
export type AbstractRestakeTransaction = {
type: 'switch';
protocol?: EmerisDEXInfo.DEX;
data: AbstractRestakeTransactionData;
};
export type AbstractTransactionData = AbstractTransferTransactionData | AbstractIBCTransferTransactionData | AbstractSwapTransactionData | AbstractCreatePoolTransactionData | AbstractAddLiquidityTransactionData | AbstractWithdrawLiquidityTransactionData | AbstractClaimRewardsTransactionData | AbstractStakeTransactionData | AbstractUnstakeTransactionData | AbstractRestakeTransactionData;
export type AbstractTransaction = AbstractTransferTransaction | AbstractIBCTransferBackwardTransaction | AbstractIBCTransferForwardTransaction | AbstractSwapTransaction | AbstractCreatePoolTransaction | AbstractAddLiquidityTransaction | AbstractWithdrawLiquidityTransaction | AbstractClaimRewardsTransaction | AbstractStakeTransaction | AbstractUnstakeTransaction | AbstractRestakeTransaction;
export const AbstractCreatePoolTransactionData = Type.Strict(Type.Object({
coinA: AbstractAmount,
coinB: AbstractAmount,
extensions: Type.Optional(Type.Record(Type.String(), Type.Unknown())),
chainName: Type.String(),
}));
export type AbstractTransactionMappingRequest = {
chainName: string;
signingAddress: string;
txs: AbstractTransaction[];
}
export type AbstractCreatePoolTransactionData = Static<typeof AbstractCreatePoolTransactionData>;
export const AbstractCreatePoolTransaction = Type.Strict(Type.Object({
type: Type.Literal('createPool'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractCreatePoolTransactionData
}));
export type AbstractCreatePoolTransaction = Static<typeof AbstractCreatePoolTransaction>
export const AbstractAddLiquidityTransactionData = Type.Strict(Type.Object({
coinA: AbstractAmount,
coinB: AbstractAmount,
pool: Type.Record(Type.String(), Type.Unknown()),
chainName: Type.String(),
}));
export type AbstractAddLiquidityTransactionData = Static<typeof AbstractAddLiquidityTransactionData>;
export const AbstractAddLiquidityTransaction = Type.Strict(Type.Object({
type: Type.Literal('addLiquidity'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractAddLiquidityTransactionData
}));
export type AbstractAddLiquidityTransaction = Static<typeof AbstractAddLiquidityTransaction>;
export const AbstractWithdrawLiquidityTransactionData = Type.Strict(Type.Object({
poolCoin: AbstractAmount,
pool: Type.Record(Type.String(), Type.Unknown()),
chainName: Type.String(),
}));
export type AbstractWithdrawLiquidityTransactionData = Static<typeof AbstractWithdrawLiquidityTransactionData>;
export const AbstractWithdrawLiquidityTransaction = Type.Strict(Type.Object({
type: Type.Literal('withdrawLiquidity'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractWithdrawLiquidityTransactionData
}));
export type AbstractWithdrawLiquidityTransaction = Static<typeof AbstractWithdrawLiquidityTransaction>;
const Rewards = Type.Strict(Type.Array(Type.Strict(Type.Object({ reward: Type.String(), validator_address: Type.String() }))));
export const AbstractClaimRewardsTransactionData = Type.Strict(Type.Object({
total: Type.String(),
rewards: Rewards,
chainName: Type.String(),
}));
export type AbstractClaimRewardsTransactionData = Static<typeof AbstractClaimRewardsTransactionData>;
export const AbstractClaimRewardsTransaction = Type.Strict(Type.Object({
type: Type.Literal('claim'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractClaimRewardsTransactionData
}));
export type AbstractClaimRewardsTransaction = Static<typeof AbstractClaimRewardsTransaction>;
export const AbstractStakeTransactionData = Type.Strict(Type.Object({
validatorAddress: Type.String(),
amount: AbstractAmount,
chainName: Type.String(),
}));
export type AbstractStakeTransactionData = Static<typeof AbstractStakeTransactionData>;
export const AbstractStakeTransaction = Type.Strict(Type.Object({
type: Type.Literal('stake'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: Type.Array(AbstractStakeTransactionData),
}));
export type AbstractStakeTransaction = Static<typeof AbstractStakeTransaction>;
export const AbstractUnstakeTransactionData = Type.Strict(Type.Object({
validatorAddress: Type.String(),
amount: AbstractAmount,
chainName: Type.String(),
}));
export type AbstractUnstakeTransactionData = Static<typeof AbstractUnstakeTransactionData>;
export const AbstractUnstakeTransaction = Type.Strict(Type.Object({
type: Type.Literal('unstake'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractUnstakeTransactionData,
}));
export type AbstractUnstakeTransaction = Static<typeof AbstractUnstakeTransaction>;
export const AbstractRestakeTransactionData = Type.Strict(Type.Object({
validatorSrcAddress: Type.String(),
validatorDstAddress: Type.String(),
amount: AbstractAmount,
chainName: Type.String(),
}));
export type AbstractRestakeTransactionData = Static<typeof AbstractRestakeTransactionData>;
export const AbstractRestakeTransaction = Type.Strict(Type.Object({
type: Type.Literal('switch'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractRestakeTransactionData,
}));
export type AbstractRestakeTransaction = Static<typeof AbstractRestakeTransaction>;
export const AbstractTransactionData = Type.Union([AbstractTransferTransactionData , AbstractIBCTransferTransactionData , AbstractSwapTransactionData , AbstractCreatePoolTransactionData , AbstractAddLiquidityTransactionData , AbstractWithdrawLiquidityTransactionData , AbstractClaimRewardsTransactionData , AbstractStakeTransactionData , AbstractUnstakeTransactionData , AbstractRestakeTransactionData]);
export type AbstractTransactionData = Static<typeof AbstractTransactionData>;
export const AbstractTransaction = Type.Union([AbstractTransferTransaction, AbstractIBCTransferBackwardTransaction, AbstractIBCTransferForwardTransaction, AbstractSwapTransaction, AbstractCreatePoolTransaction, AbstractAddLiquidityTransaction, AbstractWithdrawLiquidityTransaction, AbstractClaimRewardsTransaction, AbstractStakeTransaction, AbstractUnstakeTransaction, AbstractRestakeTransaction]);
export type AbstractTransaction = Static<typeof AbstractTransaction>;
export const AbstractTransactionMappingRequest = Type.Strict(Type.Object({
chainName: Type.String(),
signingAddress: Type.String(),
txs: Type.Array(AbstractTransaction),
}));
export type AbstractTransactionMappingRequest = Static<typeof AbstractTransactionMappingRequest>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc