Skip to content

feat: contract readonly method rpc - #3710

Merged
hanszhoou merged 1 commit into
developfrom
hancheng/readonly-contract-method-own-rpc
Jul 27, 2021
Merged

feat: contract readonly method rpc#3710
hanszhoou merged 1 commit into
developfrom
hancheng/readonly-contract-method-own-rpc

Conversation

@hanszhoou

@hanszhoou hanszhoou commented Jul 19, 2021

Copy link
Copy Markdown
Contributor

There's only one readonly method in rp and ito: check_availability()

closes #3689
closes #3765

@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from e5919fa to f333ddd Compare July 21, 2021 06:06
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 624fa06 to 81b077f Compare July 22, 2021 07:16
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 81b077f to 4c62719 Compare July 22, 2021 07:18
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 436b973 to 3d47750 Compare July 23, 2021 08:29
@hanszhoou

Copy link
Copy Markdown
Contributor Author

image

const { noSwitchNetworkTip = false } = props
const expectedChainId = props.chainId
const expectedNetwork = getChainName(expectedChainId)
const expectedNetwork = expectedChainId === ChainId.BSC ? 'BSC' : getChainName(expectedChainId)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ming thinks 'Swtich to BSC Network' is better than ' Swtich to Binance Smart Chain Mainnet Network'

@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 092c867 to cb7114d Compare July 24, 2021 05:54
const { value, decimals, significant, symbol, classes } = props
const formatted = formatBalance(value, decimals, significant)
if (symbol) return <Fragment>{`${formatted} ${symbol}`}</Fragment>
const ordinaryClasses = useStyles()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will move useStylesExtends() to @masknet/shared in another PR.

@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 9bea236 to 5ba1bcb Compare July 26, 2021 07:49
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch 4 times, most recently from 4e287d5 to 18826e3 Compare July 26, 2021 10:38
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from 18826e3 to f5f4946 Compare July 27, 2021 01:42
feat: claim all chain tab

chore: ui style
@hanszhoou
hanszhoou force-pushed the hancheng/readonly-contract-method-own-rpc branch from f5f4946 to 9b4261a Compare July 27, 2021 07:35
@wenluomask

Copy link
Copy Markdown
Contributor

Checked.

@hanszhoou
hanszhoou merged commit 841b04d into develop Jul 27, 2021
@hanszhoou
hanszhoou deleted the hancheng/readonly-contract-method-own-rpc branch July 27, 2021 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Change the unit for ito infor table's balance [Demand] add rpc param to useContract()

4 participants