packageDocumentation remarks import pick from 'lodash.pick' ; import FULLTokenArtifact from '../artifacts/contracts/Token.sol/Token.json' ; import FULLNitroAdjudicatorArtifact from '../artifacts/contracts/NitroAdjudicator.sol/NitroAdjudicator.json' ; import FULLTestNitroAdjudicatorArtifact from '../artifacts/contracts/test/TESTNitroAdjudicator.sol/TESTNitroAdjudicator.json' ; import FULLCountingAppArtifact from '../artifacts/contracts/CountingApp.sol/CountingApp.json' ; import FULLHashLockedSwapArtifact from '../artifacts/contracts/examples/HashLockedSwap.sol/HashLockedSwap.json' ; const fields = [ 'contractName' , 'abi' , 'bytecode' , 'deployedBytecode' , 'linkReferences' , 'deployedLinkReferences' , ] ; interface MinimalArtifact { contractName : string ; abi : any ; bytecode : string ; deployedBytecode : string ; linkReferences : any ; deployedLinkReferences : any ; } const minimize = artifact => pick ( artifact , fields ) as MinimalArtifact ; export const ContractArtifacts = { NitroAdjudicatorArtifact : minimize ( FULLNitroAdjudicatorArtifact ) , HashLockedSwapArtifact : minimize ( FULLHashLockedSwapArtifact ) , } ; export const TestContractArtifacts = { CountingAppArtifact : minimize ( FULLCountingAppArtifact ) , TestNitroAdjudicatorArtifact : minimize ( FULLTestNitroAdjudicatorArtifact ) , TokenArtifact : minimize ( FULLTokenArtifact ) , } ; export { AssetOutcomeShortHand , getTestProvider , OutcomeShortHand , randomChannelId , randomExternalDestination , replaceAddressesAndBigNumberify , } from '../test/test-helpers' ; export { DepositedEvent , getDepositedEvent , convertBytes32ToAddress , convertAddressToBytes32 , } from './contract/multi-asset-holder' ; export { getChallengeRegisteredEvent , getChallengeClearedEvent , ChallengeRegisteredEvent , } from './contract/challenge' ; export { Channel , getChannelId , isExternalDestination } from './contract/channel' ; export { validTransition , ForceMoveAppContractInterface , createValidTransitionTransaction , } from './contract/force-move-app' ; export { encodeOutcome , decodeOutcome , Outcome , AssetOutcome , hashOutcome } from './contract/outcome' ; export { channelDataToStatus } from './contract/channel-storage' ; export { State , VariablePart , getVariablePart , getFixedPart , hashAppPart , hashState , } from './contract/state' ; export * from './signatures' ; export * from './transactions' ; export { createERC20DepositTransaction , createETHDepositTransaction , } from './contract/transaction-creators/multi-asset-holder' ; export { Uint256 , Bytes32 } from './contract/types' ; export * from './valid-transition' ; export * from './channel-mode' ;