Come si crea un contatto KT1 secondario sotto il proprio indirizzo TZ?
-
-
Cheportafoglio stai usando?vederei portafogli disponibili qui: https://support.ledger.com/hc/en-us/articles/360016057774-Tezos-XTZ-What wallet are you using? see available wallets here: https://support.ledger.com/hc/en-us/articles/360016057774-Tezos-XTZ-
- 0
- 2019-11-25
- joschua011
-
1 risposta
- voti
-
- 2019-12-01
RISPOSTA CORRETTA:
Assicurati dieseguire unteste diinviare solo unapiccola quantità di Tezosper assicurarti di avereil controllo del contrattointelligente. Dopo aver confermato dipoterinviaree ricevere Tezos dallo smart contract,inviail resto. Non l'hofattoe ora le strutture di Staking hannoil controllo del contrattointelligentee sto aspettando chemi inviino l'XTZ.
Passaggio 1) Scarica lo scriptnella directory Tezos
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
Passaggio 2) crea un aliasper l'indirizzotz1baker
./tezos-client aggiungiindirizzo "ALIASYOUCHOOSEFORBAKER" "TZ1ADDRESSOFTHEBAKERY"
Passaggio 3) crea uno smart contractfacendo TUOilmanager conil comando --Inite delegando alpanettiere conil comando --delegate
./tezos-client originate contract 'SMART CONTRACT ALIAS'trasferendo 1 da 'ALIAS USED FOR YOUR TZ1 ADDRESS'in esecuzione "$ (catmanager.tz)" --init '"TZ1ADDRESS OF YOUR TZ1 MANAGER"' -burn-cap 0.489 --baker "ALIAS-YOU-CHOSE-FOR-BAKER-IN-STEP1"
<"Esempio"
1)
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
<"2)"
./tezos-client aggiungiindirizzo STAKINGFACILITIEStz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY
<"3)"
./tezos-client originate contract DELEGATOR1trasferendo 1 da MACK-1 con "$ (catmanager.tz)" --init '"tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZf"' --burn-cap 0.489 --baker STAKINGFACILITIES
CORRECT ANSWER:
Be sure to do a test run and only send a small amount of Tezos to make sure you have control of the smart contract. Once you confirm you can send and receive Tezos from the smart contract, send the rest. I didn't do that and now Staking facilities is in control of the smart contract and I am waiting for them to send the XTZ back to me.
Step 1) Download the script to Tezos directory
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
Step 2) create an alias for the tz1 baker address
./tezos-client add address 'ALIASYOUCHOOSEFORBAKER' 'TZ1ADDRESSOFTHEBAKERY'
Step 3) create a smart contract making the manager YOURSELF with the --Init command and delegating to the baker with the --delegate command
./tezos-client originate contract 'SMART CONTRACT ALIAS' transferring 1 from 'ALIAS USED FOR YOUR TZ1 ADDRESS' running "$(cat manager.tz)" --init '"TZ1ADDRESS OF YOUR TZ1 MANAGER"' --burn-cap 0.489 --baker 'ALIAS-YOU-CHOSE-FOR-BAKER-IN-STEP1'
Example
1)
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
2)
./tezos-client add address STAKINGFACILITIES tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY
3)
./tezos-client originate contract DELEGATOR1 transferring 1 from MACK-1 running "$(cat manager.tz)" --init '"tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZf"' --burn-cap 0.489 --baker STAKINGFACILITIES
-
Sei sicuro?Non credo che `originate contract` accetti un'opzione` --baker`.Are you sure? I don't believe `originate contract` accepts a `--baker` option.
- 0
- 2019-12-01
- Tom
-
Sì,provalo.L'hofatto due volteieriYes, it does, give it a try. I did it twice yesterday
- 0
- 2019-12-02
- Mack Baise
-
Unanota,perme epergli altri,l'opzione "baker"non èpiù accettata,ènecessario utilizzareinvece "delegate".Inoltre,assicurati diinserire "" TZ1 address "",con duepuntie unpuntoe virgola suentrambii lati o riceverai unerroreA note, for myself and others, the "baker" option is no longer accepted, you must use "delegate" instead. Also, make sure to put '"TZ1 address"', with colon and semicolon on both sides or you will get an error
- 0
- 2020-01-15
- Mack Baise
Voglio averepiùindirizzi KT1 su unindirizzo TZ (libromastro) da delegare apiùpersone