toggle menu
chameleon-cosmos-tool
0.3.1
common
switch theme
search in API
chameleon-cosmos-tool
/
kr.jadekim.chameleon.cosmos.tool
/
CosmosFeeEstimator
Cosmos
Fee
Estimator
abstract
class
CosmosFeeEstimator
(
val
gasPriceProvider
:
CosmosGasPriceProvider
,
var
feeDenomination
:
String
,
var
gasAdjustment
:
Float
=
DEFAULT_GAS_ADJUSTMENT
)
Inheritors
CosmosNodeFeeEstimator
Members
Constructors
Cosmos
Fee
Estimator
Link copied to clipboard
constructor
(
gasPrices
:
Map
<
String
,
<Error class: unknown class>
>
,
feeDenomination
:
String
,
gasAdjustment
:
Float
=
DEFAULT_GAS_ADJUSTMENT
)
constructor
(
gasPriceProvider
:
CosmosGasPriceProvider
,
feeDenomination
:
String
,
gasAdjustment
:
Float
=
DEFAULT_GAS_ADJUSTMENT
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
fee
Denomination
Link copied to clipboard
var
feeDenomination
:
String
gas
Adjustment
Link copied to clipboard
var
gasAdjustment
:
Float
gas
Price
Provider
Link copied to clipboard
val
gasPriceProvider
:
CosmosGasPriceProvider
Functions
calculate
Gas
Fee
Link copied to clipboard
suspend
fun
calculateGasFee
(
gasAmount
:
<Error class: unknown class>
)
:
<Error class: unknown class>
estimate
Link copied to clipboard
suspend
fun
estimate
(
transaction
:
<Error class: unknown class>
,
sender
:
<Error class: unknown class>
)
:
<Error class: unknown class>
<
<Error class: unknown class>
,
<Error class: unknown class>
>
invoke
Link copied to clipboard
open
suspend
fun
invoke
(
transaction
:
<Error class: unknown class>
,
sender
:
<Error class: unknown class>
)
:
<Error class: unknown class>