-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-ledger-connector-besu): contract deployment and tests
Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information
Showing
30 changed files
with
3,879 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ges/bif-core-api/src/main/typescript/plugin/ledger-connector/i-plugin-ledger-connector.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
/** | ||
* Common interface to be implemented by plugins which are implementing the connection to ledgers. | ||
*/ | ||
export interface IPluginLedgerConnector { | ||
|
||
/** | ||
* Deploys the BIF build-in smart contract written for this ledger to manage the validator's public keys. | ||
*/ | ||
deployContract(): Promise<void>; | ||
|
||
/** | ||
* Adds the public key to the ledger state. | ||
* | ||
* @param publicKeyHex The HEX representation of a public key of a BIF node. | ||
*/ | ||
addPublicKey(publicKeyHex: string): Promise<void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { IPluginLedgerConnector } from './plugin/ledger-connector/i-plugin-ledger-connector'; | ||
export { IPluginKVStorage } from './plugin/storage/key-value/i-plugin-kv-storage'; | ||
export { IPluginKeychain } from './plugin/keychain/i-plugin-keychain'; | ||
export { PluginFactory } from './plugin/plugin-factory'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# `@hyperledger-labs/bif-plugin-ledger-connector` | ||
|
||
> TODO: description | ||
## Usage | ||
|
||
``` | ||
// TODO: DEMONSTRATE API | ||
``` |
Oops, something went wrong.