All Projects → arufa-research → polar

arufa-research / polar

Licence: MIT license
Polar is a development environment to compile, deploy, test, run scrt contracts on different networks.

Programming Languages

typescript
32286 projects
rust
11053 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to polar

Merkletreejs
🌱 Construct Merkle Trees and verify proofs in JavaScript.
Stars: ✭ 238 (+600%)
Mutual labels:  smart-contracts
CTFGym
List of CTF related to Ethereum world (solidity smart contracts)
Stars: ✭ 87 (+155.88%)
Mutual labels:  smart-contracts
techdocs
Accord Project Documentation
Stars: ✭ 48 (+41.18%)
Mutual labels:  smart-contracts
Ethereum Input Data Decoder
Ethereum smart contract transaction input data decoder
Stars: ✭ 242 (+611.76%)
Mutual labels:  smart-contracts
pythx
A Python library for the MythX smart contract security analysis platform
Stars: ✭ 30 (-11.76%)
Mutual labels:  smart-contracts
market-contracts
🏬Contracts for market
Stars: ✭ 18 (-47.06%)
Mutual labels:  smart-contracts
Flint
The Flint Programming Language for Smart Contracts
Stars: ✭ 228 (+570.59%)
Mutual labels:  smart-contracts
LNPBPs
LNP/BP standards for bitcoin layer 2 & 3 protocols
Stars: ✭ 158 (+364.71%)
Mutual labels:  smart-contracts
waves-ide
IDE for waves blockchain RIDE language
Stars: ✭ 19 (-44.12%)
Mutual labels:  smart-contracts
europa
A sandbox to run and debug smart contracts for FRAME Contracts pallet and also a sandbox framework for Substrate runtime.
Stars: ✭ 71 (+108.82%)
Mutual labels:  smart-contracts
Awesome Blockchain Kor
<블록체인의 정석>, <하이퍼레저 블록체인 개발> 소스코드 및 참고자료 저장소
Stars: ✭ 243 (+614.71%)
Mutual labels:  smart-contracts
Awesome Buggy Erc20 Tokens
A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected
Stars: ✭ 251 (+638.24%)
Mutual labels:  smart-contracts
challenge
Solidity Engineer Challenge
Stars: ✭ 94 (+176.47%)
Mutual labels:  smart-contracts
Web3swift
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions.
Stars: ✭ 237 (+597.06%)
Mutual labels:  smart-contracts
Blockchain-Alpha
Alpha from various sectors in the blockchain space.
Stars: ✭ 102 (+200%)
Mutual labels:  smart-contracts
Remix Project
Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
Stars: ✭ 225 (+561.76%)
Mutual labels:  smart-contracts
Honeypots-on-Blockchain
This repo collects almost all the smart contract honeypots that you could find in the first three pages of Google search.
Stars: ✭ 95 (+179.41%)
Mutual labels:  smart-contracts
ultimate-defi-research-base
Here we collect and discuss the best DeFI & Blockchain researches and tools. Feel free to DM me on Twitter or open pool request.
Stars: ✭ 1,074 (+3058.82%)
Mutual labels:  smart-contracts
plutus-experimental-smart-contracts
Experimental Smart Contracts In Plutus.
Stars: ✭ 34 (+0%)
Mutual labels:  smart-contracts
chainlink-mix
Working with smart contracts with eth-brownie, python, and Chainlink.
Stars: ✭ 447 (+1214.71%)
Mutual labels:  smart-contracts

Polar

Polar is a development framework for building the secret contracts. The aim of the project is to make Secret contracts development process simple, efficient and scalable. Users can focus on the logic of secret contracts and not much about further steps in development. It facilitates features such as initiating project repo from contract templates, easy compilation of contracts, deployment, Interacting with contracts using schema and contract testing framework.

Requirements

The minimum packages/requirements are as follows:

  • Node 14+
  • Yarn v1.22+ or NPM `v6.0+**
  • Connection to a Secret node.

Setup rust environment

Polar requires a Rust environment installed on a local machine to work properly. This Rust environment can be installed with the help of polar in just a command.

polar install

Install polar

Installation from released version

To install polar globally in your system you can use:

  • Using Yarn: yarn global add secret-polar
  • Using NPM: npm install -g secret-polar

Installation from master.

The master branch corresponds to the latest version.

To use polar on your system, follow the steps below:

git clone https://github.com/arufa-research/polar.git
cd polar
yarn install
yarn build
cd packages/polar
yarn link
chmod +x $HOME/.yarn/bin/polar

Install dependencies

Setup Rust compiler

$ cd infrastructure
$ make setup-rust

Follow our infrastructure README for instructions on how to set up a private network.

Usage

Initialize a project

polar init <project-name>

This will create a directory inside the current directory with boiler-plate code. The contracts/ directory has all the rust files for the contract logic. scripts/ directory contains .js scripts that users can write according to the use case, a sample script has been added to give some understanding of how a user script should look like. test/ directory contains .js scripts to run tests for the deployed contracts.

Listing Tasks

To see the possible tasks (commands) that are available, go to the project's folder.

polar

This is the list of built-in tasks. This is your starting point to find out what tasks are available to run.

Compile the project

To compile the contracts, Go to project directory:

cd <project-name>
polar compile

This command will generate compiled .wasm files in artifacts/contracts/ dir and schema .json files in artifacts/schema/ dir.

Cleanup Artifacts

To clear artifacts data, use

polar clean

This will remove the artifacts directory completely. To clean artifacts for only one contract, use

polar clean <contract-name>

This will remove specific files related to that contract.

Running user scripts

User scripts are a way to define the flow of interacting with contracts on some network in the form of a script. These scripts can be used to deploy a contract, query/transact with the contract.A sample script scripts/sample-script.js is available in the boilerplate.

Run tests

yarn run test

License

This project is forked from hardhat, and just base on the hardhat-core part then modify it under MIT license.

Thanks

hardhat - Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software. Get Solidity stack traces & console.log.

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].