Questions tagged [contract]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

How to format the call to the “do” entry point on manager.tz contracts in order to transfer funds to account X"

I accidentally set the account manager for a smart contract to a baker I was trying to delegate to. https://better-call.dev/main/KT1VSiaepk9USGAHDjJQAm4aaYRC6J8dTBHG/operations Now I need to figure ...
1
vote
1answer
65 views

Delegating from a Kt1 address locked my coins, how can I fix it?

Might have royally messed up here, but I added an address via command line with ./tezos-client add address stakingfacilities tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY (for stakingfacilities baker in ...
1
vote
1answer
20 views

Drain delegated KT1 contract, then later send funds to the same (but now empty) contract

What happens in the following scenario? A person sends all his funds from his KT1 contract* to his tz1 address The person withdraws all the tez from his tz1 address (both now have a balance of 0 tez) ...
0
votes
0answers
17 views

How to deploy a contract to Tezos Mainnet?

I've searched a lot but it seems nothing works at this point So I have a contract.liq source code. I also have up and running tezos-node. Basically the question is how to deploy contract.liq to the ...
2
votes
1answer
35 views

Why is my delegation+origination appearing in red?

I used SimpleStaking wallet to delegate 2599 tezos to TezosBC baker but it doesn't seem to be going through. I tried opening with TezBox wallet and it says the account is not on the blockchain yet ...
3
votes
2answers
132 views

How to extract the storage of a smart contract?

How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos ...
4
votes
0answers
28 views

Updating a existing contract with new code and storage [duplicate]

Is it possible to update a existing deployed contract with new code & storage on the same address? It would be like adding a new version or does the updated contract have to be deployed to a new ...
2
votes
1answer
50 views

How to initialise a contract with storage (contract unit)

How do I initialise a contract with the following storage - storage (contract unit); Used after the command line parameter --init for contract deployment. I have tried various formats but none of ...
2
votes
0answers
25 views

Contracts - is events / logging going to be added?

The Ethereum Solidity contract system has a feature for adding events (logging) which can be subscribed via the RPC and also searched for (as the events are stored on the blockchain). Is there going ...
3
votes
1answer
48 views

Contract - purpose of returned internal operations?

I keep seeing contract internal operations being returned empty (stack - 'NIL operation;') in the example Tezos Michelson contracts. What is the purpose of the internal operations? Also, are there ...
3
votes
0answers
20 views

Contract : opcodes FAILWITH / FAIL - gas usage

If a contract gets to the point where it fails. What is the process in terms of gas usage? Storage gas (new storage until failure) : reverted Gas usage (used until failure) : reverted Gas fee : paid ...
3
votes
1answer
28 views

Michelson contract files - spaces, new lines and comments

I wanted to check that when a Michelson contract file is created. Do file spaces, new lines and comments increase the gas cost when deployed?
5
votes
1answer
53 views

method for calling to entry point of contract instance (?) created by contract.create

Contract A is not able to find the address of the contract created by contract.create. Tried adding the signature of B as well as it's complete definition in contract A but still, it doesn't solve the ...
9
votes
2answers
109 views

What are the new rules for when a KT1 gets destroyed? Or when “--burn-cap” must be used to send funds to a tz1/tz2/tz3 account?

What are the new rules for when a KT1 gets destroyed? Is there a certain balance that it goes below? What about tz1/tz2/tz3? I noticed that sometimes --burn-cap must be used to send funds. Why is ...
6
votes
1answer
104 views

Deploying a simple contract using liquidity

Contract (simple.liq): [%%version 1.0] type storage = int let%init storage = 0 let%entry main (parameter : int) storage = ( [], storage + parameter ) Deployment command: liquidity --tezos-node ...
3
votes
1answer
49 views

Why use transactions to call contracts?

The transaction operation can be used to transfer tez, but also to call a smart contract. This leads to security issues since a user may be tricked into calling a contract when she simply wanted to ...
8
votes
1answer
60 views

how to estimate paid_storage_size_diff?

Example: I deploy a contract(gen a multi sign address,3owners) or tranfer 0 amount to a KT1 address (for multisign address send money to a tz1 address) I can estimate fee by: https://github.com/...
-3
votes
1answer
41 views

is this RPC methods related about : deploy or call contract? [duplicate]

but the doc have't example. really bad.
4
votes
1answer
124 views

how to deploy a contract with RPC method?

at first is there any way to deploy a contract with RPC methods? if had, could give me a step by step example? why I have so much problems confusing me because the official RPC doc have't detail ...
7
votes
2answers
103 views

Get a returned value when calling a Michelson contract

A call to a Michelson contract results in a storage update and the emission of operations. Is there a simple/standard way for the called contract to return a value to the caller?