Files
js/components/contract-components/types.ts
T
Nacho IacovinoandJonas Daniels 7777cd81b8 Sources cleanup (#392)
* Add Copy ABI to relases

* Use Accordion, fix types

* Move accordion to own component

* Fix condition

* Move stuff around

* Rename source to sources

* Simplify logic

* Simplify logic in sources tab

* Fix abi type

* Fix more abi types

* Prettier did this

* Fix lgtm

* Get ABI from deployed contract

* Fix query

* Get ABI for prebuilts

Co-authored-by: Jonas Daniels <[email protected]>
2022-08-17 16:59:58 -07:00

24 lines
499 B
TypeScript

import type { AbiSchema, ContractType } from "@thirdweb-dev/sdk";
import { z } from "zod";
export type ContractId = ContractType | string;
export type ContractCellContext =
| "built-in"
| "deploy"
| "create_release"
| "view_release";
export interface DeployableContractContractCellProps {
cell: {
value: ContractId;
};
context?: ContractCellContext;
}
export type SourceFile = {
filename: string | undefined;
source: string;
};
export type Abi = z.infer<typeof AbiSchema>;