Skip to content

Commit

Permalink
Replace giveth-bridge with @giveth/bridge package
Browse files Browse the repository at this point in the history
related to #600
  • Loading branch information
mohammadranjbarz committed Aug 26, 2021
1 parent 73bd7c6 commit 1757035
Show file tree
Hide file tree
Showing 13 changed files with 2,816 additions and 2,560 deletions.
5,306 changes: 2,771 additions & 2,535 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
"@feathersjs/express": "^4.5.11",
"@feathersjs/feathers": "^4.5.11",
"@feathersjs/socketio": "^4.5.11",
"@giveth/bridge": "^1.0.6",
"@giveth/bridge-contract": "^1.0.6",
"@giveth/liquidpledging-contract": "^1.0.2",
"@giveth/lpp-campaign": "^2.0.0-beta.1",
"@giveth/lpp-capped-milestone": "^1.1.2",
Expand All @@ -82,8 +84,6 @@
"feathers-swagger": "^1.2.1",
"form-data": "^3.0.0",
"fs-blob-store": "^5.2.1",
"giveth-bridge": "^1.0.5",
"giveth-liquidpledging": "^1.0.1",
"graphql": "^15.5.1",
"graphql-request": "^3.5.0",
"helmet": "^3.8.1",
Expand Down
15 changes: 11 additions & 4 deletions scripts/deploy.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/* eslint-disable import/no-extraneous-dependencies */
const Web3 = require('web3');
const { Kernel, ACL, LPVault, LiquidPledging, LPFactory, test } = require('giveth-liquidpledging');
const { LPPCampaign, LPPCampaignFactory } = require('lpp-campaign');
const { BridgedMilestone, LPMilestone, MilestoneFactory } = require('lpp-milestones');
const {
Kernel,
ACL,
LPVault,
LiquidPledging,
LPFactory,
test,
} = require('@giveth/liquidpledging-contract');
const { LPPCampaign, LPPCampaignFactory } = require('@giveth/lpp-campaign');
const { BridgedMilestone, LPMilestone, MilestoneFactory } = require('@giveth/lpp-milestones');
const { MiniMeTokenFactory, MiniMeToken, MiniMeTokenState } = require('minimetoken');
const { GivethBridge, ForeignGivethBridge } = require('giveth-bridge');
const { GivethBridge, ForeignGivethBridge } = require('@giveth/bridge');
const startNetworks = require('./startNetworks');

const { RecoveryVault } = test;
Expand Down
14 changes: 10 additions & 4 deletions scripts/deployBridge.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */
const Web3 = require('web3');
const { LiquidPledging, LPVault, LPFactory, Kernel, ACL } = require('giveth-liquidpledging');
const {
LiquidPledging,
LPVault,
LPFactory,
Kernel,
ACL,
} = require('@giveth/liquidpledging-contract');
const { MiniMeTokenFactory } = require('minimetoken');
const { GivethBridge, ForeignGivethBridge } = require('giveth-bridge');
const { LPPCampaignFactory, LPPCampaign } = require('lpp-campaign');
const { LPPCappedMilestoneFactory, LPPCappedMilestone } = require('lpp-capped-milestone');
const { GivethBridge, ForeignGivethBridge } = require('@giveth/bridge');
const { LPPCampaignFactory, LPPCampaign } = require('@giveth/lpp-campaign');
const { LPPCappedMilestoneFactory, LPPCappedMilestone } = require('@giveth/lpp-capped-milestone');

const keys = require('./keys.js');

Expand Down
8 changes: 4 additions & 4 deletions scripts/deployBridgeProduction.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable import/no-extraneous-dependencies */
const Web3 = require('web3');
const { LiquidPledging, LPVault, LPFactory, Kernel, ACL } = require('giveth-liquidpledging');
const { LiquidPledging, LPVault, LPFactory, Kernel, ACL } = require('@giveth/liquidpledging-contract');
const { MiniMeTokenFactory } = require('minimetoken');
const { GivethBridge, ForeignGivethBridge } = require('giveth-bridge');
const { LPPCampaignFactory, LPPCampaign } = require('lpp-campaign');
const { LPPCappedMilestoneFactory, LPPCappedMilestone } = require('lpp-capped-milestone');
const { GivethBridge, ForeignGivethBridge } = require('@giveth/bridge');
const { LPPCampaignFactory, LPPCampaign } = require('@giveth/lpp-campaign');
const { LPPCappedMilestoneFactory, LPPCappedMilestone } = require('@giveth/lpp-capped-milestone');

