Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- func ParamKeyTable() params.KeyTable
- type Keeper
- func (k Keeper) ActiveAllRequestQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) ActiveBindRequestsIterator(ctx sdk.Context, defChainID, defName, bindChainID string, ...) sdk.Iterator
- func (k Keeper) ActiveRequestQueueIterator(ctx sdk.Context, height int64) sdk.Iterator
- func (k Keeper) AddActiveRequest(ctx sdk.Context, req types.SvcRequest)
- func (k Keeper) AddIncomingFee(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
- func (k Keeper) AddMethods(ctx sdk.Context, svcDef types.SvcDef) error
- func (k Keeper) AddRequest(ctx sdk.Context, defChainID, defName, bindChainID, reqChainID string, ...) (req types.SvcRequest, err error)
- func (k Keeper) AddRequestExpiration(ctx sdk.Context, req types.SvcRequest)
- func (k Keeper) AddResponse(ctx sdk.Context, reqChainID string, requestID string, provider sdk.AccAddress, ...) (resp types.SvcResponse, err error)
- func (k Keeper) AddReturnFee(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins)
- func (k Keeper) AddServiceBinding(ctx sdk.Context, defChainID, defName, bindChainID string, ...) error
- func (k Keeper) AddServiceDefinition(ctx sdk.Context, name, chainId, description string, tags []string, ...) error
- func (k Keeper) AllIncomingFeesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) AllReturnedFeesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) AllServiceBindingsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) ArbitrationTimeLimit(ctx sdk.Context) (res time.Duration)
- func (k Keeper) ComplaintRetrospect(ctx sdk.Context) (res time.Duration)
- func (k Keeper) DeleteActiveRequest(ctx sdk.Context, req types.SvcRequest)
- func (k Keeper) DeleteIncomingFee(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteRequestExpiration(ctx sdk.Context, req types.SvcRequest)
- func (k Keeper) DeleteReturnFee(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) Disable(ctx sdk.Context, defChainID, defName, bindChainID string, ...) error
- func (k Keeper) Enable(ctx sdk.Context, defChainID, defName, bindChainID string, ...) error
- func (k Keeper) GetActiveRequest(ctx sdk.Context, expHeight, reqHeight int64, counter int16) (req types.SvcRequest, found bool)
- func (k Keeper) GetCdc() *codec.Codec
- func (k Keeper) GetIncomingFee(ctx sdk.Context, address sdk.AccAddress) (fee types.IncomingFee, found bool)
- func (k Keeper) GetIntraTxCounter(ctx sdk.Context) int16
- func (k Keeper) GetMethod(ctx sdk.Context, chainId, svcName string, id int16) (method types.MethodProperty, found bool)
- func (k Keeper) GetMethods(ctx sdk.Context, chainId, svcName string) sdk.Iterator
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetResponse(ctx sdk.Context, reqChainID string, eHeight, rHeight int64, counter int16) (resp types.SvcResponse, found bool)
- func (k Keeper) GetReturnFee(ctx sdk.Context, address sdk.AccAddress) (fee types.ReturnedFee, found bool)
- func (k Keeper) GetServiceBinding(ctx sdk.Context, defChainID, defName, bindChainID string, ...) (svcBinding types.SvcBinding, found bool)
- func (k Keeper) GetServiceDefinition(ctx sdk.Context, chainId, name string) (svcDef types.SvcDef, found bool)
- func (k Keeper) GetServiceDepositAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) GetServiceRequestAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) GetServiceTaxAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) InitMetrics(ctx sdk.Context)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxRequestTimeout(ctx sdk.Context) (res int64)
- func (k Keeper) MinDepositMultiple(ctx sdk.Context) (res int64)
- func (k Keeper) RefundDeposit(ctx sdk.Context, defChainID, defName, bindChainID string, ...) error
- func (k Keeper) RefundDeposits(ctx sdk.Context) error
- func (k Keeper) RefundFee(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) RefundIncomingFees(ctx sdk.Context) error
- func (k Keeper) RefundReturnedFees(ctx sdk.Context) error
- func (k Keeper) RefundServiceFees(ctx sdk.Context) error
- func (k Keeper) ServiceBindingsIterator(ctx sdk.Context, defChainID, defName string) sdk.Iterator
- func (k Keeper) ServiceFeeTax(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) SetIncomingFee(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins)
- func (k Keeper) SetIntraTxCounter(ctx sdk.Context, counter int16)
- func (k Keeper) SetMethod(ctx sdk.Context, chainId, svcName string, method types.MethodProperty)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRequest(ctx sdk.Context, req types.SvcRequest)
- func (k Keeper) SetResponse(ctx sdk.Context, resp types.SvcResponse)
- func (k Keeper) SetReturnFee(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins)
- func (k Keeper) SetServiceBinding(ctx sdk.Context, svcBinding types.SvcBinding)
- func (k Keeper) SetServiceDefinition(ctx sdk.Context, svcDef types.SvcDef)
- func (k Keeper) Slash(ctx sdk.Context, binding types.SvcBinding, slashCoins sdk.Coins) error
- func (k Keeper) SlashFraction(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) TxSizeLimit(ctx sdk.Context) (res uint64)
- func (k Keeper) UpdateServiceBinding(ctx sdk.Context, defChainID, defName, bindChainID string, ...) (svcBinding types.SvcBinding, err error)
- func (k Keeper) WithdrawFee(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) WithdrawTax(ctx sdk.Context, trustee sdk.AccAddress, destAddress sdk.AccAddress, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) ActiveAllRequestQueueIterator ¶
ActiveAllRequestQueueIterator returns an iterator for all the requests in the active queue
func (Keeper) ActiveBindRequestsIterator ¶
func (k Keeper) ActiveBindRequestsIterator(ctx sdk.Context, defChainID, defName, bindChainID string, provider sdk.AccAddress) sdk.Iterator
Returns an iterator for all the request in the Active Queue of specified service binding
func (Keeper) ActiveRequestQueueIterator ¶
Returns an iterator for all the request in the Active Queue that expire by block height
func (Keeper) AddActiveRequest ¶
func (k Keeper) AddActiveRequest(ctx sdk.Context, req types.SvcRequest)
func (Keeper) AddIncomingFee ¶
Add incoming fee for a particular provider, if it is not existed will create a new
func (Keeper) AddMethods ¶
TODO
func (Keeper) AddRequest ¶
func (Keeper) AddRequestExpiration ¶
func (k Keeper) AddRequestExpiration(ctx sdk.Context, req types.SvcRequest)
func (Keeper) AddResponse ¶
func (Keeper) AddReturnFee ¶
Add return fee for a particular consumer, if it is not existed will create a new
func (Keeper) AddServiceBinding ¶
func (Keeper) AddServiceDefinition ¶
func (Keeper) AllIncomingFeesIterator ¶
AllIncomingFeesIterator returns an iterator for all the incoming fees
func (Keeper) AllReturnedFeesIterator ¶
AllReturnedFeesIterator returns an iterator for all the returned fees
func (Keeper) AllServiceBindingsIterator ¶
AllServiceBindingsIterator returns an iterator for all the binding services
func (Keeper) ArbitrationTimeLimit ¶
ArbitrationTimeLimit returns the arbitration time limit
func (Keeper) ComplaintRetrospect ¶
ComplaintRetrospect returns the complaint retrospect duration
func (Keeper) DeleteActiveRequest ¶
func (k Keeper) DeleteActiveRequest(ctx sdk.Context, req types.SvcRequest)
func (Keeper) DeleteIncomingFee ¶
func (k Keeper) DeleteIncomingFee(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeleteRequestExpiration ¶
func (k Keeper) DeleteRequestExpiration(ctx sdk.Context, req types.SvcRequest)
func (Keeper) DeleteReturnFee ¶
func (k Keeper) DeleteReturnFee(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) GetActiveRequest ¶
func (Keeper) GetIncomingFee ¶
func (k Keeper) GetIncomingFee(ctx sdk.Context, address sdk.AccAddress) (fee types.IncomingFee, found bool)
func (Keeper) GetIntraTxCounter ¶
get the current in-block request operation counter
func (Keeper) GetMethod ¶
func (k Keeper) GetMethod(ctx sdk.Context, chainId, svcName string, id int16) (method types.MethodProperty, found bool)
Gets the method in a specific service and methodID
func (Keeper) GetMethods ¶
Gets all the methods in a specific service
func (Keeper) GetResponse ¶
func (Keeper) GetReturnFee ¶
func (k Keeper) GetReturnFee(ctx sdk.Context, address sdk.AccAddress) (fee types.ReturnedFee, found bool)
func (Keeper) GetServiceBinding ¶
func (k Keeper) GetServiceBinding(ctx sdk.Context, defChainID, defName, bindChainID string, provider sdk.AccAddress) (svcBinding types.SvcBinding, found bool)
func (Keeper) GetServiceDefinition ¶
func (Keeper) GetServiceDepositAccount ¶
func (k Keeper) GetServiceDepositAccount(ctx sdk.Context) exported.ModuleAccountI
GetServiceDepositAccount returns the service depost ModuleAccount
func (Keeper) GetServiceRequestAccount ¶
func (k Keeper) GetServiceRequestAccount(ctx sdk.Context) exported.ModuleAccountI
GetServiceRequestAccount returns the service request ModuleAccount
func (Keeper) GetServiceTaxAccount ¶
func (k Keeper) GetServiceTaxAccount(ctx sdk.Context) exported.ModuleAccountI
GetServiceTaxAccount returns the service tax ModuleAccount
func (Keeper) InitMetrics ¶
func (Keeper) MaxRequestTimeout ¶
MaxRequestTimeout returns the maximal request timeout
func (Keeper) MinDepositMultiple ¶
MinDepositMultiple returns the minimal deposit multiple
func (Keeper) RefundDeposit ¶
func (Keeper) RefundDeposits ¶
RefundDeposits refunds the deposits of all the binding services
func (Keeper) RefundIncomingFees ¶
RefundIncomingFees refunds all the incoming fees
func (Keeper) RefundReturnedFees ¶
RefundReturnedFees refunds all the returned fees
func (Keeper) RefundServiceFees ¶
RefundServiceFees refunds the service fees of all the active requests
func (Keeper) ServiceBindingsIterator ¶
func (Keeper) ServiceFeeTax ¶
ServiceFeeTax returns the service fee tax
func (Keeper) SetIncomingFee ¶
func (Keeper) SetIntraTxCounter ¶
set the current in-block request counter
func (Keeper) SetRequest ¶
func (k Keeper) SetRequest(ctx sdk.Context, req types.SvcRequest)
func (Keeper) SetResponse ¶
func (k Keeper) SetResponse(ctx sdk.Context, resp types.SvcResponse)
func (Keeper) SetReturnFee ¶
func (Keeper) SetServiceBinding ¶
func (k Keeper) SetServiceBinding(ctx sdk.Context, svcBinding types.SvcBinding)
func (Keeper) SetServiceDefinition ¶
func (Keeper) SlashFraction ¶
SlashFraction returns the slashing fraction
func (Keeper) TxSizeLimit ¶
TxSizeLimit returns the tx size limit
func (Keeper) UpdateServiceBinding ¶
func (Keeper) WithdrawFee ¶
withdraw fees from a particular provider, and delete it
func (Keeper) WithdrawTax ¶
func (k Keeper) WithdrawTax(ctx sdk.Context, trustee sdk.AccAddress, destAddress sdk.AccAddress, amt sdk.Coins) error