|
|
@ -140,7 +140,7 @@ export interface SettingsProps { |
|
|
|
createNewBlockchainAccount: (cbMessage: JSX.Element) => void, |
|
|
|
createNewBlockchainAccount: (cbMessage: JSX.Element) => void, |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
setMatchPassphrase: (passphrase: string) => void, |
|
|
|
setMatchPassphrase: (passphrase: string) => void, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void, okBtnClass?: string, cancelBtnClass?: string) => void, |
|
|
|
tooltip: (toasterMsg: string) => void, |
|
|
|
tooltip: (toasterMsg: string) => void, |
|
|
|
signMessageWithAddress: (account: string, message: string, modalContent: (hash: string, data: string) => JSX.Element, passphrase?: string) => void, |
|
|
|
signMessageWithAddress: (account: string, message: string, modalContent: (hash: string, data: string) => JSX.Element, passphrase?: string) => void, |
|
|
|
passphrase: string, |
|
|
|
passphrase: string, |
|
|
@ -184,7 +184,7 @@ export interface AccountProps { |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
setMatchPassphrase: (passphrase: string) => void, |
|
|
|
setMatchPassphrase: (passphrase: string) => void, |
|
|
|
tooltip: (toasterMsg: string) => void, |
|
|
|
tooltip: (toasterMsg: string) => void, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void, okBtnClass?: string, cancelBtnClass?: string) => void, |
|
|
|
signMessageWithAddress: (account: string, message: string, modalContent: (hash: string, data: string) => JSX.Element, passphrase?: string) => void, |
|
|
|
signMessageWithAddress: (account: string, message: string, modalContent: (hash: string, data: string) => JSX.Element, passphrase?: string) => void, |
|
|
|
passphrase: string |
|
|
|
passphrase: string |
|
|
|
} |
|
|
|
} |
|
|
@ -239,7 +239,7 @@ export interface ContractDropdownProps { |
|
|
|
}, |
|
|
|
}, |
|
|
|
syncContracts: () => void, |
|
|
|
syncContracts: () => void, |
|
|
|
getSelectedContract: (contractName: string, compiler: CompilerAbstract) => ContractData, |
|
|
|
getSelectedContract: (contractName: string, compiler: CompilerAbstract) => ContractData, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, |
|
|
|
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void, okBtnClass?: string, cancelBtnClass?: string) => void, |
|
|
|
passphrase: string, |
|
|
|
passphrase: string, |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
setPassphrase: (passphrase: string) => void, |
|
|
|
createInstance: ( |
|
|
|
createInstance: ( |
|
|
@ -265,7 +265,7 @@ export interface ContractDropdownProps { |
|
|
|
setSelectedContract: (contractName: string) => void |
|
|
|
setSelectedContract: (contractName: string) => void |
|
|
|
remixdActivated: boolean, |
|
|
|
remixdActivated: boolean, |
|
|
|
isValidProxyAddress?: (address: string) => Promise<boolean>, |
|
|
|
isValidProxyAddress?: (address: string) => Promise<boolean>, |
|
|
|
isValidProxyUpgrade?: (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOuput: SolcOutput) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: string }>, |
|
|
|
isValidProxyUpgrade?: (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOuput: SolcOutput) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: boolean }>, |
|
|
|
proxy: { deployments: { address: string, date: string, contractName: string }[] } |
|
|
|
proxy: { deployments: { address: string, date: string, contractName: string }[] } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -323,7 +323,9 @@ export interface Modal { |
|
|
|
okLabel: string |
|
|
|
okLabel: string |
|
|
|
okFn: () => void |
|
|
|
okFn: () => void |
|
|
|
cancelLabel: string |
|
|
|
cancelLabel: string |
|
|
|
cancelFn: () => void |
|
|
|
cancelFn: () => void, |
|
|
|
|
|
|
|
okBtnClass?: string, |
|
|
|
|
|
|
|
cancelBtnClass?: string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export type DeployMode = 'Deploy with Proxy' | 'Upgrade with Proxy' |
|
|
|
export type DeployMode = 'Deploy with Proxy' | 'Upgrade with Proxy' |
|
|
@ -363,8 +365,8 @@ export interface ContractGUIProps { |
|
|
|
initializerOptions?: DeployOption, |
|
|
|
initializerOptions?: DeployOption, |
|
|
|
proxy?: { deployments: { address: string, date: string, contractName: string }[] }, |
|
|
|
proxy?: { deployments: { address: string, date: string, contractName: string }[] }, |
|
|
|
isValidProxyAddress?: (address: string) => Promise<boolean>, |
|
|
|
isValidProxyAddress?: (address: string) => Promise<boolean>, |
|
|
|
isValidProxyUpgrade?: (proxyAddress: string) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: string }>, |
|
|
|
isValidProxyUpgrade?: (proxyAddress: string) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: boolean }>, |
|
|
|
modal?: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void |
|
|
|
modal?: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void, okBtnClass?: string, cancelBtnClass?: string) => void |
|
|
|
} |
|
|
|
} |
|
|
|
export interface MainnetProps { |
|
|
|
export interface MainnetProps { |
|
|
|
network: Network, |
|
|
|
network: Network, |
|
|
|