Skip to content

Commit

Permalink
add Cardano.Api.Link
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Oct 12, 2021
1 parent f9feeef commit 7ea38bb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/core/src/Cardano/Wallet/Api/Link.hs
Expand Up @@ -83,6 +83,7 @@ module Cardano.Wallet.Api.Link
, createUnsignedTransaction
, signTransaction
, balanceTransaction
, submitTransaction

-- * StakePools
, listStakePools
Expand Down Expand Up @@ -681,6 +682,21 @@ balanceTransaction w = discriminate @style
where
wid = w ^. typed @(ApiT WalletId)

submitTransaction
:: forall style w.
( HasCallStack
, HasType (ApiT WalletId) w
, Discriminate style
)
=> w
-> (Method, Text)
submitTransaction w = discriminate @style
(endpoint @Api.SubmitTransaction (wid &))
(notSupported "Byron")
(notSupported "Shared")
where
wid = w ^. typed @(ApiT WalletId)

--
-- Stake Pools
--
Expand Down

0 comments on commit 7ea38bb

Please sign in to comment.