@statechannels/nitro-protocol
Advanced tools
Comparing version 0.16.1-next.a39e7f5b4.54 to 0.16.1-next.d2be1721a.137
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/6a2848d7-7e4e-4969-9f8e-90f01bf7a4b1.json" | ||
"buildInfo": "../../build-info/1456630c-00e3-47bd-86eb-220316463dcf.json" | ||
} |
@@ -24,3 +24,3 @@ "use strict"; | ||
var NitroAdjudicatorContractInterface = new ethers_1.utils.Interface(NitroAdjudicator_json_1.default.abi); | ||
exports.createPushOutcomeTransactionFactory = function (transferAll) { return function (arg) { | ||
var createPushOutcomeTransactionFactory = function (transferAll) { return function (arg) { | ||
var defaults = { channelWasConcluded: false, challengerAddress: ethers_1.constants.AddressZero }; | ||
@@ -44,2 +44,3 @@ var _a = __assign(__assign({}, defaults), arg), turnNumRecord = _a.turnNumRecord, finalizesAt = _a.finalizesAt, state = _a.state, outcome = _a.outcome, channelWasConcluded = _a.channelWasConcluded, challengerAddress = _a.challengerAddress; | ||
}; }; | ||
exports.createPushOutcomeTransactionFactory = createPushOutcomeTransactionFactory; | ||
function concludePushOutcomeAndTransferAllArgs(states, signatures, whoSignedWhat) { | ||
@@ -46,0 +47,0 @@ if (states.length === 0) { |
@@ -74,3 +74,3 @@ "use strict"; | ||
var outcome_1 = require("../src/contract/outcome"); | ||
exports.getTestProvider = function () { | ||
var getTestProvider = function () { | ||
if (!process.env.GANACHE_PORT) { | ||
@@ -81,2 +81,3 @@ throw new Error('Missing environment variable GANACHE_PORT required'); | ||
}; | ||
exports.getTestProvider = getTestProvider; | ||
function setupContracts(provider, artifact, address) { | ||
@@ -98,3 +99,3 @@ return __awaiter(this, void 0, void 0, function () { | ||
exports.nonParticipant = ethers_1.ethers.Wallet.createRandom(); | ||
exports.clearedChallengeFingerprint = function (turnNumRecord) { | ||
var clearedChallengeFingerprint = function (turnNumRecord) { | ||
if (turnNumRecord === void 0) { turnNumRecord = 5; } | ||
@@ -106,3 +107,4 @@ return channel_storage_1.channelDataToStatus({ | ||
}; | ||
exports.ongoingChallengeFingerprint = function (turnNumRecord) { | ||
exports.clearedChallengeFingerprint = clearedChallengeFingerprint; | ||
var ongoingChallengeFingerprint = function (turnNumRecord) { | ||
if (turnNumRecord === void 0) { turnNumRecord = 5; } | ||
@@ -116,3 +118,4 @@ return channel_storage_1.channelDataToStatus({ | ||
}; | ||
exports.finalizedFingerprint = function (turnNumRecord, finalizesAt, outcome, state, challengerAddress) { | ||
exports.ongoingChallengeFingerprint = ongoingChallengeFingerprint; | ||
var finalizedFingerprint = function (turnNumRecord, finalizesAt, outcome, state, challengerAddress) { | ||
if (turnNumRecord === void 0) { turnNumRecord = 5; } | ||
@@ -131,3 +134,4 @@ if (finalizesAt === void 0) { finalizesAt = 1; } | ||
}; | ||
exports.newChallengeRegisteredEvent = function (contract, channelId) { | ||
exports.finalizedFingerprint = finalizedFingerprint; | ||
var newChallengeRegisteredEvent = function (contract, channelId) { | ||
var filter = contract.filters.ChallengeRegistered(channelId); | ||
@@ -149,3 +153,4 @@ return new Promise(function (resolve, reject) { | ||
}; | ||
exports.newChallengeClearedEvent = function (contract, channelId) { | ||
exports.newChallengeRegisteredEvent = newChallengeRegisteredEvent; | ||
var newChallengeClearedEvent = function (contract, channelId) { | ||
var filter = contract.filters.ChallengeCleared(channelId); | ||
@@ -159,3 +164,4 @@ return new Promise(function (resolve, reject) { | ||
}; | ||
exports.newConcludedEvent = function (contract, channelId) { | ||
exports.newChallengeClearedEvent = newChallengeClearedEvent; | ||
var newConcludedEvent = function (contract, channelId) { | ||
var filter = contract.filters.Concluded(channelId); | ||
@@ -169,3 +175,4 @@ return new Promise(function (resolve, reject) { | ||
}; | ||
exports.newDepositedEvent = function (contract, destination) { | ||
exports.newConcludedEvent = newConcludedEvent; | ||
var newDepositedEvent = function (contract, destination) { | ||
var filter = contract.filters.Deposited(destination); | ||
@@ -179,2 +186,3 @@ return new Promise(function (resolve, reject) { | ||
}; | ||
exports.newDepositedEvent = newDepositedEvent; | ||
function randomChannelId(channelNonce) { | ||
@@ -190,5 +198,6 @@ if (channelNonce === void 0) { channelNonce = 0; } | ||
exports.randomChannelId = randomChannelId; | ||
exports.randomExternalDestination = function () { | ||
var randomExternalDestination = function () { | ||
return '0x' + ethers_1.ethers.Wallet.createRandom().address.slice(2, 42).padStart(64, '0').toLowerCase(); | ||
}; | ||
exports.randomExternalDestination = randomExternalDestination; | ||
function sendTransaction(provider, contractAddress, transaction) { | ||
@@ -392,3 +401,3 @@ return __awaiter(this, void 0, void 0, function () { | ||
exports.getRandomNonce = getRandomNonce; | ||
exports.largeOutcome = function (numAllocationItems, assetHolderAddress) { | ||
var largeOutcome = function (numAllocationItems, assetHolderAddress) { | ||
if (assetHolderAddress === void 0) { assetHolderAddress = ethers_1.ethers.Wallet.createRandom().address; } | ||
@@ -408,2 +417,3 @@ var randomDestination = exports.randomExternalDestination(); | ||
}; | ||
exports.largeOutcome = largeOutcome; | ||
//# sourceMappingURL=test-helpers.js.map |
{ | ||
"name": "@statechannels/nitro-protocol", | ||
"description": "A protocol for state channel networks", | ||
"version": "0.16.1-next.a39e7f5b4.54+a39e7f5b4", | ||
"version": "0.16.1-next.d2be1721a.137+d2be1721a", | ||
"author": "statechannels", | ||
@@ -17,4 +17,4 @@ "browser": "dist/nitro-protocol.min.js", | ||
"@nomiclabs/hardhat-etherscan": "^2.1.0", | ||
"@statechannels/devtools": "0.5.6-next.a39e7f5b4.54+a39e7f5b4", | ||
"@statechannels/jest-gas-reporter": "0.4.10-next.a39e7f5b4.54+a39e7f5b4", | ||
"@statechannels/devtools": "0.5.6-next.d2be1721a.137+d2be1721a", | ||
"@statechannels/jest-gas-reporter": "0.4.10-next.d2be1721a.137+d2be1721a", | ||
"@types/eslint": "7.2.3", | ||
@@ -103,3 +103,3 @@ "@types/eslint-plugin-prettier": "2.2.0", | ||
"types": "lib/src/index.d.ts", | ||
"gitHead": "a39e7f5b4315edeb9693eae6d4fd6dc84714a111" | ||
"gitHead": "d2be1721aff7405931cd83a09ea88d8216d7dc11" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
33604060
108719