-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add PublicProvider class and update provider interfaces * refactor: update Args constructor and enhance SmartContract provider handling * test: integrate publicProvider into SmartContract tests * refactor: update MNS and token classes to support PublicProvider * refactor: replace Provider with PublicProvider in EventPoller and Operation classes * refactor: enhance provider type handling and add provider type guard * refactor: migrate Web3Provider to JsonRpcProvider and update related imports * refactor: optimize balance retrieval by using getMultipleAddressInfo method * refactor: ensure retro compatibility by exporting JsonRpcProvider and JsonRpcPublicProvider as Web3Provider
- Loading branch information
Showing
21 changed files
with
698 additions
and
507 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
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
File renamed without changes.
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,7 @@ | ||
import { Provider } from './interface' | ||
|
||
export function isProvider(provider: unknown): provider is Provider { | ||
return ( | ||
typeof provider === 'object' && provider !== null && 'callSC' in provider | ||
) | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './types' | ||
export * from './constants' | ||
export * from './interface' | ||
export * from './web3Provider' | ||
export * from './jsonRpcProvider' |
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,2 @@ | ||
export * from './jsonRpcProvider' | ||
export * from './jsonRpcPublicProvider' |
Oops, something went wrong.
cd69a51
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.
Coverage report for experimental massa-web3
Test suite run success
134 tests passing in 15 suites.
Report generated by 🧪jest coverage report action from cd69a51