mantle-agent-kit-sdk 1.0.0 → 1.0.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/.env.example CHANGED
@@ -2,8 +2,8 @@
2
2
  # Your unique APP_ID for the Mantle Agent Kit
3
3
  APP_ID=your_app_id_here
4
4
 
5
- # Optional: Custom platform URL (defaults to https://mantle-x402.vercel.app)
6
- # PLATFORM_URL=https://mantle-x402.vercel.app
5
+ # Optional: Custom platform URL (defaults to https://mantle-devkit.vercel.app)
6
+ # PLATFORM_URL=https://mantle-devkit.vercel.app
7
7
 
8
8
  # Your wallet private key (for agent initialization)
9
9
  PRIVATE_KEY=0xYOUR_PRIVATE_KEY_HERE
package/README.md CHANGED
@@ -1,19 +1,21 @@
1
- # Mantle Agent Kit
1
+ # Mantle Agent Kit SDK
2
2
 
3
3
  TypeScript SDK for seamless integration with DeFi protocols on Mantle Network. Provides unified interfaces for swaps, lending, liquid staking, and cross-chain operations.
4
4
 
5
+ Part of [Mantle DevKit](https://mantle-devkit.vercel.app) - the complete developer suite for Mantle.
6
+
5
7
  ## Installation
6
8
 
7
9
  ```bash
8
- npm install mantle-agent-kit
10
+ npm install mantle-agent-kit-sdk
9
11
  # or
10
- bun install mantle-agent-kit
12
+ bun install mantle-agent-kit-sdk
11
13
  ```
12
14
 
13
15
  ## Quick Start
14
16
 
15
17
  ```typescript
16
- import { MNTAgentKit } from "mantle-agent-kit";
18
+ import { MNTAgentKit } from "mantle-agent-kit-sdk";
17
19
 
18
20
  // Initialize agent with private key and network
19
21
  const agent = new MNTAgentKit("0xYOUR_PRIVATE_KEY", "mainnet");
@@ -259,8 +261,8 @@ The Mantle Agent Kit requires an APP_ID for platform validation and authenticati
259
261
  ```env
260
262
  APP_ID=your_app_id_here
261
263
 
262
- # Optional: Custom platform URL (defaults to https://mantle-x402.vercel.app)
263
- PLATFORM_URL=https://mantle-x402.vercel.app
264
+ # Optional: Custom platform URL (defaults to https://mantle-devkit.vercel.app)
265
+ PLATFORM_URL=https://mantle-devkit.vercel.app
264
266
  ```
265
267
 
266
268
  **What is APP_ID?**
@@ -334,7 +336,7 @@ import {
334
336
  MerchantMoeConstants,
335
337
  MethConstants,
336
338
  UniswapConstants,
337
- } from "mantle-agent-kit";
339
+ } from "mantle-agent-kit-sdk";
338
340
 
339
341
  // Example: Get Lendle pool address
340
342
  const poolAddress = LendleConstants.LENDING_POOL.mainnet;
@@ -345,7 +347,7 @@ const poolAddress = LendleConstants.LENDING_POOL.mainnet;
345
347
  Import utility types for type-safe development:
346
348
 
347
349
  ```typescript
348
- import type { UserAccountData, ProjectConfig } from "mantle-agent-kit";
350
+ import type { UserAccountData, ProjectConfig } from "mantle-agent-kit-sdk";
349
351
 
350
352
  // UserAccountData returned from Lendle user queries
351
353
  // ProjectConfig returned from platform validation
@@ -397,6 +399,7 @@ MIT
397
399
 
398
400
  ## Resources
399
401
 
402
+ - [Mantle DevKit Dashboard](https://mantle-devkit.vercel.app)
400
403
  - [Mantle Network Documentation](https://docs.mantle.xyz/)
401
404
  - [Mantlescan Explorer](https://mantlescan.xyz/)
402
405
  - [Lendle Protocol](https://lendle.xyz/)
package/dist/index.cjs CHANGED
@@ -1197,7 +1197,7 @@ var getSwapQuote = async (agent, from, to, amount, slippagePercentage) => {
1197
1197
  };
1198
1198
 
1199
1199
  // src/utils/x402/index.ts
1200
- var DEFAULT_PLATFORM_URL = "https://mantle-x402.vercel.app";
1200
+ var DEFAULT_PLATFORM_URL = "https://mantle-devkit.vercel.app";
1201
1201
  var cachedConfig = null;
1202
1202
  var validationPromise = null;
1203
1203
  function getPlatformBaseUrl() {