@emeris/types
Advanced tools
Comparing version 0.2.3-pr-174-b07c8c7690704c5b290ce4728aa7a83c668722e4.0 to 0.2.3-pr-175-04ee7219452aabca747e6b366363d07f7238aadf.0
@@ -179,2 +179,8 @@ import { Static } from "@sinclair/typebox"; | ||
}>; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
type: import("@sinclair/typebox").TLiteral<"custom">; | ||
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<import("./EmerisDEXInfo").DEX>[]>>; | ||
data: import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>; | ||
}>]>>; | ||
@@ -181,0 +187,0 @@ }>>; |
@@ -404,2 +404,12 @@ import * as EmerisDEXInfo from './EmerisDEXInfo'; | ||
export declare type AbstractRestakeTransaction = Static<typeof AbstractRestakeTransaction>; | ||
export declare const AbstractCustomTransactionData: import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>; | ||
export declare const AbstractCustomTransaction: import("@sinclair/typebox").TObject<{ | ||
type: import("@sinclair/typebox").TLiteral<"custom">; | ||
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>; | ||
data: import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>; | ||
}>; | ||
export declare const AbstractTransactionData: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{ | ||
@@ -516,2 +526,4 @@ amount: import("@sinclair/typebox").TObject<{ | ||
chainName: import("@sinclair/typebox").TString; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>]>; | ||
@@ -686,2 +698,8 @@ export declare type AbstractTransactionData = Static<typeof AbstractTransactionData>; | ||
}>; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
type: import("@sinclair/typebox").TLiteral<"custom">; | ||
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>; | ||
data: import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>; | ||
}>]>; | ||
@@ -859,2 +877,8 @@ export declare type AbstractTransaction = Static<typeof AbstractTransaction>; | ||
}>; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
type: import("@sinclair/typebox").TLiteral<"custom">; | ||
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<import("@sinclair/typebox").TEnumKey<EmerisDEXInfo.DEX>[]>>; | ||
data: import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>; | ||
}>]>>; | ||
@@ -861,0 +885,0 @@ }>; |
@@ -26,3 +26,3 @@ "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; | ||
exports.AbstractTransactionMappingRequest = exports.AbstractTransaction = exports.AbstractTransactionData = exports.AbstractCustomTransaction = exports.AbstractCustomTransactionData = 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 EmerisDEXInfo = __importStar(require("./EmerisDEXInfo")); | ||
@@ -150,4 +150,12 @@ const typebox_1 = require("@sinclair/typebox"); | ||
})); | ||
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.AbstractCustomTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({ | ||
raw: typebox_1.Type.Object({}) | ||
})); | ||
exports.AbstractCustomTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({ | ||
type: typebox_1.Type.Literal('custom'), | ||
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(EmerisDEXInfo.DEX)), | ||
data: exports.AbstractCustomTransactionData, | ||
})); | ||
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.AbstractCustomTransactionData]); | ||
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.AbstractCustomTransaction]); | ||
exports.AbstractTransactionMappingRequest = typebox_1.Type.Strict(typebox_1.Type.Object({ | ||
@@ -154,0 +162,0 @@ chainName: typebox_1.Type.String(), |
{ | ||
"name": "@emeris/types", | ||
"version": "0.2.3-pr-174-b07c8c7690704c5b290ce4728aa7a83c668722e4.0+b07c8c7", | ||
"version": "0.2.3-pr-175-04ee7219452aabca747e6b366363d07f7238aadf.0+04ee721", | ||
"description": "Emeris common types", | ||
@@ -23,3 +23,3 @@ "author": "Ignite, Inc <hello@ignt.com>", | ||
}, | ||
"gitHead": "b07c8c7690704c5b290ce4728aa7a83c668722e4" | ||
"gitHead": "04ee7219452aabca747e6b366363d07f7238aadf" | ||
} |
@@ -74,10 +74,10 @@ import * as EmerisDEXInfo from './EmerisDEXInfo'; | ||
export type TransactionSignRequest = { | ||
signingAddress: string, | ||
chainId: string, | ||
messages: AbstractTransaction[], | ||
fee: { | ||
gas: string, | ||
amount: Base.Amount[] | ||
}, | ||
memo: string | ||
signingAddress: string, | ||
chainId: string, | ||
messages: AbstractTransaction[], | ||
fee: { | ||
gas: string, | ||
amount: Base.Amount[] | ||
}, | ||
memo: string | ||
}; | ||
@@ -134,5 +134,5 @@ export const AbstractAmount = Type.Strict(Type.Object({ | ||
from: AbstractAmount, | ||
to: AbstractAmount, | ||
pool: Type.Record(Type.String(),Type.Unknown()), | ||
chainName: Type.String() | ||
to: AbstractAmount, | ||
pool: Type.Record(Type.String(), Type.Unknown()), | ||
chainName: Type.String() | ||
})); | ||
@@ -252,5 +252,14 @@ export type AbstractSwapTransactionData = Static<typeof AbstractSwapTransactionData> | ||
export const AbstractTransactionData = Type.Union([AbstractTransferTransactionData , AbstractIBCTransferTransactionData , AbstractSwapTransactionData , AbstractCreatePoolTransactionData , AbstractAddLiquidityTransactionData , AbstractWithdrawLiquidityTransactionData , AbstractClaimRewardsTransactionData , AbstractStakeTransactionData , AbstractUnstakeTransactionData , AbstractRestakeTransactionData]); | ||
export const AbstractCustomTransactionData = Type.Strict(Type.Object({ | ||
raw: Type.Object({}) | ||
})); | ||
export const AbstractCustomTransaction = Type.Strict(Type.Object({ | ||
type: Type.Literal('custom'), | ||
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)), | ||
data: AbstractCustomTransactionData, | ||
})); | ||
export const AbstractTransactionData = Type.Union([AbstractTransferTransactionData, AbstractIBCTransferTransactionData, AbstractSwapTransactionData, AbstractCreatePoolTransactionData, AbstractAddLiquidityTransactionData, AbstractWithdrawLiquidityTransactionData, AbstractClaimRewardsTransactionData, AbstractStakeTransactionData, AbstractUnstakeTransactionData, AbstractRestakeTransactionData, AbstractCustomTransactionData]); | ||
export type AbstractTransactionData = Static<typeof AbstractTransactionData>; | ||
export const AbstractTransaction = Type.Union([AbstractTransferTransaction, AbstractIBCTransferBackwardTransaction, AbstractIBCTransferForwardTransaction, AbstractSwapTransaction, AbstractCreatePoolTransaction, AbstractAddLiquidityTransaction, AbstractWithdrawLiquidityTransaction, AbstractClaimRewardsTransaction, AbstractStakeTransaction, AbstractUnstakeTransaction, AbstractRestakeTransaction]); | ||
export const AbstractTransaction = Type.Union([AbstractTransferTransaction, AbstractIBCTransferBackwardTransaction, AbstractIBCTransferForwardTransaction, AbstractSwapTransaction, AbstractCreatePoolTransaction, AbstractAddLiquidityTransaction, AbstractWithdrawLiquidityTransaction, AbstractClaimRewardsTransaction, AbstractStakeTransaction, AbstractUnstakeTransaction, AbstractRestakeTransaction, AbstractCustomTransaction]); | ||
export type AbstractTransaction = Static<typeof AbstractTransaction>; | ||
@@ -257,0 +266,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
154031
2874