Git Product home page Git Product logo

cheshire's People

Contributors

eugeneotto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cheshire's Issues

Create Kitties

Hi!, thanks for share this resources.

I'm new in Solidity. How can create one kitti in truffle console? one example please.

thanks again

truffle test does not work

Running truffle test on a fresh checkout of cheshire ea232aa results in the following output.

Compiling ./contracts/GeneScience.sol...
Compiling ./contracts/KittyCore.sol...
Compiling ./contracts/SaleClockAuction.sol...
Compiling ./contracts/SiringClockAuction.sol...

Compilation warnings encountered:

/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:17:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:703:9: Warning: Use of the "var" keyword is deprecated.
        var outputString = new string(_stringLength);
        ^--------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1383:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function ClockAuction(address _nftAddress, uint256 _cut) public {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1532:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function SiringClockAuction(address _nftAddr, uint256 _cut) public
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1605:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function SaleClockAuction(address _nftAddr, uint256 _cut) public
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1916:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function KittyCore() public {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:17:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:386:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function ClockAuction(address _nftAddress, uint256 _cut) public {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:539:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function SaleClockAuction(address _nftAddr, uint256 _cut) public
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:17:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:386:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function ClockAuction(address _nftAddress, uint256 _cut) public {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:535:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function SiringClockAuction(address _nftAddr, uint256 _cut) public
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:362:9: Warning: Invoking events without "emit" prefix is deprecated.
        Transfer(_from, _to, _tokenId);
        ^----------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:415:9: Warning: Invoking events without "emit" prefix is deprecated.
        Birth(
        ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:595:9: Warning: Invoking events without "emit" prefix is deprecated.
        Approval(msg.sender, _to, _tokenId);
        ^---------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:953:9: Warning: Invoking events without "emit" prefix is deprecated.
        Pregnant(kittyIndexToOwner[_matronId], _matronId, _sireId, matron.cooldownEndBlock);
        ^---------------------------------------------------------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1059:9: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
        msg.sender.send(autoBirthFee);
        ^---------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1145:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCreated(
        ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1157:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCancelled(_tokenId);
        ^------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1218:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionSuccessful(_tokenId, price, msg.sender);
        ^--------------------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1353:5: Warning: Invoking events without "emit" prefix is deprecated.
    Pause();
    ^-----^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1362:5: Warning: Invoking events without "emit" prefix is deprecated.
    Unpause();
    ^-------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1404:36: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
        bool res = nftAddress.send(this.balance);
                                   ^----------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1939:9: Warning: Invoking events without "emit" prefix is deprecated.
        ContractUpgrade(_v2Address);
        ^-------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:2001:27: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
        uint256 balance = this.balance;
                          ^----------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:2006:13: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
            cfoAddress.send(balance - subtractFees);
            ^-------------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:148:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCreated(
        ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:160:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCancelled(_tokenId);
        ^------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:221:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionSuccessful(_tokenId, price, msg.sender);
        ^--------------------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:356:5: Warning: Invoking events without "emit" prefix is deprecated.
    Pause();
    ^-----^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:365:5: Warning: Invoking events without "emit" prefix is deprecated.
    Unpause();
    ^-------^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:407:36: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
        bool res = nftAddress.send(this.balance);
                                   ^----------^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:148:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCreated(
        ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:160:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionCancelled(_tokenId);
        ^------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:221:9: Warning: Invoking events without "emit" prefix is deprecated.
        AuctionSuccessful(_tokenId, price, msg.sender);
        ^--------------------------------------------^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:356:5: Warning: Invoking events without "emit" prefix is deprecated.
    Pause();
    ^-----^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:365:5: Warning: Invoking events without "emit" prefix is deprecated.
    Unpause();
    ^-------^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:407:36: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
        bool res = nftAddress.send(this.balance);
                                   ^----------^
,/home/piers/projects/testchesh/cheshire/contracts/GeneScience.sol:13:39: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
    function mixGenes(uint256 genes1, uint256 genes2, uint256 targetBlock) public returns (uint256) {
                                      ^------------^
,/home/piers/projects/testchesh/cheshire/contracts/GeneScience.sol:13:55: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
    function mixGenes(uint256 genes1, uint256 genes2, uint256 targetBlock) public returns (uint256) {
                                                      ^-----------------^
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:17:3: Warning: No visibility specified. Defaulting to "public". 
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:35:3: Warning: No visibility specified. Defaulting to "public". 
  function transferOwnership(address newOwner) onlyOwner {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1351:3: Warning: No visibility specified. Defaulting to "public". 
  function pause() onlyOwner whenNotPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1360:3: Warning: No visibility specified. Defaulting to "public". 
  function unpause() onlyOwner whenPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:1404:9: Warning: Unused local variable.
        bool res = nftAddress.send(this.balance);
        ^------^
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:17:3: Warning: No visibility specified. Defaulting to "public". 
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:35:3: Warning: No visibility specified. Defaulting to "public". 
  function transferOwnership(address newOwner) onlyOwner {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:354:3: Warning: No visibility specified. Defaulting to "public". 
  function pause() onlyOwner whenNotPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:363:3: Warning: No visibility specified. Defaulting to "public". 
  function unpause() onlyOwner whenPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SaleClockAuction.sol:407:9: Warning: Unused local variable.
        bool res = nftAddress.send(this.balance);
        ^------^
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:17:3: Warning: No visibility specified. Defaulting to "public". 
  function Ownable() {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:35:3: Warning: No visibility specified. Defaulting to "public". 
  function transferOwnership(address newOwner) onlyOwner {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:354:3: Warning: No visibility specified. Defaulting to "public". 
  function pause() onlyOwner whenNotPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:363:3: Warning: No visibility specified. Defaulting to "public". 
  function unpause() onlyOwner whenPaused returns (bool) {
  ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/SiringClockAuction.sol:407:9: Warning: Unused local variable.
        bool res = nftAddress.send(this.balance);
        ^------^
,/home/piers/projects/testchesh/cheshire/contracts/GeneScience.sol:13:5: Warning: Function state mutability can be restricted to pure
    function mixGenes(uint256 genes1, uint256 genes2, uint256 targetBlock) public returns (uint256) {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:445:5: Warning: Function state mutability can be restricted to pure
    function getMetadata(uint256 _tokenId, string) public view returns (bytes32[4] buffer, uint256 count) {
    ^ (Relevant source part starts here and spans across multiple lines).
,/home/piers/projects/testchesh/cheshire/contracts/KittyCore.sol:680:5: Warning: Function state mutability can be restricted to pure
    function _memcpy(uint _dest, uint _src, uint _len) private view {
    ^ (Relevant source part starts here and spans across multiple lines).

kittyCore deployed at 0x8cdaf0cd259887258bc13a92c0a6da92698644c0
SaleClockAuction deployed at 0xf12b5dd4ead5f743c6baa640b0216200e89b60da
SiringClockAuction deployed at 0x345ca3e014aaf5dca488057592ee47305d9b3e10
geneScience deployed at 0xf25186b5081ff5ce73482ad761db0eb0d25abfbf
KittyCore unpaused
Error: Could not find artifacts for ./Migrations from any sources
    at Resolver.require (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-resolver/index.js:37:1)
    at TestResolver.require (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-core/lib/testing/testresolver.js:17:1)
    at Object.require (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-migrate/index.js:234:1)
    at ResolverIntercept.require (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-migrate/resolverintercept.js:20:1)
    at /home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-migrate/index.js:49:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

truffle test does not work

Running truffle test in a fresh checkout of master results in the following output.

Using network 'test'.

Error: ENOENT: no such file or directory, stat '/home/piers/projects/truffle/cheshire/migrations'

If I create the migrations directory and try again it results in the following output.

Using network 'test'.

ReferenceError: afterAll is not defined
    at Suite.describe (/home/piers/projects/truffle/cheshire/test/kitty.js:17:3)
    at Object.create (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/node_modules/mocha/lib/interfaces/common.js:112:19)
    at context.describe.context.context (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/node_modules/mocha/lib/interfaces/bdd.js:44:27)
    at Object.<anonymous> (/home/piers/projects/truffle/cheshire/test/kitty.js:6:1)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at /home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:231:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:228:14)
    at Mocha.run (/home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:536:10)
    at /home/piers/programs/node-v8.9.4-linux-x64/lib/node_modules/truffle/build/webpack:/~/truffle-core/lib/test.js:125:1
    at <anonymous>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.