Blockchain Tech Flashcards

1
Q

RPC Endpoint

A

An RPC (remote procedure call) endpoint is like a node’s address: it’s a URL which requests for blockchain data can be sent to. The Ethereum JSON-RPC spec defines the methods which you can use to retrieve data from a node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ABI

A

Application Binary Interface

The ABI tells solidity and other programming languages how it can interact with another contract.

anytime you want to interact with an already deployed smart contract you will need an ABI.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Interface

A

E.g. chainlink smart contract import for USD/ETH

A minimalistic view into smart contracts; their functions

Compile down to ABIs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

‘view’

A

No state change in functions. Just getter function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Overflow

A

Prior to ETH 0.8
If adding on top of maximum number uint could be, it wrapped around -> going to lowest

uint8 num = 255 + uint8(1);
return num
=> 0

2**8 = 256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

using A for B;

A

E.g.
using SafeMathChainlink for uint256;

used to attach library functions to any type in context of a contract.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

using A for B;

A

E.g.
using SafeMathChainlink for uint256;

used to attach library functions to any type in context of a contract.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

.transfer( )

A

msg.sender.transfer( address( this ).balance )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

‘this’

A

=> referring to contract you’re currently in. JS style.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Address of current contract

A

address( this )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Enable an address to be sent money to

A

In Solidity 0.8.0 address literals changed from address payable to address.

Enable them by calling

payabale( msg.sender )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IPFS

A

The InterPlanetary File System (IPFS) is a protocol and peer-to-peer network for storing and sharing data in a distributed file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

PLFs

A

Protocol for Loanable Funds - Lending protocols / money markets

Term coined by Daniel, Sam and Lewis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CFD

A

Contract for difference

Differences in the settlement between the open and closing trade prices are cash-settled. Popular in FX and commodity products.
Illegal in the US

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

AMM

A

Automated Market Maker

Simplest version: Constant Product Invariant
d ∗ c = k
(First review -> recreate!)

Curve for example, uses a special invariant for their stablecoin pools!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Delta (in trading)

A

Delta (Δ) is a risk metric that estimates the change in price of a derivative, such as an options contract, given a $1 change in its underlying security.

Long put options always have a delta ranging from -1 to 0, while long calls always have a delta ranging from 0 to 1.

[Assumption: 2x long perp has a delta of 2. A Leveraged Token maintains a constant delta through rebalancing]

16
Q

Length of standard eth address

A

42 (incl 0x)