@augustdigital/sdk 4.0.9-alpha → 4.2.0-alpha

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.
Files changed (225) hide show
  1. package/README.md +169 -11
  2. package/lib/abis/AddressResolver.d.ts +28 -0
  3. package/lib/abis/AddressResolver.js +23 -0
  4. package/lib/abis/AddressResolver.js.map +1 -0
  5. package/lib/abis/ChainlinkV3.d.ts +87 -0
  6. package/lib/abis/ChainlinkV3.js +117 -0
  7. package/lib/abis/ChainlinkV3.js.map +1 -0
  8. package/lib/abis/ERC20.d.ts +168 -0
  9. package/lib/abis/ERC20.js +226 -0
  10. package/lib/abis/ERC20.js.map +1 -0
  11. package/lib/abis/ERC20_Bytes32.d.ts +135 -0
  12. package/lib/abis/ERC20_Bytes32.js +192 -0
  13. package/lib/abis/ERC20_Bytes32.js.map +1 -0
  14. package/lib/abis/ERC4626.d.ts +363 -0
  15. package/lib/abis/ERC4626.js +506 -0
  16. package/lib/abis/ERC4626.js.map +1 -0
  17. package/lib/abis/ERC721.d.ts +230 -0
  18. package/lib/abis/ERC721.js +320 -0
  19. package/lib/abis/ERC721.js.map +1 -0
  20. package/lib/abis/FeeOracle.d.ts +120 -0
  21. package/lib/abis/FeeOracle.js +161 -0
  22. package/lib/abis/FeeOracle.js.map +1 -0
  23. package/lib/abis/LendingPool.d.ts +1393 -0
  24. package/lib/abis/LendingPool.js +1806 -0
  25. package/lib/abis/LendingPool.js.map +1 -0
  26. package/lib/abis/LendingPoolV2.d.ts +55 -0
  27. package/lib/abis/LendingPoolV2.js +1832 -0
  28. package/lib/abis/LendingPoolV2.js.map +1 -0
  29. package/lib/abis/LendingPoolV3.d.ts +35 -0
  30. package/lib/abis/LendingPoolV3.js +1160 -0
  31. package/lib/abis/LendingPoolV3.js.map +1 -0
  32. package/lib/abis/Loan.d.ts +837 -0
  33. package/lib/abis/Loan.js +1080 -0
  34. package/lib/abis/Loan.js.map +1 -0
  35. package/lib/abis/Multicall3.d.ts +30 -0
  36. package/lib/abis/Multicall3.js +94 -0
  37. package/lib/abis/Multicall3.js.map +1 -0
  38. package/lib/abis/PoolAdapter.d.ts +76 -0
  39. package/lib/abis/PoolAdapter.js +412 -0
  40. package/lib/abis/PoolAdapter.js.map +1 -0
  41. package/lib/abis/RewardDistributor.d.ts +46 -0
  42. package/lib/abis/RewardDistributor.js +352 -0
  43. package/lib/abis/RewardDistributor.js.map +1 -0
  44. package/lib/abis/SmartAccount.d.ts +16 -0
  45. package/lib/abis/SmartAccount.js +16 -0
  46. package/lib/abis/SmartAccount.js.map +1 -0
  47. package/lib/abis/TextResolver.d.ts +16 -0
  48. package/lib/abis/TextResolver.js +16 -0
  49. package/lib/abis/TextResolver.js.map +1 -0
  50. package/lib/abis/TokenizedVaultV2.d.ts +1354 -0
  51. package/lib/abis/TokenizedVaultV2.js +1028 -0
  52. package/lib/abis/TokenizedVaultV2.js.map +1 -0
  53. package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
  54. package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
  55. package/lib/abis/TokenizedVaultV2Receipt.js.map +1 -0
  56. package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
  57. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
  58. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js.map +1 -0
  59. package/lib/abis/UniversalResolverResolve.d.ts +69 -0
  60. package/lib/abis/UniversalResolverResolve.js +35 -0
  61. package/lib/abis/UniversalResolverResolve.js.map +1 -0
  62. package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
  63. package/lib/abis/UniversalSignatureValidator.js +27 -0
  64. package/lib/abis/UniversalSignatureValidator.js.map +1 -0
  65. package/lib/abis/WrapperAdapter.d.ts +60 -0
  66. package/lib/abis/WrapperAdapter.js +150 -0
  67. package/lib/abis/WrapperAdapter.js.map +1 -0
  68. package/lib/abis/index.d.ts +19 -0
  69. package/lib/abis/index.js +36 -0
  70. package/lib/abis/index.js.map +1 -0
  71. package/lib/adapters/evm/getters.d.ts +4 -0
  72. package/lib/adapters/evm/getters.js +153 -0
  73. package/lib/adapters/evm/getters.js.map +1 -0
  74. package/lib/adapters/evm/index.d.ts +19 -0
  75. package/lib/adapters/evm/index.js +54 -0
  76. package/lib/adapters/evm/index.js.map +1 -0
  77. package/lib/adapters/evm/utils.d.ts +2 -0
  78. package/lib/adapters/evm/utils.js +43 -0
  79. package/lib/adapters/evm/utils.js.map +1 -0
  80. package/lib/adapters/solana/constants.d.ts +25 -0
  81. package/lib/adapters/solana/constants.js +32 -0
  82. package/lib/adapters/solana/constants.js.map +1 -0
  83. package/lib/adapters/solana/getters.d.ts +3 -0
  84. package/lib/adapters/solana/getters.js +135 -0
  85. package/lib/adapters/solana/getters.js.map +1 -0
  86. package/lib/adapters/solana/idl/vault-idl.d.ts +338 -0
  87. package/lib/adapters/solana/idl/vault-idl.js +1075 -0
  88. package/lib/adapters/solana/idl/vault-idl.js.map +1 -0
  89. package/lib/adapters/solana/index.d.ts +136 -0
  90. package/lib/adapters/solana/index.js +174 -0
  91. package/lib/adapters/solana/index.js.map +1 -0
  92. package/lib/adapters/solana/types.d.ts +58 -0
  93. package/lib/adapters/solana/types.js +3 -0
  94. package/lib/adapters/solana/types.js.map +1 -0
  95. package/lib/adapters/solana/utils.d.ts +104 -0
  96. package/lib/adapters/solana/utils.js +380 -0
  97. package/lib/adapters/solana/utils.js.map +1 -0
  98. package/lib/adapters/solana/vault.actions.d.ts +18 -0
  99. package/lib/adapters/solana/vault.actions.js +235 -0
  100. package/lib/adapters/solana/vault.actions.js.map +1 -0
  101. package/lib/adapters/sui/index.d.ts +0 -0
  102. package/lib/adapters/sui/index.js +1 -0
  103. package/lib/adapters/sui/index.js.map +1 -0
  104. package/lib/core/auth/index.d.ts +1 -0
  105. package/lib/core/auth/index.js +18 -0
  106. package/lib/core/auth/index.js.map +1 -0
  107. package/lib/{verify.js → core/auth/verify.js} +3 -2
  108. package/lib/core/auth/verify.js.map +1 -0
  109. package/lib/core/base.class.d.ts +33 -0
  110. package/lib/core/base.class.js +66 -0
  111. package/lib/core/base.class.js.map +1 -0
  112. package/lib/core/constants.d.ts +88 -0
  113. package/lib/core/constants.js +148 -0
  114. package/lib/core/constants.js.map +1 -0
  115. package/lib/core/core.helpers.d.ts +23 -0
  116. package/lib/core/core.helpers.js +210 -0
  117. package/lib/core/core.helpers.js.map +1 -0
  118. package/lib/core/fetcher.d.ts +22 -0
  119. package/lib/core/fetcher.js +358 -0
  120. package/lib/core/fetcher.js.map +1 -0
  121. package/lib/core/index.d.ts +7 -0
  122. package/lib/core/index.js +24 -0
  123. package/lib/core/index.js.map +1 -0
  124. package/lib/core/logger/index.d.ts +21 -0
  125. package/lib/core/logger/index.js +80 -0
  126. package/lib/core/logger/index.js.map +1 -0
  127. package/lib/core/logger/slack.d.ts +12 -0
  128. package/lib/core/logger/slack.js +49 -0
  129. package/lib/core/logger/slack.js.map +1 -0
  130. package/lib/core/read.actions.d.ts +3 -0
  131. package/lib/core/read.actions.js +39 -0
  132. package/lib/core/read.actions.js.map +1 -0
  133. package/lib/core/web3.helpers.d.ts +28 -0
  134. package/lib/core/web3.helpers.js +336 -0
  135. package/lib/core/web3.helpers.js.map +1 -0
  136. package/lib/core/write.actions.d.ts +9 -0
  137. package/lib/core/write.actions.js +51 -0
  138. package/lib/core/write.actions.js.map +1 -0
  139. package/lib/index.d.ts +4 -5
  140. package/lib/index.js +6 -7
  141. package/lib/index.js.map +1 -1
  142. package/lib/main.d.ts +82 -14
  143. package/lib/main.js +51 -17
  144. package/lib/main.js.map +1 -1
  145. package/lib/modules/vaults/constants.d.ts +63 -0
  146. package/lib/modules/vaults/constants.js +192 -0
  147. package/lib/modules/vaults/constants.js.map +1 -0
  148. package/lib/modules/vaults/fetcher.d.ts +101 -0
  149. package/lib/modules/vaults/fetcher.js +257 -0
  150. package/lib/modules/vaults/fetcher.js.map +1 -0
  151. package/lib/modules/vaults/getters.d.ts +47 -0
  152. package/lib/modules/vaults/getters.js +735 -0
  153. package/lib/modules/vaults/getters.js.map +1 -0
  154. package/lib/modules/vaults/index.d.ts +3 -0
  155. package/lib/modules/vaults/index.js +20 -0
  156. package/lib/modules/vaults/index.js.map +1 -0
  157. package/lib/modules/vaults/main.d.ts +95 -0
  158. package/lib/modules/vaults/main.js +494 -0
  159. package/lib/modules/vaults/main.js.map +1 -0
  160. package/lib/modules/vaults/read.actions.d.ts +3 -0
  161. package/lib/modules/vaults/read.actions.js +39 -0
  162. package/lib/modules/vaults/read.actions.js.map +1 -0
  163. package/lib/modules/vaults/utils.d.ts +15 -0
  164. package/lib/modules/vaults/utils.js +199 -0
  165. package/lib/modules/vaults/utils.js.map +1 -0
  166. package/lib/modules/vaults/vault.actions.d.ts +10 -0
  167. package/lib/modules/vaults/vault.actions.js +95 -0
  168. package/lib/modules/vaults/vault.actions.js.map +1 -0
  169. package/lib/modules/vaults/write.actions.d.ts +17 -0
  170. package/lib/modules/vaults/write.actions.js +143 -0
  171. package/lib/modules/vaults/write.actions.js.map +1 -0
  172. package/lib/services/coingecko/fetcher.d.ts +1 -0
  173. package/lib/services/coingecko/fetcher.js +36 -0
  174. package/lib/services/coingecko/fetcher.js.map +1 -0
  175. package/lib/services/coingecko/index.d.ts +2 -0
  176. package/lib/services/coingecko/index.js +19 -0
  177. package/lib/services/coingecko/index.js.map +1 -0
  178. package/lib/services/coingecko/utils.d.ts +1 -0
  179. package/lib/services/coingecko/utils.js +24 -0
  180. package/lib/services/coingecko/utils.js.map +1 -0
  181. package/lib/services/debank/fetcher.d.ts +2 -0
  182. package/lib/services/debank/fetcher.js +16 -0
  183. package/lib/services/debank/fetcher.js.map +1 -0
  184. package/lib/services/debank/index.d.ts +2 -0
  185. package/lib/services/debank/index.js +19 -0
  186. package/lib/services/debank/index.js.map +1 -0
  187. package/lib/services/debank/utils.d.ts +32 -0
  188. package/lib/services/debank/utils.js +229 -0
  189. package/lib/services/debank/utils.js.map +1 -0
  190. package/lib/services/subgraph/fetcher.d.ts +2 -0
  191. package/lib/services/subgraph/fetcher.js +58 -0
  192. package/lib/services/subgraph/fetcher.js.map +1 -0
  193. package/lib/services/subgraph/index.d.ts +2 -0
  194. package/lib/services/subgraph/index.js +19 -0
  195. package/lib/services/subgraph/index.js.map +1 -0
  196. package/lib/services/subgraph/vaults.d.ts +10 -0
  197. package/lib/services/subgraph/vaults.js +473 -0
  198. package/lib/services/subgraph/vaults.js.map +1 -0
  199. package/lib/types/index.d.ts +8 -0
  200. package/lib/types/index.js +24 -0
  201. package/lib/types/index.js.map +1 -0
  202. package/lib/types/pools.d.ts +141 -0
  203. package/lib/types/pools.js +3 -0
  204. package/lib/types/pools.js.map +1 -0
  205. package/lib/types/staking.d.ts +28 -0
  206. package/lib/types/staking.js +3 -0
  207. package/lib/types/staking.js.map +1 -0
  208. package/lib/types/subgraph.d.ts +45 -0
  209. package/lib/types/subgraph.js +3 -0
  210. package/lib/types/subgraph.js.map +1 -0
  211. package/lib/types/user.d.ts +1 -0
  212. package/lib/types/user.js +3 -0
  213. package/lib/types/user.js.map +1 -0
  214. package/lib/types/vaults.d.ts +170 -0
  215. package/lib/types/vaults.js +3 -0
  216. package/lib/types/vaults.js.map +1 -0
  217. package/lib/types/web3.d.ts +24 -0
  218. package/lib/types/web3.js +3 -0
  219. package/lib/types/web3.js.map +1 -0
  220. package/lib/types/webserver.d.ts +489 -0
  221. package/lib/types/webserver.js +3 -0
  222. package/lib/types/webserver.js.map +1 -0
  223. package/package.json +15 -10
  224. package/lib/verify.js.map +0 -1
  225. /package/lib/{verify.d.ts → core/auth/verify.d.ts} +0 -0
