This file contains hidden or 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
/* | |
Reg S - | |
This is for USA companies raising money outside USA. | |
This can have a 6 Month or a 1 year lockin. | |
(KYC/AML has to be done). The other rule is that these tokens cannot be sold to a USA person for a 1 year period. | |
*/ | |
pragma solidity ^0.4.24; | |
contract RegSInvestorContract | |
{ |
This file contains hidden or 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
pragma solidity ^0.4.23; | |
import "./CowBreeding.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; | |
/** | |
* @title ERC721 compatible Cow Standard Basic Implementation | |
* @dev Implements Cow transfer with inherited OpenZeppelin ERC721 | |
*/ | |
contract CowOwnership is CowBreeding, ERC721 { |
This file contains hidden or 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
/** | |
* Offers a decentralized way of selling ERC721 for ERC20 tokens | |
* This proposes a ERC20721Trader smart contract where the seller | |
* is the owner of the contract is the buyer is anyone invoking | |
* the trade() function. Check the ERC20721Trader contract | |
* at the bottom of this file | |
*/ | |
pragma solidity ^0.4.21; |
This file contains hidden or 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
// File: contracts/ein/util/EINOwnable.sol | |
pragma solidity ^0.5.0; | |
/** | |
* @title EINOwnable | |
* @dev The EINOwnable contract has an owner EIN, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
*/ |
This file contains hidden or 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
pragma solidity ^0.4.24; | |
import 'github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC721/ERC721Full.sol'; | |
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol"; | |
contract KorroDAO is Ownable { | |
using SafeMath for uint; | |
mapping(uint => address) public tokenToOwner; |
This file contains hidden or 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
pragma solidity ^0.4.24; | |
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol"; | |
import "./ERC20Receiver.sol"; | |
import "./ValidatorManagerContract.sol"; | |
This file contains hidden or 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
contract | |
.purchase(edition.edition, { | |
from: account, | |
value: priceInWei | |
}) | |
.on('transactionHash', hash => { | |
console.log('Purchase transaction submitted', hash); | |
}) | |
.on('receipt', receipt => { | |
console.log('Purchase successful - Ive been mined', receipt); |
This file contains hidden or 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
{ | |
"title": "Asset Metadata", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Identifies the asset to which this NFT represents", | |
}, | |
"description": { | |
"type": "string", |
This file contains hidden or 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
{ | |
"name": "Buzz", | |
"description": "Paper collage, using salvaged and original watercolour papers", | |
"image": "https://ipfs.infura.io/ipfs/QmWc6YHE815F8kExchG9kd2uSsv7ZF1iQNn23bt5iKC6K3/image", | |
"meta": "https://ipfs.infura.io/ipfs/QmWc6YHE815F8kExchG9kd2uSsv7ZF1iQNn23bt5iKC6K3/other" | |
} |
This file contains hidden or 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
/** | |
* Change a currency symbol | |
*/ | |
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); | |
function change_existing_currency_symbol( $currency_symbol, $currency ) { | |
switch( $currency ) { | |
case 'AUD': $currency_symbol = 'AUD$'; break; | |
} | |
return $currency_symbol; |
NewerOlder