All Projects → alice-si → contracts

alice-si / contracts

Licence: MIT license
Alice smart contracts

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects
HTML
75241 projects

Projects that are alternatives of or similar to contracts

Love Ethereum
区块链学习
Stars: ✭ 323 (+466.67%)
Mutual labels:  dapp, smart-contracts, truffle
create-truffle-dapp
Create and deploy Truffle projects with no configuration.
Stars: ✭ 17 (-70.18%)
Mutual labels:  dapp, smart-contracts, truffle
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (+254.39%)
Mutual labels:  dapp, smart-contracts, truffle
nifty-game
🃏🎮A NFT(ERC721) card game build on Ethereum, Truffle, Ganache and hosting on IPFS.
Stars: ✭ 222 (+289.47%)
Mutual labels:  dapp, smart-contracts, truffle
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (+636.84%)
Mutual labels:  dapp, smart-contracts, truffle
Eth.social
An Ethereum dApp for posting social events.
Stars: ✭ 17 (-70.18%)
Mutual labels:  dapp, smart-contracts, truffle
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (-31.58%)
Mutual labels:  dapp, smart-contracts, truffle
peerai-api
Peerism's Peer.ai API built with Truffle, Node.js, Express.js, Solidity, and Ethereum TestRPC
Stars: ✭ 18 (-68.42%)
Mutual labels:  dapp, truffle
eth-decoder
Simple library to decode ethereum transaction and logs
Stars: ✭ 32 (-43.86%)
Mutual labels:  smart-contracts, truffle
the-great-venus
🗿 The Great Venus (2018) - Turn-based web RPG based on Ethereum platform
Stars: ✭ 19 (-66.67%)
Mutual labels:  dapp, truffle
haal
Hääl - Anonymous Electronic Voting System on Public Blockchains
Stars: ✭ 96 (+68.42%)
Mutual labels:  dapp, smart-contracts
zeneth
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Stars: ✭ 112 (+96.49%)
Mutual labels:  dapp, smart-contracts
cheezyverse
Cheeze Wizards is the world's first battle royale on the blockchain (with cheese!)
Stars: ✭ 38 (-33.33%)
Mutual labels:  dapp, smart-contracts
trufflepig
🍄🐷Truffle contract artifact loading tool for local development
Stars: ✭ 45 (-21.05%)
Mutual labels:  smart-contracts, truffle
eth-plot
r/place inspired Dapp
Stars: ✭ 36 (-36.84%)
Mutual labels:  dapp, truffle
Blockchain
Recently started working on Blockchain technologies. This repo contains material related to Blockchain technologies. My current focus on dAPP development using Hyperledger.
Stars: ✭ 21 (-63.16%)
Mutual labels:  dapp, truffle
solidity-contracts
📦 Resources for the Ethereum Smart Contract Development tutorial series.
Stars: ✭ 64 (+12.28%)
Mutual labels:  smart-contracts, truffle
proof-of-existence
Ethereum Smart Contract to prove a document's existence at some point by storing and verifying its hash.
Stars: ✭ 22 (-61.4%)
Mutual labels:  smart-contracts, truffle
bloqly
Bloqly: JavaScript Smart Contracts Engine + SQL database
Stars: ✭ 29 (-49.12%)
Mutual labels:  dapp, smart-contracts
bcdhub
Better Call Dev backend
Stars: ✭ 30 (-47.37%)
Mutual labels:  dapp, smart-contracts

Alice Smart Contracts

This project is a collection of smart contracts used by Alice, a social impact platform built on Ethereum https://alice.si.

⚠️ This repo is deprecated ⚠️

Alice has moved all modules to a monorepo at alice-si/monorepo. See you over there!

Overview

The first application launched by Alice uses smart contracts to implement a "pay for success" donation model, where donors only pay if the charitable projects they give to achieve their goals.

Each charity project encodes a list of "goals" that the charity aims to achieve, and each goal is assigned a price that the charity will receive if/when the goal is provably achieved.

Donors give to projects on the Alice platform using fiat, and the payment logic is implemented on the blockchain using a stablecoin token pegged to the value of their gift. When a donor sends money to a project, the corresponding amount of tokens is minted and credited by the Charity contract. These tokens are held in escrow until a dedicated Validator confirms that an expected goal pursued by the charity has been achieved. Once this validation has been performed, the price assigned to the goal is then transferred to the charity's account. If the charity does not achieve any goals, outstanding tokens are unlocked and returned to donors. They can then be reused for future donations.

Installation

This project requires node-js runtime and uses truffle as the Ethereum smart contract development framework.

In order to run it, install truffle first:

npm install -g truffle

Then install all of the node-js dependencies

npm install

Connection to blockchain node is defined in truffle.js:

networks: {
    dev: {
      network_id: "*",
      gas: 4000000,
      host: 'localhost',
      port: '8545'
    }
}

We recommend using popular Ethereum test client ganache as a default node:

npm install -g ganache-cli

Running tests

To run all of the smart contract tests, use the following truffle command in your console:

truffle test

If you are using the testrpc client, remember to start it with a sufficient number of test accounts:

ganache-cli -a 100

You can also use an automated test script instead of the previous two commands:

yarn test

Demo dApp

We created a demo dApp so you can interact and test the smart contracts in a visual environment rather than hacking console scripts. To run this mode, deploy the smart contracts to your blockchain network:

truffle migrate

... and then launch a demo server:

npm run dev

This demo dApp should be available at: http://localhost:8080/ and look like this: screenshot

Contributions

All comments and ideas for improvements and pull requests are welcomed. We want to improve the project based on feedback from the community.

License

MIT License

Copyright (c) 2017 Alice Ltd. (Jakub Wojciechowski [email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].