@0xmonaco/core 1.0.3 → 1.0.7
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/dist/api/faucet/api.d.ts
CHANGED
|
@@ -17,9 +17,13 @@ export declare class FaucetAPIImpl extends BaseAPI implements FaucetAPI {
|
|
|
17
17
|
/**
|
|
18
18
|
* Mints the full set of testnet tokens to the authenticated user.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Synchronous: resolves only when every faucet transaction confirmed
|
|
21
|
+
* on-chain (HTTP 200). Rejects with 429 when the daily quota is exhausted,
|
|
22
|
+
* 502 when transactions failed or were only partially confirmed (the error
|
|
23
|
+
* details carry the minted/failed breakdown; delivered legs still consume
|
|
24
|
+
* the quota), and 503 when the faucet is unavailable (safe to retry).
|
|
21
25
|
*
|
|
22
|
-
* @returns Promise resolving to the minted
|
|
26
|
+
* @returns Promise resolving to the minted tokens and remaining quota
|
|
23
27
|
*/
|
|
24
28
|
mint(): Promise<MintTokensResponse>;
|
|
25
29
|
}
|
package/dist/api/faucet/api.js
CHANGED
|
@@ -17,9 +17,13 @@ export class FaucetAPIImpl extends BaseAPI {
|
|
|
17
17
|
/**
|
|
18
18
|
* Mints the full set of testnet tokens to the authenticated user.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Synchronous: resolves only when every faucet transaction confirmed
|
|
21
|
+
* on-chain (HTTP 200). Rejects with 429 when the daily quota is exhausted,
|
|
22
|
+
* 502 when transactions failed or were only partially confirmed (the error
|
|
23
|
+
* details carry the minted/failed breakdown; delivered legs still consume
|
|
24
|
+
* the quota), and 503 when the faucet is unavailable (safe to retry).
|
|
21
25
|
*
|
|
22
|
-
* @returns Promise resolving to the minted
|
|
26
|
+
* @returns Promise resolving to the minted tokens and remaining quota
|
|
23
27
|
*/
|
|
24
28
|
async mint() {
|
|
25
29
|
return await this.makeAuthenticatedRequest(perpRoutes.faucet.mint(), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"viem": "^2.45.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@0xmonaco/contracts": "1.0.
|
|
27
|
-
"@0xmonaco/types": "1.0.
|
|
26
|
+
"@0xmonaco/contracts": "1.0.7",
|
|
27
|
+
"@0xmonaco/types": "1.0.7",
|
|
28
28
|
"@noble/curves": "^1.9.1",
|
|
29
29
|
"@noble/hashes": "^1.8.0",
|
|
30
30
|
"http-status-codes": "^2.3.0"
|