@krzkaczor
Organization overview
function sum(a, b) {
return a + b;
}
const four = sum(2,2);
function sum(a: number, b: number) {
return a + b;
}
const four = sum(2,2);
vs
TS's type system:
ethereum-ts
Ethereum TS
ethereum_ts
Ethereum related tools build for TypeScript
[
...
{
constant: true,
inputs: [{ name: "offset", type: "uint256" }],
name: "getCounter",
outputs: [{ name: "", type: "uint256" }],
payable: false,
stateMutability: "view",
type: "function",
},
...
]
export class ContractWithOverloads {
// ...
methods: {
getCounter(offset: number | string)
: TransactionObject<string>;
// ...
}
}
- web3 0.20.x
- web3 1.0.0
- truffle 4.x (5.x support coming!)
- ethers.js
ts-generator
ABI parser
user config
web3 target
truffle target
ethers.js target
your target
/contracts/**/*.abi
krzkaczor/ts-generator
- ~400 GH STARS 🌟
- more than 10 contributors
- multiple blockchain companies using it: Market Protocol, Plasma MVP, dxdy ...
- around 1k DAI in bounties via GitCoin
0x600015
60 00 15
PUSH1 00 ISZERO
PUSH1
00
ISZERO
-
Stack
Program
PUSH1
00
ISZERO
00
Stack
Program
PUSH1
00
ISZERO
01
Stack
Program
- 256 bits words
- SHA3 opcode
- lack of static JUMPS
- tangled with blockchain
- can be implemented by one generic function
- tx can be partially rejected
- GAS opcode returns gas left
(but probably shouldn't be)
- DEVCON 4 EVM 2.0
- https://badootech.badoo.com/when-pigs-fly-optimising-bytecode-interpreters-f64fb6bfa20f
-
- sponsors infra projects via money from ECF
- companies sponsor projects that they use
https://github.com/ethereum-ts
@krzkaczor