diff --git a/icepick.toml b/icepick.toml index a060aa4..228a169 100644 --- a/icepick.toml +++ b/icepick.toml @@ -13,7 +13,7 @@ name = "transfer-token" # be serialized by serde_json::Value. # These values can also be loaded using "internal-load-file", using some form # of later-defined signature validation. -inputs = ["from_address", "to_address", "token_name", "token_amount"] +inputs = ["from_address", "to_address", "token_name", "token_amount", "cluster"] ## Load the Blockhash from the SD card #[[module.workflow.step]] @@ -44,6 +44,8 @@ outputs = { token_address = "token_address", token_decimals = "token_decimals" } [[module.workflow.step]] type = "sol-get-blockhash" +inputs = { cluster = "cluster" } + outputs = { blockhash = "blockhash" } [[module.workflow.step]] @@ -78,6 +80,13 @@ blockhash = "blockhash" [module.workflow.step.outputs] transaction = "signed_transaction" +# Broadcast the transaction +[[module.workflow.step]] +type = "sol-broadcast" + +inputs = { cluster = "cluster", transaction = "signed_transaction" } +outputs = { status = "status", url = "url" } + ## Write the signed transaction to a file #[[module.workflow.step]] #type = "internal-save-file"