Questions tagged [vyper]
The Python-like smart contract programming language
1
vote
1answer
28 views
Uint256 division in vyper (and solidity)
Floating point division is not supported in solidity as mentioned here: How can I perform float type division in solidity?
I want to divide two uint256 numbers and save them as a decimal, retaining ...
0
votes
2answers
48 views
Vyper and ethereum: how do I read a public constant function on another contract?
I'd like to call a constant function on one contract (X) from another contract (Y). I have the ABI and address for X. X and Y are both on Ropsten. I can interact with X fine using, for example, MEW.
...
2
votes
0answers
32 views
query about function call in ethereum vyper [closed]
How the function will be called in vyper while compiling?, how the variables will be declared and how the data will be mapped to that variables?
0
votes
1answer
82 views
Vyper: Truffle test read mapping value inside struct
I have the following struct inside my vyper file:
races: public({
start: timestamp,
end: timestamp,
racersBetHash: bytes32[address],
racersBetAmount: wei_value[address]
}[int128])
Then I ...
1
vote
0answers
22 views
Vyper OPCODES gas estimate at compile time
I am trying to dissect Vyper at lower levels to understand how the gas estimates are generated. I tried following the yellow paper and I searched every single line of the compiler but I can't get it ...
1
vote
0answers
120 views
What are the downsides of using vyper and truffle together
Recently I read an article Vyper+Truffle and wanted to build a token deployer using vyper contracts.
I was wondering if anyone knew the current downsides of using Vyper and truffle together?
Is it ...
3
votes
1answer
77 views
When is Vyper going to be production ready?
At a high level, Vyper seems like a much more adoptable language compared to Solidity. Everywhere I look, Vyper is still considered to be "experimental".
Any idea of when it will be production ready? ...
1
vote
0answers
81 views
Anyway to tell what Vyper can and cannot accomplish compared to Solidity?
After studying both Solidity and Vyper, I really like Vyper's strong security and simplicity. However one thing got me somehow worried, is that unlike Solidity, Vyper is not a Turing Complete language....
1
vote
1answer
111 views
Vyper and strings
How can I manipulate strings in Vyper?
In solidity I could use Nick Johnson's string library. He's using assembly to do that. But that's not possible with Vyper as far as I know.
0
votes
1answer
228 views
How to resolve Vyper installation error: fatal error: leveldb/db.h
Created a virtualenv with python3.6 and performed the following steps
git clone https://github.com/ethereum/vyper.git
cd vyper
make
I see following error(s):
Downloading https://files.pythonhosted....
0
votes
0answers
55 views
vyper dynamic encoding types offsets
I'm looking at dynamic types
and I'm trying to understand the encoded example
f(uint,uint32[],bytes10,bytes)
with values
(0x123, [0x456, 0x789], "1234567890", "Hello, world!")
to get the offset ...
0
votes
1answer
72 views
How to fix an error with Vyper: invalid syntax (, line 168)
I'm trying to figure out why the following line is giving the error at https://vyper.online/: invalid syntax (, line 168).
Line 168 is self.collator_pool.empty_slots_stack_top] = index).
@internal
...
1
vote
1answer
104 views
How to launch test with Viper?
I would like to switch the smart contract compiler from Solidity to Viper. I'm following the Viper support page found in Populus documentation.
This is what I get at the final step:
Mac:tutorial ...
7
votes
2answers
6k views
Solidity vs Viper? [closed]
I am new to smart contract development and I really want to understand how it all works, and start programming smart contracts.
I don't care for JavaScript syntax, but I love Python. I know Serpent ...
2
votes
1answer
422 views
How to call the functions of Ethereum Smart Contract from Android/iOS application?
I've been learning solidity & viper for some time now but i am wondering if it's possible to call the functions/methods of a smart contract (already deployed on Ethereum Network) from an Android/...
5
votes
2answers
8k views
Are there any implementations of smart contracts in Python?
I want to implement some smart contracts and I am strongest in python.
8
votes
1answer
488 views
How to install and test Viper programming language?
Viper is a new functional, strongly typed, bounds/overflow-checking, fixed-point-decimal python syntax-based HLL. The repository does not inlcude any documentation yet.
I built and installed ...