feat: contracts

This commit is contained in:
Alisa | Side.one 2023-05-12 20:37:01 +08:00
parent e7fd304aa9
commit 4db126c076
4 changed files with 29 additions and 21 deletions

View File

@ -94,12 +94,14 @@ const result = ref('');
<template> <template>
<div> <div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate w-full">Contract List of Code: {{ props.code_id }}</h2> <h2 class="card-title truncate w-full">
Contract List of Code: {{ props.code_id }}
</h2>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="table w-full mt-4"> <table class="table w-full mt-4">
<thead> <thead>
<tr> <tr>
<th style="position: relative;">Contract List</th> <th style="position: relative">Contract List</th>
<th>Actions</th> <th>Actions</th>
</tr> </tr>
</thead> </thead>
@ -110,15 +112,21 @@ const result = ref('');
<button <button
class="btn btn-primary btn-sm text-xs mr-2" class="btn btn-primary btn-sm text-xs mr-2"
@click="showInfo(v)" @click="showInfo(v)"
>contract</button> >
contract
</button>
<button <button
class="btn btn-primary btn-sm text-xs mr-2" class="btn btn-primary btn-sm text-xs mr-2"
@click="showState(v)" @click="showState(v)"
>States</button> >
States
</button>
<button <button
class="btn btn-primary btn-sm text-xs" class="btn btn-primary btn-sm text-xs"
@click="showQuery(v)" @click="showQuery(v)"
>Query</button> >
Query
</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -20,7 +20,7 @@ wasmStore.wasmClient.getWasmCodeList().then((x) => {
<table class="table w-full mt-4 text-sm"> <table class="table w-full mt-4 text-sm">
<thead> <thead>
<tr> <tr>
<th style="position: relative;">Code Id</th> <th style="position: relative">Code Id</th>
<th>Code Hash</th> <th>Code Hash</th>
<th>Creator</th> <th>Creator</th>
<th>Permissions</th> <th>Permissions</th>