@hinkal/common 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API/rewardsPointsCalls.d.ts +3 -0
- package/README.md +61 -0
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +1 -0
- package/constants/server.constants.mjs +5 -4
- package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +9 -18
- package/index.cjs +1 -1
- package/index.mjs +239 -238
- package/package.json +1 -1
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +6 -0
- package/types/hinkal.types.mjs +10 -9
package/package.json
CHANGED
package/types/hinkal.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),D=(a=>(a[a.UNISWAP=1]="UNISWAP",a[a.ODOS=2]="ODOS",a[a.ONEINCH=3]="ONEINCH",a[a.PENDLE=4]="PENDLE",a[a.ALL=5]="ALL",a[a.NONE=6]="NONE",a))(D||{}),S=(a=>(a[a.CurveAavePool=0]="CurveAavePool",a))(S||{}),_=(a=>(a[a.Deposit=0]="Deposit",a[a.WithdrawInt=11]="WithdrawInt",a[a.WithdrawUint=12]="WithdrawUint",a[a.WithdrawImbalance=13]="WithdrawImbalance",a[a.Stake=2]="Stake",a[a.Unstake=3]="Unstake",a[a.GetCRV=4]="GetCRV",a))(_||{}),L=(a=>(a[a.StakeLP=0]="StakeLP",a[a.UnStakeLP=1]="UnStakeLP",a[a.ClaimRewardsLP=2]="ClaimRewardsLP",a))(L||{}),h=(a=>(a[a.Deposit=0]="Deposit",a[a.DepositRegular=1]="DepositRegular",a[a.DepositOneInchSingle=2]="DepositOneInchSingle",a[a.DepositOneInchUniswap=3]="DepositOneInchUniswap",a[a.DepositOneInchSolidly=4]="DepositOneInchSolidly",a[a.Withdraw=5]="Withdraw",a[a.WithdrawRegular=6]="WithdrawRegular",a[a.WithdrawOneInchSingle=7]="WithdrawOneInchSingle",a[a.WithdrawOneInchUniswapAndSolidly=8]="WithdrawOneInchUniswapAndSolidly",a[a.WithdrawBoth=9]="WithdrawBoth",a[a.Stake=10]="Stake",a[a.Unstake=11]="Unstake",a[a.GetRewards=12]="GetRewards",a))(h||{}),W=(a=>(a.Ethereum="Ethereum",a.Polygon="Polygon",a))(W||{}),r=(a=>(a[a.Stake=0]="Stake",a[a.Request=1]="Request",a[a.Claim=2]="Claim",a))(r||{}),w=(a=>(a[a.Deposit=0]="Deposit",a[a.Withdraw=1]="Withdraw",a[a.SwapFromYt=2]="SwapFromYt",a[a.SwapToYt=3]="SwapToYt",a[a.SwapPt=4]="SwapPt",a[a.Mint=5]="Mint",a[a.Redeem=6]="Redeem",a[a.Checkpoint=7]="Checkpoint",a[a.PoolRemove=8]="PoolRemove",a))(w||{}),p=(a=>(a[a.AddOrRemoveLiquidity=0]="AddOrRemoveLiquidity",a[a.Checkpoint=1]="Checkpoint",a[a.Invalid=99]="Invalid",a))(p||{}),k=(a=>(a[a.Persist=0]="Persist",a[a.Deposit=1]="Deposit",a[a.Withdraw=2]="Withdraw",a[a.Swap=3]="Swap",a))(k||{}),s=(a=>(a[a.DepositOrStake=0]="DepositOrStake",a[a.Unstake=1]="Unstake",a))(s||{}),U=(a=>(a.WITHDRAW="WITHDRAW",a.SWAP="SWAP",a.CURVE_DEPOSIT="CURVE_DEPOSIT",a.CURVE_WITHDRAW="CURVE_WITHDRAW",a.CURVE_WITHDRAW_INBALANCED="CURVE_WITHDRAW_INBALANCED",a.STAKING="STAKING",a.UNSTAKING="UNSTAKING",a.CLAIMING="CLAIMING",a.BEEFY="BEEFY",a.BEEFY_STAKE="BEEFY_STAKE",a.BEEFY_UNSTAKE="BEEFY_UNSTAKE",a.BEEFY_GET_REWARDS="BEEFY_GET_REWARDS",a.LIDO_STAKE="LIDO_STAKE",a.LIDO_REQUEST="LIDO_REQUEST",a.LIDO_CLAIM="LIDO_CLAIM",a.PENDLE_TRANSACT="PENDLE_TRANSACT",a.PENDLE_YT_IN_SWAP="PENDLE_YT_IN_SWAP",a.PENDLE_YT_OUT_SWAP="PENDLE_YT_OUT_SWAP",a.PENDLE_PT_SWAP="PENDLE_PT_SWAP",a.PENDLE_MINT="PENDLE_MINT",a.PENDLE_REDEEM="PENDLE_REDEEM",a.PENDLE_CLAIM="PENDLE_CLAIM",a.PENDLE_LP="PENDLE_LP",a.PENDLE_LP_CLAIM="PENDLE_LP_CLAIM",a.VOLATILE_WITHDRAW="VOLATILE_WITHDRAW",a.VOLATILE_SWAP="VOLATILE_SWAP",a.EMPORIUM="EMPORIUM",a.NONE="NONE",a))(U||{}),M=(a=>(a[a.NOT_STARTED=0]="NOT_STARTED",a[a.CONNECTED=1]="CONNECTED",a[a.KYC=2]="KYC",a[a.COMPLETED=3]="COMPLETED",a))(M||{});exports.BeefyAction=h;exports.ConvexAction=L;exports.CurveAction=_;exports.EventType=E;exports.HinkalStakeAction=s;exports.INTERACTION=U;exports.IntegrationProvider=D;exports.LidoAction=r;exports.LidoVariant=W;exports.PendleAction=w;exports.PendleLPAction=p;exports.StakeProvider=S;exports.UserProgress=M;exports.VolatileAction=k;
|
package/types/hinkal.types.d.ts
CHANGED
package/types/hinkal.types.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((E) => (E.BalanceChange = "BalanceChange", E.NetworkChange = "NetworkChange", E.KycNeeded = "KycNeeded", E.AccountChanged = "AccountChanged", E.ShowConnect = "ShowConnect", E.ShowNetworkPopup = "ShowNetworkPopup", E.MerkleTreeUpdated = "MerkleTreeUpdated", E.MerkleTreeResetStarted = "MerkleTreeResetStarted", E.MerkleTreeResetFinished = "MerkleTreeResetFinished", E))(a || {}), D = /* @__PURE__ */ ((E) => (E[E.UNISWAP = 1] = "UNISWAP", E[E.ODOS = 2] = "ODOS", E[E.ONEINCH = 3] = "ONEINCH", E[E.PENDLE = 4] = "PENDLE", E[E.ALL = 5] = "ALL", E[E.NONE = 6] = "NONE", E))(D || {}), S = /* @__PURE__ */ ((E) => (E[E.CurveAavePool = 0] = "CurveAavePool", E))(S || {}), _ = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.WithdrawInt = 11] = "WithdrawInt", E[E.WithdrawUint = 12] = "WithdrawUint", E[E.WithdrawImbalance = 13] = "WithdrawImbalance", E[E.Stake = 2] = "Stake", E[E.Unstake = 3] = "Unstake", E[E.GetCRV = 4] = "GetCRV", E))(_ || {}), L = /* @__PURE__ */ ((E) => (E[E.StakeLP = 0] = "StakeLP", E[E.UnStakeLP = 1] = "UnStakeLP", E[E.ClaimRewardsLP = 2] = "ClaimRewardsLP", E))(L || {}), h = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.DepositRegular = 1] = "DepositRegular", E[E.DepositOneInchSingle = 2] = "DepositOneInchSingle", E[E.DepositOneInchUniswap = 3] = "DepositOneInchUniswap", E[E.DepositOneInchSolidly = 4] = "DepositOneInchSolidly", E[E.Withdraw = 5] = "Withdraw", E[E.WithdrawRegular = 6] = "WithdrawRegular", E[E.WithdrawOneInchSingle = 7] = "WithdrawOneInchSingle", E[E.WithdrawOneInchUniswapAndSolidly = 8] = "WithdrawOneInchUniswapAndSolidly", E[E.WithdrawBoth = 9] = "WithdrawBoth", E[E.Stake = 10] = "Stake", E[E.Unstake = 11] = "Unstake", E[E.GetRewards = 12] = "GetRewards", E))(h || {}), W = /* @__PURE__ */ ((E) => (E.Ethereum = "Ethereum", E.Polygon = "Polygon", E))(W || {}), w = /* @__PURE__ */ ((E) => (E[E.Stake = 0] = "Stake", E[E.Request = 1] = "Request", E[E.Claim = 2] = "Claim", E))(w || {}), p = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.Withdraw = 1] = "Withdraw", E[E.SwapFromYt = 2] = "SwapFromYt", E[E.SwapToYt = 3] = "SwapToYt", E[E.SwapPt = 4] = "SwapPt", E[E.Mint = 5] = "Mint", E[E.Redeem = 6] = "Redeem", E[E.Checkpoint = 7] = "Checkpoint", E[E.PoolRemove = 8] = "PoolRemove", E))(p || {}), r = /* @__PURE__ */ ((E) => (E[E.AddOrRemoveLiquidity = 0] = "AddOrRemoveLiquidity", E[E.Checkpoint = 1] = "Checkpoint", E[E.Invalid = 99] = "Invalid", E))(r || {}), U = /* @__PURE__ */ ((E) => (E[E.Persist = 0] = "Persist", E[E.Deposit = 1] = "Deposit", E[E.Withdraw = 2] = "Withdraw", E[E.Swap = 3] = "Swap", E))(U || {}), M = /* @__PURE__ */ ((E) => (E[E.DepositOrStake = 0] = "DepositOrStake", E[E.Unstake = 1] = "Unstake", E))(M || {}), k = /* @__PURE__ */ ((E) => (E.WITHDRAW = "WITHDRAW", E.SWAP = "SWAP", E.CURVE_DEPOSIT = "CURVE_DEPOSIT", E.CURVE_WITHDRAW = "CURVE_WITHDRAW", E.CURVE_WITHDRAW_INBALANCED = "CURVE_WITHDRAW_INBALANCED", E.STAKING = "STAKING", E.UNSTAKING = "UNSTAKING", E.CLAIMING = "CLAIMING", E.BEEFY = "BEEFY", E.BEEFY_STAKE = "BEEFY_STAKE", E.BEEFY_UNSTAKE = "BEEFY_UNSTAKE", E.BEEFY_GET_REWARDS = "BEEFY_GET_REWARDS", E.LIDO_STAKE = "LIDO_STAKE", E.LIDO_REQUEST = "LIDO_REQUEST", E.LIDO_CLAIM = "LIDO_CLAIM", E.PENDLE_TRANSACT = "PENDLE_TRANSACT", E.PENDLE_YT_IN_SWAP = "PENDLE_YT_IN_SWAP", E.PENDLE_YT_OUT_SWAP = "PENDLE_YT_OUT_SWAP", E.PENDLE_PT_SWAP = "PENDLE_PT_SWAP", E.PENDLE_MINT = "PENDLE_MINT", E.PENDLE_REDEEM = "PENDLE_REDEEM", E.PENDLE_CLAIM = "PENDLE_CLAIM", E.PENDLE_LP = "PENDLE_LP", E.PENDLE_LP_CLAIM = "PENDLE_LP_CLAIM", E.VOLATILE_WITHDRAW = "VOLATILE_WITHDRAW", E.VOLATILE_SWAP = "VOLATILE_SWAP", E.EMPORIUM = "EMPORIUM", E.NONE = "NONE", E))(k || {}), s = /* @__PURE__ */ ((E) => (E[E.NOT_STARTED = 0] = "NOT_STARTED", E[E.CONNECTED = 1] = "CONNECTED", E[E.KYC = 2] = "KYC", E[E.COMPLETED = 3] = "COMPLETED", E))(s || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
h as BeefyAction,
|
|
4
|
+
L as ConvexAction,
|
|
5
5
|
_ as CurveAction,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a as EventType,
|
|
7
|
+
M as HinkalStakeAction,
|
|
8
8
|
k as INTERACTION,
|
|
9
9
|
D as IntegrationProvider,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
w as LidoAction,
|
|
11
|
+
W as LidoVariant,
|
|
12
|
+
p as PendleAction,
|
|
13
|
+
r as PendleLPAction,
|
|
14
14
|
S as StakeProvider,
|
|
15
|
+
s as UserProgress,
|
|
15
16
|
U as VolatileAction
|
|
16
17
|
};
|