setup
Shardus requires you to implement all the necessary SDK functions to be set up with your specific dApp. By using the setup
function exposed by Shardus, you can configure how you validate and mutate the state of your application. The following methods (required if denoted by an asterisk) can be passed into shardus.setup
.
* = required
- apply*
- calculateAccountHash*
- canDebugDropTx
- close*
- crack*
- dataSummaryInit
- dataSummaryUpdate
- deleteAccountData*
- deleteLocalAccountData*
- getAccountData*
- getAccountDataByList*
- getAccountDataByRange*
- getAccountDebugValue
- getAccountTimestamp
- getJoinData
getKeyFromTransaction
(deprecated - please usecrack()
instead)- getRelevantData*
- getStateID
- getTimestampAndHashFromAccount
- getTimestampfromTransaction*
- resetAccountData*
- setAccountData*
- sync
- txPreCrackData
- txSummaryUpdate
- transactionReceiptFail
- transactionReceiptPass
- updateAccountFull*
- updateAccountPartial*
- validate*
- validateJoinRequest
validateTransaction
(deprecated - please usevalidate()
instead)validateTxnFields
(deprecated - please usevalidate()
instead)