@@ -0,0 +1,28 @@
1
+ import { IAddress, INormalizedNumber } from './web3';
2
+ export type IActiveStakingPosition = {
3
+ stakingToken: {
4
+ decimals: number;
5
+ symbol: string;
6
+ address: IAddress;
7
+ chain: number;
8
+ totalStaked: INormalizedNumber;
9
+ usd: INormalizedNumber;
10
+ totalSupply?: INormalizedNumber;
11
+ name: string;
12
+ };
13
+ rewardToken: {
14
+ decimals: number;
15
+ symbol: string;
16
+ address: IAddress;
17
+ chain: number;
18
+ redeemable: INormalizedNumber;
19
+ usd: INormalizedNumber;
20
+ name: string;
21
+ };
22
+ rewardDistributor: IAddress;
23
+ rewardPerSecond: INormalizedNumber;
24
+ apy?: number;
25
+ maxApy?: number;
26
+ chainId: number;
27
+ id: string;
28
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=staking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staking.js","sourceRoot":"","sources":["../../src.ts/types/staking.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ import { IAddress } from './web3';
2
+ export interface ISubgraphBase {
3
+ id: string;
4
+ contractId_: IAddress;
5
+ timestamp_: string;
6
+ transactionHash_: IAddress;
7
+ block_number: string;
8
+ }
9
+ export interface ISubgraphUserHistoryItem extends ISubgraphBase {
10
+ address: IAddress;
11
+ amount: string;
12
+ type: 'withdraw-request' | 'deposit' | 'withdraw-processed';
13
+ decimals?: number;
14
+ }
15
+ export interface ISubgraphWithdrawProccessed extends ISubgraphBase {
16
+ processedOn: string;
17
+ requestedOn: string;
18
+ receiverAddr: IAddress;
19
+ assetsAmount: string;
20
+ }
21
+ export interface ISubgraphDeposit extends ISubgraphBase {
22
+ assets: string;
23
+ sender: IAddress;
24
+ shares: string;
25
+ owner: IAddress;
26
+ }
27
+ export interface ISubgraphWithdrawRequest extends ISubgraphBase {
28
+ day: string;
29
+ month: string;
30
+ year: string;
31
+ shares: string;
32
+ assets: string;
33
+ receiverAddr: IAddress;
34
+ ownerAddr: IAddress;
35
+ }
36
+ export interface ISubgraphWithdraw extends ISubgraphBase {
37
+ receiver: IAddress;
38
+ sender: string;
39
+ assets: string;
40
+ }
41
+ export interface ISubgraphTransfer extends ISubgraphBase {
42
+ from: IAddress;
43
+ to: IAddress;
44
+ value: string;
45
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=subgraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../src.ts/types/subgraph.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type IUserRoles = 'client' | 'admin' | 'dev';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src.ts/types/user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,170 @@
1
+ import { IAddress, INormalizedNumber } from './web3';
2
+ import { IDebankProtocolExposure, IDebankTokenExposure, IOTCPosition, IWSSubaccountCefi, IWSSubaccountLoan, IWSTokenEntry } from './webserver';
3
+ export interface IVaultLoan {
4
+ vault: IAddress;
5
+ address: IAddress;
6
+ lender: IAddress;
7
+ borrower: IAddress;
8
+ state: string;
9
+ totalRepaid: number;
10
+ principalToken: IWSTokenEntry;
11
+ principalAmount: number;
12
+ interestAmount: number;
13
+ upcomingPayment: {
14
+ amount: number;
15
+ dueDate: string;
16
+ };
17
+ apr: number;
18
+ initialPrincipalAmount: number;
19
+ deployedDate: string;
20
+ paymentInterval: number;
21
+ isIdleCapital: boolean;
22
+ allocation: number;
23
+ }
24
+ export type IVaultUserHistoryItem = {
25
+ timestamp: number;
26
+ address: IAddress;
27
+ amount: INormalizedNumber;
28
+ pool: IAddress;
29
+ chainId: number;
30
+ type: 'withdraw-request' | 'deposit' | 'withdraw-processed';
31
+ transactionHash: IAddress;
32
+ };
33
+ export type IVaultRewards = {
34
+ points: string;
35
+ multiplier: number;
36
+ multipliers: {
37
+ value: number;
38
+ timestamp: number;
39
+ }[];
40
+ additionalPoints: string[];
41
+ };
42
+ export type IVaultExposureItem = {
43
+ amount: number;
44
+ chain: string;
45
+ decimals: number;
46
+ exposureType?: string;
47
+ id: string;
48
+ logoUrl?: string;
49
+ name: string;
50
+ protocol?: string;
51
+ symbol: string;
52
+ };
53
+ export type IExposurePerCategory = {
54
+ borrowing: IVaultExposureItem[];
55
+ supplying: IVaultExposureItem[];
56
+ lending: IWSSubaccountLoan[];
57
+ wallet: IVaultExposureItem[];
58
+ cefiBalance: number;
59
+ defiBalance: number;
60
+ walletBalance: number;
61
+ loanBalance: number;
62
+ };
63
+ export interface IVaultAllocations {
64
+ defi: IDebankProtocolExposure[];
65
+ tokens: IDebankTokenExposure[];
66
+ cefi: IWSSubaccountCefi[];
67
+ unfilteredTokens: IDebankTokenExposure[];
68
+ otc: Record<string, IOTCPosition>;
69
+ exposurePerCategory?: IExposurePerCategory;
70
+ netValue?: number;
71
+ defiPerBorrower: Record<`0x${string}`, {
72
+ exposure: any[];
73
+ positions: any[];
74
+ }>;
75
+ }
76
+ export interface IVaultApy {
77
+ apy: number;
78
+ explainer: string;
79
+ liquidApy: number;
80
+ rewardsClaimable: number;
81
+ rewardsCompounded: number;
82
+ underlyingApy: number;
83
+ }
84
+ export interface IVaultStrategist {
85
+ address: IAddress;
86
+ logo: string;
87
+ name: string;
88
+ }
89
+ export type IVaultVersion = 'evm-0' | 'evm-1' | 'evm-2' | 'sol-0';
90
+ export interface IVault {
91
+ address: IAddress;
92
+ chainId: number;
93
+ name: string;
94
+ logoUrl: string;
95
+ receipt: {
96
+ address: IAddress;
97
+ symbol: string;
98
+ decimals: number;
99
+ };
100
+ description: string;
101
+ startDatetime: string;
102
+ status: 'active' | 'closed' | 'testing';
103
+ version: IVaultVersion;
104
+ tags: string[];
105
+ isFeatured: boolean;
106
+ isVisible: boolean;
107
+ reserveTarget: number;
108
+ reserveTolerance: number;
109
+ decimals: number;
110
+ totalAssets: INormalizedNumber;
111
+ totalSupply: INormalizedNumber;
112
+ maxSupply: INormalizedNumber;
113
+ depositAssets: {
114
+ address: IAddress;
115
+ symbol: string;
116
+ decimals: number;
117
+ }[];
118
+ apy: IVaultApy;
119
+ operator: IAddress;
120
+ rewards: IVaultRewards;
121
+ strategists: IVaultStrategist[];
122
+ fees: {
123
+ management: number;
124
+ isManagementWaived: boolean;
125
+ performance: number;
126
+ isPerformanceWaived: boolean;
127
+ };
128
+ lagDuration: number;
129
+ maxDailyDrawdown: number;
130
+ risk: string;
131
+ isWithdrawalPaused: boolean;
132
+ isDepositPaused: boolean;
133
+ idleAssets: INormalizedNumber;
134
+ loans?: IVaultLoan[];
135
+ allocations?: IVaultAllocations;
136
+ position?: IVaultPosition;
137
+ }
138
+ export type IVaultAvailableRedemption = {
139
+ id: string;
140
+ hash: string;
141
+ timestamp: number;
142
+ receiver: IAddress;
143
+ day: INormalizedNumber;
144
+ month: INormalizedNumber;
145
+ year: INormalizedNumber;
146
+ amount: INormalizedNumber;
147
+ date: Date;
148
+ vault: IAddress;
149
+ };
150
+ export type IVaultRedemptionHistoryItem = {
151
+ receiver: IAddress;
152
+ amount: INormalizedNumber;
153
+ processed: Date;
154
+ requested: Date;
155
+ vault: IAddress;
156
+ };
157
+ export interface IVaultPosition {
158
+ vault: IAddress;
159
+ status: string;
160
+ availableRedemptions: IVaultAvailableRedemption[];
161
+ pendingRedemptions: IVaultAvailableRedemption[];
162
+ redeemable: INormalizedNumber;
163
+ walletBalance: INormalizedNumber;
164
+ }
165
+ export type IVaultOrderParam = 'asc' | 'desc';
166
+ export type IVaultHistoricalParams = {
167
+ daysAgo?: number;
168
+ order?: IVaultOrderParam;
169
+ interval?: 'days' | 'weeks' | 'months' | 'years';
170
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=vaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../src.ts/types/vaults.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { Signer, Provider } from 'ethers';
2
+ export type IAddress = `0x${string}`;
3
+ export type IChainId = number;
4
+ export type IChainObj = {
5
+ chainId: number;
6
+ name: string;
7
+ explorer: string;
8
+ };
9
+ export type INormalizedNumber = {
10
+ normalized: string;
11
+ raw: string;
12
+ };
13
+ export type IExplorerType = 'tx' | 'address' | 'token';
14
+ export type IContractRunner = Signer | Provider;
15
+ export type IProvidersConfig = Partial<Record<IChainId, string>>;
16
+ export type IInfuraOptions = {
17
+ chainId: IChainId;
18
+ apiKey: string;
19
+ };
20
+ export type ISolanaNetwork = 'devnet' | 'mainnet-beta' | 'testnet' | 'localnet';
21
+ export interface ISolanaConfig {
22
+ rpcUrl: string;
23
+ network: ISolanaNetwork;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=web3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web3.js","sourceRoot":"","sources":["../../src.ts/types/web3.ts"],"names":[],"mappings":""}