Coder Social home page Coder Social logo

archway-network / archway Goto Github PK

View Code? Open in Web Editor NEW
68.0 13.0 95.0 5.92 MB

Archway Network

Home Page: https://archway.io

License: Other

Go 94.32% Makefile 1.17% Dockerfile 0.02% Shell 0.69% Rust 3.73% Smarty 0.07%
blockchain cosmos-sdk golang cosmwasm archway go wasm

archway's People

Contributors

aelesbao avatar darpanzope avatar drewstaylor avatar edjroz avatar fdymylja avatar helder-moreira avatar itiky avatar jlehtimaki avatar kayano avatar mojtaba-esk avatar nnsw3 avatar paddymc avatar parthdesai avatar shahbazn avatar sienrik15 avatar spoo-bar avatar vidhanarya avatar zanicar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archway's Issues

Better design of gastracker module

Re-designing how gastracker works by upgrading to newer version of cosmos-sdk with pre and post tx hook support.

This will include:
- Upgrade to newer version of cosmos-sdk
- Rewrite gastracker with more robust design
- Update gastracker tests

Add Config Flag

Archwayd CLI is missing config flag to manage config through the CLI

Identify Ideal Economic Parameters

Figure out economy parameters with help of data modeling and other team members help (Find an answer to these questions: 1. Should it be hardcoded? 2. Should it be controlled via governance? 3. Should it be calculated programmatically? if yes, how?)

We have to identify ideal value of following:
- Percentage of inflation reward that can go to dev
- Percentage of gas rebate that can go to dev 
- Max Percentage of smart contract premium we can charge

┆Issue is synchronized with this Jira Task by Unito

Create infrastructure as code

Overview:
In order to create a network simulation it should be able to deploy infrastructure in a single command to both local setups & cloud setups.

Add script to simulate network traffic

Overview:
In order to back our economical model we require a simulation test that can interact with the reward models and provide the accurate results.

Can’t store smart contracts

It seems that deploying contracts its failing for Titus & Constantine.

Local setups work inconsistently.

Common error reported

confirm transaction before signing and broadcasting [y/N]: y
{"height":"37","txhash":"3874989C7A9C3FCB693BFD302A8C5B24B7902FC5C32FC2EFEBCBB918D35CDE58","codespace":"wasm","code":2,"raw_log":"failed to execute message; message index: 0: Error calling the VM: Error during static Wasm validation: Wasm contract doesn't have required export: \"interface_version_5\". Exports required by VM: [\"interface_version_5\", \"instantiate\", \"allocate\", \"deallocate\"]. Contract version too old for this VM?: create wasm contract failed","gas_wanted":"tel:2000000","gas_used":"770599"}

Bridge Building Strategy

Identify bridge building strategy for archway. i.e which bridge is most feasible to build? Which design is recommended?

1. Prepare for IBC bridge with cosmos-hub (Outcome would be a document answering the following questions and more:)
    - How feasible is it?
    - Can we utilize wasm based light clients?
    - Can we customize ibc integration without forking cosmos-sdk and ibc-go?
    - If the answer to the above question is no, How much effort is it to do this?
2. Prepare for a bridge with eth (Outcome would be a document answering following questions and more:)
    - How feasible is it?
    - Should we go for a trusted or trustless bridge? (Given time constraints)
3. Prepare for bridge with Polkadot parachains (Outcome would be a document answering following 
       questions and more:)
    - How feasible is it?
    - How hard for us to implement a barebone xcmp to allow asset transfer from our blockchain to 
     polkadot

Add gas tracking simulation contracts

We need to start properly testing the environment, so we should create three contracts:

Contract A: calls contract B, performs some state change afterwards.

Contract B: queries (READ ONLY) contract C and applies some state change based on the results returned by C

Contract C: has only a query.

[Economic model] Contract Deployment Strategy

We should define a strategy to deploy contracts.

Archway, compared to wasmd, requires developers to define an address where the network will send rewards to.

This could be done in two ways:

  1. Override the wasmd MsgStoreContract, and enrich it with one extra paramete, the payout_address
  2. Create a two step approach, which means always using wasmd fully but then use a secondary message in the rewards module which binds the contract to an owner. This approach might be more complex (frontrunners of contract creation etc).

Open Source Archwayd

Archway daemon is open sourced and:
- Adequate tests (>90% of gastracker code should be covered)
- Comments from developer perspective (Code containing core logic such as custom ante handler, 
  begin block, vm wrapper, custom query handler, custom message handler)
- Add an architecture section in README.md explaining the whole architecture
- Write a paragraph explaining why we designed in this *hacky* way and present upcoming roadmap
- Create issues for the roadmap
- Replace hard coded parameters with governance or genesis configuration
- Document CLI interface of archwayd
- Define versioning scheme and release cycle for archwayd

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.