Questions tagged [origination]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
37 views

Can I create a smart contract from inside another smart contract in LIGO?

Through a parent contract, I want to be able to originate multiple child contracts. How can I do this in LIGO?
1 vote
1 answer
21 views

Is it possible to use an existing contracts storage as the seed data for a new contract that has the same storage schema?

Can you deploy a new copy of a contract with SmartPy and simultaneously copy the storage of an already existing contract that has an identical model into the freshly deployed contract?
  • 449
1 vote
1 answer
36 views

How to initialize the storage while originating a contract with storage type (pair (address %administrator) (unit %dummy))?

The contract is meant to allow transfers only from the admin. I what to initialized the admin address at origination. parameter (or (unit %default) (pair %admin_transfer (address %destination) (mutez %...
  • 11
0 votes
1 answer
54 views

Originating a contract fails with 'unexpected_lazy_storage' ONLY when exception optimisation level is set to 'full-debug'

I have a contract that originates correctly when exception_optimization_level is set to debug-message and default-line. The contract tests, compiles, and works as expected except for a bug that is ...
  • 449
0 votes
1 answer
44 views

Originate smart contract with empty arguments

I try to initialize a smart contract with five arguments being nat * timestamp * nat * timestamp * address. However, I only want to fill the last argument with some value but for the first four I try ...
2 votes
2 answers
178 views

Is it possible to originate a contract with an initial balance?

Instead of doing two operations: 1 - originate a contract 2 - transfer tez to the contract, is it possible to do both in a single operation?
  • 639
1 vote
1 answer
36 views

Trouble Initializing Contract with Lists

I am trying to learn smart contracts on Tezos and decided to originate my own. The contract is expecting the following storage: pair (pair (address %owner) (list %received ...
1 vote
2 answers
62 views

What is a 'valid case' for bls12_381_fr?

I am trying to originate a contract using bls12_381_fr types and am running into an error. The same contract originated successfully on the edo branch of the Metastate repository. Now I am running the ...
  • 639
1 vote
1 answer
72 views

Ill formed storage type in origination

Attempted to originate a contract but getting a storage type error when trying to originate it Error: proto.005-PsBabyM1.michelson_v1.ill_formed_type Error: proto.005-PsBabyM1.michelson_v1....
  • 6,016
0 votes
1 answer
105 views

Initiate a field in the storage of a contract with the source address of origination

I have the following smart contract where I pass admin address in the init function of the smart contract: (you can run it on smartPy online editor) class SC(sp.Contract): def __init__(self, ...
  • 444
4 votes
3 answers
287 views

How are the originated contract addreses (KT1) computed?

How are smart contract addresses (those that start with KT1) computed? I would like to know whether CHAIN_ID is somehow used in its computation, or it is possible to have two KT1 contracts with ...
3 votes
1 answer
47 views

How to delegate programmatically?

I have successfully implemented an origination method and it is working. Nevertheless, when I try to set a delegate to the originated address, it does nothing. I receive no errors at all from the ...
1 vote
1 answer
98 views

Tezos Origination operation - How to do it correctly from programming?

I am implementing the "delegation" and "origination" methods in TezosJ_SDK_plainJava. Occurs that, the origination method I wrote, although is creating an operation and writing it to the blockchain ...