toggle menu
lattice-kt
1.0-SNAPSHOT
jvm
switch theme
search in API
lattice
/
com.example.lattice
/
Lattice
Lattice
interface
Lattice
Inheritors
LatticeImpl
Members
Functions
call
Contract
Link copied to clipboard
abstract
fun
callContract
(
contractAddress
:
String
,
data
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
)
:
String
调用合约
call
Contract
Wait
Receipt
Link copied to clipboard
abstract
fun
callContractWaitReceipt
(
contractAddress
:
String
,
data
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
,
retryPolicy
:
RetryPolicy
<
Throwable
>
=
RetryStrategy.defaultFixedIntervalRetry()
)
:
Receipt
调用合约并且等待回执
deploy
Contract
Link copied to clipboard
abstract
fun
deployContract
(
data
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
)
:
String
部署合约
deploy
Contract
Wait
Receipt
Link copied to clipboard
abstract
fun
deployContractWaitReceipt
(
data
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
,
retryPolicy
:
RetryPolicy
<
Throwable
>
=
RetryStrategy.defaultFixedIntervalRetry()
)
:
Receipt
部署合约并等待回执
pre
Call
Contract
Link copied to clipboard
abstract
fun
preCallContract
(
contractAddress
:
String
,
data
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
)
:
Receipt
预调用合约
transfer
Link copied to clipboard
abstract
fun
transfer
(
linker
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
)
:
String
发起转账
transfer
Wait
Receipt
Link copied to clipboard
abstract
fun
transferWaitReceipt
(
linker
:
String
,
payload
:
String
=
"0x"
,
amount
:
Long
=
0
,
joule
:
Long
=
0
,
retryPolicy
:
RetryPolicy
<
Throwable
>
=
RetryStrategy.defaultFixedIntervalRetry()
)
:
Receipt
发起转账并等待回执