Questions tagged [vyper]

Vyper is a smart contract development language which can be used in place of Solidity.

Vyper is a smart contract development language which can be used in place of Solidity.

In the words of Vyper developers themselves, Vyper

will deliberately forbid things or make things harder if it deems fit to do so for the goal of increasing security.

There are three main goals of Vyper:

  • Security - it should be possible and natural to build secure smart contracts in Vyper.
  • Language and compiler simplicity - the language and the compiler implementation should strive to be simple.
  • Auditability - Vyper code should be maximally human-readable. Furthermore, it should be maximally difficult to write misleading code. Simplicity for the reader is more important than simplicity for the writer, and simplicity for readers with low prior experience with Vyper (and low prior experience with programming in general) is particularly important.

Useful Links: Github

20 questions
0
votes
3 answers

StateAccessViolation: Value must be a literal - Vyper Ethereum smart contract

Version Information vyper Version (output of vyper --version): 0.2.8+commit.069936f OS: osx Python Version (output of python --version): Python 2.7.16 Environment (output of pip…
Liam O'Toole
  • 167
  • 3
  • 13
0
votes
2 answers

How to de/encode bytes into an address array in Vyper?

I'm trying to implement Aave flash loan receiver in Vyper https://developers.aave.com/#implementing-a-flashloanreceiver-contract and I need to pass it an array of addresses as 'bytes memory _params' arg. Any ideas how do I encode an array of…
Sergey
  • 4,702
  • 6
  • 26
  • 32
0
votes
1 answer

Create new contracts from a contract Vyper

Is there any way to create any child contracts from a contract, example when someone call "createChildContract()" function. In solidity, simply using new operator sold the problem, how about vyper? Many thanks !
hongdang
  • 87
  • 4
0
votes
2 answers

Pay a user's gas: Ethereum

I need some assistance. I am working on a smart contract that will allow a user to save a string (mapping(address=>string)). The only problem, I would like the contract to pay for the gas for the user to save the string. Any idea on how to
-3
votes
1 answer

Creating a custom type bytes32 as a 32-bit-wide byte array with Rust

bytes32 is a type that is a 32-bit-wide byte array in Vyper. The following is from https://github.com/ethereum/vyper/blob/master/docs/types.rst#32-bit-wide-byte-array: 32-bit-wide Byte Array Keyword: bytes32 This is a 32-bit-wide byte array that is…
James Ray
  • 424
  • 3
  • 15
1
2