* 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]>
24 lines
499 B
TypeScript
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>;
|