Questions tagged [vyper]

Vyper is a contract-oriented, pythonic programming language that targets the Ethereum Virtual Machine.

Filter by
Sorted by
Tagged with
5
votes
3answers
9k views

Are there any implementations of smart contracts in Python?

I want to implement some smart contracts and I am strongest in python.
2
votes
1answer
100 views

Does Vyper have an equivalent CHAINID assembly function?

Since v0.5.12, Solidity provides a CHAINID OPCODE in assembly: function getChainID() external view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } ...
1
vote
1answer
179 views

How to input decimal parameter in web3.py?

I have a contract with this abi [ { "stateMutability": "nonpayable", "type": "constructor", "inputs": [ {"name": "...
1
vote
1answer
378 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 ...
1
vote
1answer
125 views

Vyper binary fixed point vs Decimal fixed point

there is something i do not understand in Vyper documentation: https://vyper.readthedocs.io/en/stable/index.html Binary fixed point: Decimal fixed point is better, because any decimal fixed point ...