Skip to main content

Questions tagged [astar]

Questions that are specific to Astar's implementation of a Substrate node.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

How to calculate the TVL in Astar dapp staking?

Is it possible to calculate the TVL of dapp staking on Astar using the data from the storage function dappStaking.contractStake, and if so, how would one do it?
Roger J Bos CFA's user avatar
1 vote
1 answer
21 views

How to crate example daap on Astar network

I would like to be a developer on Astar network. How to crate example daap on Astar network
baunvb's user avatar
  • 11
0 votes
0 answers
21 views

Sent MNT in Mantle blockchain using ASTR destination, how to recover?

I made a stupid mistake: I wanted to move some ASTR from EVM address managed by Metamask, to native address managed by polkadot.js. But I initiated transaction in Metamask while being on Mantle ...
DimaA6_ABC's user avatar
0 votes
1 answer
43 views

dApp Staking - Migration from v2 to v3

Please, I need help on the Stakes topic in v2 to v3. There's a thread on the forum, but I realized I can't participate in the questions there. Sorry, I'm new to these processes and would like to know ...
IsaLeal's user avatar
0 votes
0 answers
25 views

How to implement XC-20 standard

I need help understanding XC-20 implementation and how its components interact. Suppose I run a parachain (ParaA) that aims to supports XC-20. I need to include Frontier so ParaA is fully EVM ...
magecnion's user avatar
  • 242
0 votes
1 answer
45 views

How to sign with private key(Not secret key) that was created by "RFC-8032"(described below contents) on offline?

Backgrounds I am working on "ASTAR" parachain scene(TestNet: Shibuya). I can sign message(unsigned-transaction) on offline environment and then broadcast signed-messaged(signed-transaction). ...
JOHNNY JI's user avatar
0 votes
1 answer
25 views

Swanky throws error on inititating smart contract:- error install deps "ERROR: [Errno 2] No such file or directory: 'install' "

I'm trying to init a smart contract using swanky and i get this error below. I even tried changing my node version to 18.10.0. It doesn't fix it. Am I missing anything?
HunnyPawt's user avatar
1 vote
1 answer
60 views

How to create wrapped DOT asset on local setup

Local setup: Zombienet running Shiden and Relay Chain. What are the exact steps needed to create an asset which represents DOT on Shiden (wrapped DOT). More specifically, I am trying to create the ...
Snowmead's user avatar
  • 625
3 votes
1 answer
131 views

How to transfer wrapped DOT from Astar to Polkadot using XCM

How do you tranfer wrapped DOT (AssetId: 340,282,366,920,938,463,463,374,607,431,768,211,455) on Astar/Shiden to Polkadot/Kusama using XCM? Following this guide from Astar XCM documentation, this ...
Snowmead's user avatar
  • 625
1 vote
0 answers
20 views

"ContractTrapped" Error even with successful cross-contract call

let result_call = ink::env::call::build_call::<Environment>() .call(self.escrow_address) .gas_limit(0) .transferred_value(0) ...
Parth's user avatar
  • 11
1 vote
1 answer
61 views

How to pass value as a argument in send transactions?

An error occurred: 'Expected 2 arguments for the contract message 'vote', but only 1 was provided.First argument was number type, and the second one was Enum . This error arises when attempting to ...
Mozammil Raja's user avatar
0 votes
0 answers
62 views

Unable to verify WASM contract in Substrate Astar

I'm encountering difficulties while attempting to verify my WASM smart contract through Astar's Subscan tool. Despite multiple attempts using various options, the verification process remains ...
Tom Rowbotham's user avatar
1 vote
1 answer
56 views

Why is this cross-contract call misbehaving?

#[ink(message)] pub fn create_new_better_payment( &mut self, _value: Balance, _arbiter_provider: AccountId, _deadline: u64, //...
ATV3320's user avatar
  • 31
0 votes
1 answer
27 views

Problem shibuya deploy contract

I have tokens from faucet in Shibuya. I ran the command cargo contract build for flipper contract. When I want to deploy contract using Upload & deploy code, I have contracts.instantiateWithCode ...
Nico John's user avatar
0 votes
1 answer
78 views

Get contract address from instantiated ContractRef

Based on this example I'm doing something similar: #[ink(message)] pub fn new_multisig(&mut self, threshold: u8, owners_list: Vec<AccountId>, salt: Vec<u8>) { let ...
Luca Auet's user avatar
0 votes
0 answers
33 views

Unable to recognise Shibuya account address to deploy an EVM contract on Shibuya network using Truffle

I want to make an XVM call from an ink! contract that is deployed to the Shibuya Wasm environment to a Solidity EVM contract that is deployed to the Shibuya EVM environment. To deploy the Solidity ...
Luke Schoen's user avatar
  • 2,332
6 votes
3 answers
165 views

Error WeightNotComputable - XCM Transaction

I am getting the XCM error of WeightNotComputable. What could be the cause of this? Here is the XCM code which fails.
Snowmead's user avatar
  • 625
