Skip to content

Commit

Permalink
Remove connect wallet (#61)
Browse files Browse the repository at this point in the history
* removed connectWallet

* updated dists
  • Loading branch information
KateBushueva authored Aug 24, 2023
1 parent eff3089 commit 1cfc7ae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 32 deletions.
2 changes: 1 addition & 1 deletion dist/535.index.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions exe/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module Scaffold.Main (main, Contracts) where

import Contract.Prelude

import Common.ConnectWallet as ConnectWallet
import Contract.Address (Bech32String)
import Fundraising.Create as CreateFundraising
import Fundraising.Donate as Donate
import Fundraising.ReceiveFunds as ReceiveFunds
Expand All @@ -18,8 +16,7 @@ import Protocol.UserData (ProtocolData)
import Shared.NetworkData (NetworkParams)

data Contracts = Contracts
{ connectWallet :: (Bech32String -> Effect Unit) -> (String -> Effect Unit) -> NetworkParams -> Effect Unit
, getAppInfo :: (AppInfo -> Effect Unit) -> (String -> Effect Unit) -> ProtocolData -> NetworkParams -> Effect Unit
{ getAppInfo :: (AppInfo -> Effect Unit) -> (String -> Effect Unit) -> ProtocolData -> NetworkParams -> Effect Unit
, createFundraising :: (FundraisingInfo -> Effect Unit) -> (String -> Effect Unit) -> ProtocolData -> NetworkParams -> CreateFundraisingParams -> Effect Unit
, donate :: (Unit -> Effect Unit) -> (String -> Effect Unit) -> ProtocolData -> NetworkParams -> FundraisingData -> Int -> Effect Unit
, receiveFunds :: (Unit -> Effect Unit) -> (String -> Effect Unit) -> ProtocolData -> NetworkParams -> FundraisingData -> Effect Unit
Expand All @@ -29,8 +26,7 @@ data Contracts = Contracts

main :: Contracts
main = Contracts
{ connectWallet: ConnectWallet.runConnectWallet
, getAppInfo: AppInfo.runGetAppInfo
{ getAppInfo: AppInfo.runGetAppInfo
, createFundraising: CreateFundraising.runCreateFundraising
, donate: Donate.runDonate
, receiveFunds: ReceiveFunds.runReceiveFunds
Expand Down
20 changes: 0 additions & 20 deletions src/ConnectWallet.purs

This file was deleted.

5 changes: 0 additions & 5 deletions ui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,13 @@ const App = () => {
a.main.value0.getUserRelatedFundraisings(console.log)(console.log)(protocolData)(testnetNami)();
};

const onConnectWallet = () => {
a.main.value0.connectWallet(console.log)(console.log)(testnetNami)();
};

const onGetAppInfo = () => {
a.main.value0.getAppInfo(console.log)(console.log)(protocolData)(testnetNami)();
};

return (
<div>
<h1>Offchain integration</h1>
<button onClick={onConnectWallet}>Connect wallet</button>
<button onClick={onCreateFundraisingClick}>Create fundraising</button>
<button onClick={onDonate}>Donate 100 Ada</button>
<button onClick={onReceiveFunds}>Receive funds</button>
Expand Down

0 comments on commit 1cfc7ae

Please sign in to comment.