►
From YouTube: Создание смарт-контракта на стриме (Курс Rust на NEAR)
Description
На этом стриме мы с Евгением Кузяковым создаем контракт для Conway's Game of Life и отвечаем на вопросы по предыдущим лекциям.
Все видео курса https://www.youtube.com/playlist?list=PL9tzQn_TEuFUakOn-IY9cDQL2ztNzZunh
Совместный курс NEAR & 4ire Labs
Код https://github.com/zavodil/game-of-life
Follow the latest from NEAR Protocol on:
Website: https://near.org/
Discord: https://near.chat/
Blog: https://near.org/blog/
Twitter: https://twitter.com/NEARProtocol
GitHub: https://github.com/near https://github.com/nearprotocol
#Blockchain #FutureIsNEAR #NEAR #nearprotocol #rust #wasm #assemblyscript #раст
A
Hello:
everyone
again,
my
name
is
vadim
and
today
evgeny
is
presenting
the
world
protocol
today,
5
programming,
lessons
once
for
the
world
and
15
final
series
in
general.
Once
for
the
blockchain
of
our
big
course
under
the
video
there
will
be
all
links
to
previous
lessons,.
So
thanks
evgeny
for
wanting
to
ask
us
today,
because
I
never
began
to
answer
all
the
questions,,
then
somehow
in
the
chats.
They
also
promised
to
answer,
did
not
answer,,
so
I
hope.
Today
we
will
all
make
up
for
all
previous
debts,.
A
A
Many
different
tasks
are
waiting
for
you
that
have
been
prepared
by
Nir
partners
and
the
employees
themselves,,
not
a
total
prize
fund
of
a
million
dollars
in
prizes
and
funding,
and
in
general,
all
the
opportunities
to
translate
the
skills
that
you
have
received
now
at
school,
into
a
real
application,
get
the
first
advice
from
mentors
and
where
he
brewed
the
world
and
plus
you
have
a
chance
to
get
prizes.
If
you
want
to
find
a
team
and
specially
here
tools,
click
here
on
fanta
artem,
this
site
will
open.
A
You
can
create
your
gekko
while
he
logs
in
create
your
profile
or
you
are
looking
for.
Well,
apparently,
you
will
be
looking
for
a
team.
If
you
submit
a
project,,
you
want
to
find
an
employee,.
You
can
also
create
a
profile
for
a
team
to
make
positions
that
you
are
interested
in,.
Let's
say
if
you
know
well
and
oh,
you
can
find
developer
smart
contracts
here,
there
are
not
so
few
of
them.
A
There
are
people
who
are
ready
to
write
the
code
of
this
team
who
posted
plus
we
have
such
a
promotional
campaign
activity
is
a
small
promotional
action,,
which
means
if
someone
makes
their
profile
here
and
then
zaz
marks
the
works
of
cotton,.
They
will
get
unique
oils,,
which
means
that
about
the
experience
of
evgeny,,
he
is
on
the
youtube
channel
new
york,
weekly
heading
life,
contract
review-
and
here
you
see
a
lot
of
projects.
I
have
already
made
reviews,
that
is,
there.
The
project
is
directly
taken
to
open
its
code,.
A
They
are
looking
for
some
take
and
stylish
problems,
and
directly.
It
is
all
done
to
grow
on
the
world,
as
if
for
sure
it
will
be
interesting
to
you,.
Today,
in
the
same
version,
we
can
analyze
some
projects
that
we
developed
earlier
I’m
there
or
a
genius
or
some
separate
pre
that
suddenly
interest
you,.
So
please
write.
If
you
want
to
do
some
analysis
here,
that
is,,
it
will
probably
be
a
duplication
of
information
that
we
have
to
chew
on
the
playlist,,
but
she
did
it
with
you
in
Russian
directly.
A
Under
your
interests,
we
have
the
ability
to
disassemble
both
the
elevator
and
the
project.
For
my
night,
it
is
possible
to
pick
up
the
farm
q
shore
of
paws
that
evgeny
wrote,
that
is,.
It
is
such
an
interesting
game
with
elements
of
earning
from
either
there
is
a
third
option,
well,
or
we
can
combine
it
like.
You
have
an
option,.
We
can
make
a
small
project
right.
Now,
for
example,
game
of
life,.
Evgeny
has
already
prepared
a
template
to
write
this
game
of
life
for
training,.
We
can’t
do
it,.
A
We
probably
won’t
have
time
to
do
it
right
today
fly
but
it’s
like
we
can
do
it
later
until
I
write
a
smart
contract,
so
I
’ll
be
very
happy.
If
you
leave
what
kind
of
chat
that
he’s
interested
in
nfc
farm
or
right
away,
write
code
or
immediately
come
to
questions,,
we
probably
planned
to
write
a
game
of
life
if
it
interests
you
and
maybe
disassemble.
A
pair
of
club
is
a
very
interesting
application.
B
Game
of
life,
the
idea
is
that
it
is
possible
to
the
contract
is
to
write
the
transition
itself,.
The
previous
one
stands
for
the
next
one,,
and
just
one
of
the
people
will
have
to
pay
for
this
transaction.
The
gas
that
later
made
this
transition,,
but
everyone
will
be
able
to
see
how
it
happens,
you
can.
A
B
D
C
A
B
Just
think
about
how
to
make
it
not
too
loud
on
my
keyboard,
so
if
it
is
loud
and
try
to
move
the
microphone,
this
is
the
standard
template
with
which
I
usually
start
contracts,
or
most
often
I
have
some
other
pieces
or
copy
to
start
what
we
use.
We
use
the
standard
for
our
game.
It's
children
still
use
version.
A
Can
kill
you
quickly,,
so
he
asks
romankov
if
all
like
a
man
to
create
a
template
project
party
pack,
organ
we
have
npx
create
not
a
slave
and
I
will
throw
off
the
link.
You
can
create
it.
Npx
space,
creed,
minus
.,
world
.,
art
lab.
Then
you
can
specify
the
name
of
the
project,
the
language
that
you
want
to
specify
1
3
as
the
boss
and
the
samba
script
and
the
frontend
that
you
want
the
reaction
of
vanilla,
james
and
so
on,.
A
B
Yes,
I
don't
really
like
to
use
it
either,
because
there
are
too
many
blade
boilies,
which
I
don't
use.
This
place
leak
jason,
which
allow
to
compile
contracts,
I.e.
I
prefer
to
use
the
standard
one,
the
build,
in
principle,,
to
give
it
can
also
be
improved
to
use
docker,
that
is,.
It
would
be
nice
if
another
of
the
same
file
was
that
combined
contracts
as
a
standard.
B
Idea
is
that
now,
when
we
compile
a
contract,
we
use
some
local
data
from
my
current
machine,
for
example,
the
path
to
a
file,
and
when
we
use
docker,
then
it
isolates
with
ice
and
on
standardization,
it
doesn’t
matter
on
which
machine
the
file
is
compiled,
that
is,
there
may
even
be
different
operating
systems
as
a
result,,
we
will
always
generate
the
same
contract,.
This
allows
you
to
check
that
the
code
really
corresponds
to
some
kind
of
binary
file.
B
So
what
about
the
template?
Next,
I.e.
we
have
initialize
the
memory
contract
which
they
can
default,
which
is
called
the
contract
and
the
constructor
is
empty.
So
far,
now
a
bit
of
what
we
want
to
achieve,
and
there
are
more
tests,
I.e.
I,
have
written
so
far
only
a
test
that
allows
you
to
check
that
the
contract
is
being
created.
B
Where
there
are
cells,
they
have
two
states
live
and
non-living
on
an
empty
cell
as
a
result
of
a
standard
convoy
with
game
of
life.
This
is
when
we
have
if
the
cell
is
empty
and
in
a
neighborhood
of
two
neighbors
it
becomes
alive
or
if
the
cell
is
alive
and
her
they,
if
not
3
neighbors,
will
remain
alive.
If
the
cage
is
alive.
There
touched
two
neighbors:
the
country
becomes
Xia,
please,
and
in
another
case,,
the
cell
dies,
it’s
important.
For
me
whether
you
set
it.
B
C
B
C
B
B
D
B
A
B
B
B
B
B
B
B
B
B
B
B
B
A
B
B
B
In
fact,,
if
we
are
all
implemented,,
then
inside
it’s,
more
angry,
it’s,
just
like
0
bytes,,
and
this
will
be
the
first
finger
and
it
takes
only
one
cell
mast
on
it
still
allows
you
to
do.
If
we
want
to
create
some
kind
of
fruit,
structure,,
let's
say
inside
the
account.
We
have
a
different
color
by
number
that
stores
which
boards
you
created.
Then
we
can
create.
B
A
The
account
will
receive
me
further.
If
you
then
update
your
contract,
for
example,,
you
want
to
delete
some
100
handles
until
you
need
to
save
this
order,.
Otherwise,
you
will
mix
up
a
contract
with
us,
that
is,
each
everything.
If
you
migrate,
one
object
to
another,
I’ll,
just
create
new
100
handles
and
change
the
object,
use
kia
shirts,
it’s.
Just
that
the
old
one
is
going
into.
B
B
B
B
B
C
B
B
B
C
C
B
C
B
A
B
B
B
B
B
Or
encode
it
more,
which
also
effectively
encodes
this
data
through
binary,
but
for
this
it
will
be
necessary,
then,
on
fontaine
de
which
will
work
with
this
write,
a
parser
for
binary
data
that
we
will
return
everywhere,.
Now
how
we
return
it,,
it
will
return
it
as
a
white
century,,
but
probably
what
we
should
do
is
change
it
without
being
afraid
of
sex,
so
that
I
wouldn’t
do
serialization
for
days.
B
B
B
B
B
B
B
C
B
B
B
B
B
C
C
D
C
C
B
C
C
B
D
B
C
B
B
B
B
B
B
A
B
B
C
B
C
B
A
C
B
B
B
C
C
C
C
B
C
C
B
B
B
B
B
B
B
C
A
C
B
B
C
A
C
B
That
somehow
reduce
here
and
not
fix
these
frames,
that
is,
here
we
have
a
standard
glider
and
it
theoretically
flies
forward,
that
is,.
The
idea
is
that
you
are
moving
forward.
Diagonally
to
the
right
down
is
the
standard
state.
Here
it
has
moved.
Two
cells
turned
back.
Its
initial
state
continues
to
move.
B
B
C
B
C
B
B
C
C
B
C
B
C
B
B
C
B
B
A
B
B
Look
for
a
length
to
draw
this
blog.
So
how
long
is
the
history
of
the
bards
training?
We
have
two
types
of
clients,
one.
It
is
called
normal
and
the
other
alder
archival
about
kylo
normal
stores,
the
history
of
all
blocks
for
about
five
by
god
and
god,
and
go
epochs,,
which
is
about
12
hours,
that
is,.
It
will
save
it
for
two
and
a
half
days
on
average,.
After
that
it
forgets
the
historical
state
and
it
only
stores
the
haders.
B
C
A
C
B
A
B
C
C
B
B
B
But
we
have
no,
no,
it
disappeared,
which
I
would
like
to
do
add
events
to
the
environment,
officially,
that
is,
how
they
should
be,
how
indexed
parse
should
you
have
not
changed
the
stakes,?
We
can
just
go
to
plain
cont
ract
on
the
same
account,
you
don’t
even
need
to
approve
its
first-born,,
and
now,
when
we
call
the
next
step,
in
addition
to
this,,
we
will
also
draw
more
fields,
that
is,
this
old
one
was
now
it’s
new,.
C
B
B
B
B
C
B
B
B
B
D
B
C
B
A
B
B
B
You
had
a
new
balance
types
beat,
even
if
we
just
add
it,
then
serialization
will
not
work,
because
the
old
field
did
not
contain
this
balance
and
brother,
that
is,
some
accounts.
New
accounts
will
contain
this
field
of
the
old
account.
They
will
be.
What
we
do.
We
have
account,
we
create
a
field,
let's
say
we
rename
it
to
an
account.
B
B
B
Initialize,
the
new
field
with
a
new
field,
something
like
this,,
we
are
death
to
water
and
an
account
and
on
the
cheeks.
Now,
when
we
implement
d,
we
can
always
call
this
operation.
It
will
give
us
the
latest
version
of
the
account
when,
on
the
contrary,
we
want
to
save.
Then
we
write
one
more
thing:
only
in
the
opposite
direction.
B
C
B
B
B
Blockchain
can
be
divided
into
several
things
from
the
consensus
network,,
which
is
included
mainly
in
the
consensus
of
iran,.
Then
they
are
a
little
independent
of
each
other,.
The
goal
of
the
runtime,-
and
this
is,
if
you
get
some
data
as
an
input,,
display
other
data,,
that
is,
it
receives
the
previous
state,.
It
receives
a
set
of
transactions
and
issues
a
new
state
and
what
operations
were
performed,
for
example,
in
the
log,.
What
operations
were
successful,?
B
B
For
two
accounts:
Dicinon
is
large
somewhere,
that
is,
they
choose
from
this,
thereby
they
will
try
to
accommodate
everyone
at
the
same
latitude,,
thereby
slowing
down
the
work.
The
entire
network,
on
the
contrary,.
The
accounts
will
try
to
be
placed
at
different
steps
in
order
to
balance
7,.
This
also
allows
us
to
balance
the
network
at
any
time,.
B
And
[
music],
it
is
the
state
by
placing
the
account
and
so
that
the
most
optimal
transactions
fly
in
the
next
era
and
therefore
we
created
without
asynchronous
runtime,
where
possible,
call
other
contracts
through
huge
calls.
We
had
to
think
about
how
gas
works,
how
returns
work,
how
data
flies
and
how
to
make
it
impossible
to
block
the
contract,
and
we
guarantee
that
some
options
from
this
are
still
not
fully
resolved,
but
for
the
most
part
it
was
quite
interesting
knowledge
for
this,.
You
just
need
to
know.
B
That
is,
I
worked
both,,
no
knowledge
was
needed,,
except
for
the
fact
that
we
integrated
it
into
the
pool
there
or
for
smart
contracts,.
For
this
we
had
to
figure
it
out
ourselves
in
possibly
how
the
memory
works
there,,
how
to
ensure
that
the
termination
ravana
is
performed,
how
to
measure
g
az,
and
so
on
many
things
we
just
took
the
evaporator
of
the
original
substrate,.
In
the
end,
we
rewrote
most
of
them
for
ourselves,.
B
B
Such
tools
and
ser,
that
is,
I
do
this
life
review
contract.
If
there
is
a
contract
which
you
need
to
present
or
you
can
easily
just
write
to
me
in
a
telegram
and
I
will
add
it
to
the
queue.
If
you
need
some
kind
of
major
audit
contract,
that
is,
it
is
required
there
either.
It
has
already
been
launched
or
is
going
to
be
launched
on
a
coin,.
You
don’t
need
to
see
everything
in
detail,,
you,,
too,,
well,,
so
contact
me
and
me
are
already
spending
more
time
on
this
than
just
an
hour
a
week.
B
B
A
A
Starts
tomorrow,
there
will
be
many
abortion
shops
and
some
Russian-speaking
speakers
to
give
you
at
least
an
easier
understanding
of
English,.
This
is
our
guys,,
but
also
for
loyalty.
There,
ask
them
to
do
it
in
Russian,,
it’s,
also
quite
possible,
so
I'll
send
a
link
to
the
existing
one
in
general.
Well,
follow
everything
subscribe
to
this
cotton
receive
notification
of
all
new
interesting
video
streams
and
lessons.
A
In
the
chat,,
I
threw
arrows,
an
example,
when
I
did
the
actual
operations
for
you,
there,
directly
specific
club,
do
several
times
updating
the
contract,
sent
the
code
to
the
chat,,
which
would
be
nice,.
This
is
done
first,.
We
save
the
old
object
that
we
will
not
need
in
the
future.
We
just
need
it
in
a
new
state,.
Then
we
gradually
delete
the
data
from
it,.
Reducing
the
value
of
iso
there,
fill
in
the
new
object
as
a
result
of
our
Ilyinsky
operation,.
A
B
B
B
B
But
the
main
problem
of
holding
is
there.
It
is
precisely
changy
that
is,,
if
any
of
the
steps
starts
to
work
wrong,
if
a
million
ways,
how
can
she
do
it
or
and
to
show
that
it
was
wrong,
all
other
lords
without
a
state,
must
make
sure
of
this.
Some
simple
challenges
with
the
signature
of
several
blocks.
B
At
the
same
time,
it
is
easy
to
prove
when
a
correct
transition
is
created
based
on
the
wrong
state,,
and
this
is
not
so
easy
to
prove,
that
is,
such
attacks
as
if
the
Tatars
completely
captured
the
entire
ball
and
and
the
correct
transition
that
was
not
caught
by
the
challenger
or
this
chan
di
was
ignored,
and
then
they
made
the
correct
transition
on
the
wrong
stand.
At
that
moment,
the
challenge
is
not
trivial,
because
you
need.
C
B
B
B
If
this
is
achieved,,
you
can
run
a
real
shardin
more
than
that
benefit.
Current
results,
I
think
we
will
have
somewhere
around
8
steps
that
is
going
to
launch
it
somewhere
in
eight
steps
where
the
validator
is
led
by
all
shards
at
the
same
time,.
While
the
corpus
should
not
have
held
all
the
victims,
that
is,
ordinary
nodes
were
not
Tatar,
they
will
be
able
to
check
the
network
and
monitor
some
accounts
separately,
that
is,.
If
your
account
is
on
such
and
such
a
Schengen
Tatyana,,
you
must
know
all
the
others,.
B
A
B
New
programming
language
for
the
nerve,
this
is,
in
my
opinion,
there
was
one
of
some
languages
that
would
support
barefoot,,
most
likely.
There
is
quite
earlier
support
for
kazbegi
now
and
you
can
read
about
it,,
but
it’s
unlikely
that
it’s
quite
enough
now,
that
is,
most
likely
there.
Everything
was
earlier
there
to
launch
some
basic
contracts,,
but
not
so
come
on
support
for
all
collections
for
old
collections
and
other
interfaces,.
A
A
A
B
B
A
To
establish
that,
thank
you
very
much
to
everyone
who
raised
the
issue
of
small
money,
went
wrote
such
a
contract,.
We’Ll
try
to
make
how
many
prime
ministers
or
here’s
an
application
of
some
kind,
well,
that
our
course
is
over,
I
hope
there
will
be
new
thanks
to
everyone
who
was
present,
subscribe
there
katona
nier,
to
participate
and
develop
your
applications
here
already
further.
He
cooperate
like
here
on
integration
level,.
We
can
help
with
grants
and
support,.
So
the
wolf
is
here
later
before.