wavesplatform.com | Waves platform official website | Web Site library
kandi X-RAY | wavesplatform.com Summary
kandi X-RAY | wavesplatform.com Summary
Waves website source code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wavesplatform.com
wavesplatform.com Key Features
wavesplatform.com Examples and Code Snippets
Community Discussions
Trending Discussions on wavesplatform.com
QUESTION
I'm trying to use built-in function "sha256" in my Waves dApp. https://docs.wavesplatform.com/en/ride/built-in-functions.html
'DataEntry("sha256_kotobytesto64", toBase64String(sha256(toBytes("Message to hash"))))'
But it seems like the result of this function is not the same as major open source sha256 implementations (https://www.xorbin.com/tools/sha256-hash-calculator):
Text: Message to hash
RIDE: 8apFsPX2cDRo+bm8K5h01PprABoXDQ8TKqWibQDQx+U=
Standart: f1aa45b0f5f6703468f9b9bc2b9874d4fa6b001a170d0f132aa5a26d00d0c7e5
How to solve it?
...ANSWER
Answered 2019-May-02 at 14:15Those are the same value, encoded in different ways. The "RIDE" result is in base-64, and the "Standart [sic]" result is in hexadecimal (base-16).
Here's Python code to convert from one to the other:
QUESTION
I'm trying to execute wallet.ride example and I've got some issue with this:
broadcast(invokeScript({contractAddress: address(env.accounts[1]), call:{function:"deposit",args:[]}, payment: [{amount: 300000000, asset:null }]}))
TypeError: Cannot read property 'length' of undefined
How to fix that?
...ANSWER
Answered 2019-Apr-10 at 11:54Solved! look at: fee = 100000000 and dappAddress instead contractAddress
QUESTION
I'm trying to deal with the example https://docs.wavesplatform.com/en/smart-contracts/ride4dapps/examples.html and change it a bit to extend it to any types of assets. It is not clear what type of data is returned to the function and how to bring it to the string so that it can be written to the state later.
...ANSWER
Answered 2019-Apr-05 at 18:24If you try to compile your code you'll see an error like below
QUESTION
I'm trying to test out creating a multi-sig test but I keep on running into the same issue => Error occured Error: State check failed. Reason: negative waves balance: 3MwqXaytrPKxhCBaa4pc36SHjFYtqoMo2gX, old: 0, new: -1000000 I've imported the seed into client, and the waves address I get is 3P9rLYJniWsMKeUzq95bzYp7694ffwWbWEG which has 0.2 Waves. Why is the account address provided with ide.wavesplatform.com different from the address I get from importing the seed phrase into client?
...ANSWER
Answered 2019-Feb-27 at 14:33Maybe you used the mainnet client but on ide.wavesplatform.com uses testnet, or the other way round that would be the most reasonable explanation. It could also be that in one of both cases you have an extra space somewhere (mostly at the end) in the seed.
Yes the IDE by default is set to testnet, you can set the network byte in IDE in settings (top right corner):
- for testnet, Node URL: https://testnodes.wavesnodes.com and T=testnet.
- for main net, Node URL: http://nodes.wavesnodes.com and W=mainnet.
QUESTION
I want to implement Wavesplatform wrapper on ruby for my project. I'm stuck right in the beginning, trying to implement example from Docs with Base58 and Bitcoin alphabet.
The string "teststring" are coded into the bytes [5, 83, 9, -20, 82, -65, 120, -11]. The bytes [1, 2, 3, 4, 5] are coded into the string "7bWpTW".
I use BaseX gem
...ANSWER
Answered 2017-Sep-04 at 15:28pack
/unpack
won’t much help here: the size is undetermined and the integer you get might contain (and in most cases contains) many bytes. One should code a bit here:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wavesplatform.com
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page