Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Api n apiPool = Wallets :<|> ( WalletKeys :<|> ( Assets :<|> ( Addresses n :<|> ( CoinSelections n :<|> ( ShelleyTransactions n :<|> ( ShelleyMigrations n :<|> ( StakePools n apiPool :<|> ( ByronWallets :<|> ( ByronAssets :<|> ( ByronAddresses n :<|> ( ByronCoinSelections n :<|> ( ByronTransactions n :<|> ( ByronMigrations n :<|> ( Network :<|> ( Proxy_ :<|> ( Settings :<|> ( SMASH :<|> ( SharedWallets :<|> ( SharedWalletKeys :<|> ( SharedAddresses n :<|> SharedTransactions n))))))))))))))))))))
- type ApiV2 n apiPool = "v2" :> Api n apiPool
- type family PostData wallet :: Type where ...
- type Wallets = DeleteWallet :<|> ( GetWallet :<|> ( ListWallets :<|> ( PostWallet :<|> ( PutWallet :<|> ( PutWalletPassphrase :<|> ( GetWalletUtxoSnapshot :<|> GetUTxOsStatistics ))))))
- type DeleteWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent )
- type GetWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiWallet )
- type ListWallets = "wallets" :> Get '[ JSON ] [ ApiWallet ]
- type PostWallet = "wallets" :> ( ReqBody '[ JSON ] ( PostData ApiWallet ) :> PostCreated '[ JSON ] ApiWallet )
- type PutWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] WalletPutData :> Put '[ JSON ] ApiWallet ))
- type PutWalletPassphrase = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("passphrase" :> ( ReqBody '[ JSON ] WalletPutPassphraseData :> PutNoContent )))
- type GetUTxOsStatistics = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("statistics" :> ("utxos" :> Get '[ JSON ] ApiUtxoStatistics )))
- type GetWalletUtxoSnapshot = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("utxo" :> Get '[ JSON ] ApiWalletUtxoSnapshot ))
- type WalletKeys = GetWalletKey :<|> ( SignMetadata :<|> ( PostAccountKey :<|> ( GetAccountKey :<|> ( GetPolicyKey :<|> ( PostPolicyKey :<|> PostPolicyId )))))
- type GetWalletKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiVerificationKeyShelley )))))
- type SignMetadata = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("signatures" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiWalletSignData :> Post '[ OctetStream ] ByteString )))))
- type PostAccountKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiPostAccountKeyDataWithPurpose :> PostAccepted '[ JSON ] ApiAccountKey ))))
- type GetAccountKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( QueryParam "format" KeyFormat :> Get '[ JSON ] ApiAccountKey )))
- type GetPolicyKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-key" :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiPolicyKey )))
- type PostPolicyKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-key" :> ( QueryParam "hash" Bool :> ( ReqBody '[ JSON ] ApiPostPolicyKeyData :> PostAccepted '[ JSON ] ApiPolicyKey ))))
- type PostPolicyId = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-id" :> ( ReqBody '[ JSON ] ApiPostPolicyIdData :> PostAccepted '[ JSON ] ApiPolicyId )))
- type Assets = ListAssets :<|> ( GetAsset :<|> GetAssetDefault )
- type ListAssets = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> Get '[ JSON ] [ ApiAsset ]))
- type GetAsset = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> ( Capture "assetName" ( ApiT TokenName ) :> Get '[ JSON ] ApiAsset ))))
- type GetAssetDefault = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> Get '[ JSON ] ApiAsset )))
- type Addresses n = ListAddresses n :<|> ( InspectAddress :<|> PostAnyAddress n)
- type ListAddresses n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n])))
- type InspectAddress = "addresses" :> ( Capture "addressId" ApiAddressInspectData :> Get '[ JSON ] ApiAddressInspect )
- type PostAnyAddress n = "addresses" :> ( ReqBody '[ JSON ] ApiAddressData :> PostAccepted '[ JSON ] AnyAddress )
- type CoinSelections n = SelectCoins n
- type SelectCoins n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("coin-selections" :> ("random" :> ( ReqBody '[ JSON ] ( ApiSelectCoinsDataT n) :> Post '[ JSON ] ( ApiCoinSelectionT n)))))
- type ShelleyTransactions n = ConstructTransaction n :<|> ( SignTransaction n :<|> ( ListTransactions n :<|> ( GetTransaction n :<|> ( DeleteTransaction :<|> ( CreateTransactionOld n :<|> ( PostTransactionFeeOld n :<|> ( BalanceTransaction n :<|> ( DecodeTransaction n :<|> SubmitTransaction ))))))))
- type ConstructTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n))))
- type SignTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-sign" :> ( ReqBody '[ JSON ] ApiSignTransactionPostData :> PostAccepted '[ JSON ] ApiSerialisedTransaction )))
- type ListTransactions n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( QueryParam "minWithdrawal" MinWithdrawal :> ( QueryParam "start" Iso8601Time :> ( QueryParam "end" Iso8601Time :> ( QueryParam "order" ( ApiT SortOrder ) :> ( QueryFlag "simple-metadata" :> Get '[ JSON ] [ ApiTransactionT n])))))))
- type GetTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> ( QueryFlag "simple-metadata" :> Get '[ JSON ] ( ApiTransactionT n)))))
- type DeleteTransaction = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> DeleteNoContent )))
- type CreateTransactionOld n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( ReqBody '[ JSON ] ( PostTransactionOldDataT n) :> PostAccepted '[ JSON ] ( ApiTransactionT n))))
- type PostTransactionFeeOld n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-fees" :> ( ReqBody '[ JSON ] ( PostTransactionFeeOldDataT n) :> PostAccepted '[ JSON ] ApiFee )))
- type BalanceTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-balance" :> ( ReqBody '[ JSON ] ( ApiBalanceTransactionPostDataT n) :> PostAccepted '[ JSON ] ApiSerialisedTransaction )))
- type DecodeTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-decode" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ( ApiDecodedTransactionT n))))
- type SubmitTransaction = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-submit" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ApiTxId )))
- type StakePools n apiPool = ListStakePools apiPool :<|> ( JoinStakePool n :<|> ( QuitStakePool n :<|> ( DelegationFee :<|> ( ListStakeKeys n :<|> ( PostPoolMaintenance :<|> GetPoolMaintenance )))))
- type ListStakePools apiPool = "stake-pools" :> ( QueryParam "stake" ( ApiT Coin ) :> Get '[ JSON ] [apiPool])
- type JoinStakePool n = "stake-pools" :> ( Capture "stakePoolId" ApiPoolId :> ("wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] ApiWalletPassphrase :> PutAccepted '[ JSON ] ( ApiTransactionT n)))))
- type QuitStakePool n = "stake-pools" :> ("*" :> ("wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] ApiWalletPassphrase :> DeleteAccepted '[ JSON ] ( ApiTransactionT n)))))
- type DelegationFee = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("delegation-fees" :> Get '[ JSON ] ApiFee ))
- type ListStakeKeys n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("stake-keys" :> Get '[ JSON ] ( ApiStakeKeysT n)))
- type PostPoolMaintenance = "stake-pools" :> ("maintenance-actions" :> ( ReqBody '[ JSON ] ApiMaintenanceActionPostData :> PostNoContent ))
- type GetPoolMaintenance = "stake-pools" :> ("maintenance-actions" :> Get '[ JSON ] ApiMaintenanceAction )
- type ShelleyMigrations n = CreateShelleyWalletMigrationPlan n :<|> MigrateShelleyWallet n
- type MigrateShelleyWallet n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPostDataT n "user") :> PostAccepted '[ JSON ] ( NonEmpty ( ApiTransactionT n)))))
- type CreateShelleyWalletMigrationPlan n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ("plan" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPlanPostDataT n) :> PostAccepted '[ JSON ] ( ApiWalletMigrationPlan n)))))
- type Settings = PutSettings :<|> GetSettings
- type PutSettings = "settings" :> ( ReqBody '[ JSON ] SettingsPutData :> PutNoContent )
- type GetSettings = "settings" :> Get '[ JSON ] ( ApiT Settings )
- type ByronWallets = PostByronWallet :<|> ( DeleteByronWallet :<|> ( GetByronWallet :<|> ( ListByronWallets :<|> ( PutByronWallet :<|> ( GetByronWalletUtxoSnapshot :<|> ( GetByronUTxOsStatistics :<|> PutByronWalletPassphrase ))))))
- type DeleteByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent )
- type GetByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiByronWallet )
- type ListByronWallets = "byron-wallets" :> Get '[ JSON ] [ ApiByronWallet ]
- type PostByronWallet = "byron-wallets" :> ( ReqBody '[ JSON ] ( PostData ApiByronWallet ) :> PostCreated '[ JSON ] ApiByronWallet )
- type PutByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] WalletPutData :> Put '[ JSON ] ApiByronWallet ))
- type GetByronUTxOsStatistics = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("statistics" :> ("utxos" :> Get '[ JSON ] ApiUtxoStatistics )))
- type GetByronWalletUtxoSnapshot = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("utxo" :> Get '[ JSON ] ApiWalletUtxoSnapshot ))
- type PutByronWalletPassphrase = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("passphrase" :> ( ReqBody '[ JSON ] ByronWalletPutPassphraseData :> PutNoContent )))
- type ByronAssets = ListByronAssets :<|> ( GetByronAsset :<|> GetByronAssetDefault )
- type ListByronAssets = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> Get '[ JSON ] [ ApiAsset ]))
- type GetByronAsset = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> ( Capture "assetName" ( ApiT TokenName ) :> Get '[ JSON ] ApiAsset ))))
- type GetByronAssetDefault = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> Get '[ JSON ] ApiAsset )))
- type ByronAddresses n = PostByronAddress n :<|> ( PutByronAddress n :<|> ( PutByronAddresses n :<|> ListByronAddresses n))
- type PostByronAddress n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( ReqBody '[ JSON ] ApiPostRandomAddressData :> PostCreated '[ JSON ] ( ApiAddressT n))))
- type PutByronAddress n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( Capture "addressId" ( ApiAddressIdT n) :> PutNoContent )))
- type PutByronAddresses n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( ReqBody '[ JSON ] ( ApiPutAddressesDataT n) :> PutNoContent )))
- type ListByronAddresses n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n])))
- type ByronCoinSelections n = ByronSelectCoins n
- type ByronSelectCoins n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("coin-selections" :> ("random" :> ( ReqBody '[ JSON ] ( ApiSelectCoinsDataT n) :> Post '[ JSON ] ( ApiCoinSelectionT n)))))
- type ByronTransactions n = ConstructByronTransaction n :<|> ( SignByronTransaction n :<|> ( ListByronTransactions n :<|> ( GetByronTransaction n :<|> ( DeleteByronTransaction :<|> ( CreateByronTransactionOld n :<|> PostByronTransactionFeeOld n)))))
- type ConstructByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n))))
- type SignByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-sign" :> ( ReqBody '[ JSON ] ApiSignTransactionPostData :> PostAccepted '[ JSON ] ApiSerialisedTransaction )))
- type ListByronTransactions n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( QueryParam "start" Iso8601Time :> ( QueryParam "end" Iso8601Time :> ( QueryParam "order" ( ApiT SortOrder ) :> Get '[ JSON ] [ ApiTransactionT n])))))
- type GetByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> Get '[ JSON ] ( ApiTransactionT n))))
- type DeleteByronTransaction = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> DeleteNoContent )))
- type CreateByronTransactionOld n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( ReqBody '[ JSON ] ( PostTransactionOldDataT n) :> PostAccepted '[ JSON ] ( ApiTransactionT n))))
- type PostByronTransactionFeeOld n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-fees" :> ( ReqBody '[ JSON ] ( PostTransactionFeeOldDataT n) :> PostAccepted '[ JSON ] ApiFee )))
- type ByronMigrations n = CreateByronWalletMigrationPlan n :<|> MigrateByronWallet n
- type MigrateByronWallet n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPostDataT n "lenient") :> PostAccepted '[ JSON ] ( NonEmpty ( ApiTransactionT n)))))
- type CreateByronWalletMigrationPlan n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ("plan" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPlanPostDataT n) :> PostAccepted '[ JSON ] ( ApiWalletMigrationPlan n)))))
- type Network = GetNetworkInformation :<|> ( GetNetworkParameters :<|> GetNetworkClock )
- type GetNetworkInformation = "network" :> ("information" :> Get '[ JSON ] ApiNetworkInformation )
- type GetNetworkParameters = "network" :> ("parameters" :> Get '[ JSON ] ApiNetworkParameters )
- type GetNetworkClock = "network" :> ("clock" :> ( QueryFlag "forceNtpCheck" :> Get '[ JSON ] ApiNetworkClock ))
- type SMASH = GetCurrentSMASHHealth
- type GetCurrentSMASHHealth = "smash" :> ("health" :> ( QueryParam "url" ( ApiT SmashServer ) :> Get '[ JSON ] ApiHealthCheck ))
- type SharedWallets = PostSharedWallet :<|> ( GetSharedWallet :<|> ( ListSharedWallets :<|> ( PatchSharedWalletInPayment :<|> ( PatchSharedWalletInDelegation :<|> DeleteSharedWallet ))))
- type PostSharedWallet = "shared-wallets" :> ( ReqBody '[ JSON ] ApiSharedWalletPostData :> PostCreated '[ JSON ] ApiSharedWallet )
- type GetSharedWallet = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiSharedWallet )
- type ListSharedWallets = "shared-wallets" :> Get '[ JSON ] [ ApiSharedWallet ]
- type PatchSharedWalletInPayment = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-script-template" :> ( ReqBody '[ JSON ] ApiSharedWalletPatchData :> Patch '[ JSON ] ApiSharedWallet )))
- type PatchSharedWalletInDelegation = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("delegation-script-template" :> ( ReqBody '[ JSON ] ApiSharedWalletPatchData :> Patch '[ JSON ] ApiSharedWallet )))
- type DeleteSharedWallet = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent )
- type SharedWalletKeys = GetSharedWalletKey :<|> ( PostAccountKeyShared :<|> GetAccountKeyShared )
- type GetSharedWalletKey = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiVerificationKeyShared )))))
- type PostAccountKeyShared = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiPostAccountKeyData :> PostAccepted '[ JSON ] ApiAccountKeyShared ))))
- type GetAccountKeyShared = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( QueryParam "format" KeyFormat :> Get '[ JSON ] ApiAccountKeyShared )))
- type SharedAddresses n = ListSharedAddresses n
- type ListSharedAddresses n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n])))
- type SharedTransactions n = ConstructSharedTransaction n :<|> DecodeSharedTransaction n
- type ConstructSharedTransaction n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n))))
- type DecodeSharedTransaction n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-decode" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ( ApiDecodedTransactionT n))))
- type Proxy_ = PostExternalTransaction
- type PostExternalTransaction = "proxy" :> ("transactions" :> ( ReqBody '[ OctetStream ] ( ApiT SealedTx ) :> PostAccepted '[ JSON ] ApiTxId ))
- data ApiLayer s (k :: Depth -> Type -> Type ) = ApiLayer ( Tracer IO TxSubmitLog ) ( Tracer IO ( WorkerLog WalletId WalletWorkerLog )) ( Block , NetworkParameters ) ( NetworkLayer IO Block ) ( TransactionLayer k SealedTx ) ( DBFactory IO s k) ( WorkerRegistry WalletId ( DBLayer IO s k)) ( Concierge IO WalletLock ) ( TokenMetadataClient IO )
- type HasWorkerRegistry s k ctx = ( HasType ( WorkerRegistry WalletId ( DBLayer IO s k)) ctx, HasWorkerCtx ( DBLayer IO s k) ctx, WorkerKey ctx ~ WalletId , WorkerMsg ctx ~ WalletWorkerLog )
- workerRegistry :: forall s k ctx. HasWorkerRegistry s k ctx => Lens' ctx ( WorkerRegistry WalletId ( DBLayer IO s k))
- data WalletLock = PostTransactionOld WalletId
- walletLocks :: forall ctx. HasType ( Concierge IO WalletLock ) ctx => Lens' ctx ( Concierge IO WalletLock )
- type HasDBFactory s k = HasType ( DBFactory IO s k)
- dbFactory :: forall s k ctx. HasDBFactory s k ctx => Lens' ctx ( DBFactory IO s k)
- tokenMetadataClient :: forall ctx. HasTokenMetadataClient ctx => Lens' ctx ( TokenMetadataClient IO )
- type HasTokenMetadataClient = HasType ( TokenMetadataClient IO )
API
type Api n apiPool = Wallets :<|> ( WalletKeys :<|> ( Assets :<|> ( Addresses n :<|> ( CoinSelections n :<|> ( ShelleyTransactions n :<|> ( ShelleyMigrations n :<|> ( StakePools n apiPool :<|> ( ByronWallets :<|> ( ByronAssets :<|> ( ByronAddresses n :<|> ( ByronCoinSelections n :<|> ( ByronTransactions n :<|> ( ByronMigrations n :<|> ( Network :<|> ( Proxy_ :<|> ( Settings :<|> ( SMASH :<|> ( SharedWallets :<|> ( SharedWalletKeys :<|> ( SharedAddresses n :<|> SharedTransactions n)))))))))))))))))))) Source #
The full cardano-wallet API.
Type Families
Shelley
type Wallets = DeleteWallet :<|> ( GetWallet :<|> ( ListWallets :<|> ( PostWallet :<|> ( PutWallet :<|> ( PutWalletPassphrase :<|> ( GetWalletUtxoSnapshot :<|> GetUTxOsStatistics )))))) Source #
type DeleteWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent ) Source #
type GetWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiWallet ) Source #
type PostWallet = "wallets" :> ( ReqBody '[ JSON ] ( PostData ApiWallet ) :> PostCreated '[ JSON ] ApiWallet ) Source #
type PutWallet = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] WalletPutData :> Put '[ JSON ] ApiWallet )) Source #
type PutWalletPassphrase = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("passphrase" :> ( ReqBody '[ JSON ] WalletPutPassphraseData :> PutNoContent ))) Source #
type GetUTxOsStatistics = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("statistics" :> ("utxos" :> Get '[ JSON ] ApiUtxoStatistics ))) Source #
type GetWalletUtxoSnapshot = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("utxo" :> Get '[ JSON ] ApiWalletUtxoSnapshot )) Source #
type WalletKeys = GetWalletKey :<|> ( SignMetadata :<|> ( PostAccountKey :<|> ( GetAccountKey :<|> ( GetPolicyKey :<|> ( PostPolicyKey :<|> PostPolicyId ))))) Source #
type GetWalletKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiVerificationKeyShelley ))))) Source #
type SignMetadata = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("signatures" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiWalletSignData :> Post '[ OctetStream ] ByteString ))))) Source #
type PostAccountKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiPostAccountKeyDataWithPurpose :> PostAccepted '[ JSON ] ApiAccountKey )))) Source #
type GetAccountKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( QueryParam "format" KeyFormat :> Get '[ JSON ] ApiAccountKey ))) Source #
type GetPolicyKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-key" :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiPolicyKey ))) Source #
type PostPolicyKey = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-key" :> ( QueryParam "hash" Bool :> ( ReqBody '[ JSON ] ApiPostPolicyKeyData :> PostAccepted '[ JSON ] ApiPolicyKey )))) Source #
type PostPolicyId = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("policy-id" :> ( ReqBody '[ JSON ] ApiPostPolicyIdData :> PostAccepted '[ JSON ] ApiPolicyId ))) Source #
type Assets = ListAssets :<|> ( GetAsset :<|> GetAssetDefault ) Source #
type ListAssets = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> Get '[ JSON ] [ ApiAsset ])) Source #
type GetAsset = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> ( Capture "assetName" ( ApiT TokenName ) :> Get '[ JSON ] ApiAsset )))) Source #
type GetAssetDefault = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> Get '[ JSON ] ApiAsset ))) Source #
type Addresses n = ListAddresses n :<|> ( InspectAddress :<|> PostAnyAddress n) Source #
type ListAddresses n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n]))) Source #
type InspectAddress = "addresses" :> ( Capture "addressId" ApiAddressInspectData :> Get '[ JSON ] ApiAddressInspect ) Source #
type PostAnyAddress n = "addresses" :> ( ReqBody '[ JSON ] ApiAddressData :> PostAccepted '[ JSON ] AnyAddress ) Source #
type CoinSelections n = SelectCoins n Source #
type SelectCoins n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("coin-selections" :> ("random" :> ( ReqBody '[ JSON ] ( ApiSelectCoinsDataT n) :> Post '[ JSON ] ( ApiCoinSelectionT n))))) Source #
type ShelleyTransactions n = ConstructTransaction n :<|> ( SignTransaction n :<|> ( ListTransactions n :<|> ( GetTransaction n :<|> ( DeleteTransaction :<|> ( CreateTransactionOld n :<|> ( PostTransactionFeeOld n :<|> ( BalanceTransaction n :<|> ( DecodeTransaction n :<|> SubmitTransaction )))))))) Source #
type ConstructTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n)))) Source #
type SignTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-sign" :> ( ReqBody '[ JSON ] ApiSignTransactionPostData :> PostAccepted '[ JSON ] ApiSerialisedTransaction ))) Source #
type ListTransactions n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( QueryParam "minWithdrawal" MinWithdrawal :> ( QueryParam "start" Iso8601Time :> ( QueryParam "end" Iso8601Time :> ( QueryParam "order" ( ApiT SortOrder ) :> ( QueryFlag "simple-metadata" :> Get '[ JSON ] [ ApiTransactionT n]))))))) Source #
type GetTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> ( QueryFlag "simple-metadata" :> Get '[ JSON ] ( ApiTransactionT n))))) Source #
type DeleteTransaction = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> DeleteNoContent ))) Source #
type CreateTransactionOld n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( ReqBody '[ JSON ] ( PostTransactionOldDataT n) :> PostAccepted '[ JSON ] ( ApiTransactionT n)))) Source #
type PostTransactionFeeOld n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-fees" :> ( ReqBody '[ JSON ] ( PostTransactionFeeOldDataT n) :> PostAccepted '[ JSON ] ApiFee ))) Source #
type BalanceTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-balance" :> ( ReqBody '[ JSON ] ( ApiBalanceTransactionPostDataT n) :> PostAccepted '[ JSON ] ApiSerialisedTransaction ))) Source #
type DecodeTransaction n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-decode" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ( ApiDecodedTransactionT n)))) Source #
type SubmitTransaction = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-submit" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ApiTxId ))) Source #
type StakePools n apiPool = ListStakePools apiPool :<|> ( JoinStakePool n :<|> ( QuitStakePool n :<|> ( DelegationFee :<|> ( ListStakeKeys n :<|> ( PostPoolMaintenance :<|> GetPoolMaintenance ))))) Source #
type ListStakePools apiPool = "stake-pools" :> ( QueryParam "stake" ( ApiT Coin ) :> Get '[ JSON ] [apiPool]) Source #
type JoinStakePool n = "stake-pools" :> ( Capture "stakePoolId" ApiPoolId :> ("wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] ApiWalletPassphrase :> PutAccepted '[ JSON ] ( ApiTransactionT n))))) Source #
type QuitStakePool n = "stake-pools" :> ("*" :> ("wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] ApiWalletPassphrase :> DeleteAccepted '[ JSON ] ( ApiTransactionT n))))) Source #
type DelegationFee = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("delegation-fees" :> Get '[ JSON ] ApiFee )) Source #
type ListStakeKeys n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("stake-keys" :> Get '[ JSON ] ( ApiStakeKeysT n))) Source #
type PostPoolMaintenance = "stake-pools" :> ("maintenance-actions" :> ( ReqBody '[ JSON ] ApiMaintenanceActionPostData :> PostNoContent )) Source #
type GetPoolMaintenance = "stake-pools" :> ("maintenance-actions" :> Get '[ JSON ] ApiMaintenanceAction ) Source #
type MigrateShelleyWallet n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPostDataT n "user") :> PostAccepted '[ JSON ] ( NonEmpty ( ApiTransactionT n))))) Source #
type CreateShelleyWalletMigrationPlan n = "wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ("plan" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPlanPostDataT n) :> PostAccepted '[ JSON ] ( ApiWalletMigrationPlan n))))) Source #
Settings
type Settings = PutSettings :<|> GetSettings Source #
type PutSettings = "settings" :> ( ReqBody '[ JSON ] SettingsPutData :> PutNoContent ) Source #
Byron
type ByronWallets = PostByronWallet :<|> ( DeleteByronWallet :<|> ( GetByronWallet :<|> ( ListByronWallets :<|> ( PutByronWallet :<|> ( GetByronWalletUtxoSnapshot :<|> ( GetByronUTxOsStatistics :<|> PutByronWalletPassphrase )))))) Source #
type DeleteByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent ) Source #
type GetByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiByronWallet ) Source #
type ListByronWallets = "byron-wallets" :> Get '[ JSON ] [ ApiByronWallet ] Source #
type PostByronWallet = "byron-wallets" :> ( ReqBody '[ JSON ] ( PostData ApiByronWallet ) :> PostCreated '[ JSON ] ApiByronWallet ) Source #
type PutByronWallet = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ( ReqBody '[ JSON ] WalletPutData :> Put '[ JSON ] ApiByronWallet )) Source #
type GetByronUTxOsStatistics = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("statistics" :> ("utxos" :> Get '[ JSON ] ApiUtxoStatistics ))) Source #
type GetByronWalletUtxoSnapshot = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("utxo" :> Get '[ JSON ] ApiWalletUtxoSnapshot )) Source #
type PutByronWalletPassphrase = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("passphrase" :> ( ReqBody '[ JSON ] ByronWalletPutPassphraseData :> PutNoContent ))) Source #
type ListByronAssets = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> Get '[ JSON ] [ ApiAsset ])) Source #
type GetByronAsset = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> ( Capture "assetName" ( ApiT TokenName ) :> Get '[ JSON ] ApiAsset )))) Source #
type GetByronAssetDefault = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("assets" :> ( Capture "policyId" ( ApiT TokenPolicyId ) :> Get '[ JSON ] ApiAsset ))) Source #
type ByronAddresses n = PostByronAddress n :<|> ( PutByronAddress n :<|> ( PutByronAddresses n :<|> ListByronAddresses n)) Source #
type PostByronAddress n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( ReqBody '[ JSON ] ApiPostRandomAddressData :> PostCreated '[ JSON ] ( ApiAddressT n)))) Source #
type PutByronAddress n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( Capture "addressId" ( ApiAddressIdT n) :> PutNoContent ))) Source #
type PutByronAddresses n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( ReqBody '[ JSON ] ( ApiPutAddressesDataT n) :> PutNoContent ))) Source #
type ListByronAddresses n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n]))) Source #
type ByronCoinSelections n = ByronSelectCoins n Source #
type ByronSelectCoins n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("coin-selections" :> ("random" :> ( ReqBody '[ JSON ] ( ApiSelectCoinsDataT n) :> Post '[ JSON ] ( ApiCoinSelectionT n))))) Source #
type ByronTransactions n = ConstructByronTransaction n :<|> ( SignByronTransaction n :<|> ( ListByronTransactions n :<|> ( GetByronTransaction n :<|> ( DeleteByronTransaction :<|> ( CreateByronTransactionOld n :<|> PostByronTransactionFeeOld n))))) Source #
type ConstructByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n)))) Source #
type SignByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-sign" :> ( ReqBody '[ JSON ] ApiSignTransactionPostData :> PostAccepted '[ JSON ] ApiSerialisedTransaction ))) Source #
type ListByronTransactions n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( QueryParam "start" Iso8601Time :> ( QueryParam "end" Iso8601Time :> ( QueryParam "order" ( ApiT SortOrder ) :> Get '[ JSON ] [ ApiTransactionT n]))))) Source #
type GetByronTransaction n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> Get '[ JSON ] ( ApiTransactionT n)))) Source #
type DeleteByronTransaction = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( Capture "transactionId" ApiTxId :> DeleteNoContent ))) Source #
type CreateByronTransactionOld n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions" :> ( ReqBody '[ JSON ] ( PostTransactionOldDataT n) :> PostAccepted '[ JSON ] ( ApiTransactionT n)))) Source #
type PostByronTransactionFeeOld n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-fees" :> ( ReqBody '[ JSON ] ( PostTransactionFeeOldDataT n) :> PostAccepted '[ JSON ] ApiFee ))) Source #
type MigrateByronWallet n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPostDataT n "lenient") :> PostAccepted '[ JSON ] ( NonEmpty ( ApiTransactionT n))))) Source #
type CreateByronWalletMigrationPlan n = "byron-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("migrations" :> ("plan" :> ( ReqBody '[ JSON ] ( ApiWalletMigrationPlanPostDataT n) :> PostAccepted '[ JSON ] ( ApiWalletMigrationPlan n))))) Source #
Miscellaneous
type GetNetworkInformation = "network" :> ("information" :> Get '[ JSON ] ApiNetworkInformation ) Source #
type GetNetworkParameters = "network" :> ("parameters" :> Get '[ JSON ] ApiNetworkParameters ) Source #
type GetNetworkClock = "network" :> ("clock" :> ( QueryFlag "forceNtpCheck" :> Get '[ JSON ] ApiNetworkClock )) Source #
type SMASH = GetCurrentSMASHHealth Source #
type GetCurrentSMASHHealth = "smash" :> ("health" :> ( QueryParam "url" ( ApiT SmashServer ) :> Get '[ JSON ] ApiHealthCheck )) Source #
Shared Wallets
type SharedWallets = PostSharedWallet :<|> ( GetSharedWallet :<|> ( ListSharedWallets :<|> ( PatchSharedWalletInPayment :<|> ( PatchSharedWalletInDelegation :<|> DeleteSharedWallet )))) Source #
type PostSharedWallet = "shared-wallets" :> ( ReqBody '[ JSON ] ApiSharedWalletPostData :> PostCreated '[ JSON ] ApiSharedWallet ) Source #
type GetSharedWallet = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> Get '[ JSON ] ApiSharedWallet ) Source #
type ListSharedWallets = "shared-wallets" :> Get '[ JSON ] [ ApiSharedWallet ] Source #
type PatchSharedWalletInPayment = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("payment-script-template" :> ( ReqBody '[ JSON ] ApiSharedWalletPatchData :> Patch '[ JSON ] ApiSharedWallet ))) Source #
type PatchSharedWalletInDelegation = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("delegation-script-template" :> ( ReqBody '[ JSON ] ApiSharedWalletPatchData :> Patch '[ JSON ] ApiSharedWallet ))) Source #
type DeleteSharedWallet = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> DeleteNoContent ) Source #
type SharedWalletKeys = GetSharedWalletKey :<|> ( PostAccountKeyShared :<|> GetAccountKeyShared ) Source #
type GetSharedWalletKey = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "role" ( ApiT Role ) :> ( Capture "index" ( ApiT DerivationIndex ) :> ( QueryParam "hash" Bool :> Get '[ JSON ] ApiVerificationKeyShared ))))) Source #
type PostAccountKeyShared = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( Capture "index" ( ApiT DerivationIndex ) :> ( ReqBody '[ JSON ] ApiPostAccountKeyData :> PostAccepted '[ JSON ] ApiAccountKeyShared )))) Source #
type GetAccountKeyShared = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("keys" :> ( QueryParam "format" KeyFormat :> Get '[ JSON ] ApiAccountKeyShared ))) Source #
type SharedAddresses n = ListSharedAddresses n Source #
type ListSharedAddresses n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("addresses" :> ( QueryParam "state" ( ApiT AddressState ) :> Get '[ JSON ] [ ApiAddressT n]))) Source #
type ConstructSharedTransaction n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-construct" :> ( ReqBody '[ JSON ] ( ApiConstructTransactionDataT n) :> PostAccepted '[ JSON ] ( ApiConstructTransactionT n)))) Source #
type DecodeSharedTransaction n = "shared-wallets" :> ( Capture "walletId" ( ApiT WalletId ) :> ("transactions-decode" :> ( ReqBody '[ JSON ] ApiSerialisedTransaction :> PostAccepted '[ JSON ] ( ApiDecodedTransactionT n)))) Source #
type Proxy_ = PostExternalTransaction Source #
type PostExternalTransaction = "proxy" :> ("transactions" :> ( ReqBody '[ OctetStream ] ( ApiT SealedTx ) :> PostAccepted '[ JSON ] ApiTxId )) Source #
Api Layer
data ApiLayer s (k :: Depth -> Type -> Type ) Source #
ApiLayer ( Tracer IO TxSubmitLog ) ( Tracer IO ( WorkerLog WalletId WalletWorkerLog )) ( Block , NetworkParameters ) ( NetworkLayer IO Block ) ( TransactionLayer k SealedTx ) ( DBFactory IO s k) ( WorkerRegistry WalletId ( DBLayer IO s k)) ( Concierge IO WalletLock ) ( TokenMetadataClient IO ) |
Instances
type HasWorkerRegistry s k ctx = ( HasType ( WorkerRegistry WalletId ( DBLayer IO s k)) ctx, HasWorkerCtx ( DBLayer IO s k) ctx, WorkerKey ctx ~ WalletId , WorkerMsg ctx ~ WalletWorkerLog ) Source #
workerRegistry :: forall s k ctx. HasWorkerRegistry s k ctx => Lens' ctx ( WorkerRegistry WalletId ( DBLayer IO s k)) Source #
data WalletLock Source #
Locks that are held by the wallet in order to enforce sequential execution of some API actions. Used with Control.Concurrent.Concierge .
Instances
Eq WalletLock Source # | |
Defined in Cardano.Wallet.Api (==) :: WalletLock -> WalletLock -> Bool Source # (/=) :: WalletLock -> WalletLock -> Bool Source # |
|
Ord WalletLock Source # | |
Defined in Cardano.Wallet.Api compare :: WalletLock -> WalletLock -> Ordering Source # (<) :: WalletLock -> WalletLock -> Bool Source # (<=) :: WalletLock -> WalletLock -> Bool Source # (>) :: WalletLock -> WalletLock -> Bool Source # (>=) :: WalletLock -> WalletLock -> Bool Source # max :: WalletLock -> WalletLock -> WalletLock Source # min :: WalletLock -> WalletLock -> WalletLock Source # |
|
Show WalletLock Source # | |
Defined in Cardano.Wallet.Api |
walletLocks :: forall ctx. HasType ( Concierge IO WalletLock ) ctx => Lens' ctx ( Concierge IO WalletLock ) Source #
tokenMetadataClient :: forall ctx. HasTokenMetadataClient ctx => Lens' ctx ( TokenMetadataClient IO ) Source #
type HasTokenMetadataClient = HasType ( TokenMetadataClient IO ) Source #