@bronlabs/intents-sdk 1.0.0 → 1.0.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.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @bronlabs/intents-sdk
|
|
2
2
|
|
|
3
3
|
TypeScript SDK for building Intents DeFi applications with order indexing, processing, and smart contract interactions.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @bronlabs/intents-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Core Components
|
|
@@ -15,7 +15,7 @@ npm install @bron/intents-sdk
|
|
|
15
15
|
Monitors blockchain events and indexes order status changes.
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { OrderIndexer, IntentsConfig } from '@
|
|
18
|
+
import { OrderIndexer, IntentsConfig } from '@bronlabs/intents-sdk';
|
|
19
19
|
|
|
20
20
|
const config: IntentsConfig = {
|
|
21
21
|
rpcUrl: 'https://your-rpc-url',
|
|
@@ -41,7 +41,7 @@ await indexer.start();
|
|
|
41
41
|
Base class for implementing custom order processing logic.
|
|
42
42
|
|
|
43
43
|
```typescript
|
|
44
|
-
import { OrderProcessor } from '@
|
|
44
|
+
import { OrderProcessor } from '@bronlabs/intents-sdk';
|
|
45
45
|
|
|
46
46
|
class CustomOrderProcessor extends OrderProcessor {
|
|
47
47
|
async process(orderId: string, status: string): Promise<void> {
|
|
@@ -57,7 +57,7 @@ await processor.stop();
|
|
|
57
57
|
### Network Configuration
|
|
58
58
|
|
|
59
59
|
```typescript
|
|
60
|
-
import { NetworkConfig, IntentsConfig } from '@
|
|
60
|
+
import { NetworkConfig, IntentsConfig } from '@bronlabs/intents-sdk';
|
|
61
61
|
|
|
62
62
|
const config: IntentsConfig = {
|
|
63
63
|
rpcUrl: 'https://mainnet.infura.io/v3/your-key',
|