3 votes
1 answer
69 views

Error AssetNotFound - How to send XCM Instruction::Transact?

I have a couple of questions related to sending XCM messages. More specifically, I am trying to send a message from an Astar node to the Polkadot relay chain. The XCM message contains the Instruction::...
Snowmead's user avatar
  • 625
3 votes
1 answer
67 views

duplicate lang item in crate `ink_env` - astar-frame/astar

Trying to build Astar shibuya-runtime crate is failing after adding the ink_env dependency an astar-frame chain-extension. Here are the changes to both Astar and astar-frame. Run: cargo build --...
Snowmead's user avatar
  • 625
5 votes
1 answer
73 views

Trait item implementation is missing: `reserve_withdraw_assets`

I am running the Astar node locally and pointing to the astar-frame repository which is cloned on my local machine. In the Astar node repository, I added the paths-override method to the point all ...
Snowmead's user avatar
  • 625
4 votes
1 answer
148 views

How can I retrieve the baseFeePerGas value for historical blocks on Astar?

I want to calculate fees for historical EIP-1559 transactions on Astar EVM. For this, I need to use the GasPrice formula: GasPrice = BaseFee + MaxPriorityFeePerGas < MaxFeePerGas ? BaseFee ...
pjozvtg's user avatar
  • 75
3 votes
1 answer
93 views

Cargo-contract forcibly calls nightly-2022-06-30 regardless of specified toolchain

I am experiencing an issue when using cargo-contract (version 1.5.1) to build a project (command: cargo +nightly contract build). The specified toolchain is not being recognized, and the process is ...
Yasu Yasu's user avatar
2 votes
0 answers
60 views

Astar XCM Precompile

I'm running a local node using zombienet, I tried to access to XCM Precompile following this guide but when I instantiate the contract and call assets_reserve_transfer method it does not work. I only ...
Ruben G's user avatar
  • 333
1 vote
0 answers
88 views

how withdraw astar frontier tip reward with alice in dev mode, i use evm.withdraw(0x15fdd31c61141abd04a99fd6822c8558854ccde3, 1) report "bad Origin"

[] https://github.com/AstarNetwork/Astar.git ./target/release/astar-collator --dev -d ./data -l info astar frontier evm use HashedAddressMapping in evm pallet alice public key is ...
Smith's user avatar
  • 141
0 votes
3 answers
70 views

still can't find the #shibuya-faucet channel

On the Astar Network'discord chnanel, I still can't find the #shibuya-faucet channel.I tried bellow action.anyone who can tell met the countermeasure? When I try to execute the contents of 3 and 4 I ...
taboopython's user avatar
0 votes
1 answer
55 views

How to deploy smart contract in ink which constructor takes value in params

I have written an erc20 smart contract in ink(Rust). The contract has been compiled successfully. But I got an error while deploying my smart contract. Basically, the contract constructor takes ...
Chetan Ukani's user avatar
3 votes
1 answer
45 views

Error running Astar parachains with zombienet

I'm following this example but I always get an error: My config.toml: [settings] timeout = 1000 [relaychain] default_command = "./bin/polkadot" default_args = [ "-lparachain=debug&...
Ruben G's user avatar
  • 333
1 vote
2 answers
95 views

How to send Astar using Python(SubstrateInterface)

I want to automate sending astar(NOT EVM) with Python(SubstrateInterface). I received an error when executing the following code. # Imports from substrateinterface import SubstrateInterface, ...
shinji's user avatar
  • 13
1 vote
0 answers
124 views

How to calculate claimable rewards from dApp Staking on Astar and Shibuya across multiple eras and multiple dApps?

Hi~ I have some questions about the developer staking process. I am using polkadot-api, developer staking part on shibuya-network. At portal.astar.network, I can see staking info on the dApp Staking ...
지상범's user avatar
3 votes
1 answer
231 views

How to make rawTransaction? and Can I get some guide or reference about offchain sign?

[Question] How can I make raw-transaction(unsigned-transaction) with essential parameter(fromAddress, toAddress, value, nonce, fee etc)? I want to know low-level algorithm. What kind of Cryptography ...
지상범's user avatar
1 vote
1 answer
117 views

Astar RPC endpoint returns error between block 1558933 to block 1848933

I am trying to query the historical data (tx, ownership, etc.) of Cosmize Ticket NFT on Astar EVM. I got the error message when querying between block 1558933 to block 1848933. Below is how to ...
Ben's user avatar
  • 11
0 votes
1 answer
48 views

Chain extension for pallet_utility

I want to use the as_derivative function from pallet_utility in my ink! smart contract, and also use psp34 from Openbush. What steps do I need to follow to create a chain extension for pallet_utility ...
Storm's user avatar
  • 1
1 vote
1 answer
71 views

How to handle TX error on dapp frontend?

Testing contract on polkadotjs, we can easily see user defined or error given by runtime like this: But working with same contract in frontend I am not able to handle error response in frontend. ...
Ganesh11's user avatar
  • 1,241
