java.lang.Object
tech.deplant.java4ever.binding.Debot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void>
execute
(@NonNull Context context, @NonNull Integer debotHandle, @NonNull Debot.DebotAction action) UNSTABLE(UNSTABLE.md) Executes debot action.static CompletableFuture<Debot.ResultOfFetch>
UNSTABLE(UNSTABLE.md) Fetches DeBot metadata from blockchain.static CompletableFuture<Void>
UNSTABLE(UNSTABLE.md) Destroys debot handle.static CompletableFuture<Void>
UNSTABLE(UNSTABLE.md) Sends message to Debot.static CompletableFuture<Void>
UNSTABLE(UNSTABLE.md) Starts the DeBot.
-
Constructor Details
-
Debot
public Debot()
-
-
Method Details
-
start
public static CompletableFuture<Void> start(@NonNull @NonNull Context context, @NonNull @NonNull Integer debotHandle) UNSTABLE(UNSTABLE.md) Starts the DeBot.- Parameters:
debotHandle
- Debot handle which references an instance of debot engine.
-
fetch
public static CompletableFuture<Debot.ResultOfFetch> fetch(@NonNull @NonNull Context context, @NonNull @NonNull String address) UNSTABLE(UNSTABLE.md) Fetches DeBot metadata from blockchain.- Parameters:
address
- Debot smart contract address.
-
execute
public static CompletableFuture<Void> execute(@NonNull @NonNull Context context, @NonNull @NonNull Integer debotHandle, @NonNull @NonNull Debot.DebotAction action) UNSTABLE(UNSTABLE.md) Executes debot action.- Parameters:
debotHandle
- Debot handle which references an instance of debot engine.action
- Debot Action that must be executed.
-
send
public static CompletableFuture<Void> send(@NonNull @NonNull Context context, @NonNull @NonNull Integer debotHandle, @NonNull @NonNull String message) UNSTABLE(UNSTABLE.md) Sends message to Debot.- Parameters:
debotHandle
- Debot handle which references an instance of debot engine.message
- BOC of internal message to debot encoded in base64 format.
-
remove
public static CompletableFuture<Void> remove(@NonNull @NonNull Context context, @NonNull @NonNull Integer debotHandle) UNSTABLE(UNSTABLE.md) Destroys debot handle.- Parameters:
debotHandle
- Debot handle which references an instance of debot engine.
-