@emeris/types
Advanced tools
Comparing version 0.2.3-pr-175-287c18d763476e18e9475244de9e7786ee68b08a.0 to 0.2.3-pr-176-ec6792078977e5a2f7dd0ffd405d5c4196b56d00.0
@@ -15,2 +15,6 @@ export declare type AirdropEligibilityCriteria = { | ||
}; | ||
export declare type AirdropCount = { | ||
count: number; | ||
totalAirdrops: number; | ||
}; | ||
export declare type AirdropFile = { | ||
@@ -64,2 +68,4 @@ name: string; | ||
airdropFileName: string; | ||
checkEligibility: boolean; | ||
totalAirdrops: number; | ||
}; | ||
@@ -66,0 +72,0 @@ export declare enum AirdropDateStatus { |
@@ -179,8 +179,2 @@ 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<{}>; | ||
}>; | ||
}>]>>; | ||
@@ -187,0 +181,0 @@ }>>; |
@@ -404,12 +404,2 @@ 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<{ | ||
@@ -526,4 +516,2 @@ amount: import("@sinclair/typebox").TObject<{ | ||
chainName: import("@sinclair/typebox").TString; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
raw: import("@sinclair/typebox").TObject<{}>; | ||
}>]>; | ||
@@ -698,8 +686,2 @@ 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<{}>; | ||
}>; | ||
}>]>; | ||
@@ -877,8 +859,2 @@ 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<{}>; | ||
}>; | ||
}>]>>; | ||
@@ -885,0 +861,0 @@ }>; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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; | ||
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 EmerisDEXInfo = __importStar(require("./EmerisDEXInfo")); | ||
@@ -150,12 +150,4 @@ const typebox_1 = require("@sinclair/typebox"); | ||
})); | ||
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.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({ | ||
@@ -162,0 +154,0 @@ chainName: typebox_1.Type.String(), |
{ | ||
"name": "@emeris/types", | ||
"version": "0.2.3-pr-175-287c18d763476e18e9475244de9e7786ee68b08a.0+287c18d", | ||
"version": "0.2.3-pr-176-ec6792078977e5a2f7dd0ffd405d5c4196b56d00.0+ec67920", | ||
"description": "Emeris common types", | ||
@@ -23,3 +23,3 @@ "author": "Ignite, Inc <hello@ignt.com>", | ||
}, | ||
"gitHead": "287c18d763476e18e9475244de9e7786ee68b08a" | ||
"gitHead": "ec6792078977e5a2f7dd0ffd405d5c4196b56d00" | ||
} |
@@ -16,2 +16,8 @@ export type AirdropEligibilityCriteria = { | ||
}; | ||
export type AirdropCount = { | ||
count: number; | ||
totalAirdrops: number; | ||
}; | ||
export type AirdropFile = { | ||
@@ -33,3 +39,5 @@ name: string; | ||
}; | ||
export type AirdropList = Array<AirdropFile>; | ||
export type Airdrop = { | ||
@@ -68,9 +76,11 @@ project: string; | ||
airdropFileName: string; | ||
checkEligibility: boolean; | ||
totalAirdrops: number; | ||
}; | ||
export enum AirdropDateStatus { | ||
NOT_ANNOUNCED = 'NOT_ANNOUNCED', | ||
NOT_STARTED = 'NOT_STARTED', | ||
ONGOING = 'ONGOING', | ||
ENDED = 'ENDED', | ||
} | ||
NOT_ANNOUNCED = "NOT_ANNOUNCED", | ||
NOT_STARTED = "NOT_STARTED", | ||
ONGOING = "ONGOING", | ||
ENDED = "ENDED", | ||
} |
@@ -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,14 +252,5 @@ export type AbstractSwapTransactionData = Static<typeof AbstractSwapTransactionData> | ||
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 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, AbstractCustomTransaction]); | ||
export const AbstractTransaction = Type.Union([AbstractTransferTransaction, AbstractIBCTransferBackwardTransaction, AbstractIBCTransferForwardTransaction, AbstractSwapTransaction, AbstractCreatePoolTransaction, AbstractAddLiquidityTransaction, AbstractWithdrawLiquidityTransaction, AbstractClaimRewardsTransaction, AbstractStakeTransaction, AbstractUnstakeTransaction, AbstractRestakeTransaction]); | ||
export type AbstractTransaction = Static<typeof AbstractTransaction>; | ||
@@ -266,0 +257,0 @@ |
Sorry, the diff of this file is not supported yet
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
151694
2839