@atxp/client 0.6.4 → 0.7.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 +3 -1
- package/dist/atxpFetcher.js +0 -1
- package/dist/atxpFetcher.js.map +1 -1
- package/dist/index.cjs +27 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +34 -2
- package/dist/index.js +25 -2
- package/dist/index.js.map +1 -1
- package/dist/worldConstants.js +26 -0
- package/dist/worldConstants.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const USDC_CONTRACT_ADDRESS_WORLD_MAINNET = "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"; // USDC.e on World Chain mainnet
|
|
2
|
+
// World Chain Mainnet (Chain ID: 480)
|
|
3
|
+
const WORLD_CHAIN_MAINNET = {
|
|
4
|
+
id: 480,
|
|
5
|
+
name: 'World Chain',
|
|
6
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
7
|
+
rpcUrls: {
|
|
8
|
+
default: { http: ['https://worldchain-mainnet.g.alchemy.com/public'] }
|
|
9
|
+
},
|
|
10
|
+
blockExplorers: {
|
|
11
|
+
default: { name: 'WorldScan', url: 'https://worldscan.org' }
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Get World Chain Mainnet configuration with custom RPC URL (e.g., with API key)
|
|
16
|
+
* @param rpcUrl - Custom RPC URL, e.g., 'https://worldchain-mainnet.g.alchemy.com/v2/YOUR_API_KEY'
|
|
17
|
+
*/
|
|
18
|
+
const getWorldChainMainnetWithRPC = (rpcUrl) => ({
|
|
19
|
+
...WORLD_CHAIN_MAINNET,
|
|
20
|
+
rpcUrls: {
|
|
21
|
+
default: { http: [rpcUrl] }
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { USDC_CONTRACT_ADDRESS_WORLD_MAINNET, WORLD_CHAIN_MAINNET, getWorldChainMainnetWithRPC };
|
|
26
|
+
//# sourceMappingURL=worldConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worldConstants.js","sources":["../src/worldConstants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAoBO,MAAM,mCAAmC,GAAG,6CAA6C;AAEhG;AACO,MAAM,mBAAmB,GAAe;AAC7C,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;AAC9D,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC;AACrE,KAAA;AACD,IAAA,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,uBAAuB;AAC3D;;AAGH;;;AAGG;MACU,2BAA2B,GAAG,CAAC,MAAc,MAAkB;AAC1E,IAAA,GAAG,mBAAmB;AACtB,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC;AAC1B;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atxp/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "ATXP Client - MCP client with OAuth authentication and payment processing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pack:dry": "npm pack --dry-run"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atxp/common": "0.
|
|
36
|
+
"@atxp/common": "0.7.1",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
|
38
38
|
"bignumber.js": "^9.3.0",
|
|
39
39
|
"oauth4webapi": "^3.5.0"
|