@oydual31/more-vaults-sdk 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +15 -3
  2. package/package.json +7 -3
package/README.md CHANGED
@@ -1,7 +1,19 @@
1
- # @more-vaults/sdk
1
+ # @oydual31/more-vaults-sdk
2
2
 
3
3
  TypeScript SDK for the MoreVaults protocol. Supports **viem/wagmi** and **ethers.js v6**.
4
4
 
5
+ ```bash
6
+ npm install @oydual31/more-vaults-sdk
7
+ ```
8
+
9
+ ```ts
10
+ // viem / wagmi
11
+ import { getVaultStatus, smartDeposit, getUserBalances } from '@oydual31/more-vaults-sdk/viem'
12
+
13
+ // ethers.js v6
14
+ import { getVaultStatus, smartDeposit, getUserBalances } from '@oydual31/more-vaults-sdk/ethers'
15
+ ```
16
+
5
17
  ---
6
18
 
7
19
  ## What is MoreVaults
@@ -176,7 +188,7 @@ Read-only helpers (`getUserPosition`, `previewDeposit`, etc.) accept a bare `Pro
176
188
  ### viem / wagmi
177
189
 
178
190
  ```ts
179
- import { getVaultStatus, depositSimple, getUserPosition } from './src/viem/index.js'
191
+ import { getVaultStatus, depositSimple, getUserPosition } from '@oydual31/more-vaults-sdk/viem'
180
192
  import { createPublicClient, createWalletClient, http, parseUnits } from 'viem'
181
193
 
182
194
  const publicClient = createPublicClient({ chain: flowEvm, transport: http(RPC_URL) })
@@ -206,7 +218,7 @@ console.log('Value:', position.estimatedAssets)
206
218
  ### ethers.js
207
219
 
208
220
  ```ts
209
- import { getVaultStatus, depositSimple, getUserPosition } from './src/ethers/index.js'
221
+ import { getVaultStatus, depositSimple, getUserPosition } from '@oydual31/more-vaults-sdk/ethers'
210
222
  import { BrowserProvider, parseUnits } from 'ethers'
211
223
 
212
224
  const provider = new BrowserProvider(window.ethereum)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oydual31/more-vaults-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript SDK for MoreVaults protocol — viem/wagmi and ethers.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -40,7 +40,11 @@
40
40
  "ethers": ">=6.0.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
- "viem": { "optional": true },
44
- "ethers": { "optional": true }
43
+ "viem": {
44
+ "optional": true
45
+ },
46
+ "ethers": {
47
+ "optional": true
48
+ }
45
49
  }
46
50
  }