Questions tagged [migration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
41 views

Token migration and IDEX smart contract problem

During a recent token migration from token A to token B, a large number of token A were held by a number of people in an IDEX address (where it was ready to trade). The IDEX address is part of a smart ...
1
vote
1answer
24 views

Migrate contract from testnet to mainnet

What is the safest way to migrate a contracted deployed in a testnet (Rinkeby) to mainnet? I can change the configuration of my truffle project and read the code from my git repository, but is there ...
0
votes
0answers
66 views

“Migrations” hit an invalid opcode while deploying on deploy Migrations.sol with Truffle

An error occurs when truffle migrate try to deploy Migrations.sol contract, i don't understand why pragma solidity >=0.4.21 <0.6.0; contract Migrations { address public owner; uint public ...
0
votes
1answer
175 views

TRUFFE MIGRATE: Saving migration to chain.Error: Error: Error: Returned error: VM Exception while processing transaction: invalid opcode

$ truffle migrate Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile. Starting migrations... ====================== > Network name: ...
0
votes
0answers
13 views

Want to understand token migration

Can anyone please explain the process of Token migration from one network to another network, Like omesi go and tron has done. they first lauch there own ERC20 token over ethereum and later migrated ...
2
votes
1answer
101 views

Ethereum smart contract update, transactions and events

I have a question about versioning of smart contracts in Ethereum. Lots of articles have been written about how to decouple your logic and data, how to use interfaces when referencing other contracts, ...
2
votes
0answers
39 views

Tracking Non-Deployer Transaction Gas Use In Truffle Migrate

In Truffle, gas used by a Migration in deployer.deploy() is tracked by a Reporter using events emitted by the Migration. If I have code of the form: deployer.deploy(MyContract) .then(instance =>...
1
vote
0answers
16 views

Extracting mapping structure from storage of smart contract

Is there a way to extract data stored in the mapping structure without the keys by simply reading the smart contract's storage? Also, what is the inline assembly for inserting a value in mapping using ...
0
votes
0answers
121 views

How to `truffle migrate` to private permissioned network?

I am running a private permissioned network and would like to use Truffle v5.0.1 for deployment. I use it according to the documentation: Compile my project with truffle compile so that the ./build ...
0
votes
1answer
237 views

Migrates contract with specific account without hard-code address using truffle and Genache

Block Builders! I am trying to migrate my two smart contracts using truffle and Genache. I would like to specify the deploying accounts existing locally. However, when I try to migrate the contracts I ...
1
vote
1answer
39 views

Migration internal storage to a new smart contract

What is currently the best way to migrate data from one contract for example the mapping to a new one?
0
votes
1answer
24 views

How does EtherDelta migrates mapping?

I'm looking at EtherDelta contract, and -- provided it had been migrated several times in the past and probably foresees future migrations -- I'm confused as I don't see any method by which the owner ...
0
votes
1answer
161 views

perigord test: “authentication needed: password or unlock”?

Follow these: https://decentralize.today/introducing-perigord-golang-tools-for-ethereum-dapp-development-60556c2d9fd https://www.youtube.com/watch?v=oQZtKf_hzOU Running perigord deploy, enter "blah":...
2
votes
1answer
1k views

How do I make truffle migrate replace just one contract?

I have a dapp consisting of two contracts, which don't particularly have a dependency on each other or know about each other. I want to replace one of the contracts, but not the other one. If I did ...
0
votes
1answer
220 views

Truffle “Replacing” durring migration

what does "Replacing" mean in migration? a simple test contract C.sol: pragma solidity ^0.4.17; contract C{ uint public ConstructorUint; function C(uint SetConstructorUint)public{ ...
0
votes
2answers
190 views

How to communicate with a deployed token?

Using Truffle, I am trying to deploy the following contract: pragma solidity ^0.4.13; contract ERC20Events { event Approval(address indexed src, address indexed guy, uint wad); event ...
5
votes
4answers
714 views

I can't verify my contract on the Rinkeby etherscan site

I'm getting the following error when verifying on the RINKEBY etherscan site: Error! Unable to verify source code Exception #1 Occured: ERROR|The Contract solidity compilation has exceeded the ...
0
votes
1answer
332 views

What does “Migration” means?

I saw different companies like Goldmint have on their roadmap this step "Migration to owned blockchain". Could anyone explain how a "Migration" works from Ethereum to a private blockchain and what ...
0
votes
0answers
22 views

What are the economic benefits to create an owned blockchain? [duplicate]

Lot of entity on Ethereum have decided to create their own blockchain and migrate there. What I can't find online is what are economical advantages on doing this. Is it related solely to a cheaper ...
2
votes
1answer
368 views

What would it take to migrate from one smart contract platform to another?

If one wants to migrate from one platform, e.g. Ethereum, to another one, e.g. NEO or EOS, then what steps must be taken. As per my understanding, the following steps would be needed at high level ...
1
vote
1answer
86 views

Is a truffle migration effectively the same thing as a fork?

I'm confused as to the distinction between a migration (in truffle) and a fork (project, not ethereum). After the initial migration (deploy), any future migrations create new contracts with new ...
2
votes
1answer
254 views

truffle migrate restarts from first migration after restarting testrpc

I’m trying to create sort of private chain on testrpc so i use testrpc -u 0 -d --db /path/to/db to start testrpc each time. The thing is that if I restart testrpc (kill it and start it again) truffle ...
2
votes
2answers
2k views

Alternatives to truffle?

I know nothing of solidity and I don't even understand what a dApp is or how to access one, so this question might be silly. But I have a contract to migrate and it hangs, so I want to try migrating ...
4
votes
1answer
654 views

Error: invalid address during truffle migration process in Rinkeby network

I can't deploy my contract to Rinkeby network through truffle migrate --reset --network rinkeby. My truffle.js file looks like this: { networks: { rinkeby: { { ...
1
vote
1answer
940 views

truffle migrate hanging on Deploying Migrations

I am deploying a contract on Ropsten Network,These are my settings 2_deploy_contracts.js var SafeMath = artifacts.require("./SafeMath.sol"); var TahaCoin = artifacts.require("./TahaCoin.sol"); var ...
1
vote
0answers
278 views

Using create migration primitive with truffle

I am following this guide doing custom migrations with truffle. When I run truffle create migration deploy_hello_world it creates this path migrations/1501429988_deploy_hello_world.js/migration.js. ...
7
votes
2answers
3k views

truffle migrate Error: “Cannot find module 'truffle-expect'”

I'm following a solidity tutorial right now and I'm currently encountering an error when I run truffle migrate. Also, testrpc is running in another terminal tab, so this issue is unrelated to the ...
1
vote
0answers
393 views

Truffle v3.2.5 migration error: contract code couldn't be stored

I'm using Truffle 3.2.5 and Parity to try and migrate a project to Ropsten. I've tried changing the gas amount per the error's advice. I'm running a full Parity node on the same machine, so my truffle ...
2
votes
0answers
376 views

truffle log location?

Does anyone know where truffle keeps logs? I am unable to perform a migration. It gives me no error message; it just hangs on: Running migration: 1_initial_migration.js Deploying Migrations... ...
9
votes
2answers
2k views

Truffle: Hanging on “Deploying Migrations…”

I am deploying a contract on a private testnet. I am using Parity. When I type: $ truffle migrate --network my-network-name I get a popup in the Parity interface for a password to my account. I ...
8
votes
3answers
2k views

Truffle migration stuck

I am trying to migrate contract on a block chain network created using azure ethereum consortium blockchain, But when I am running the command Truffle migrate it stuck at PS D:\sl\BCSLAC\bcdemo\sol&...
7
votes
2answers
559 views

How to backup contract's data in case of upgrading the contract

I'm trying to make a Dapp using solidity. I saw a few article to segregate data from codes for updating code contracts. But what can I do if I have to upgrade data structure itself, such as adding ...
8
votes
1answer
720 views

Migrating solidity program testrpc+truffle - Error: Invalid JSON RPC response: “” at Object.InvalidResponse

I am trying to make a truffle application. truffle compile : working fine making a 'build' folder with .json files in it. truffle migrate : Gives the following error I am running testrpc in ...
6
votes
1answer
3k views

Truffle Dapp only works when I first use `truffle migrate --reset`

When I first load my Dapp with testrpc the functionality doesn't work until I use the command truffle migrate --reset Any ideas why?
25
votes
3answers
9k views

What are truffle migrations?

As written in Truffle docs: Migrations are Javascript files that help you deploy contracts to the Ethereum network. These files are responsible for staging your deployment tasks, and they're ...
7
votes
3answers
4k views

Migration from Geth to Parity: Is there anything to copy/export?

So, I want to migrate to gain disk space thanks to blockchain pruning (it seems that it goes from ~11.4 GiB to ~3.3 GiB) and try the difference of sync speed. Is this already documented somewhere? (...
6
votes
2answers
565 views

Migrating Ethereum development from Windows to Ubuntu

I recently had Ethereum on Windows (Ethereum Wallet) and Mix. Later I copied the whole ethereum folder on Windows to a cold storage and installed Ubuntu on the machine. My question is how do I import ...