1 bog8304552146c/ElrondDevelopers 2years ago Will this still work if there are multiple generation rate chages between 2 claims without missing rewords?
1 bog8304552146c/ElrondDevelopers 2years ago The way I understand this is if the contract owner changes this to a lower value before the user claims the rewords he will miss on a possibility of claiming rewords using a higher value per_block. Is this correct?
1 bog8304552146c/ElrondDevelopers 2years ago I'm trying to test a call from contract A to contract B in mandos. Can I use multiple deploy statements in a scenario?
1 bog8304552146c/ElrondDevelopers 2years ago It works fine. Check the obvious first. Are you on the pem tab when you upload the file? Try regenerating the pem?
1 bog8304552146c/ElrondDevelopers 2years ago this seams to have bean renamed to direct_esdt I'm a bit confused about the token_nonce can I still use zero as value for this field?
1 bog8304552146c/ElrondDevelopers 2years ago I'm migrating from 0.30.0 to 0.34.0 69 | let balance: BigUint = self.blockchain().get_sc_balance(&my_token_id, 0); | ^^^^^^^^^^^^ expected struct `EgldOrEsdtTokenIdentifier`, found struct `TokenIdentifier` How do I convert Toke... Read more
2 bog8304552146c/ElrondDevelopers 2years ago How do you query an endpoint withoud actualy commiting a transaction? Do you have an example please?
1 bog8304552146c/ElrondDevelopers 2years ago Is there a shortcut to estimate how mutch gass will a certin razaction cost? Is there an option to do this from elrondnetwork/dapp-core ?
1 bog8304552146c/ElrondDevelopers 2years ago This seams more strateforward. Do you have an example on how to send this tranzaction with daap-core ?
1 bog8304552146c/ElrondDevelopers 2years ago I'm trying to create a staking contract. I'm using self.blockchain().get_block_timestamp(); to figure out the amount of rewords that I should give to the client when it unstakes, claim, reinvest etc.. All is good in the mentioned cases. The problem arises in my report method. I have a mandos tests ... Read more
1 bog8304552146c/ElrondDevelopers 2years ago For a contract view that accepts a list of managed buffers I was able to query from erdjs the view like this: let abi = new SmartContractAbi(abiRegistry, [`MyContract`]); let contract = new SmartContract({ address: address, abi: abi, }); let interaction: Interaction = co... Read more
1 bog8304552146c/ElrondDevelopers 2years ago I'm trying to refactor a VecMapper to UnorderedSetMapper. Previousely this is how my mandos check looked like "str:clientList|str:.len": "1", "str:clientList|str:.item|u32:1": "address:client1" # how the mapper looks now #[view(getClientList)] #[storage_mapper("clien... Read more
1 bog8304552146c/ElrondDevelopers 2years ago I understand that getting listed on any exchange is a very sensitive topic. This is specially true now when the market acts so irrational. Is there a person of contact that I need to connect with in order to have a clear road-map for listing 1 project on Maiar-Exchange?
1 bog8304552146c/ElrondDevelopers 2years ago How do you check a bool field value in mandos? "3-contract_is_active": "bool:true", ?
1 bog8304552146c/ElrondDevelopers 2years ago For storage SingleValueMapper how do you check that this value exists so you do not override it my mistake?
1 bog8304552146c/ElrondDevelopers 2years ago How do you get rust analyzer work with nightly toolchain?
1 bog8304552146c/ElrondDevelopers 2years ago There is no documentation on how to use rust testing framework. How to setup your environment now to run tests how to put brakepoints how to inspect variables and soo one. I wouls that I find somewhere instructions on how to debug contracts. When you come from different programming languages to elro... Read more
1 bog8304552146c/ElrondDevelopers 2years ago How do I pass a wallet address as a param to a view endpoint end then convert that to a ManagedAddress ?
1 bog8304552146c/ElrondDevelopers 2years ago I'm puzzled. I just added a simple unstake method but I'm not able to hit it using mandos. Even more it seams that mandos for this particular method call it just succeds and intrements the nonce without actual the respective endpoint to exist in the contract. { "step": "scCall", "txId":... Read more
1 bog8304552146c/ElrondDevelopers 2years ago is there a way to remove multiple items in one atomic operation by their indices in the current VecMapper?
2 bog8304552146c/ElrondDevelopers 2years ago How is sc_print! supose to be used? can I use it when I need debug support?
1 bog8304552146c/ElrondDevelopers 2years ago After updating to wasm 0.31 dependencies all my deploy tests are now failing. This used to work { "step": "scDeploy", "txId": "deploy", "tx": { "from": "address:owner", "contractCode": "file:../output/xlauncher-staking.wasm", "arguments": [ "str:B... Read more
1 bog8304552146c/ElrondDevelopers 2years ago In case I iterate over a stored VecMapper and along the way I update the iterated items and at some point I decide to sc_panic("That is not supose to happen"); Will the iterated and modified structs be left unchanged ?
1 bog8304552146c/ElrondDevelopers 2years ago I have this struct pub struct Pull { pub id: u64, pub locking_time_span: u64, pub apy_configuration: ManagedVec, } and I need at init time to have apy_configuration initialized to an empty vector. How do I initialize an empty ManagedVec ?
1 bog8304552146c/ElrondDevelopers 2years ago Yes. How do I check the name for the created nft in the test?
1 bog8304552146c/ElrondDevelopers 2years ago Ill try to see If I can figure out how to check for name. nft_update_attributes does not have name param. I take it that is not possible to update the name?
1 bog8304552146c/ElrondDevelopers 2years ago Is the name param from the esdt_nft_create ignored? https://docs.elrond.com/developers/developer-reference/elrond-wasm-api-functions/#esdt_nft_create In this test I can see that you pass the name and in the smart contract creation code this name is used but is nowhere to be found in the checkState ... Read more
1 bog8304552146c/ElrondDevelopers 2years ago Yes. I can see that It works. I'm asking for the future. What is the point of deprecating it if we do hot have an alternative?
1 bog8304552146c/ElrondDevelopers 2years ago Something is nit not quite write. It seams that I'm failing to interate on this example but with a nested struct. This is what I'm trying "str:clientStateclient1": { "str:vec_mapper.len": "1", "str:vec_mapper.item:u32:1": { "1-pull_id": "... Read more
1 bog8304552146c/ElrondDevelopers 2years ago The blockTimeStamp does it work sthe same as unix time stamp or it gets reset with every block?
1 bog8304552146c/ElrondDevelopers 2years ago This is from nft template { "step": "scCall", "txId": "buy-nft-1", "tx": { "from": "address:buyer", "to": "sc:my-contract", "egldValue": "500", "function": "buyNft", "arguments": [ "1" ], "gasLimit": "20,000,000", ... Read more
1 bog8304552146c/ElrondDevelopers 2years ago How should i format my stakingSettings from the checks ? ??
1 bog8304552146c/ElrondDevelopers 2years ago Is it ok co tonsider adding a list that will hold the id's of the lotieries? And in case I need some reporting done I will get the id's from that list?
1 bog8304552146c/ElrondDevelopers 2years ago I'm analizing the lottery contract. This is the storadge for the loteryInfo #[view(getLotteryInfo)] #[storage_mapper("lotteryInfo")] fn lottery_info(&self, lottery_name: &BoxedBytes) -> SingleValueMapper>; How would I write a method that interates over all the loterie... Read more
1 bog8304552146c/ElrondDevelopers 2years ago Yes. That is correct. Can you point me to an example please?
1 bog8304552146c/ElrondDevelopers 2years ago Is it possible to call other smart contract endpoint if you only know the contract address?
1 bog8304552146c/ElrondDevelopers 2years ago I see this for getting the elgd balance of a wallet get_balance(address: &ManagedAddress) -> BigUint How do I get the balance of a specific token ?
1 bog8304552146c/ElrondDevelopers 2years ago I'm tring to fix the tests from an older project that was indpired by nft-minter. the template used to have mamdos test now this is missing. Is hard to see where is failing because mandos does not report the test line but this used to work and now I get this error: Scenario: 02_create_nft.scen.jso... Read more
1 bog8304552146c/ElrondDevelopers 2years ago Where are the templates located (github) that elrond IDE is generating when you create a new project?
1 bog8304552146c/ElrondDevelopers 2years ago That would work. I do not need to put in a acript I just need to compute the dress of my deployed contract. Do you have on example on how to use it in javascript?
1 bog8304552146c/ElrondDevelopers 2years ago I'm guessing that there is a bug in the latest version of erdpy! This method is not exposed by erdpy? I will have to build my own compute address script based on the current walet nouce after deploy. How do I questions: - get my address pubkey() ? (is this my address converted to byptes?) - get my ... Read more