@toon-protocol/client 0.12.0 → 0.13.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.
- package/dist/index.d.ts +5 -5
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2882,12 +2882,12 @@ declare function buildPetPurchaseRequest(params: PetPurchaseRequestParams): Unsi
|
|
|
2882
2882
|
*
|
|
2883
2883
|
* EVM `POST {faucetUrl}/api/request` body `{ address }` → 100 ETH + 10k USDC
|
|
2884
2884
|
* Solana `POST {faucetUrl}/api/solana/request` body `{ address }` → SOL + USDC
|
|
2885
|
-
* Mina `POST {faucetUrl}/api/mina/request` body `{ address }` → native MINA
|
|
2885
|
+
* Mina `POST {faucetUrl}/api/mina/request` body `{ address }` → native MINA + USDC
|
|
2886
2886
|
*
|
|
2887
2887
|
* Devnet edge (today): `https://faucet.devnet.toonprotocol.dev`.
|
|
2888
2888
|
*
|
|
2889
|
-
*
|
|
2890
|
-
*
|
|
2889
|
+
* All three chains are live on the deployed faucet — the request shape is
|
|
2890
|
+
* identical (`{ address }`); only the path differs.
|
|
2891
2891
|
*/
|
|
2892
2892
|
/** Supported faucet chains. */
|
|
2893
2893
|
type FaucetChain = 'evm' | 'solana' | 'mina';
|
|
@@ -2913,8 +2913,8 @@ interface FundWalletOptions {
|
|
|
2913
2913
|
* @param faucetUrl - Faucet base URL, e.g. `https://faucet.devnet.toonprotocol.dev`.
|
|
2914
2914
|
* A trailing `/` is tolerated.
|
|
2915
2915
|
* @param address - The chain address to fund (EVM 0x address, Solana base58, etc).
|
|
2916
|
-
* @param chain - `'evm'`
|
|
2917
|
-
* @throws {Error} If `faucetUrl
|
|
2916
|
+
* @param chain - `'evm'` | `'solana'` | `'mina'` (all live on the devnet faucet).
|
|
2917
|
+
* @throws {Error} If `faucetUrl` or `address` is missing.
|
|
2918
2918
|
* @throws {NetworkError} On transport failure or a non-2xx faucet response.
|
|
2919
2919
|
*/
|
|
2920
2920
|
declare function fundWallet(faucetUrl: string, address: string, chain: FaucetChain, options?: FundWalletOptions): Promise<FundWalletResult>;
|
package/dist/index.js
CHANGED
|
@@ -5308,11 +5308,6 @@ async function fundWallet(faucetUrl, address, chain, options = {}) {
|
|
|
5308
5308
|
if (!address) {
|
|
5309
5309
|
throw new Error("fundWallet: address is required");
|
|
5310
5310
|
}
|
|
5311
|
-
if (chain === "solana" || chain === "mina") {
|
|
5312
|
-
throw new Error(
|
|
5313
|
-
`fundWallet: ${chain} faucet funding is deferred (WS3) \u2014 not yet implemented`
|
|
5314
|
-
);
|
|
5315
|
-
}
|
|
5316
5311
|
const base = faucetUrl.replace(/\/+$/, "");
|
|
5317
5312
|
const url = `${base}${faucetPath(chain)}`;
|
|
5318
5313
|
const fetchImpl = options.fetchImpl ?? fetch;
|