Team
Kostya Mospan
Smart-Contracts Developer, Kharkiv, Ukraine
Ilya Kubariev
Full-Stack Blockchain Developer, Kharkiv, Ukraine
TypeGen
Like TypeChain in EVM, but TypeGen in NEAR;
1. Speeds-up the development of client-side code by x3;
2. Adds extra safety for front-end code, removing human factor;
3. Cleans up the front-end code, by abstracting developers from boilerplate
Problem
Calling a method and passing parameters. Everything is non-typed, and method is selected by a string literal.
Example 1 (Hello-NEAR):
Example 2 (Hello-NEAR):
Viewing a method and passing parameters. Everything is non-typed, and method is selected by a string literal.
Solution
TypeGen tool that analyzes smart-contract’s code, generates ABI files and front-end types and functions;
BEFORE:
AFTER:
Architecture
Near Contract
Client-side type definitions
Application Blockchain Interface
03
01
02
End Result
Thanks!
REPOSITORY:�https://github.com/RedDuck-Software/near-typegen
ONE-LINE COMPARISON: https://github.com/RedDuck-Software/near-typegen/tree/main/examples/ts-cra/frontend/src/funcs
Social Links
UpWork - https://www.upwork.com/agencies/~013b8f4081fc4b70ac/
Clutch - https://clutch.co/profile/redduck
Website - https://redduck.io/
Presentation - https://drive.google.com/file/d/1iwJOZUIeSc386e6zDMFjxnT4yt9rKL5w/view?usp=sharing