@bbuilders/djeon402-core 1.0.1 → 1.0.3
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 +11 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @bbuilders/djeon402
|
|
1
|
+
# @bbuilders/djeon402-core
|
|
2
2
|
|
|
3
3
|
Core types, ABIs, constants, and utilities for the DJEON402 token ecosystem.
|
|
4
4
|
|
|
@@ -11,12 +11,12 @@ This package provides the foundational building blocks shared across all DJEON40
|
|
|
11
11
|
- **EIP-712 constants** for typed structured data signing
|
|
12
12
|
- **Utility functions** for formatting, validation, and data transformation
|
|
13
13
|
|
|
14
|
-
This package is designed to be used as a dependency by other SDK packages (@bbuilders/djeon402
|
|
14
|
+
This package is designed to be used as a dependency by other SDK packages (@bbuilders/djeon402-sdk-node, @bbuilders/djeon402-sdk-client) and is not typically installed directly by end users.
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install @bbuilders/djeon402
|
|
19
|
+
npm install @bbuilders/djeon402-core
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Package Contents
|
|
@@ -26,7 +26,7 @@ npm install @bbuilders/djeon402/core
|
|
|
26
26
|
Contract Application Binary Interfaces for interacting with DJEON402 smart contracts:
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
|
-
import { DJEON402_ABI, KYC_REGISTRY_ABI } from '@bbuilders/djeon402
|
|
29
|
+
import { DJEON402_ABI, KYC_REGISTRY_ABI } from '@bbuilders/djeon402-core';
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
- `DJEON402_ABI` - ERC-20 token contract with x402, KYC, admin features
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
CANCEL_AUTHORIZATION_TYPEHASH,
|
|
168
168
|
DEFAULT_VALID_AFTER,
|
|
169
169
|
DEFAULT_VALID_BEFORE,
|
|
170
|
-
} from '@bbuilders/djeon402
|
|
170
|
+
} from '@bbuilders/djeon402-core';
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
### Utilities
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
parseTokenAmount,
|
|
182
182
|
formatTimestamp,
|
|
183
183
|
getKYCLevelName,
|
|
184
|
-
} from '@bbuilders/djeon402
|
|
184
|
+
} from '@bbuilders/djeon402-core';
|
|
185
185
|
|
|
186
186
|
// Format raw token amount to human-readable string
|
|
187
187
|
const formatted = formatTokenAmount('1000000000000000000', 18); // "1.0"
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
validateAddress,
|
|
203
203
|
validatePrivateKey,
|
|
204
204
|
validateAmount,
|
|
205
|
-
} from '@bbuilders/djeon402
|
|
205
|
+
} from '@bbuilders/djeon402-core';
|
|
206
206
|
|
|
207
207
|
// Validate Ethereum address
|
|
208
208
|
validateAddress('0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'); // throws if invalid
|
|
@@ -219,14 +219,14 @@ validateAmount('100.5'); // throws if invalid
|
|
|
219
219
|
This package is designed to be imported by other SDK packages:
|
|
220
220
|
|
|
221
221
|
```typescript
|
|
222
|
-
// In @bbuilders/djeon402
|
|
222
|
+
// In @bbuilders/djeon402-sdk-node
|
|
223
223
|
import {
|
|
224
224
|
DJEON402_ABI,
|
|
225
225
|
type TokenInfo,
|
|
226
226
|
type TransferResult,
|
|
227
227
|
formatTokenAmount,
|
|
228
228
|
validateAddress,
|
|
229
|
-
} from '@bbuilders/djeon402
|
|
229
|
+
} from '@bbuilders/djeon402-core';
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
## License
|
|
@@ -235,6 +235,5 @@ MIT
|
|
|
235
235
|
|
|
236
236
|
## Related Packages
|
|
237
237
|
|
|
238
|
-
- [@bbuilders/djeon402
|
|
239
|
-
- [@bbuilders/djeon402
|
|
240
|
-
- [djeon402-sdk](../sdk-py) - Python SDK
|
|
238
|
+
- [@bbuilders/djeon402-sdk-node](https://www.npmjs.com/package/@bbuilders/djeon402-sdk-node) - Node.js/Backend SDK
|
|
239
|
+
- [@bbuilders/djeon402-sdk-client](https://www.npmjs.com/package/@bbuilders/djeon402-sdk-client) - Browser/Frontend SDK
|