Address page exposes the methods and parameters in each module
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Business/User Value: As an Explorer of Diem I want to see the methods (modules or smart contracts) and structs associated with and account in a familiar format so that I can quickly ramp up on the Move Language
### Acceptance Criteria
**GIVEN** I am on an account page
**IF** the account has Smart Contracts associated with it
**THEN** those Smart Contracts are displayed in an intuitive manner
**DESIGN NOTES**
* The serialization seems to be missing the argument names. Call them `agr1`, `arg2`, `arg3` etc for now
**DEV NOTES**
We came up with this UI
Given this Smart Contract:
```
{
"bytecode": "",
"abi": {
"address": "0x1",
"name": "XDX",
"friends": [],
{
"name": "do_thing",
"visibility": "public",
"generic_type_params": [],
"params": ["&0x1::Diem::Diem"],
"return": [
"bool"
]
}
],
"structs": [
{
"name": "XDX",
"is_native": false,
"abilities": [],
"generic_type_params": [],
"fields": [
{
"name": "dummy_field",
"type": "bool"
}
]
}
]
}
}
```
Given this Smart Contract the UI should look something like:
## Methods
`fun do_thing(arg1: 0x1::Diem::Diem): (bool, bool)`
## Structs
```
struct XDX {
dummy_field: bool
}
```
Notes:
* The name of the function arguments doesn't seem to exist anywhere
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.