• Apps Developements
  • USA
  • February 1, 2024
  • 19 Views

Solidity Parameter Encoding and Decoding

  • Freelancer Type Company
  • Project Duration Long term
  • Level Expensive
  • English Level Professional
  • Languages

Description

The composition of a smart contract

A smart contract is consist of data and functions.

Data

Any contract data must be assigned to a location: either to storage or memory. It is costly to modify storage in a smart contract so you need to consider where your data should live wisely.

Storage

Persistent data is referred to as storage and is represented by state variables. These values get stored permanently on the blockchain. You need to declare the type so that the contract can keep track of how much storage on the blockchain it needs when it compiles.

Solidity

contract SimpleStorage { uint storedData; // State variable // ... }

Types of variables include: address, boolean, integer, fixed point numbers, fixed-size byte arrays, dynamically-sized byte arrays, Rational and integer literals, String literals, Hexadecimal literals, Enums.

address:In order to be compatible with Ethereum, the data of address in Solidity is the value obtained by performing the following operations on the hex format address of the TRON network account:

  1. Remove the prefix 41 from the TRON Hex format address
  2. Perform Mixed-case checksum on the results obtained in the previous step
    Mixed-case checksum : According to a certain logic, some letters in the address are capitalized, together with the remaining lowercase letters to form a checksum, so that the address has the ability to self-check. On average, there will be 15 check bits per address, and the net probability that a randomly generated address if mistyped will accidentally pass a check is 0.0247%.

Skills Required

Backend Developer

Project ID:RH-2689-lancer

Send Your Proposal

Days
  • Estimated Total Cost

    The total project cost.

    €246,000

  • Service Fee (5%)

    The service fee that will be deducted from your proposed amount.

  • Your Earning

    Total amount you will earn.

  • Stick this Proposal to the Top

    The sticky proposal will always be displayed on top of all the proposals.

  • €12
  • Make Sealed Proposal

    The sealed proposal will be sent to the project author only it will not be visible publically.

  • €7
  • Featured Proposal

    The featured proposal will have a distinctive color and popped up between other proposals to get the author's attention.

  • €5
I agree to the terms and conditions
Budget
€246,000
Fixed

Never Expire

Neural Engine

Member since January 23, 2024
View Profile

About The Employer

  • Australia
  • 4 Projects completed
  • Payment Method
  • Email Verified

Report Project

Ready To Get Started

you can create your own market place website using this theme. It allows you to get a commission for hiring a freelancer or for each service sold.