@fenelabs/fene-sdk 0.2.0 → 0.3.0

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 +19 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
- # Resonance Network SDK
1
+ # Fene Network SDK
2
2
 
3
- Official TypeScript/JavaScript SDK for interacting with the Resonance Network API.
3
+ Official TypeScript/JavaScript SDK for interacting with the Fene Network API.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @avenbreaks/resonance-sdk
8
+ npm install @fenelabs/fene-sdk
9
9
  # or
10
- yarn add @avenbreaks/resonance-sdk
10
+ yarn add @fenelabs/fene-sdk
11
11
  # or
12
- pnpm add @avenbreaks/resonance-sdk
12
+ pnpm add @fenelabs/fene-sdk
13
13
  ```
14
14
 
15
15
  ## Quick Start
16
16
 
17
17
  ```typescript
18
- import { ResonanceSDK } from '@avenbreaks/resonance-sdk';
18
+ import { ResonanceSDK } from '@fenelabs/fene-sdk';
19
19
 
20
20
  // Initialize the SDK
21
21
  const sdk = new ResonanceSDK({
22
- apiUrl: 'https://api.resonance.network',
22
+ apiUrl: 'https://api.fene.network',
23
23
  timeout: 30000, // Optional, default 30s
24
24
  });
25
25
 
@@ -38,10 +38,10 @@ The SDK supports wallet-based authentication using Web3 providers:
38
38
 
39
39
  ```typescript
40
40
  import { ethers } from 'ethers';
41
- import { ResonanceSDK } from '@avenbreaks/resonance-sdk';
41
+ import { ResonanceSDK } from '@fenelabs/fene-sdk';
42
42
 
43
43
  const sdk = new ResonanceSDK({
44
- apiUrl: 'https://api.resonance.network',
44
+ apiUrl: 'https://api.fene.network',
45
45
  });
46
46
 
47
47
  // Connect wallet (browser environment)
@@ -255,7 +255,7 @@ console.log('Total Stakes Fetched:', allRewards.stakes.length);
255
255
 
256
256
  ```typescript
257
257
  const sdk = new ResonanceSDK({
258
- apiUrl: 'https://api.resonance.network',
258
+ apiUrl: 'https://api.fene.network',
259
259
  headers: {
260
260
  'X-Custom-Header': 'value',
261
261
  },
@@ -281,7 +281,7 @@ try {
281
281
 
282
282
  ```typescript
283
283
  const sdk = new ResonanceSDK({
284
- apiUrl: 'https://api.resonance.network',
284
+ apiUrl: 'https://api.fene.network',
285
285
  timeout: 60000, // 60 seconds
286
286
  });
287
287
  ```
@@ -295,7 +295,7 @@ import type {
295
295
  ValidatorDetailResponse,
296
296
  DelegatorDetailResponse,
297
297
  GlobalNetworkResponse,
298
- } from '@avenbreaks/resonance-sdk';
298
+ } from '@fenelabs/fene-sdk';
299
299
 
300
300
  const processValidator = (validator: ValidatorDetailResponse) => {
301
301
  console.log(validator.validator_address);
@@ -307,10 +307,10 @@ const processValidator = (validator: ValidatorDetailResponse) => {
307
307
 
308
308
  ```typescript
309
309
  import { useEffect, useState } from 'react';
310
- import { ResonanceSDK } from '@avenbreaks/resonance-sdk';
310
+ import { ResonanceSDK } from '@fenelabs/fene-sdk';
311
311
 
312
312
  const sdk = new ResonanceSDK({
313
- apiUrl: 'https://api.resonance.network',
313
+ apiUrl: 'https://api.fene.network',
314
314
  });
315
315
 
316
316
  function ValidatorList() {
@@ -348,10 +348,10 @@ function ValidatorList() {
348
348
 
349
349
  ```typescript
350
350
  // app/page.tsx
351
- import { ResonanceSDK } from '@avenbreaks/resonance-sdk';
351
+ import { ResonanceSDK } from '@fenelabs/fene-sdk';
352
352
 
353
353
  const sdk = new ResonanceSDK({
354
- apiUrl: process.env.NEXT_PUBLIC_API_URL || 'https://api.resonance.network',
354
+ apiUrl: process.env.NEXT_PUBLIC_API_URL || 'https://api.fene.network',
355
355
  });
356
356
 
357
357
  export default async function HomePage() {
@@ -371,10 +371,10 @@ export default async function HomePage() {
371
371
  ## Node.js Example
372
372
 
373
373
  ```typescript
374
- import { ResonanceSDK } from '@avenbreaks/resonance-sdk';
374
+ import { ResonanceSDK } from '@fenelabs/fene-sdk';
375
375
 
376
376
  const sdk = new ResonanceSDK({
377
- apiUrl: 'https://api.resonance.network',
377
+ apiUrl: 'https://api.fene.network',
378
378
  });
379
379
 
380
380
  async function main() {
@@ -425,5 +425,5 @@ MIT
425
425
  ## Support
426
426
 
427
427
  For issues and questions, please visit:
428
- - GitHub Issues: https://github.com/fenelabs/sdk/issues
428
+ - GitHub Issues: https://github.com/fenelabs/fene-sdk/issues
429
429
  - Documentation: https://docs.fene.network
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fenelabs/fene-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Resonance Network SDK for TypeScript/JavaScript - Official SDK for interacting with Resonance FPoS blockchain",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",