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

@emeris/types

Package Overview
Dependencies
Maintainers
2
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.3.0 to 0.3.1-pr-182-cf34178cb63185e263a2e390db69e9fb3ee86b89.0

33

lib/EmerisTransactions.d.ts

@@ -302,2 +302,5 @@ import * as EmerisDEXInfo from './EmerisDEXInfo';

export declare type AbstractWithdrawLiquidityTransaction = Static<typeof AbstractWithdrawLiquidityTransaction>;
/**
* @description Claim Rewards
*/
export declare const AbstractClaimRewardsTransactionData: import("@sinclair/typebox").TObject<{

@@ -325,2 +328,32 @@ total: import("@sinclair/typebox").TString;

export declare type AbstractClaimRewardsTransaction = Static<typeof AbstractClaimRewardsTransaction>;
/**
* @description Reinvest Transaction (Claim + Reinvest)
*/
export declare const AbstractReinvestTransactionData: import("@sinclair/typebox").TObject<{
validatorAddress: import("@sinclair/typebox").TString;
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 AbstractReinvestTransactionData = Static<typeof AbstractReinvestTransactionData>;
export declare const AbstractReinvestTransaction: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<"reinvest">;
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;
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 AbstractReinvestTransaction = Static<typeof AbstractReinvestTransaction>;
/**
* @description Stake Transaction
*/
export declare const AbstractStakeTransactionData: import("@sinclair/typebox").TObject<{

@@ -327,0 +360,0 @@ validatorAddress: import("@sinclair/typebox").TString;

22

lib/EmerisTransactions.js

@@ -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.AbstractCustomTransaction = exports.AbstractCustomTransactionData = exports.AbstractRestakeTransaction = exports.AbstractRestakeTransactionData = exports.AbstractUnstakeTransaction = exports.AbstractUnstakeTransactionData = exports.AbstractStakeTransaction = exports.AbstractStakeTransactionData = exports.AbstractReinvestTransaction = exports.AbstractReinvestTransactionData = 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"));

@@ -109,2 +109,5 @@ const typebox_1 = require("@sinclair/typebox");

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() }))));
/**
* @description Claim Rewards
*/
exports.AbstractClaimRewardsTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({

@@ -120,2 +123,19 @@ total: typebox_1.Type.String(),

}));
/**
* @description Reinvest Transaction (Claim + Reinvest)
*/
exports.AbstractReinvestTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({
validatorAddress: typebox_1.Type.String(),
total: typebox_1.Type.String(),
rewards: Rewards,
chainName: typebox_1.Type.String(),
}));
exports.AbstractReinvestTransaction = typebox_1.Type.Strict(typebox_1.Type.Object({
type: typebox_1.Type.Literal('reinvest'),
protocol: typebox_1.Type.Optional(typebox_1.Type.Enum(EmerisDEXInfo.DEX)),
data: exports.AbstractReinvestTransactionData
}));
/**
* @description Stake Transaction
*/
exports.AbstractStakeTransactionData = typebox_1.Type.Strict(typebox_1.Type.Object({

@@ -122,0 +142,0 @@ validatorAddress: typebox_1.Type.String(),

4

package.json
{
"name": "@emeris/types",
"version": "0.3.0",
"version": "0.3.1-pr-182-cf34178cb63185e263a2e390db69e9fb3ee86b89.0+cf34178",
"description": "Emeris common types",

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

},
"gitHead": "37f55275522b46c0d70f139ba12279c98a26a1df"
"gitHead": "cf34178cb63185e263a2e390db69e9fb3ee86b89"
}

@@ -193,2 +193,6 @@ import * as EmerisDEXInfo from './EmerisDEXInfo';

const Rewards = Type.Strict(Type.Array(Type.Strict(Type.Object({ reward: Type.String(), validator_address: Type.String() }))));
/**
* @description Claim Rewards
*/
export const AbstractClaimRewardsTransactionData = Type.Strict(Type.Object({

@@ -199,2 +203,3 @@ total: Type.String(),

}));
export type AbstractClaimRewardsTransactionData = Static<typeof AbstractClaimRewardsTransactionData>;

@@ -207,4 +212,28 @@

}));
export type AbstractClaimRewardsTransaction = Static<typeof AbstractClaimRewardsTransaction>;
/**
* @description Reinvest Transaction (Claim + Reinvest)
*/
export const AbstractReinvestTransactionData = Type.Strict(Type.Object({
validatorAddress: Type.String(),
total: Type.String(),
rewards: Rewards,
chainName: Type.String(),
}));
export type AbstractReinvestTransactionData = Static<typeof AbstractReinvestTransactionData>;
export const AbstractReinvestTransaction = Type.Strict(Type.Object({
type: Type.Literal('reinvest'),
protocol: Type.Optional(Type.Enum(EmerisDEXInfo.DEX)),
data: AbstractReinvestTransactionData
}));
export type AbstractReinvestTransaction = Static<typeof AbstractReinvestTransaction>;
/**
* @description Stake Transaction
*/
export const AbstractStakeTransactionData = Type.Strict(Type.Object({

@@ -211,0 +240,0 @@ validatorAddress: Type.String(),

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