51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: transfer-token
|
|
inputs:
|
|
- from_address
|
|
- to_address
|
|
- token_name
|
|
- token_amount
|
|
step:
|
|
- type: sol-get-token-info
|
|
inputs:
|
|
token: token_name
|
|
outputs:
|
|
token_address: token_address
|
|
token_decimals: token_decimals
|
|
- type: internal-load-file
|
|
values:
|
|
filename: "nonce.json"
|
|
outputs:
|
|
nonce_authority: nonce_authority
|
|
nonce_data: nonce_data
|
|
nonce_address: nonce_address
|
|
- type: sol-transfer-token
|
|
inputs:
|
|
amount: token_amount
|
|
token_address: token_address
|
|
decimals: token_decimals
|
|
to_address: to_address
|
|
from_address: from_address
|
|
outputs:
|
|
instructions: instructions
|
|
derivation_accounts: derivation_accounts
|
|
- type: sol-compile
|
|
inputs:
|
|
instructions: instructions
|
|
derivation_accounts: derivation_accounts
|
|
nonce_address: nonce_address
|
|
nonce_authority: nonce_authority
|
|
nonce_data: nonce_data
|
|
outputs:
|
|
transaction: unsigned_transaction
|
|
- type: sol-sign
|
|
inputs:
|
|
transaction: unsigned_transaction
|
|
blockhash: nonce_data
|
|
outputs:
|
|
transaction: transaction
|
|
- type: internal-save-file
|
|
values:
|
|
filename: "transaction.json"
|
|
inputs:
|
|
transaction: signed_transaction
|