►
From YouTube: Weekly Developer Call 018 | 14 December 2022
Description
Meeting Info:
- Schedule:14 December 2022 : 11:00 AM EST / 3:00 PM UTC / 11:00 PM HKT
- Duration: 60 minutes
- Location: YouTube Livestream
Agenda:
- Review Open Issues of Bounties Board
- Mini-Lesson: Script CEX + Gateway Teardowns
- Community Q&As
C
B
I
hope
the
audio
is
clear,
I
hope
everyone
is
here
and
listening.
Hello
Fred
is
saying
hi,
so
welcome
to
the
weekly
developer.
Call
the
this
week
we're
going
to
have
a
mini
lesson
talking
about
the
the
script
sex
and
plus
Gateway
teardown.
We
are
talking
about
how
to
use
Gateway
with
with
scripts,
because
it's
a
bit
different
than
the
normal
scripts.
We'll
do
we'll
be
doing
a
comparison
between
the
two
of
them
and
then
we
will
run
Gateway
script
and
and
watch
it
watch
it
do
the
math.
B
So
basically,
the
the
the
the
essential
operation
that
you
need
to
know
is
that
this
scripts
are
synchronous
and
the
Gateway
uses
async
functions.
This
is
what
where
the
complication
for
the
for
the
Gateway
scripts
comes
from,
you
will
need
a
workaround
to
execute
the
Gateway
scripts
and
you
will
need
to
create
the
logic
inside
a
different
function.
I
will
be
walking
you
through
a
simple
example
where
you,
where
you'll,
be
able
to
use
the
Gateway
in
a
script.
B
B
Here
is
the
first
example,
so
the
this
is
a
DCA
example.
This
is
a
very
simple
script
to
buy,
to
buy
on
what
the
time
is
done.
So
you,
when
the
time
interval
is
done
so
you'll.
This
is
the
centralized
exchange
script.
This
is
using
binance
paper
trade.
B
As
you
can
see
here,
the
logic
of
the
script
is
inside
of
the
antique
and
like
when
you
run
the
script.
This
is
the
function
that
is
going
to
run
for
it.
This
is
a
synchronous
function.
So
if
you
want
to
transform
this
into
any
like
a
Gateway
script,
you
would
need
to
add
another
function.
B
Just
like
this,
so
you
need
to
add
an
async
task
function
or
call
it
anything
just
as
long
as
it's
an
async
function,
and
then
you
will
be
able
to
do
call
like
Gateway
calls
on
on
this
and
then
you'll
be
able
to
execute
the
Gateway
trades
as
well
as
as
we
can
see
here.
B
So
what
happens
here
is
that
I
created
this
a
sync
task
function
and
then
put
all
of
the
logic
of
my
script
inside
of
this
function,
and
then
I
go
to
the
ontake
function
here
and
I
I
call
the
async
task
inside
of
safe,
ensure
future
save
ensure
future.
What
it
does
is
it
allows
you
to
run
async
functions
inside
of
synchronous
function.
B
Basically
also
one
more
thing
is
that
if
you
don't
add
a
check
for
the
ongoing
task,
you
will
you
will
be
running
the
async
test
multiple
times
before
the
before.
F
B
Actual
script
finished
running
before
the
logic
finished
running,
so
here
I
set
the
logic
to
true
and
then
like
once
once
that
I
make
sure
that
the
task
is
done
and
there
is
no
more
orders.
I
I
will
set
back
to
false,
and
then
we
will,
you
will
be
able
to
you'll,
be
able
to
go
to
the
next
trade
basic
here.
I
also
have
an
async
like
I
think
script
on
an
on
a
centralized
exchange.
This
is
not
needed.
B
This
is
just
an
example
that
you
use
to
like
the
to
know
well
like
how
to
transform
my
script
into
a
Gateway
script
or
how
to
use
the
how
to
use
the
the
Gateway
asynchronous
functions
inside
of
on
the
side
of
the
current
version
of
scripts.
So
this
is
the
this
is
the
actual
file.
B
This
is
the
actual
script
here
you
can
see
most
of
the
logic
for
canceling
the
orders,
the
also
and
then
placing
the
orders
is
inside
the
ons,
the
ontake
function,
and
if
you
go
to
the
async
version
of
the
same
script,
I
have
moved
everything
inside
of
the
async
task
function
again
and
then
calling
the
function
inside
of
async
task.
B
This
is
this
is
basically
the
like
what
you
need
to
do
to
get
the
to
get
the
script
to
work
with
the
Gateway,
we're
going
to
run
few
examples
here
and
then
we're
going
to
move
to
to
asking
questions
and
and
answering
questions.
So
the
first
example
I'm
going
to
run
is
the
the
first
ontake,
the
the
first
async
script,
which
is
the
it's
called
async
Script
here.
So
it's
it's
a
simple
bmm,
but
it
just
turned
a
AC.
A
A
B
Script
is
creating
orders
for
usdt
on
binance
paper
trade,
and
you
can
see
that
like
async
and
no
no
can
work
normally
with
with
the
centralized
exchanges
based
script
as
well.
This
is
the
purpose
of
this
script.
I'm
going
to
check
the
status
here,
and
you
can
see
that
we
have
orders
so
I
will
just
stop
this
script
and
then
I
will
go
again
to
the
decent,
like
the
DCA
example
for
the
for
the
Gateway
example.
B
You
will
have
to
wait
here
for
the
connector
to
be
ready
and
if
you
haven't
approved
the
token
already,
you
will
have
to
wait
for
approvals
as
well.
This
might
take
sometimes
like
two
or
three
minutes.
You
will
get
the
the
price
here.
I
already
set
the
price
here
to
a
random
price,
because
the
price
quote
on
girly
was
failing.
But
if
you
run
this
on
the
on
mainnet
it
will
it
will
work
with
no
problem.
B
So
you,
you
will
see
here
that
you
have
said
to
create
order
with
like
the
the
price
and
the
amount
as
the
show
need,
and
the
order
here
has
has
failed.
But
the
order
has
been
sent
to
the
Gateway.
You
can
see
that
it
failed
because
of
provider.
Gas
error
like
not
being
able
to
get
the
the
price
from
the
girl
in
it.
F
B
C
B
Will
just
continue
with
the
with
the
explanation
and
then
just
receive
questions.
F
B
B
This
is
this
is
a
the
simple
way
of
getting
a
script
to
become
like
to
use
the
the
Gateway
and
also
you
you
will
be
able
to
have
like
the,
for
example,
the
simple
pmm
script
example.
You
will
have
an
async
version
of
it
that
you
will
like
you,
you
can
at
least
get
the
logic
of.
What's
Happening
from
it?
B
Also
all
of
the
functions
that
you
will
be
using
for
uni
so,
for
example,
are
available
in
the
Gateway
evm
mm
file.
So,
for
example,
some
of
the
functions
that
are
available
for
centralized
exchanges
are
not
available
here.
Like
they
get
price,
you
will
not.
You
will
not
have
a
get
price
full
function
and
you
will
only
like
have
it
through
the
get
code
price
function,
so
all
of
them
are
available
in
the
Gateway.
Evm
am
class.
B
That's
how
you
will
be
able
to
get
the
price
for
the
you
either
use
gate
code
price
or
you
you
can
use,
get
order
place.
The
two
functions
from
the
similar,
basically
similar,
like
a
return.
You'll
you'll
get
the
price
for
the
token
that
you
for
the
pair
that
you
want
and
I
think
that
that
sums
it
up.
If
you,
if
you
have
any
questions,
I
think
I've
been,
might
have
been
too
fast
in
explaining
this,
and
if
you
have
any
questions,
I'll
gladly
help
you
with.
B
For
those
who
don't
know
the
questions,
the
questions
like
you
can
ask
the
questions
in
the
community
called
chat
in
the
in
the
Discord.
So
so
we
have
a
question
full
of
entity
here.
When
will
the
Gateway
script
be
available
to
the
community?
So
I'll
I'll
be
pushing
two
examples,
hopefully
in
the
next
in
within
this
the
next
release.
B
So
we
will
have
a
few
examples
of
the
of
Gateway
scripts
and
you
will
be
able
to
copy
them,
use
them
and
play
around
with
them
and
or
create
other
scripts
as
well
that
that
uses
the
Gateway
I
think
there
is
a
lot
of
opportunities
for
for,
like
a
very
profitable
scripts
using
the
Gateway
and
you
can.
B
You
can
create
scripts
that
use
both
because
the
async
version
works
with
with
the
with
the
centralized
exchanger
as
well.
You
can
use
the
the
async
scripts
to
create
like
cross
Exchange
strategies
you
can
use
like
for
arbitrary
strategies.
You
can
use
it
for
many
things
and
across
the
axes
and
services.
At
the
same
time,
so
you'll
there's
a
lot
of
opportunities.
There.
B
You
have
a
question
for
lazy
days.
What
is
the
async
function
now,
for
example,
right.
B
This
is
not
available
in
the
in
in
the
code
base,
but
you
you
can
see
it
here.
I
just
want
to
explain
this
and
like
give
a
heads
up
to
the
community
before
we
before
we
like
I,
add
this
to
the
code
base,
so
here
you'll
have
the
async
using
function.
B
This
is
the
DCA
example
turned
into
a
Gateway
example,
and
you
will
be
able
to
see
here
that,
like
instead
of
putting
all
of
the
logic
inside
of
the
untick,
you
will
put
the
logic
inside
of
an
async
function
here
and.
B
F
B
Yes,
it
does
and
it's
the
it's
the
same
structure
as
the
other
script.
You
can
also
use
the
the
events
and
the
all
of
the
other
methods
available
for
the
scripts.
You
can
use
them
within
the
async
script
and
they
will
work
as
well
just
as
well
in
the
async
ones.
B
Any
more
questions
regarding
the
Gateway
scripts
and
then
take
the
little
like
for
any
question
related
to
when
this
will
be
coming.
It
will
be
very,
it
will
be
very
soon.
Hopefully,.
B
So
I'll
be
waiting
for
more
question
here
and
if
it
is
like
any
questions
that
you
have
afterwards,
you
can
post
them
in
the
developers
channels.
E
B
Are
the
same
as
the
for
the
last
two
or
three
weeks
and
I?
Think
it's
not
the
point
that
we
go
through
them.
E
B
B
Thank
you
very
much
for
coming
to
the
weekly
developer
call,
and
hopefully
this
this
mini
lesson
has
been
useful,
I'm,
looking
forward
to
see
what
you
create
with
the
Gateway
scripts
as
soon
as
we
release.