►
From YouTube: TokenScript Weekly Meeting 20200709
Description
00:08:29 weiwu: https://github.com/AlphaWallet/TokenScript/pull/373
A
A
A
A
A
A
A
A
Yes,
I've
given
up
on
my
earphones,
okay,
nice.
So
today
we
have
three
topics
about
javascript.
Tor
is
not
joining
because
he's
in
holiday.
So
we
don't
talk
about
token
script,
just
javascript
api
and
the
first
one
is
about
your
pull
request,
the
the
one
that
you
you
you
proposed,
which
has
a
variable
that
is
called
update
and
it
has
token
and
card.
A
Okay
yeah,
so
that's
so
good!
So
well,
let
me
check
one
question
that
first
everything
you
proposed
seemed
to
be
good
and
I
don't
know
if
james
brown
had
that
look
at
it.
I
sent
a
link,
so
james
can
have
look.
A
A
When
your
kitty,
one
marry
one
kitty
with
the
other,
that's
an
action
where
you
select
two
token
tokens
to
do
or
batch
transfer
a
lot
of
tokens
or
using
more
than
more
than
one
input
like
you
need
one
attestation
plus
one
die
token
together
to
find
one
ico
token.
That's
one
thing!
The
other
thing
is
you
mentioned
that
whether
or
not
there
is
one
card
currently
there
is
one
card.
A
It
as
a
no
okay
so
because
and
james
angani
was
on
me
today,
they're
saying
that
I've
suddenly
come
up
with
a
word.
So
I
might
as
well
tell
him
that
if
I
never
told
him
about
the
word
death
today,
then
I
didn't
even
invent
it
and
he
think
I'm
behaving
like
communism
party
recently
that
rewrite
history
and
saying
that
something
existed
long
before
anyway.
So
the
thing
about
deck
is:
that's!
That's
where
the
card
lane
card
come
from.
A
That
is
you
you
can
you
can
you
can
play
multiple
things
together?
A
So
one
example
would
be
imagine
that
you
go
to
checkout
and
you
are
using
the
payment
currency
like
battlecard,
and
then
the
the
bill
is
one
thousand
dollars,
but
you
have
buyer
card
balance
of
300,
then
you
might
choose
to
do
top-up
and
ideally
the
pop-up
top-up
process
is
done
in
the
same
transaction
as
the
payment
transaction
and
even
if
it
cannot
be
done
together,
it
should
be
done
very
closely
to
each
other
in
one
process.
A
A
Let's
say
prove
that
you
are
singaporean
as
well
as
purchasing
an
ico
token,
so
that
will
be
using
two
cards
in
one
transaction,
whether
or
not
that
but
again
the
two
cards
might
be
separate,
because
you
don't
want
one
card
to
learn
the
secret
of
the
other
card,
so
maybe
when,
when
javascript
runs,
there's
only
one
card,
maybe-
and
the
third
example
would
be.
If
you
have
a
delivery
versus
payment,
then
you
have
the
payment
currency
and
there
will
be
a
card
token
card
virtual
token
card.
A
Then
you
can
compare
side
by
side
what
you
are
going
to
pay,
what
you
are
going
to
get
and
in
the
end
the
two
cards
creates
only
one
transaction,
that
is
a
delivery
versus
payment
transaction
and
but
everything
else.
But
but
it
is
two
cards
and
this
there
might
be
even
another
case
where
a
deck
is
involved.
A
That
is,
let's
suppose,
you
sell
your
crypto
kitty
for
a
handling
ether
and
you
buy
another
crypto
kitty
with
that
hand
in
the
ether,
so
it
would
be
great
if
the
kittens
can
be
swapped
directly.
But,
let's
suppose
one
100
ether
is
involved
in
transaction
and
you
would
only
want
to
sell
your
crypto
kitty
if
you
can
get
another
one,
which
means
if
the
transaction
is
only
down
in
one
hand
and
not
the
other
hand.
You
are
not
happy
like.
A
You
are
not
happy
to
sell
your
kitty
for
400
for
200
ethers,
only
to
learn
that
by
the
time
you
want
to
buy
the
second
kitty,
it's
no
longer
in
the
market,
and
you
already
lost
the
first
kitty,
so
that
would
be
a
transaction
that
potentially
involves
three
card
with
the
first
being
selling
the
kt,
the
second
being
the
dealing
with
the
cryptocurrency
and
intermediate
currency
and
third
being
buying,
or
maybe
that
only
two
cars,
I'm
not
sure.
So
these
are
the
scenarios
of
deck,
but
because
we
haven't
even
brought
card
to
a
website.
A
A
So
this
is
an
undesigned
element
that
I
think
I'm
just
providing
information.
I
don't
think
it's
going
to
result
in
more
than
one
card
being
updated,
or
maybe
I'm
not
sure,
I'm
just
not
sure.
A
So
if
it's
javascript
and
well,
we
can
have
this.
Let's
see,
we
have
token
that
is
about
talking
about
token
of
this
action.
We
have
a
card
that
is
the
present
card,
and
if
we
have
multiple
inputs,
these
are
probably
not
under
tokens.
They
are
probably
under
input,
which
is
a
different
one
at
the
same
level
as
token
and
card
that
would
solve
the
conundrum
right.
A
Yes
or
we
can
have
two
plural
tokens
cuts
or
if
we
have
a
deck,
I
guess
it
will
be
a
deck.
It
will
be
called
a
deck,
so
card
is
still
going
to
be
the
same.
So
I
think
your
api
is
going
to
be
good.
When
we
introduce
deck
too,
I
feel
I
not
think
I
cannot.
I
cannot
think
because
it's
too
far
away,
that
is
not
there's.
No!
No.
A
That
thing
okay,
sounds
good,
yeah,
okay,
so
that's
all
my
feedback
on
your
one,
our
comments
that
we
will
have
deck
and
we'll
have
inputs,
but
I
don't
see
that
has
a
disruption
to
our
design.
Second
issue
is
second
question:
is
your
design
can
work
without
loading?
React
libraries
right?
A
Yes,
that's
good!
Okay,
so
that
that's
all
good
past
me
it
passed.
It
passes
me
what
about
james
brown?
What
do
you
think.
A
B
A
A
B
A
A
A
So
the
second
is
just
an
idea
how
we
we
might
launch
a
card,
so
a
launcher
card
is
different
than
all
the
apis
we
defined
defined
before,
because
launcher
card
is
something
that
happens
on
the
website,
not
in
token
script.
It's
an
external
facing
api.
A
Yes
so
so,
let's
suppose
there
is
something
like,
let's
suppose
there
is
or
maybe
or
maybe
token
split
directly.
A
Maybe
okay,
so
so
there
is
so.
A
A
The
the
minimum
and,
let's,
let's
see
what's
what's
the
problem
in
this
first.
A
Specified
a
second
is
token
script.
Trust
is
implied.
A
Maybe
and
then
you
have
a
callback
but
set
new
another
problem.
A
A
You
need
to
provide
the
balance,
that
is,
the
user
is
going
to
pay.
So
imagine.
A
A
For
example,
if
the
price
change,
because
user-
let's
say
user,
goes
to
checkout
and
user
click,
the
checkout
button,
which
causes
the
card
to
open-
and
you
look
at
the
price
and
think
that
price
is
higher
than
I
thought
and
he
didn't
click
confirm
on
that
card.
Instead,
he
had
a
closer
look
at
the
website
and
realized
that
the
website
used
used
priority
shipping.
A
Then
he
clicked,
let's
use
normal
shipping,
then
would
you
allow
the
card
to
update
a
message
so
that
the
the
card
get
this
update,
json
string
with
a
new
amount.
A
So
now
imagine
on
the
left
side,
you
have
the
website
on
the
right
side,
there
is
a
card
open
and
the
website
changed
because
the
price
changed
and
we
want
to
feed
that
change,
because
you
know
we
already
said
that
this
attribute
originates
from
the
web.
If
it
originates
from
the
web,
then
web
can
might
have
a
different
value
for
it.
A
A
B
B
A
Actually
card
open
has
two
potential
interpretations,
so
maybe
launch
so.
The
other
thing
interpretation
is
funny,
but
we
actually
might
become
relevant.
A
Okay,
anyway,
how
do
you
think
if
you
design
it,
how
would
you
do
it.
A
A
Yeah,
but
if
you
if
the
card
is
in
was
n,
then
the
communication
is
two
way.
I
didn't
study
the
api,
how
they
do
that.
B
B
B
A
Okay,
so
also
that
if
the
card
is
on
the
other
side
of
wallet
connect,
then
we
simply
hide
the
detail.
A
So
basically
we
provide
website
owners
with
api.
So
if
the
website
owner
calls
card
launch,
then
if
the
user
is
using
alpha
wallet,
the
card
pops
up,
if
the
user
is
using
metamask
mean
hamas
pops
up
and
if
the
user
is
using
normal
firefox,
but
using
wallet
connect
connected
to
our
wallet,
then,
after
what
it
pops
up
in
his
mobile
phone
and
users,
still
looking
at
the
firefox
website
and
the
mobile
phone
rings,
so
we
hide
the
details
here
right,
yes,
okay,
so
I
take
a
note.
B
A
Oh
yes,
I
imagine
this.
This
would
happen
before
card
launch
or
maybe
it
actually
does
yeah.
You
are
right.
So
if
there's
no
connection,
then
the
card
launch
will
automatically
do
something,
maybe
like
displaying
qr
code.
Yes,
but
also.
A
Okay,
so
yeah
not
taken.
I
guess
that's
all
the
memos
we're
going
to
share
today.
If
you
have
any
input,
let's
write
more
otherwise
I'll,
just
share
it
as
a
thinking
memo.
A
And
also
it's
it's
okay
to
leave
out
the
card
deck
building
thing
right.
Sometimes
the
website
want
to
build
a
deck,
but
we
can
introduce
a
new
api
for
that
make
sense.
Yes,.
B
Yes,
I
was
thinking,
maybe
we
can
also
check.
B
A
Sorry
repeat:.
B
B
B
A
Alipay
no
longer
allow
you
to
buy
it
on
pc,
that's
really
aggressive!
So
I
remember
in
the
past
I
paid
the
pc
thing
later.
They
had
a
mobile
phone,
so
you
can
either
login
entirely
pay
and
pay,
or
you
can
use
your
mobile
phone
to
scan
qr
code
and
pay,
but
today
in
the
office,
when
I
try
to
pay
idp,
it
says
your
opinion
can
only
be
processed
with
a
mobile
phone.
Please
take
out
the
mobile
phone,
and
this
this
is
so
aggressive
happening
in
china.
A
They
have
a
special
advantage
that
they
can
check
if
the
chrome,
the
separate
user,
is
the
same
user
as
the
mobile
user
right.
B
A
But
we
can.
We
can
check
that
too,
because
that's
similar
to
the
situation
where
the
wallet
connect
connection
is
already
made
before
the
user.
The
website
want
to
launch
a
card.
Yes,.
A
Okay,
also,
now,
back
to
this,
I
will
probably
will
not
call
a
launch
I'll,
probably
call
a
play
card.
I'll,
give
you
the
reason.
Okay,
because
that's
similar
with
the
card
open
thing
card
play.
A
So
so
a
lot
of
the
cryptographic
words
are
borrowed
from
card
games,
poker
games
and
because
there
was
a
saying
that,
if
a.I
is
about
chess
or
goal
this
board
game,
then
cryptography
is
like
card
game,
the
difference
being
in
the
board
game
and
in
the
in
the
goal
in
the
chess
game.
A
You
know
the
location
of
every
piece
of
you
and
your
enemy.
Just
don't
don't
know
their
strategy,
but
you
know
what
their
enemy
can
do
and
what
they
they
have
in
their
hand.
An
important
game
is
different.
Cryptography
is
done
with
a
lot
of
cryptographic,
hide
and
commit
and
open,
so
they
borrow
words
from
card
game,
and
I
followed
that
thinking
when
I
started
the
card
and
deck
thing.
A
So
I'm
thinking
that
we
might
keep
on
using
that.
Therefore,
if
you
want
a
card,
then
you
actually
play
the
card,
but
the
place
where
card
open
is
ambiguous
is
sometimes
you
can
put
a
card
forward
in
game
and
not
use
it
until
the
moment.
We
need
to
open
it,
meaning
that
flip
it
up
and
let
people
see
what's
in
what's
on
the
card,
make
sense.
B
A
So,
that's
why
I
don't
want
to
use
the
card
open
because
it
means
something
different
for
poker
player
of
a
cryptographic
person
so
yeah.
A
Okay
and
the
the
next
topic
is
to
review
the
design
from
barrett.
I
hope
I
pronounced
his
name
right.
A
A
So
you
propose
something
with
class,
so
I
think
you
must
have
checked
like
javascript
and
the
new
standards
include
class
right,
yes
and
then
let's
see
get
name
and
return.
A
Remember
when,
when
javascript
dom
interface
was
designed,
you
have
a
node
which
represents
node
in
the
dom
tree
like.
If
you
have
html
document,
then
you
have
a
paragraph,
then
it's
a
node,
that's
node,
p
right
and
then
in
in
that
design
you
have
node
dot,
inner
camera,
node
dot
text
and
no
dot
node
value,
and
these
are
quite
confusing
and.
B
A
B
Wait,
that's
the
classic
road,
isn't
it
yeah,
probably
the
reader
3d
does
that
did
I.
B
B
A
Yes,
but
that's
that's
not
easy
to
use,
I
hope
there's
a
way
for
javascript
developers
not
to
know
that
there
is
another
way
to
return
a
different
value
with
timezone
in
it
unless
he
faces
this
problem.
A
B
A
A
Made
so
the
choice
was
made
when
the
object
is
constructed
and
when
the
function
is
run
and
when
you
try
to
get
the
result,
it's
already
the
return
value
of
function
or
the
already
constructed
object
where
the
choice
is
already
made.
B
B
A
We're
going
to
read
it
back
remember
that
a
few
months
ago
I
think,
almost
one
year
ago
I
was
a
proponent
of
having
the
type
information
provided
to
the
developers
through
a
different,
different,
different
name
space
than
an
actual
variable.
A
I
think
examples
left
like
that,
but
you
already
made
your
point
that
currently
javascript
people
prefer
to
receive
data,
and
if
they
need
type
information,
they
will
get
it
elsewhere
right,
which
means
we
should.
If
we
provide
read
access
to
this
data,
then
we
should
provide
the
type
information
which
is
a
result
of
choice
in
a
parallel
structure.
A
B
All
that
example
for
not
making
the
api
read
write
if,
for
example,
you
construct,
if
you
want
to
use
stripe
or
android
play,
you
want
to
make
a
payment
request
you
you
will
build
some
kind
of
payload
right
like
the
shopping,
cart
or
the
amount
which
we
were
talking
about
yeah.
B
A
Yes
yeah
so
anyway,
let's
go
on
with
the
thinking
that
read
and
write
is
two
different
things,
but
still
we
need
to
design
the
details
of
how
to
get
data.
Okay,
the
time
is
up
and
we
have
a.
We
have
gone
through
three
javascript
topics
and
I
think
it's
productive
I'll
share
the
note.