1 vote
1 answer
81 views

how to treat u256 in ink?

I want to use U256 in ink! but I've got some a error although I imported primitive_types/std.... how can I solve it? use primitive_types::U256; pub mod liquidity_num { pub const MIN_TICK: i32 = -...
Steve's user avatar
  • 83
0 votes
1 answer
81 views

ENOENT: no such file or directory on compile and deploy swanky contract

This issue display when I clone the swanky project from GH and try to compile. swanky contract compile {project_name} I try to ignore the issue which display while compiling and try to deploy and got ...
Ganesh11's user avatar
  • 1,241
1 vote
1 answer
26 views

config file is not one of the known types

I am following How to setup zombienet for XCM testing tutorial. But faced error hear. Any suggestion would help a lot.
Ganesh11's user avatar
  • 1,241
1 vote
1 answer
55 views

Recommended way of local development flow for swanky-cli

Right now contract compilation and deployment results in bunch of artifacts and edits to swanky.config.json. I'm just curious what's recommended flow of dealing with those changes or developing smart ...
Kasper Ziemianek's user avatar
0 votes
2 answers
100 views

Error Compling Contract

I am just starting with wasm and ink. I have installed the following dependency: npm install -g @astar-network/swanky-cli I am trying to compile the contract flipper and I get the following warnings ...
Sequajaa's user avatar
0 votes
1 answer
136 views

"new CodePromise" now throws an error [ Issue of Weight V2] [duplicate]

I implemented this sample(https://github.com/realtakahashi/polkadot_js_examples) about 3 months ago This sample works on astar-collator v4.33.0, but does not work on v4.39.0 I got an error when &...
s.Takahashi's user avatar
0 votes
1 answer
32 views

Getting canonicalize elem error on Rococo fork [closed]

We are getting the error message below on Astar's custom relay chain, forked from Rococo, runtime is rococo/9310. Could not canonicalize elem at pos 1549631 using key [12, 109, 109, 114, 63, 165, 23, ...
bLd's user avatar
  • 182
1 vote
1 answer
87 views

Astar error commpiling Swanky

Trying to compile smart contract and it gives me this error, in charge .toml I put the direct routes and nothing. Other smart contracts compile with ink! properly. Command I use: cargo +nightly ...
pablo blanco's user avatar
1 vote
1 answer
37 views

Does api.query.session.validators return a Collators list on Astar Network?

As a title, I'd like to confirm that api.query.session.validators interface return a Collators list on Astar Network to check if our collator works well.
user3563's user avatar
0 votes
1 answer
72 views

How to get human-readable ASTR balance in Golang

This question is continued from How to get ASTR balance via json rpc. I understood calculating StorageKey from Publickey is needed. It seems that calculating StorageKey and decoding rpc-json responses ...
user3563's user avatar
0 votes
1 answer
83 views

How to get ASTR balance via json rpc

team. I'd like to get the $ASTR balance of the specific address. I found that I can do it by calling api.query.system.account(address) with polkadot.js, but I have to write the balance fetcher program ...
user3562's user avatar
1 vote
1 answer
85 views

How to set gasPrice using hardhat in EVM smart contract

I was developing a contract on EVM on Shibuya, Astar Network's testnet. I'm using hardhat. We successfully deployed to Shibuya testnet and Shiden network using the following settings. But it doesn't ...
s.Takahashi's user avatar
0 votes
1 answer
27 views

How to find "deploymentTimeStamp" which use when I will execute the command "swanky call" with swanky-cli

% swanky --version @astar-network/swanky-cli/1.0.0-beta.4 darwin-x64 node-v16.4.0 I used "swanky cli" to deploy the contract to swanky-node. % swanky contract deploy flipper --gas ...
s.Takahashi's user avatar
1 vote
1 answer
75 views

Astar Startup Error after upgrading from version v4.23.0 to v4.33.0

Good day, everyone! I'm running an Astar validator node. When I upgraded the version from v4.23.0 to v4.33.0, an error occurred. 2022-11-24 02:06:57 Astar Collator 2022-11-24 02:06:57 :vサイン: version ...
Satish's user avatar
  • 23
2 votes
1 answer
530 views

How to verify EVM contracts with openzeppelin using subscan or blockscout

source code: // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; import "hardhat/console....
s.Takahashi's user avatar
3 votes
1 answer
73 views

Best practices for handling my own errors and openbrush's errors?

I am using ink! to implement the contract. I have implemented my own error, and the contract function has this own error as a return value. For example, suppose that function implements openbrush's ...
s.Takahashi's user avatar
1 vote
2 answers
159 views

Error Installing dependencies on Swanky project init

I recently update Swanky Suite latest version @astar-network/swanky-cli/0.2.1 darwin-x64 node-v16.14.0. I create new project with swanky init my_project but throws Error Installing dependencies. Is ...
Ganesh11's user avatar
  • 1,241