Questions tagged [ride]

RIDE is a functional programming language, used in blockchain programming. (it is not related with the "Robot Framework IDE (RIDE) [robotframework-ide])

RIDE is a functional programming language, used in blockchain programming.

(not related to Robot Framework IDE (RIDE) , nor to Dyalog Remote IDE )

See about RIDE

47 questions
1
vote
1 answer

Ride4Dapps: TypeError Cannot read property 'length' of undefined in invokeScript

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…
1
vote
1 answer

Payment.assetId data type

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…
1
vote
1 answer

How to limit the amount of asset that someone can have in 1 wallet?

I'm trying to create a smart asset that limits every amount of assets a portfolio can have, suppose I created Age Coin (fictitious and unofficial name) and want every portfolio to have only 100 assets. The goal is to disrupt large speculators who…
1
vote
1 answer

Can you tell me how to use InvokeScriptTransaction

This is an example of the WAVES IDE. Please tell me how to use InvokeScriptTransaction to execute ‘func divideAmount ()’. # waves IDE example let Alice = Address(base58'3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8') let Bob =…
rah
  • 69
  • 3
1
vote
1 answer

In Ride4dApps, how does the deposit and withdraw dApp(the example in Waves IDE) handle the delay issue?

Their seems to be a delay write key and transferring asset which means the deposit function could be manipulated what if someone deposits then immediately withdraws the money from the invoke account the dApp will still write a record with the amount…
rah
  • 69
  • 3
1
vote
1 answer

Please tell me about smart asset

This is an example of the Waves IDE. Please let me know how to transfer this smart asset token. m(__)m match tx {case tx : TransferTransaction => let issuer = Address(base58'3MsZgp7XvTJV7TuqaZ46RJZuG2CtvcxYgC9') isDefined(getInteger(issuer,…
marchin
  • 21
  • 2
1
vote
1 answer

What is the main difference between WriteSet, TransferSet and ContractResult in Ride4dApps?

In Ride4dApps, the callable function returns WriteSet, TransferSet or a ContractResult but I still do not get the main difference between them? and who pays fees for this kind of dApps?
rah
  • 69
  • 3
1
vote
1 answer

What does the first three lines in Ride4dApps mean?

I start writhing my first dApp on RIDE language and I noticed that in smart account these 3 lines of code {-# STDLIB_VERSION 2 #-} {-# CONTENT_TYPE EXPRESSION #-} {-# SCRIPT_TYPE ACCOUNT #-} are different in ride4dapps code example in the IDE {-#…
rah
  • 69
  • 3
1
vote
1 answer

There're different types of transactions with different versions in Waves Platform, what is the main difference between them?

Why Waves have so many transaction types? In other blockchain just few of them, in Waves more than 10, why? I can’t find any reasons for it. Also there are many different versions of them. To be honest I tried to understand advantages and…
darnista
  • 71
  • 5
1
vote
1 answer

How to set a script for an asset using Waves IDE?

How to set a script for an asset manually using the IDE. Does this imply that you first create the asset and then convert it? Is there a restriction on who can set a script for an asset? such as only the creating wallet can set a script (such as…
darnista
  • 71
  • 5
1
vote
1 answer

I'm getting this error "Order rejected by script of asset" while creating an smart asset trading only with WAVES, how to fix it?

I am trying to create an asset trading only with WAVES, and I have created an smart asset on Waves testnet using RIDE language, but now, I can't trade this asset with WAVES, thanks! let WavesId = base58'WAVES' match tx { case t :…
Macie
  • 37
  • 3
1
vote
1 answer

How can I calculate fees for my smart accounts and smart assets?

I'm writing a smart contract via Waves and I need to include the correct fees for that, how to make the calculation ?
darnista
  • 71
  • 5
1
vote
1 answer

what does this error mean ? Can't process transaction with signature from scripted account. I'm using RIDE on Waves platform

I'm using RIDE language to write my code but I did not get it what is the problem exactly? did i do anything wrong? 'error': 112, 'message': "State check failed. Reason: Can't process transaction with signature from scripted account", …
sofia
  • 25
  • 3
1
vote
1 answer

How can I get string address from tx.sender in RIDE?

I'm writing a smart contract using RIDE and I need to get sender address as string, is it possible in RIDE to achieve that?
Macie
  • 37
  • 3
1
vote
1 answer

I'm testing a multi-sig contract using RIDE but I have got the following error?

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…