Skip to content

Commit

Permalink
docs: send-tokens with endo (Makefile target)
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Nov 19, 2023
1 parent 9e87d73 commit 4db7401
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/fincaps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ send-tokens: $(PET)/validator-client
endo eval "E(client).sendTokens(\
'agoric14pfrxg63jn6ha0cp6wxkm4nlvswtscrh2pymwm', \
'agoric1a3zu5aqw255q0tuxzy9aftvgheekw2wedz3xwq', \
[{ denom: 'ubld', amount: '1' }])" client:validator-client
[{ denom: 'ubld', amount: '12345' }], 'auto').then( \
tx => tx.code === 0 ? tx.transactionHash : assert.fail(tx.rawLog))" client:validator-client

$(PET)/validator-client: $(PET)/validator-signer $(PET)/client-maker
$(PET)/validator-client: $(PET)/validator-passkey $(PET)/client-maker
@echo ++ Instantiate SigningStargetClient
endo eval "E(mkClient).fromURL(signer, 'http://localhost:26657')" mkClient:client-maker signer:validator-signer -n validator-client
endo eval "E(key).get().then(m => E(mkClient).fromURL(m, 'http://localhost:26657'))" mkClient:client-maker key:validator-passkey -n validator-client

$(PET)/validator-signer: $(PET)/signer-maker $(PET)/validator-passkey
endo eval "E(key).get().then(m => E(mkSign).fromMnemonic(m))" mkSign:signer-maker key:validator-passkey -n validator-signer
Expand Down

0 comments on commit 4db7401

Please sign in to comment.