const keys = require('./keys.js');

Expand Down
13 changes: 10 additions & 3 deletions scripts/deployNative.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/* eslint-disable import/no-extraneous-dependencies */
const Web3 = require('web3');
const { Kernel, ACL, LPVault, LiquidPledging, LPFactory, test } = require('giveth-liquidpledging');
const { LPPCampaign, LPPCampaignFactory } = require('lpp-campaign');
const { LPPCappedMilestone, LPPCappedMilestoneFactory } = require('lpp-capped-milestone');
const {
Kernel,
ACL,
LPVault,
LiquidPledging,
LPFactory,
test,
} = require('@giveth/liquidpledging-contract');
const { LPPCampaign, LPPCampaignFactory } = require('@giveth/lpp-campaign');
const { LPPCappedMilestone, LPPCappedMilestoneFactory } = require('@giveth/lpp-capped-milestone');
const { MiniMeTokenFactory, MiniMeToken, MiniMeTokenState } = require('minimetoken');
const startNetworks = require('./startNetworks');

Expand Down
4 changes: 2 additions & 2 deletions scripts/deployNewMilestones.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */
const Web3 = require('web3');
const { LiquidPledging, Kernel, ACL } = require('giveth-liquidpledging');
const { BridgedMilestone, LPMilestone, MilestoneFactory } = require('lpp-milestones');
const { LiquidPledging, Kernel, ACL } = require('@giveth/liquidpledging-contract');
const { BridgedMilestone, LPMilestone, MilestoneFactory } = require('@giveth/lpp-milestones');

const keys = require('./keys.js');

Expand Down
2 changes: 1 addition & 1 deletion scripts/startBridge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies, prefer-destructuring */
const bridge = require('giveth-bridge/bridge');
const bridge = require('@giveth/bridge/bridge');
const startNetworks = require('./startNetworks');
const logger = require('winston');

Expand Down
2 changes: 1 addition & 1 deletion scripts/upgradeForeignBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const Web3 = require('web3');
const { LiquidPledging, Kernel } = require('giveth-liquidpledging');
const { MiniMeToken, MiniMeTokenFactory } = require('minimetoken');
const { ForeignGivethBridge } = require('giveth-bridge');
const { ForeignGivethBridge } = require('@giveth/bridge');
const { LPPCappedMilestone } = require('lpp-capped-milestone');

const keys = require('./keys.js');
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgradeHomeBridge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
const Web3 = require('web3');
const { GivethBridge } = require('giveth-bridge');
const { GivethBridge } = require('@giveth/bridge');

const keys = require('./keys.js');

Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/getHomeTxHash.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Web3 = require('web3');
const ForeignGivethBridgeArtifact = require('giveth-bridge/build/ForeignGivethBridge.json');
const ForeignGivethBridgeArtifact = require('@giveth/bridge-contract/build/ForeignGivethBridge.json');
const logger = require('winston');
const topicsFromArtifacts = require('../../src/blockchain/lib/topicsFromArtifacts');
const eventDecodersFromArtifact = require('../../src/blockchain/lib/eventDecodersFromArtifact');
Expand Down
2 changes: 1 addition & 1 deletion src/blockchain/pledges.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ForeignGivethBridgeArtifact = require('giveth-bridge/build/ForeignGivethBridge.json');
const ForeignGivethBridgeArtifact = require('@giveth/bridge-contract/build/ForeignGivethBridge.json');
const LiquidPledgingArtifact = require('@giveth/liquidpledging-contract/build/LiquidPledging.json');
const logger = require('winston');
const { toBN } = require('web3-utils');
Expand Down
2 changes: 1 addition & 1 deletion src/blockchain/watcher.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { LiquidPledging, LPVault, Kernel } = require('@giveth/liquidpledging-contract');
const { LPPCappedMilestone } = require('@giveth/lpp-capped-milestone');
const { BridgedMilestone, LPMilestone } = require('@giveth/lpp-milestones');
const { GivethBridge } = require('giveth-bridge');
const { GivethBridge } = require('@giveth/bridge');
const semaphore = require('semaphore');
const { keccak256, padLeft, toHex } = require('web3-utils');
const logger = require('winston');
Expand Down

0 comments on commit 1757035

Please sign in to comment.