GithubHelp home page GithubHelp logo

feature-sh / smart-contract Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 724 KB

FEATURE 🏗️ smart contract ♦︎

Home Page: https://feature.sh

Solidity 61.73% JavaScript 38.27%
ethereum smart-contract solidity evm hardhat arbitrum bsc celo gnosis polygon

smart-contract's Introduction

FEATURE

Getting Started

cp .env-sample .env
npx hardhat test test/feature.js
npx hardhat test test/feature-erc20.js

Deploy

Feature

npx hardhat run scripts/feature-deploy.js --network <network>

Centralized Arbitrator

npx hardhat run scripts/centralized-appealable-arbitrator-deploy.js --network <network>

Etherscan Verification

npx hardhat clean
npx hardhat verify --network <network> <smart contract address> <Argument1...>

Run Test with event logs

npx hardhat test --logs

smart-contract's People

Contributors

0xscratch avatar blockchaindevweb avatar n1c01a5 avatar opixelum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

smart-contract's Issues

Add protocol to deploy to the README

Explain the different steps to deploy the smart contract FEATURE to a chain like :

  • change chain constants
  • execute initialize function...

Explain this works in a file like ./DEPLOY.md .

Arbitration test with Kleros inconclusive

Since the referee's draw is carried out by Kleros, the simulations remain correct but do not cover all scenarios.
Here are the tx statements concerning the two arbitrations carried out with Kleros:

Dispute Kleros 140

Smart-contract FeatureERC20

-> TRANSFER  30 xDAI From 0x9c1da9a04925bdfdedf0f6421bc7eea8305f9002 To  0x4dff727fd5002dad7e028c6987c394f1913c2137
-> TRANSFER  30.0001 xDAI From 0x62b286a93d6f720a654745a3451f71cf71481b81 To  0x06255fa39ebd18796ecccc17db8153ef58dba0a8

✅ Payment:

Dispute Kleros 143

Smart-contract FeatureERC20:

-> Although one or more Error Occurred [Out of gas] Contract Execution Completed
-> TRANSFER  30.0001 xDAI From 0xce9260c08272fa39c9af1307cd079dc5636bee01 To  0x06255fa39ebd18796ecccc17db8153ef58dba0a8

❌Payment:

Also an error occurred during a payment, its origin has not been determined, and the court's rendering is not fully understood:
Capture d’écran 2023-12-20 à 08 13 03

Try to explain the origin of the problem and demonstrate the validity of the arbitration with the use of the FeatureERC20 smart-contract.

Deploy smart contract version `2.4.1`

Changes

Networks

Mainnets

  • Gnosis chain
  • Polygon
  • [ ] Arbitrum
  • Celo
  • Binance

Testnets

  • [ ] Goerli
  • Sepolia
  • Mumbai
  • Alfajores

Mainnets (dev mode)

  • Gnosis chain
  • Polygon
  • [ ] Arbitrum
  • Celo
  • Binance

Feat: complete the smart-contract with a user's proof of work for a claim WIP

To migrate data from clever-cloud to aws (production), the public sql schema will change to the feature schema.

The change of host, db and schema should happen for the beginning of the v2 release.

Older versions will be deployed with branches in their respective repo marked with tags.

Here are the dependencies to build v2:

with feature schema
- dapp pr#148 https://github.com/feature-sh/app/pull/148
- bot pr#193 https://github.com/feature-sh/bot/pull/193
- dashboard pr#610 https://github.com/feature-sh/dashboard/pull/610
- premium-subscription-monitor pr#3 https://github.com/feature-sh/premium-subscription-monitor/pull/3
- monitor-block -> ok

with smart-contract v2
- smart-contract pr#24 https://github.com/feature-sh/smart-contract/pull/24 (without feature schema)
- dapp pr#147 https://github.com/feature-sh/app/pull/147 (without feature schema)
- bot pr#197 https://github.com/feature-sh/bot/pull/197 (with feature schema)

Fix: deployments of version 2.1.0 of Feature and FeatureERC20 smart contracts

See the modifications of smart contracts:

Mainnet

  • Update on the Gnosis Chain.
  • Update on the Polygon.
  • Update on the Arbitrum One.
  • Update Dune Analytics for Gnosis Chain.

Testnet

  • Update on the Goerli.
  • Update on the Mumbai.

Bot

  • Update all production environment variables on Testnet networks.
  • Update all development environment variables on Mainnet networks.

Monitors v2 or Monitors-block

  • Update all production environment variables on Testnet networks.
  • Update all development environment variables on Mainnet networks.

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.