-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API docs, reorg (esp. RholangCrypto) (WIP)
API top level now fits in a short list: - RHOCore - RegistryProxy - RevAddress - Ed25519keyPair - RNode - RholangCrypto - SignDeployment - test doc examples with markdown-doctest - include markdown-doctest with test script - setup config - lint un-ignore pattern - fix README example - add ed25519Verify example - rnodeAPI: - deprecate listenForDataAtPublicName etc. - move unforgeable name manipulation to RHOCore - fix (documented) names of SignDeployment.sign, verify - send: fix error handling logic - proxy: leave rhoCall undocumented - factor out runRholang (WIP) - assets: leave link() undocumented - tests: add flow, lint; import api consistently - export type JsonExt<T>
- Loading branch information
Showing
19 changed files
with
561 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* global module, require */ | ||
|
||
const assert = require('assert'); | ||
const rchain = require('.'); | ||
const { RholangCrypto, RNode, Hex } = rchain; | ||
|
||
// mock enough of grpc | ||
// ISSUE: refactor overlap with test/testRNode.js | ||
function DeployService(_hostPort, _chan) { | ||
return Object.freeze({ | ||
doDeploy(_dd, _auto = false) { return 'Success!'; } | ||
}); | ||
} | ||
const casper = { DeployService }; | ||
const proto = { coop: { rchain: { casper: { protocol: casper } } } }; | ||
const grpc = { | ||
loadPackageDefinition(_d) { return proto; }, | ||
credentials: { createInsecure() { } }, | ||
}; | ||
|
||
module.exports = { | ||
babel: false, | ||
globals: { | ||
RholangCrypto, RNode, Hex, grpc, | ||
assert, | ||
}, | ||
}; |
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
Oops, something went wrong.