Skip to content

Instantly share code, notes, and snippets.

pragma solidity ^0.5.10;
contract LipsMeta{
address public controller;
uint256 public pages;
mapping (address => string) public LipsMetaData;
mapping (uint256 => address) public LipsMetaIndex;
mapping (uint256 => string) public LipsMetaTags;
@maxxflyer
maxxflyer / Address.sol
Last active June 24, 2020 22:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&gist=
pragma solidity ^0.6.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
@maxxflyer
maxxflyer / gist:b91e289e60654818b753d3b05543ac7e
Last active June 15, 2020 19:09
CONTRACT FOR LAND DIVIDENDS (nasted-voxels)
contract landDividends{
public uint dividendPaymentSession=0
1)
startNewDividendPayment(){
Ben sends dividends (nasted-tokens) to this contract after each sale
then calls this function
a new dividend payment session starts with an incremental ID
now dividends can be claimed
@maxxflyer
maxxflyer / gist:1ac47c9e505ea9e1f1382a6205b1e4b3
Created June 15, 2020 18:51
CONTRACT FOR IOU VOXEL SALE
Ben creates the following contract, containing the following functions, triggered in the following order:
contract preorderLand{
1)
makeOffer(uint voxelCost) payabale {
VoxelCost is the amount offered for each voxel
The investor calls this function sending money
The money is stored along with the wallet address
}
Short Introduction
A three-dimensional virtual world without kids shooting each other, called Cryptovoxels.
Many artists from all backgrounds, painters, photographers, sculptors, poets and musicians and whoever has more has more.
A series of 3D galleries.
A non-profit group of ACTIVE artists (who create and relate) called HiveMuse Collective, the result of maxxflyer's vision,
and which currently numbers about 160 people.
A series of periodic virtual exhibitions where you jump from one gallery to another.
To participate there are different levels:
Breve introduzione in versione italiana.
Un mondo virtuale tridimensionale senza ragazzini che si sparano a vicenda, chiamato Cryptovoxels.
Tanti artisti di ogni estrazione, pittori fotografi, scultori, poeti e musicisti e chi più ne ha più ne metta.
Una serie di gallerie 3D.
Un gruppo no-profit di artisti ATTIVI (che creano e si relazionano) chiamato HiveMuse Collective, frutto della visione di maxxflyer,
e che annovera al momento circa 160 persone.
Una serie di esposizioni virtuali periodiche dove si salta da una galleria all' altra.
Per partecipare esistono diversi livelli:
The idea of Muse Island borns to promote the DAO culture using Cryptovoxels.
Muse Island is an archipelago of 8 islands materializing the process of creation of ideas.
Each island contains around 100 parcels.
Parcels can be sold ONLY to recognized DAOs.
DAO has the power of bringing lots of users inside CV, since they usually group many followers/investors.
EXISTING ROLES AND PERMISSIONS:
DEFAULT CV:
#PARCEL-HODLER : metamask wallet containing the nft parcel,
can sell/transfer the original NFT
#PARCEL-OWNER : same metamask wallet,
can access the parcel SETTINGS PAGE,
can add/remove #COLLABORATORS to an offchain list CV will refer to,
can add/remove voxels and items to the parcel,
EXISTING ROLES AND PERMISSIONS:
DEFAULT CV:
#PARCEL-HODLER : metamask wallet containing the nft parcel,
can sell/transfer the original NFT
#PARCEL-OWNER : same metamask wallet,
can access the parcel SETTINGS PAGE,
can add/remove #COLLABORATORS to an offchain list CV will refer to,
can add/remove voxels and items to the parcel,
You can remove all annoying elements in cryptovoxels interface by using this simple BOOKMARKLET
HOW TO USE:
1)check this javascript fiddle https://jsfiddle.net/x4j5zeaw/
2)on the top left you see the code of the bookmarklet
3)on the bottom right you see the bookmarklet ( a link !)
A bookmarklet is a button containing a piece of code
drag and drop the link to your bookamrks bar in your browser