-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating RPC tests in Postman (#1340)
- Loading branch information
Showing
14 changed files
with
566 additions
and
1,100 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
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 |
---|---|---|
@@ -1,37 +1,34 @@ | ||
package commands | ||
|
||
// NewPendingTransactionFilter implements eth_newPendingTransactionFilter. Creates a pending transaction filter in the node. To check if the state has changed, call eth_getFilterChanges. | ||
// Parameters: | ||
// None | ||
// Returns: | ||
// QUANTITY - A filter id | ||
import ( | ||
"context" | ||
"fmt" | ||
|
||
// NewBlockFilter implements eth_newBlockFilter. Creates a block filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges. | ||
// Parameters: | ||
// None | ||
// Returns: | ||
// QUANTITY - A filter id | ||
"github.com/ledgerwatch/turbo-geth/common/hexutil" | ||
) | ||
|
||
// NewFilter implements eth_newFilter. Creates an arbitrary filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call eth_getFilterChanges. | ||
// Parameters: | ||
// Object - The filter options | ||
// fromBlock: QUANTITY|TAG - (optional, default 'latest') Integer block number, or 'latest' for the last mined block or 'pending', 'earliest' for not yet mined transactions | ||
// toBlock: QUANTITY|TAG - (optional, default 'latest') Integer block number, or 'latest' for the last mined block or 'pending', 'earliest' for not yet mined transactions | ||
// address: DATA | ||
// Array of DATA, 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate | ||
// topics: Array of DATA, - (optional) Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with 'or' options | ||
// Returns: | ||
// QUANTITY - A filter id | ||
// NewPendingTransactionFilter new transaction filter | ||
func (api *APIImpl) NewPendingTransactionFilter(_ context.Context) (hexutil.Uint64, error) { | ||
return 0, fmt.Errorf(NotImplemented, "eth_newPendingTransactionFilter") | ||
} | ||
|
||
// UninstallFilter implements eth_uninstallFilter. Uninstalls a previously-created filter given the filter's id. Always uninstall filters when no longer needed. | ||
// Note: Filters timeout when they are not requested with eth_getFilterChanges for a period of time. | ||
// Parameters: | ||
// QUANTITY - The filter id | ||
// Returns: | ||
// Boolean - true if the filter was successfully uninstalled, false otherwise | ||
// NewBlockFilter new transaction filter | ||
func (api *APIImpl) NewBlockFilter(_ context.Context) (hexutil.Uint64, error) { | ||
return 0, fmt.Errorf(NotImplemented, "eth_newBlockFilter") | ||
} | ||
|
||
// NewFilter implements eth_newFilter. Creates an arbitrary filter object, based on filter options, to notify when the state changes (logs). | ||
func (api *APIImpl) NewFilter(_ context.Context, filter interface{}) (hexutil.Uint64, error) { | ||
return 0, fmt.Errorf(NotImplemented, "eth_newFilter") | ||
} | ||
|
||
// UninstallFilter new transaction filter | ||
func (api *APIImpl) UninstallFilter(_ context.Context, index hexutil.Uint64) (bool, error) { | ||
return false, fmt.Errorf(NotImplemented, "eth_uninstallFilter") | ||
} | ||
|
||
// GetFilterChanges implements eth_getFilterChanges. Polling method for a previously-created filter, which returns an array of logs which occurred since last poll. | ||
// Parameters: | ||
// QUANTITY - The filter id | ||
// Returns: | ||
// Array - Array of log objects, or an empty array if nothing has changed since last poll | ||
func (api *APIImpl) GetFilterChanges(_ context.Context, index hexutil.Uint64) ([]interface{}, error) { | ||
var stub []interface{} | ||
return stub, fmt.Errorf(NotImplemented, "eth_getFilterChanges") | ||
} |
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
Oops, something went wrong.