Пример #1
0
def localSnapshot(fixture, kitchenSinkSnapshot):
    fixture.resetToSnapshot(kitchenSinkSnapshot)
    universe = ABIContract(fixture.chain,
                           kitchenSinkSnapshot['universe'].translator,
                           kitchenSinkSnapshot['universe'].address)
    market = ABIContract(fixture.chain,
                         kitchenSinkSnapshot['binaryMarket'].translator,
                         kitchenSinkSnapshot['binaryMarket'].address)
    return initializeReportingFixture(fixture, universe, market)
def localSnapshot(fixture, augurInitializedSnapshot):
    fixture.resetToSnapshot(augurInitializedSnapshot)
    fixture.upload("solidity_test_helpers/Constants.sol")
    universe = fixture.createUniverse(0, "")
    fixture.distributeRep(universe)
    market = fixture.createReasonableBinaryMarket(universe,
                                                  fixture.contracts['Cash'])
    snapshot = initializeReportingFixture(fixture, universe, market)
    snapshot['universe'] = universe
    snapshot['market'] = market
    return snapshot
Пример #3
0
def reportingSnapshot(fixture, kitchenSinkSnapshot):
    fixture.resetToSnapshot(kitchenSinkSnapshot)
    return initializeReportingFixture(fixture, kitchenSinkSnapshot['universe'],
                                      kitchenSinkSnapshot['binaryMarket'])