Skip to content

Commit

Permalink
fix: updated iroha-test-ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxu12 committed Jul 28, 2021
1 parent a1490a0 commit 20c1634
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {};
export * from "./generated/openapi/typescript-axios/index";
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,34 @@ export class IrohaTestLedger implements ITestLedger {
});
}

/**
* Output is based on the standard Iroha genesis.block contents.
*
* @see https://github.com/hyperledger/iroha/blob/main/example/genesis.block
*/
public getGenesisAdminAccount(): string {
return "admin@test";
}

/**
* Output is based on the standard Iroha admin user public key.
*
* @see https://github.com/hyperledger/iroha/blob/main/example/admin%40test.pub
* @see https://github.com/hyperledger/iroha/blob/main/example/genesis.block
*/
public getGenesisAccountPubKey(): string {
return "313a07e6384776ed95447710d15e59148473ccfc052a681317a72a69f2a49910";
}

/**
* Output is based on the standard Iroha admin user private key.
*
* @see https://github.com/hyperledger/iroha/blob/main/example/admin%40test.priv
*/
public getGenesisAccountPrivKey(): string {
return "f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70";
}

public async start(): Promise<Container> {
const imageFqn = this.getContainerImageName();

Expand Down
1 change: 1 addition & 0 deletions webpack.prod.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ module.exports = {
externals: {
"swarm-js": "swarm-js",
"node-ssh": "node-ssh",
"grpc": "grpc",
npm: "npm",
"fabric-client": "fabric-client",
"fabric-ca-client": "fabric-ca-client",
Expand Down

0 comments on commit 20c1634

Please sign in to comment.