Allow class

Allow specifies supported Operation status, Operation types, and all possible error statuses. This Allow object is used by clients to validate the correctness of a Rosetta Server implementation. It is expected that these clients will error if they receive some response that contains any of the above information that is not specified here.

Constructors

Allow(List<OperationStatus> operation_statuses, List<String> operation_types, List<RosettaError> errors, bool historical_balance_lookup, List<String> call_methods, List<BalanceExemption> balance_exemptions, bool mempool_coins, int? timestamp_start_index)
Allow.fromMap(Map<String, dynamic> map)
factory

Properties

balance_exemptions List<BalanceExemption>
BalanceExemptions is an array of BalanceExemption indicating which account balances could change without a corresponding Operation. BalanceExemptions should be used sparingly as they may introduce significant complexity for integrators that attempt to reconcile all account balance changes. If your implementation relies on any BalanceExemptions, you MUST implement historical balance lookup (the ability to query an account balance at any BlockIdentifier).
getter/setter pair
call_methods List<String>
All methods that are supported by the /call endpoint. Communicating which parameters should be provided to /call is the responsibility of the implementer (this is en lieu of defining an entire type system and requiring the implementer to define that in Allow).
getter/setter pair
errors List<RosettaError>
All Errors that this implementation could return. Any error that is returned during parsing that is not listed here will cause client validation to error.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
historical_balance_lookup bool
Any Rosetta implementation that supports querying the balance of an account at any height in the past should set this to true.
getter/setter pair
mempool_coins bool
Any Rosetta implementation that can update an AccountIdentifier's unspent coins based on the contents of the mempool should poputhis field as true. If false, requests to /account/coins that set include_mempool as true will be automatically rejected.
getter/setter pair
operation_statuses List<OperationStatus>
All Operation.Status this implementation supports. Any status that is returned during parsing that is not listed here will cause client validation to error.
getter/setter pair
operation_types List<String>
All Operation.Type this implementation supports. Any type that is returned during parsing that is not listed here will cause client validation to error.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp_start_index int?
If populated, timestamp_start_index indicates the first block index where block timestamps are considered valid (i.e. all blocks less than timestamp_start_index could have invalid timestamps). This is useful when the genesis block (or blocks) of a network have timestamp 0. If not populated, block timestamps are assumed to be valid for all available blocks.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited