You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Interoperability Store will take getStore(modID, store_prefix) => KVStore and InteroperableModules as arguments in the constructor and will provide all the. BaseInteroperabilityStore abstract class should be created under /framework/src/modules.
exportabstractclassBaseInteroperabilityStore{private_interopModules: Map<number,InteroperableModule>;private_getStore: (modID,store_prefix)=>KVStore;constructor(getStore,interoperableModules){this._interopModules=interoperableModules;this._getStore=getStore;}publicabstractapply(ccu,ccm){}publicabstractforward(ccu,ccm){}// only used in mainchainpublicabstractbounce(ccu,ccm){}// only used in mainchainpublicabstractsendInternal(sendInternalContext){}// same as the APIpublicabstractappendToInboxTree(chainID,appendData){}publicabstractappendToOutboxTree(chainID,appendData){}publicabstractaddToOutbox(chainID,ccm){}publicabstractaddToInbox(chainID,ccm){}publicabstractisLive(chainID){}// different in mainchain and sidechainpublicabstractterminateChainInternal(chainID){}publicabstractterminatedStateAccount(chainID){}publicabstractcreateTerminatedOutboxAccount(chainID,outboxRoot,outboxSize,partnerChainInboxSize){}publicabstractgetInboxRoot(chainID): Buffer{}publicabstractgetOutboxRoot(chainID): Buffer{}publicabstractgetChainAccount(chainID): PartnerChainData{}publicabstractgetChannel(chainID): ChannelData{}}
validateFormat() func can be added to utils.ts as it doesn't require subStore
Usage
Usage of Interoperability in other classes is by creating a file store.ts with a class extending the BaseInteroperabilityStore and implements the functions required to enable interoperability.
Acceptance Criteria
BaseInteroperabilityStore abstract class should exist under /framework/src/modules
The text was updated successfully, but these errors were encountered:
ishantiw
changed the title
Create interoperability store
Create base interoperability store
Feb 18, 2022
Description
Interoperability Store will take
getStore(modID, store_prefix) => KVStore
andInteroperableModules
as arguments in the constructor and will provide all the. BaseInteroperabilityStore abstract class should be created under/framework/src/modules
.validateFormat()
func can be added toutils.ts
as it doesn't require subStoreUsage
Usage of Interoperability in other classes is by creating a file
store.ts
with a class extending theBaseInteroperabilityStore
and implements the functions required to enable interoperability.Acceptance Criteria
/framework/src/modules
The text was updated successfully, but these errors were encountered: