Skip to content

Commit

Permalink
cleanup deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Dec 27, 2024
1 parent 682007c commit c0dcd1b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,4 @@
}}
/>
{/if}
<button
class="flex-1"
on:click={() => {
const deposits = gui.getDeposits();
console.log('deposits:', deposits);
}}
>
Get Deposits
</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
deploymentStepsStore.populateDeploymentSteps(deploymentSteps);
$: console.log($deploymentStepsStore);
$: currentStep = 0;
const nextStep = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@
type TokenInfos
} from '@rainlanguage/orderbook/js_api';
import { Input, Button } from 'flowbite-svelte';
import type { StepType } from '../../../types/wizardSteps';
export let deposit: GuiDeposit;
export let gui: DotrainOrderGui;
export let tokenInfos: TokenInfos;
export let type: StepType;
let showCustomInput = false;
$: console.log('deposit', deposit);
let showCustomInput = !gui?.isDepositPreset(deposit.token_name);
function handlePresetClick(preset: string) {
console.log('PRESET CLICK');
gui?.saveDeposit(deposit.token_name, preset);
console.log(gui?.getDeposits());
showCustomInput = false;
gui = gui;
}
Expand Down Expand Up @@ -65,7 +59,7 @@
</Button>
</div>
{/if}
{#if !gui?.isDepositPreset(deposit.token_name)}
{#if showCustomInput}
<div class="mt-8 w-full max-w-md">
<Input
class="text-center text-lg"
Expand Down
2 changes: 0 additions & 2 deletions packages/webapp/src/routes/deployment/new/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@
getDeposits();
getAllTokenInputs();
getAllTokenOutputs();
console.log('gui', gui.getAllFieldValues());
console.log('gui deposits', gui.getDeposits());
}
export function getChainById(chainId: number): Chain {
Expand Down

0 comments on commit c0dcd1b

Please sign in to comment.