Skip to content

Commit

Permalink
add link for submitTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Jan 17, 2022
1 parent df81038 commit 85d455f
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 @@ -84,6 +84,7 @@ module Cardano.Wallet.Api.Link
, signTransaction
, balanceTransaction
, decodeTransaction
, submitTransaction

-- * StakePools
, listStakePools
Expand Down Expand Up @@ -697,6 +698,21 @@ decodeTransaction 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 85d455f

Please sign in to comment.