@0xmonaco/types 1.0.21 → 1.0.25
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/faucet/index.d.ts +11 -10
- package/dist/wire/schema.d.ts +2 -2
- package/package.json +2 -2
package/dist/faucet/index.d.ts
CHANGED
|
@@ -33,10 +33,10 @@ export interface FailedMint {
|
|
|
33
33
|
export interface MintTokensParams {
|
|
34
34
|
/**
|
|
35
35
|
* Cloudflare Turnstile token proving the request came from a real client.
|
|
36
|
-
* Required
|
|
37
|
-
*
|
|
36
|
+
* Required on every faucet mint request; requests without a valid token are
|
|
37
|
+
* rejected.
|
|
38
38
|
*/
|
|
39
|
-
turnstileToken
|
|
39
|
+
turnstileToken: string;
|
|
40
40
|
}
|
|
41
41
|
/** Result of a faucet mint request. */
|
|
42
42
|
export interface MintTokensResponse {
|
|
@@ -57,14 +57,15 @@ export interface FaucetAPI extends BaseAPI {
|
|
|
57
57
|
* Testnet-only and rate-limited; see the module note. The call is
|
|
58
58
|
* synchronous and resolves only when every faucet transaction confirmed
|
|
59
59
|
* on-chain (HTTP 200). Failures reject with meaningful status codes:
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
60
|
+
* 400 when the Turnstile token is missing or invalid, 429 when the daily
|
|
61
|
+
* quota is exhausted, 502 when transactions failed or were only partially
|
|
62
|
+
* confirmed on-chain (the error details carry the minted/failed breakdown;
|
|
63
|
+
* delivered legs still consume the quota), and 503 when the faucet is
|
|
64
|
+
* unavailable (nothing credited, safe to retry).
|
|
64
65
|
*
|
|
65
|
-
* @param params -
|
|
66
|
-
*
|
|
66
|
+
* @param params - Mint parameters, including the required Turnstile captcha
|
|
67
|
+
* token
|
|
67
68
|
* @returns Promise resolving to the minted tokens and remaining quota
|
|
68
69
|
*/
|
|
69
|
-
mint(params
|
|
70
|
+
mint(params: MintTokensParams): Promise<MintTokensResponse>;
|
|
70
71
|
}
|
package/dist/wire/schema.d.ts
CHANGED
|
@@ -4810,8 +4810,8 @@ export interface components {
|
|
|
4810
4810
|
executionPriceRange?: components["schemas"]["ExecutionPriceRange"];
|
|
4811
4811
|
};
|
|
4812
4812
|
MintTokensRequest: {
|
|
4813
|
-
/** @description Cloudflare Turnstile token
|
|
4814
|
-
turnstileToken
|
|
4813
|
+
/** @description Cloudflare Turnstile token proving the request came from a real client. Required on every faucet mint request. */
|
|
4814
|
+
turnstileToken: string;
|
|
4815
4815
|
};
|
|
4816
4816
|
MintTokensResponse: {
|
|
4817
4817
|
minted?: components["schemas"]["MintedToken"][] | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint": "biome lint ."
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@0xmonaco/contracts": "1.0.
|
|
23
|
+
"@0xmonaco/contracts": "1.0.25",
|
|
24
24
|
"zod": "^4.1.12"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|