Giter Site home page Giter Site logo

alejandroalffer / smart-contract-deployment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alastria/smart-contract-deployment

0.0 0.0 0.0 35 KB

Practical examples to deploy Smart Contracts in Alastria networks (T & B)

Shell 4.59% JavaScript 17.69% TypeScript 37.19% Solidity 40.54%

smart-contract-deployment's Introduction

Smart Contract deployment on Alastria networks

This repository provides practical example to deploy Smart Contracts in both T and B networks, following different approaches:

Remix

Metamask: Add T Network information

  • Network: T Network
  • New RPC URL: http://YOUR_NODE_IP:22000
  • Chain ID: 83584648538

Metamask: Add B Network information

  • Network: B Network
  • New RPC URL: http://YOUR_NODE_IP:8545
  • Chain ID: 2020

Mandatory options for T Network

These options also work for B Network, but are only mandatory for T Network.

RemixDeploy

Remix: Deployment (left side)

Just click on the "Deploy" button when your Smart Contract is ready.

Remix1

Metamask: Network selection

You have to select your Alastria Network form Metamask.

Metamask1

Metamask: Confirm transaction

You have to confirm the transaction of the Smart Contract deployment.

Metamask2

Functions overview in Remix (left side)

You will see an overview of the public/external functions of your already deployed Smart Contract.

Remix2

Functions execution in Remix (left side)

You can directly execute your Smart Contract functions from the Remix web IDE for test purposes.

Remix3

Truffle

Installation

npm install -g truffle
cd Truffle
npm i

Deployment in T Network

truffle compile
truffle migrate --network alastriat

Deployment in B Network

truffle compile
truffle migrate --network alastriab

Hardhat

Installation

npm init
npm install --save-dev hardhat

Deployment in T Network

npx hardhat clean
npx hardhat compile
npx hardhat run ./scripts/vault-verify.ts --network t_alastria

Deployment in B Network

npx hardhat clean
npx hardhat compile
npx hardhat run ./scripts/vault-verify.ts --network b_alastria

smart-contract-deployment's People

Contributors

alexander-herranz avatar

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.