Skip to main content

Monaco Protocol SDK v1.0.7

This release changes faucet.mint() to confirm on-chain before resolving, and fixes balance re-fetch consistency immediately after a live balance update.

Changed

faucet.mint() now confirms on-chain before resolving

sdk.faucet.mint() previously resolved with a partial-success body that you inspected via minted and failed — even when some or all mints failed. It now resolves only when every faucet transaction has confirmed on-chain, and throws otherwise: Move partial-failure handling out of the response body and into a try/catch:
The MintTokensResponse shape is unchanged — on a successful resolve, failed is empty.

Fixed

Balances re-fetch is consistent after a live update

Re-fetching balances immediately after a balances WebSocket event — sdk.profile.getUserBalances(), sdk.profile.getUserBalanceByAssetId(), or the equivalent GET /api/v1/accounts/balances and gRPC AccountsService.GetBalances — now reflects that update instead of occasionally returning stale data. No method arguments or response fields changed.

Upgrade

faucet.mint() now throws on quota-exhausted, failed, or partial mints instead of resolving with a populated failed array — update any success-path code that inspected failed to catch a thrown error instead. No field names, endpoint paths, or authentication requirements changed.