12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Copyright 2017-2019 @polkadot/app-contracts authors & contributors
- // This software may be modified and distributed under the terms
- // of the Apache-2.0 license. See the LICENSE file for details.
- import { Abi } from '@polkadot/api-contract';
- import { AppProps } from '@polkadot/react-components/types';
- import { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
- export interface LocationProps {
- match: {
- params: Record<string, any>;
- };
- }
- export type ComponentProps = AppProps & LocationProps & {
- accounts: SubjectInfo[];
- contracts: SubjectInfo[];
- hasCode: boolean;
- showDeploy: (codeHash?: string) => () => void;
- };
- export interface CodeJson {
- abi?: string | null;
- codeHash: string;
- name: string;
- genesisHash: string;
- tags: string[];
- }
- export interface CodeStored {
- json: CodeJson;
- contractAbi?: Abi;
- }
- export interface ContractJsonOld {
- genesisHash: string;
- abi: string;
- address: string;
- name: string;
- }
|