@whetstone-research/doppler-sdk 0.0.1-alpha.1 → 0.0.1-alpha.2
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/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,17 +18,17 @@ The Doppler SDK consolidates functionality from the previous `doppler-v3-sdk` an
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install @doppler
|
|
21
|
+
npm install @whetstone-research/doppler-sdk viem
|
|
22
22
|
# or
|
|
23
|
-
yarn add @doppler
|
|
23
|
+
yarn add @whetstone-research/doppler-sdk viem
|
|
24
24
|
# or
|
|
25
|
-
pnpm add @doppler
|
|
25
|
+
pnpm add @whetstone-research/doppler-sdk viem
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
|
-
import { DopplerSDK } from '@doppler
|
|
31
|
+
import { DopplerSDK } from '@whetstone-research/doppler-sdk';
|
|
32
32
|
import { createPublicClient, createWalletClient, http } from 'viem';
|
|
33
33
|
import { base } from 'viem/chains';
|
|
34
34
|
|
|
@@ -249,7 +249,7 @@ const currentEpoch = await auction.getCurrentEpoch();
|
|
|
249
249
|
The SDK includes full support for DERC20 tokens with vesting functionality:
|
|
250
250
|
|
|
251
251
|
```typescript
|
|
252
|
-
import { Derc20 } from '@doppler
|
|
252
|
+
import { Derc20 } from '@whetstone-research/doppler-sdk';
|
|
253
253
|
|
|
254
254
|
const token = new Derc20(publicClient, walletClient, tokenAddress);
|
|
255
255
|
|
|
@@ -272,7 +272,7 @@ await token.release(amountToRelease);
|
|
|
272
272
|
The SDK also provides an ETH wrapper with ERC20-like interface:
|
|
273
273
|
|
|
274
274
|
```typescript
|
|
275
|
-
import { Eth } from '@doppler
|
|
275
|
+
import { Eth } from '@whetstone-research/doppler-sdk';
|
|
276
276
|
|
|
277
277
|
const eth = new Eth(publicClient, walletClient);
|
|
278
278
|
const balance = await eth.getBalanceOf(address);
|
|
@@ -400,7 +400,7 @@ import type {
|
|
|
400
400
|
PoolInfo,
|
|
401
401
|
HookInfo,
|
|
402
402
|
VestingConfig,
|
|
403
|
-
} from '@doppler
|
|
403
|
+
} from '@whetstone-research/doppler-sdk';
|
|
404
404
|
```
|
|
405
405
|
|
|
406
406
|
## Development
|