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.2.2 to 0.2.3-pr-170-c95057c2d1a7eac3bc5f0c9c2ba22e7e83c09e2b.0

6

lib/EmerisAirdrops.d.ts

@@ -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,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 @@ }>;

14

lib/EmerisTransactions.js

@@ -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.2",
"version": "0.2.3-pr-170-c95057c2d1a7eac3bc5f0c9c2ba22e7e83c09e2b.0+c95057c",
"description": "Emeris common types",

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

},
"gitHead": "e611fe47722136c46eeb24f067200c50bcf67a5d"
"gitHead": "c95057c2d1a7eac3bc5f0c9c2ba22e7e83c09e2b"
}

@@ -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,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

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