Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Contract API #344

Merged
merged 40 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a497bd6
Removed rexbal call (redundant)
aaroncox Jan 22, 2025
0f41f45
Added data view to accounts while in advanced mode
aaroncox Jan 22, 2025
db49f90
Added proposals to JSON view of account state
aaroncox Jan 22, 2025
5365dab
Remove rexbal from types
aaroncox Jan 23, 2025
dd60716
Refactored account api
aaroncox Jan 23, 2025
a974e7b
Marked `sources` on AccountState as private and rework components acc…
aaroncox Jan 23, 2025
20a1b2b
Adding new API contract for Jungle4
aaroncox Jan 23, 2025
78c72ee
Separating refund_request from get_account
aaroncox Jan 24, 2025
4096acb
Only consider a balance "unstaking" if its not claimable
aaroncox Jan 24, 2025
087a60c
Moving balance and rexbal to v2 API
aaroncox Jan 24, 2025
e180c1d
Rename feature to `unicovecontracts` and update account name
aaroncox Jan 28, 2025
43804c9
Update unicove.ts
aaroncox Jan 29, 2025
fc02144
Disable new contracts on EOS
aaroncox Jan 29, 2025
c4eb85e
Formatting
aaroncox Jan 29, 2025
4d543c1
Load all contracts by default
aaroncox Jan 29, 2025
b5a9708
Allow calling of readonly actions
aaroncox Jan 30, 2025
e10fab3
Pass network while modifying settings
aaroncox Jan 30, 2025
cd836ec
Removed unneeded checks
aaroncox Jan 30, 2025
e67c896
Updatint svelte/sveltekit/vite
aaroncox Jan 30, 2025
ec28cd2
Reworked network state loading and restructured token/resources
aaroncox Jan 30, 2025
7fcfb24
Removed unused job
aaroncox Jan 30, 2025
5a27100
Added linting
aaroncox Jan 30, 2025
4ac904f
Detect if the account has a contract
aaroncox Jan 30, 2025
9899c20
Error handling + dedicated readonly API
aaroncox Jan 31, 2025
e61f814
Made data param optional
aaroncox Jan 31, 2025
671651a
Added Copy button for links
aaroncox Jan 31, 2025
624771f
Linting
aaroncox Jan 31, 2025
353b441
Automatic request on pageload (if requested)
aaroncox Jan 31, 2025
83d5bea
Some initial work on the actions page
aaroncox Feb 1, 2025
55cfbe5
Action list improvements
aaroncox Feb 1, 2025
09209e1
Using ricardian parser
aaroncox Feb 1, 2025
c56b8d9
Fixed simple ricardian parser
aaroncox Feb 1, 2025
7343390
Allow quick contract lookup
aaroncox Dec 3, 2024
52e6fe0
Revamped contract interface pages
aaroncox Feb 2, 2025
2960523
Removed env variable
aaroncox Feb 2, 2025
4c5f49f
Updating contract kit
aaroncox Feb 2, 2025
1753760
Linting
aaroncox Feb 2, 2025
4be962a
Removed default that installs
aaroncox Feb 2, 2025
b62a215
Minor improvements to transaction handling
aaroncox Feb 2, 2025
16d2f51
Linting
aaroncox Feb 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added Copy button for links
  • Loading branch information
aaroncox committed Jan 31, 2025
commit 671651aea60a5f8d2af6faa572019770a4c1e1ab
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import Card from '$lib/components/layout/box/card.svelte';
import Code from '$lib/components/code.svelte';
import Label from '$lib/components/input/label.svelte';
import Textinput from '$lib/components/input/text.svelte';
import TextInput from '$lib/components/input/text.svelte';
import CopyButton from '$lib/components/button/copy.svelte';

import Fields from './fields.svelte';
import { MultiCard } from '$lib/components/layout';
import Checkbox from '$lib/components/input/checkbox.svelte';
import { readonly } from 'svelte/store';

const { data } = $props();

Expand Down Expand Up @@ -230,29 +230,28 @@
</Card>
{/if}

<h4 class="h4 mt-4">Links</h4>
<fieldset class="grid gap-2">
<Label for="tx-link">
{#if link}
<a href={link}> The link to this page with using the data filled out above. </a>
{:else}
Complete the transaction above to generate a shareable link.
{/if}
</Label>
<Textinput value={link} readonly />
</fieldset>
{#if link}
<h4 class="h4 mt-4">Links</h4>

{#if useReadOnly}
<fieldset class="grid gap-2">
<Label for="tx-link">
{#if api}
<a href={api}> The to an API call for this transaction. </a>
{:else}
Complete the transaction above to generate a link.
{/if}
<a href={link}> Sharable URL for this action and data </a>
</Label>
<Textinput value={api} readonly />
<TextInput value={link} disabled>
<CopyButton data={link} />
</TextInput>
</fieldset>

{#if useReadOnly && api}
<fieldset class="grid gap-2">
<Label for="tx-link">
<a href={api}> API call which runs this readonly action </a>
</Label>
<TextInput value={api} disabled>
<CopyButton data={api} />
</TextInput>
</fieldset>
{/if}
{/if}

{#if context.settings.data.debugMode}
Expand Down
Loading