2.0.2 • Published 10 months ago

lz-dapp-mobile v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

lz-dapp-mobile

from Lestonz #MakingBetter

Lestonz

We are a team that has set out to combine your ideas and dreams with Web3 technology. We will do our best to migrate all Web2 and Web1 based applications to Web3.


SPONSOR AND PRODUCTS

Lz-Socials

Lz-News


Installation

Dowloading Global:

npm i -g lz-dapp-mobile

Start:

npx lz-dapp-mobile

Enter your app name:

lz-dapp

Enter your app URI scheme:

reactnative

Enter your app file:

cd lz-dapp

Run your device:

yarn ios
yarn android

Recommend

We recommend you to use physical device after installing ios or android files. You should change .env file's datas for hardhat.config.js

Deploy to Smart Contract

You should open another terminal for Truffle Dashboard:

npx truffle dashboard

You can write in first terminal.

deploy:truffle

After that copy and paste your Smart Contract Address for config.js file, and copy and paste your own provider link.

YOUR_SMART_CONTRACT_ADDRESS
YOUR_PROVIDER_LINK

Open frontend/App.js file

Your Transaction Data Should Be Hexadecimal.

const tx = {
  from: address, 
  to: `${YOUR_SMART_CONTRACT_ADDRESS}`,
  data: `${contractData}`,
  value:`${value}`,
  gasPrice: web3Provider.utils.toWei('10', 'gwei')    
}

or

const txSecond ={
  data: '0x',
  from: '0x8B6FE676217eEE2C9Cf484203Cb8855ca85eB07D',
  gas: '0x9c40',
  gasPrice: '0x02540be400',
  nonce: '0x0114',
  to: '0xa979143B16a3C61b317385C7dC3C269503B88c92',
  value: '0x00',
}

Visit to

lestonz.com

GitHub

LinkedIn

Twitter

Don't forget to follow me on Social Media :)

Your Beautiful Lz-DApp is ready for coding