Questions tagged [ligo]
The ligo tag has no usage guidance.
66
questions
1
vote
1
answer
89
views
Understanding Calling limit of entry-point in Tezos smart-contract until the previous request to the contract is confirmed (block backed)
Image if I have a smart contract with entry-point increment() that increments a counter.
So if I call this entry-point for the first time and we know that it takes almost 1 minute for the operation to ...
2
votes
0
answers
47
views
How to set `contract` as input argument
I have a method Token_metadata_registry which takes contract(address) as input parameter and I would like to call that method from ligo dry-run. How do I do that?
ligo dry-run contracts/main/fa2.ligo ...
1
vote
3
answers
142
views
Tezos.get_entrypoint_opt in Ligo issue
I am trying to replace get_contract with Tezos.get_entrypoint_opt
I need to transfer FA1.2 tokens in Dex: https://github.com/madfish-solutions/quipuswap-core/blob/master/contracts/Dex.ligo#L21-L28
...
0
votes
1
answer
50
views
Error: ligo: generated. untyped BIG_MAP_EMPTY
In ligo for a smart-contract
I have a big_map in my storage and I want to pass nothing in the map as intial_storage value.
{
name = "stablecoin";
symbol = "eur";
total_supply = ...
1
vote
0
answers
24
views
Not able to get error msg generated by failWith using ConseilJS
I am trying to invoke my contract with conseiljs.TezosNodeWriter.sendContractInvocationOperation().
Everything works fine with a positive scenario but when I purposely fail the script with some error ...
1
vote
1
answer
14
views
Error in dry : different keys in tuple and record
I am trying to dry-run one contract on online Ligo IDE,
Access function :
main
Parameters :
(10n, ("tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" : address))
The logo code is compiling fine and I don't ...
1
vote
1
answer
63
views
Pascaligo map iteration issue
I try to fetch a list of addresses with expired date by appending the address to list(address).
However when doing map iteration, it encounters a persistent error says 'not True'.
Hope someone can ...
1
vote
1
answer
49
views
Pascaligo Compiling Error on Big_map.add
I encounter the below error message when compiling the code on LIGO Playground.
Error: ligo: in file "tmp-1CAIKM1VUeRgb.ligo",
line 29, characters 98-112. different kinds: {"a":"unit","b":"(...
1
vote
2
answers
196
views
Deploy FA1.2 Ligo token contract
I'm deploying the FA1.2 contract with the online LIGO IDE,
Here's a link to the SC: https://ide.ligolang.org/p/QZ85RIfszExxeDPEf_W52A
and i'm initializing the storage this way:
(Pair (Pair {} "...
1
vote
1
answer
78
views
How to add add a record to a map in CameLIGO
I'm using CameLIGO and want to add a record to a map. I keep getting this error:
Error: ligo: : Parse error in file "tmp-1lMUlWlg5fktI.ligo", line 21, characters 45-46, after "{" and before "}":
...
0
votes
1
answer
82
views
How do you update a map in Pascal Ligo?
I'm trying to learn how to write a smart contract and using Ligo. I'm struggling with quite a few things at the same time e.g. syntax, understand the documentation, best practices etc.
Baby step is, ...
5
votes
3
answers
1k
views
Testing frameworks for tezos smart-contracts
I did few smart contracts with Ligo, but now looking for more productionize setup.
Is there a test framework one can use for Tezos? I'm looking for something like waffle + mocha in Ethereum, or ...
2
votes
1
answer
54
views
Ligo Lang "unbound variable fail"
When I try to compile this contract
https://github.com/stove-labs/nft.stove-labs.com/blob/master/src/contracts/nft.ligo using the command
ligo compile-contract nft.ligo main > nft.tz
per the ...
3
votes
1
answer
242
views
Does Ligo Lang run on OSX?
I tried installing ligo lang following the instructions here: https://ligolang.org/docs/intro/installation/
I have docker running, the bash install script runs fine, but I still get -bash: ligo: ...
7
votes
4
answers
331
views
Ethereum/Solidity dev here, looking to migrate some Solidity contracts onto Tezos. Was hoping to have some light shed on a few questions
Was hoping to have some light shed on a few questions.
Narrowing in on using Ligo, Archetype, or Liquidity.
Is Liquidity kind of a dead-end right now? I noticed it's not listed on developeres.tezos....
1
vote
0
answers
37
views
Split function contract template
Is there a code template for a simple contract which splits the incoming funds and sends them proportionally to a list of pre-registered addresses?
Example:
Contract has the following functions:
...