crossmint_core 0.1.10
crossmint_core: ^0.1.10 copied to clipboard
Pure-Dart base primitives for the Crossmint Flutter SDK — config, transport, error types, chain validation, and shared models.
0.1.10 #
- Added
CrossmintException.apiErrorCode: thecodefrom the Crossmint API error envelope, verbatim (for exampleLAST_RECOVERY_SIGNER), ornullwhen the failure did not come from an API response or the response carried none. - Added
CrossmintException.statusCode: the HTTP status of the response that reported the failure, ornullwhen no HTTP response did (a transport error, a timeout, or a 2xx body the SDK could not read). Callers can tell a request the API rejected (4xx) from a server failure without parsingmessage. Every subclass in this package takes both fields. - Breaking: a failed response in
expectSuccessfulBodyandexpectSuccessfulMapnow throws withcodeset toCrossmintErrorCode.httpError, or to the matching member when the API's error code has one (for examplewalletNotFoundforWALLET_NOT_FOUND), instead ofCrossmintErrorCode.unknown. - Breaking: added
CrossmintErrorCode.walletLastRecoverySigner,walletDelegatedSignerConflictandwalletRecoverySignerNotAllowed. Code that switches exhaustively overCrossmintErrorCodemust handle them. - Breaking:
CrossmintExceptionFactorynow takes the named parameterscode,apiErrorCodeandstatusCode. A custom factory passed toexpectSuccessfulBodyorexpectSuccessfulMapmust accept all three. The exception constructors (CrossmintWalletException.newand the rest) already do. A class that implementsCrossmintExceptioninstead of extending it must add theapiErrorCodeandstatusCodegetters. - The
crossmint.transport.requestdebug log carriespathin place ofuri. The query is dropped, and a path segment that contains:,@or%, such as a wallet or signer locator, reads{locator}.
0.1.9 #
- Breaking: removed
CrossmintChain.abstract_andCrossmintChain.abstractTestnet, because the Abstract network shuts down on December 15, 2026. For'abstract'and'abstract-testnet',CrossmintChain.fromApiValuenow throws andtryFromApiValuereturnsnull.
0.1.8 #
- Added
CrossmintErrorCode.walletInvalidRecoveryConfig, raised when a wallet create request carries bothrecoveryandrecoveryMethods. It matches the invalid recovery config error in the TypeScript, Swift and Kotlin SDKs. Code that switches exhaustively overCrossmintErrorCodemust handle the new value.
0.1.7 #
- Added
CrossmintErrorCode.walletMissingRecoveryMethod, raised when a wallet create request carries no recovery method at all.
0.1.6 #
- Added
CrossmintErrorCode.passkeyUserVerificationMissing, raised when a passkey assertion was produced without user verification. Code that switches exhaustively overCrossmintErrorCodemust handle the new value.
0.1.5 #
- Docs only. Reworded the dartdoc on
CrossmintErrorCode.walletDeviceSignerNotSupportedand the deprecatedwalletUnsupportedSolanaDeviceSignerto say that Solana device signer support depends on the wallet type rather than on the provider. No API or behavior change; published so pub.dev renders the corrected reference.
0.1.4 #
- Added
CrossmintErrorCode.walletDeviceSignerNotSupported, raised when a wallet's underlying provider does not support device signers (surfaced from the backendDEVICE_SIGNER_NOT_SUPPORTEDcode). Device signer support is now provider-dependent and validated server-side rather than blanket-rejected per chain. - Deprecated
CrossmintErrorCode.walletUnsupportedSolanaDeviceSignerin favour ofwalletDeviceSignerNotSupported. The old value is retained for source compatibility but is no longer raised by the SDK.
0.1.3 #
- Docs: dartdoc style-guide fixes in public-surface
///comments.
0.1.2 #
- Docs: expanded dartdoc coverage on the public surface for the pub.dev
landing page, plus a follow-up pass that fixed broken
[reference]link targets and dartdoc format regressions surfaced by the docs build.
0.1.1 #
- Added
CrossmintErrorCode.nonCustodialBridgeHostNotMounted, raised when a non-custodial (email/phone) signer is selected but noCrossmintWalletHost/CrossmintWalletProviderhas been mounted to host the hidden signer WebView bridge.
0.1.0 #
- First public release on pub.dev
0.0.1 #
- Initial internal extraction from
crossmint_flutter - Added shared config, environment, transport, errors, logging, and common models
- Added shared orders, tokens, and users contracts and models