Class: MangroveEventSubscriber
Hierarchyβ
LogSubscriber
<BookSubscriptionEvent
>β³
MangroveEventSubscriber
Constructorsβ
constructorβ
β’ new MangroveEventSubscriber(provider
, contract
, blockManager
): MangroveEventSubscriber
Parametersβ
Name | Type |
---|---|
provider | Provider |
contract | Contract |
blockManager | BlockManager |
Returnsβ
Overridesβ
LogSubscriber\<Market.BookSubscriptionEvent\>.constructor
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:27
Propertiesβ
initializedAtβ
β’ Optional
initializedAt: BlockWithoutParentHash
Inherited fromβ
LogSubscriber.initializedAt
Defined inβ
@mangrovedao/reliable-event-subscriber/dist/logSubscriber.d.ts:14
lastSeenEventBlockβ
β’ Optional
lastSeenEventBlock: BlockWithoutParentHash
Inherited fromβ
LogSubscriber.lastSeenEventBlock
Defined inβ
@mangrovedao/reliable-event-subscriber/dist/logSubscriber.d.ts:15
Methodsβ
optionsIdentifierβ
βΈ optionsIdentifier(options
): string
Parametersβ
Name | Type |
---|---|
options | Options |
Returnsβ
string
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:36
enableSubscriptionsβ
βΈ enableSubscriptions(): Promise
<void
>
Returnsβ
Promise
<void
>
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:46
computeBookIdentifierβ
βΈ computeBookIdentifier(market
, ba
): string
Parametersβ
Name | Type |
---|---|
market | Market |
ba | BA |
Returnsβ
string
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:56
getSemibookβ
βΈ getSemibook(market
, ba
, options
): undefined
| Semibook
Parametersβ
Name | Type |
---|---|
market | Market |
ba | BA |
options | Options |
Returnsβ
undefined
| Semibook
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:62
subscribeToSemibookβ
βΈ subscribeToSemibook(semibook
, rec?
): Promise
<void
>
Parametersβ
Name | Type | Default value |
---|---|---|
semibook | Semibook | undefined |
rec | number | 0 |
Returnsβ
Promise
<void
>
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:83
initializeβ
βΈ initialize(wantedBlock
): Promise
<InitializeErrorOrBlock
>
initialize subscriber at block number blockNumber
.
Parametersβ
Name | Type |
---|---|
wantedBlock | BlockWithoutParentHash |
Returnsβ
Promise
<InitializeErrorOrBlock
>
Overridesβ
LogSubscriber.initialize
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:129
handleLogβ
βΈ handleLog(log
): Promise
<void
>
handle log
Parametersβ
Name | Type |
---|---|
log | Log |
Returnsβ
Promise
<void
>
Overridesβ
LogSubscriber.handleLog
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:151
rollbackβ
βΈ rollback(block
): void
rollback subscriber to block block
Parametersβ
Name | Type |
---|---|
block | Block |
Returnsβ
void
Overridesβ
LogSubscriber.rollback
Defined inβ
@mangrovedao/mangrove.js/src/mangroveEventSubscriber.ts:175