---
# System prepended metadata

title: Encode Club NEAR Bootcamp X - DAY 3 20/01/2022
tags: [bootcamp transcripts]

---

# Encode Club NEAR Bootcamp X - DAY 3 20/01/2022

## [Day 3 Recording](https://www.youtube.com/watch?v=0bhmSMyrZXI)

--- 
## Questions:
 
---
## Advantages of NEAR over Ethereum

* NEAR has a different economic model in terms of the way gas is charged the way the price works for gas prices and many more such examples.
* NEAR account model has many human friendly names built in to it.
* NEAR has cross contract calls and built in asynchronous behavior.

----
## Why borsch for rust in the context of serialization or de-serialization?

The intent to use borsch is to pack the data as small as possible to serialize it on the chain. In Rust contract when you're saving data to the blockchain it gets serialized using this borsch serialization mechanism.

---
## What is a single and simple way to write a smart contract?

NEAR supports Rust and Assembly Script two programming languages. We also have JavaScript SDK to write smart contracts and Grain SDK which is a new one coming up to write. So we have a total of 4 ways to write a contract.

---
## Why do we use a local storage?

It is a design choice. We use local storage to capture a private key locally.

---
## When initializing the context of a contract there are a lot of environment variables ,where are these stored?

They are the data which is stored in the piece of data where the code is running. For example let's say a service like you know Render or Heroku or you know versailles or whatever there's going to be some kind of environment setting there wherever the application is running that container will have some environment settings that you that you put in there.

---
## How is the smart contract written in Rust?
Every smart contract written in Rust needs to be a struct at a minimum and decorate the struct with nearby gem to get what you need.

---
## Are Aurora and Ethereum core consists of the same team?
Basically you can think of it as an L2 running on an Ethereum L2 running on NEAR. There is an account with an EVM deployed on mir with one second of block time and two second finality. If you have an Ethereum contract that you've deployed to Rinkeby or whatever you can just point at Aurora and deploy your solidity contract there and it'll run. Ethereum native token is just another network basically and you should go check out Aurora. Aurora is not just that it's also a bridge that moves assets and value between NEAR and Ethereum.

---

## Is there a gas cost estimator of some work being done on gas cost estimation?
Some deep engineering work happening around estimating gas costs taking a contract running it through some you know sort of series of tests to generate a kind of a range of what the gas cost would be in calls to the the functions. Therefore I'm not sure what the status is of that but you just search in your protocol gas cost estimator and probably land in the same github repo for the information.

---


###### tags: `bootcamp transcripts`