-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 http client refactoring * feat: 1450 ThorClient refactoring * feat: 1450 ThorClient refactoring * feat: 1450 ThorClient refactoring * fix: release candidate 1.0.0-r * fix: release candidate 1.0.0-r * feat: 1450 account module refactoring * feat: 1450 account module refactoring * feat: 1450 account module refactoring * feat: 1450 account module refactoring * feat: 1450 account module refactoring * feat: 1450 accounts module refactoring * feat: 1450 accounts module refactoring * feat: 1450 accounts module refactoring * feat: 1450 accounts module refactoring * feat: 1450 accounts module refactoring * feat: 1450 accounts module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refatoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * feat: 1450 debug module refactoring * fix: 1450 cyclic dependencies in thor-client.md --------- Co-authored-by: Fabio Rigamonti <[email protected]>
- Loading branch information
1 parent
59e2dc2
commit b370f7a
Showing
46 changed files
with
1,910 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
```mermaid | ||
classDiagram | ||
class AccountData { | ||
<<interface>> | ||
string balance | ||
string energy | ||
boolean hasCode | ||
} | ||
class AccountDetails { | ||
VET vet | ||
VTHO vtho | ||
AccountDetails constructor(AccountData accountData) | ||
} | ||
class AccountInputOptions { | ||
<<interface>> | ||
Revision revision | ||
} | ||
class AccountsModule { | ||
AccountModule constructor(HttpClient httpClient) | ||
Promise~AccountDetail~ getAccount(Address address, AccountInputOptions options) | ||
Promise~HexUInt~ getBytecode(Address adderess, AccountInputOptions options) | ||
Promise~HexUInt~ getStorageAt(Address address, BlockId blockId, AccountInputOptions options) | ||
} | ||
namespace http { | ||
class HttpClient { | ||
<<interface>> | ||
} | ||
} | ||
AccountData <|-- AccountDetails | ||
AccountDetails <|.. AccountsModule | ||
AccountInputOptions o-- AccountsModule | ||
HttpClient *-- AccountsModule | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
```mermaid | ||
classDiagram | ||
class ContractTraceTarget { | ||
<<interface>> | ||
Address|null to | ||
Hex data | ||
VET value | ||
} | ||
class ContractTraceOptions { | ||
<<type>> | ||
} | ||
class DebugModule { | ||
DebugModule constructor(HttpClient httpClient) | ||
Promise~RetrieveStorageRange~ retrieveStorageRange(RetrieveStorageRangeInput input) | ||
Promise~TraceReturnType~T~~ traceContractCall(TraceContractCallInput input, TracerName name) | ||
Promise~TraceReturnType~T~~ traceTransactionClause(TraceTransactionClauseInput input, TracerName name) | ||
} | ||
namespace http { | ||
class HttpClient { | ||
<<interface>> | ||
} | ||
} | ||
class RetrieveStorageRange { | ||
string|null nestKey | ||
Record~string, Record~ key, value~storage~~ | ||
} | ||
class RetrieveStorageRangeInput { | ||
<<interface>> | ||
TransactionTraceTarget target | ||
RetrieveStorageRangeOptions options | ||
} | ||
class RetrieveStorageRangeOptions { | ||
<<interface>> | ||
Address address | ||
BlockId blockId | ||
number maxResult | ||
} | ||
class TraceContractCallInput { | ||
<<interface>> | ||
ContractTraceTarget target | ||
ContractTraceOptions options | ||
TracerConfig config | ||
} | ||
class TraceTransactionClauseInput { | ||
<<interface>> | ||
TransactionTraceTarget target | ||
TracerConfig config | ||
} | ||
class TraceReturnType~TracerName|undefined~ | ||
namespace transactions-module { | ||
class SimulateTransactionOptions { | ||
<<interface>> | ||
} | ||
} | ||
class TracerConfig~TracerName|undefined~ { | ||
<<type>> | ||
} | ||
class TracerName { | ||
<<enumeration>> | ||
4byte | ||
call | ||
empty | ||
evmdis | ||
noop | ||
null | ||
opcount | ||
prestate | ||
trigram | ||
unigram | ||
} | ||
class TransactionTraceTarget { | ||
<<interface>> | ||
BlockId blockId | ||
number clauseIndex | ||
BlockId|number transaction | ||
} | ||
ContractTraceTarget *-- TraceContractCallInput | ||
ContractTraceOptions *-- TraceContractCallInput | ||
HttpClient o-- DebugModule | ||
RetrieveStorageRange <|.. DebugModule | ||
RetrieveStorageRangeInput *-- DebugModule | ||
RetrieveStorageRangeOptions *-- RetrieveStorageRangeInput | ||
string <|-- TracerName | ||
SimulateTransactionOptions <|.. ContractTraceOptions | ||
TraceContractCallInput *-- DebugModule | ||
TraceTransactionClauseInput *-- DebugModule | ||
TransactionTraceTarget *-- RetrieveStorageRangeInput | ||
TracerConfig *-- TraceContractCallInput | ||
TracerConfig *-- TraceTransactionClauseInput | ||
TracerName <|.. TracerConfig | ||
TracerName <|.. TraceReturnType | ||
TraceReturnType <|.. DebugModule | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
```mermaid | ||
classDiagram | ||
namespace accounts-module { | ||
class AccountsModule { | ||
Promise~AccountDetail~ getAccount(Address address, AccountInputOptions options) | ||
Promise~HexUInt~ getBytecode(Address adderess, AccountInputOptions options) | ||
Promise~HexUInt~ getStorageAt(Address address, BlockId blockId, AccountInputOptions options) | ||
} | ||
} | ||
namespace debug-module { | ||
class DebugModule { | ||
Promise~RetrieveStorageRange~ retrieveStorageRange(RetrieveStorageRangeInput input) | ||
Promise~TraceReturnType~T~~ traceContractCall(TraceContractCallInput input, TracerName name) | ||
Promise~TraceReturnType~T~~ traceTransactionClause(TraceTransactionClauseInput input, TracerName name) | ||
} | ||
} | ||
namespace http { | ||
class HttpClient { | ||
<<interface>> | ||
} | ||
} | ||
class ThorClient { | ||
AccountsModule accounts | ||
DebugModule debug | ||
HttpClient httpClient | ||
} | ||
AccountsModule *-- ThorClient | ||
DebugModule *-- ThorClient | ||
HttpClient o-- AccountsModule | ||
HttpClient o-- DebugModule | ||
HttpClient o-- ThorClient | ||
``` |
Oops, something went wrong.
b370f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Coverage
Summary