@shapeshiftoss/types 2.4.0 → 2.7.0

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/dist/base.d.ts CHANGED
@@ -24,6 +24,10 @@ export declare enum NetworkTypes {
24
24
  OSMOSIS_MAINNET = "OSMOSIS_MAINNET",
25
25
  OSMOSIS_TESTNET = "OSMOSIS_TESTNET"
26
26
  }
27
+ export declare enum WithdrawType {
28
+ DELAYED = 0,
29
+ INSTANT = 1
30
+ }
27
31
  export declare enum UtxoAccountType {
28
32
  SegwitNative = "SegwitNative",
29
33
  SegwitP2sh = "SegwitP2sh",
package/dist/base.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SwapperType = exports.AssetDataSource = exports.UtxoAccountType = exports.NetworkTypes = exports.ChainTypes = void 0;
3
+ exports.SwapperType = exports.AssetDataSource = exports.UtxoAccountType = exports.WithdrawType = exports.NetworkTypes = exports.ChainTypes = void 0;
4
4
  var ChainTypes;
5
5
  (function (ChainTypes) {
6
6
  ChainTypes["Ethereum"] = "ethereum";
@@ -19,6 +19,11 @@ var NetworkTypes;
19
19
  NetworkTypes["OSMOSIS_MAINNET"] = "OSMOSIS_MAINNET";
20
20
  NetworkTypes["OSMOSIS_TESTNET"] = "OSMOSIS_TESTNET";
21
21
  })(NetworkTypes = exports.NetworkTypes || (exports.NetworkTypes = {}));
22
+ var WithdrawType;
23
+ (function (WithdrawType) {
24
+ WithdrawType[WithdrawType["DELAYED"] = 0] = "DELAYED";
25
+ WithdrawType[WithdrawType["INSTANT"] = 1] = "INSTANT";
26
+ })(WithdrawType = exports.WithdrawType || (exports.WithdrawType = {}));
22
27
  var UtxoAccountType;
23
28
  (function (UtxoAccountType) {
24
29
  UtxoAccountType["SegwitNative"] = "SegwitNative";
@@ -2,8 +2,15 @@ export declare type BuildTxInput = {
2
2
  gas: string;
3
3
  fee: string;
4
4
  };
5
+ export declare type Info = {
6
+ totalSupply: string;
7
+ bondedTokens: string;
8
+ };
5
9
  export declare type Validator = {
6
10
  address: string;
11
+ moniker: string;
12
+ apr: string;
13
+ commission: string;
7
14
  };
8
15
  export declare type Delegation = {
9
16
  assetId: string;
@@ -33,13 +40,17 @@ export declare type Reward = {
33
40
  assetId: string;
34
41
  amount: string;
35
42
  };
43
+ export declare type ValidatorReward = {
44
+ validator: Validator;
45
+ rewards: Reward[];
46
+ };
36
47
  export declare type Account = {
37
48
  sequence: string;
38
49
  accountNumber: string;
39
50
  delegations: Delegation[];
40
51
  redelegations: Redelegation[];
41
52
  undelegations: Undelegation[];
42
- rewards: Reward[];
53
+ rewards: ValidatorReward[];
43
54
  };
44
55
  export declare type FeeData = {
45
56
  gasLimit: string;
@@ -121,6 +121,34 @@ declare type ChainTxTypeInner = {
121
121
  [ChainTypes.Cosmos]: CosmosSignTx;
122
122
  };
123
123
  export declare type ChainTxType<T> = T extends keyof ChainTxTypeInner ? ChainTxTypeInner[T] : never;
124
+ export declare type BuildDelegateTxInput<T extends ChainTypes> = {
125
+ validator: string;
126
+ value: string;
127
+ wallet: HDWallet;
128
+ bip44Params?: BIP44Params;
129
+ memo?: string;
130
+ } & ChainSpecificBuildTxData<T>;
131
+ export declare type BuildUndelegateTxInput<T extends ChainTypes> = {
132
+ validator: string;
133
+ value: string;
134
+ wallet: HDWallet;
135
+ bip44Params?: BIP44Params;
136
+ memo?: string;
137
+ } & ChainSpecificBuildTxData<T>;
138
+ export declare type BuildRedelegateTxInput<T extends ChainTypes> = {
139
+ fromValidator: string;
140
+ toValidator: string;
141
+ value: string;
142
+ wallet: HDWallet;
143
+ bip44Params?: BIP44Params;
144
+ memo?: string;
145
+ } & ChainSpecificBuildTxData<T>;
146
+ export declare type BuildClaimRewardsTxInput<T extends ChainTypes> = {
147
+ validator: string;
148
+ wallet: HDWallet;
149
+ bip44Params?: BIP44Params;
150
+ memo?: string;
151
+ } & ChainSpecificBuildTxData<T>;
124
152
  export declare type BuildSendTxInput<T extends ChainTypes> = {
125
153
  to: string;
126
154
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "2.4.0",
3
+ "version": "2.7.0",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",