Open john-harmony opened 4 years ago
Forked the repo for my local copy and did some initial work under the documentation branch https://github.com/john-harmony/sdk/blob/documentation/docs/README.md
I just created the draft documentation of our js-sdk, and deployed it on AWS s3, here is the link: https://harmony-js-sdk-doc.s3-us-west-1.amazonaws.com/index.html
Steps for generating documentation with reference Ethereum web3.js documentation process to generate readTheDocs
Progress:
The link is the same: https://harmony-js-sdk-doc.s3-us-west-1.amazonaws.com/index.html
if the content not change, clean the browser cache.
Start to revamp and create examples for our js-SDK.
Specifically, I am starting from the Blockchain class in the harmony-core package.
Here is the first example:
harmony-core/Blockchain
The param "returnObject" is not work in functions: getBlockbyHash and getBlockbyNumber
hmy.blockchain.getBalance()
hmy.blockchain.getBlockNumber()
hmy.blockchain.getBlockByHash()
hmy.blockchain.getBlockByNumber()
hmy.blockchain.getBlockTransactionCountByHash()
hmy.blockchain.getBlockTransactionCountByNumber()
hmy.blockchain.getTransactionByBlockHashAndIndex()
hmy.blockchain.getTransactionByBlockNumberAndIndex()
hmy.blockchain.getTransactionByHash()
hmy.blockchain.getTransactionReceipt()
hmy.blockchain.getCxReceiptByHash()
hmy.blockchain.getCode()
hmy.blockchain.net_peerCount()
hmy.blockchain.net_version()
hmy.blockchain.getProtocolVersion()
hmy.blockchain.constructor()
hmy.blockchain.setMessage()
hmy.blockchain.getRpcResult()
hmy.blockchain.getStorageAt()
hmy.blockchain.getTransactionCount()
hmy.blockchain.getShardingStructure()
hmy.blockchain.estimateGas()
hmy.blockchain.gasPrice()
hmy.blockchain.newPendingTransactions()
hmy.blockchain.syncing()
hmy.blockchain.logs()
hmy.blockchain.newBlockHeaders()
hmy.blockchain.sendTransaction()
hmy.blockchain.sendRawTransaction()
hmy.blockchain.createObservedTransaction()
hmy.blockchain.sendRawStakingTransaction()
hmy.blockchain.createObservedStakingTransaction()
For the package: Account
, revamped:
**Account**
account.getAddressFromShardID()
account.getShardBalance()
account.bech32Address
account.checksumAddress
account.bech32TestNetAddress
account.getShardsCount
account.getAddressFromShardID
account.getBalance()
account.getAddresses()
account.getShardBalance()
account.add()
**Wallet**
constructor()
wallet.addByPrivateKey()
wallet.accounts
wallet.addByMnemonic()
wallet.createAccount()
wallet.encryptAccount()
wallet.decryptAccount()
wallet.getAccount()
wallet.setMessenger()
Overview We'd like to create documentation for our developers. This will provide similar information as ethereum's web3 documentation
Task Overview
Acceptance Criteria a. Documentation is created and hosted b. Documentation has been shared and reviewed by internal team members c. Documentation has been shared and reviewed by external developers (p-dev or developers) d. Fitgap documentation is created (google shete) e. Documentation standards are created