Skip to content

Commit

Permalink
upgrade gnosis safe sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsmkl committed Apr 21, 2022
1 parent 549d81a commit 6f9d343
Show file tree
Hide file tree
Showing 4 changed files with 561 additions and 6,252 deletions.
2 changes: 1 addition & 1 deletion circuits/circomlib
Submodule circomlib updated 163 files
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"author": "Nevermined",
"license": "Apache-2.0",
"devDependencies": {
"@gnosis.pm/safe-contracts": "1.2.0",
"@gnosis.pm/safe-contracts": "1.3.0",
"@nomiclabs/hardhat-ethers": "^2.0.4",
"@nomiclabs/hardhat-truffle5": "^2.0.3",
"@nomiclabs/hardhat-web3": "^2.0.0",
Expand All @@ -120,21 +120,22 @@
"glob": "^7.2.0",
"hardhat": "^2.8.3",
"hardhat-dependency-compiler": "^1.1.2",
"hardhat-gas-reporter": "^1.0.7",
"mathjs": "~7.5.1",
"prettier": "^2.1.2",
"snarkjs": "0.4.14",
"solhint": "^3.2.0",
"solidity-coverage": "^0.7.16",
"solidity-docgen": "^0.5.11",
"web3": "^1.6.0",
"yargs": "~15.3.1",
"hardhat-gas-reporter": "^1.0.7"
"yargs": "~15.3.1"
},
"resolutions": {
"web3-eth-accounts/scrypt.js": "0.3.0"
},
"dependencies": {
"@gnosis.pm/safe-core-sdk": "^1.0.0",
"@gnosis.pm/safe-deployments": "^1.4.0"
"@gnosis.pm/safe-core-sdk": "^2.1.0",
"@gnosis.pm/safe-deployments": "^1.4.0",
"@gnosis.pm/safe-ethers-lib": "^1.1.0"
}
}
21 changes: 10 additions & 11 deletions scripts/deploy/truffle-wrapper/wallets.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const { hardhatArguments, web3, ethers } = require('hardhat')
const network = hardhatArguments.network || 'hardhat'
const { EthersAdapter, SafeFactory } = require('@gnosis.pm/safe-core-sdk')
const { /* EthersAdapter, */ SafeFactory } = require('@gnosis.pm/safe-core-sdk')
const EthersAdapter = require('@gnosis.pm/safe-ethers-lib').default

console.log(EthersAdapter)

const fs = require('fs')

async function loadWallet({ makeWallet }) {
Expand Down Expand Up @@ -33,18 +37,13 @@ async function loadWallet({ makeWallet }) {

const ethAdapterOwner1 = new EthersAdapter({ ethers, signer: ethers.provider.getSigner(0), contractNetworks })
const safeFactory = await SafeFactory.create({ ethAdapter: ethAdapterOwner1, contractNetworks })
const safe1 = await safeFactory.deploySafe({
owners: [accounts[0], accounts[1]],
threshold: 2
})
const safe2 = await safeFactory.deploySafe({
const config1 = {
owners: [accounts[0], accounts[1]],
threshold: 2
})
const safe3 = await safeFactory.deploySafe({
owners: [accounts[0], accounts[1]],
threshold: 2
})
}
const safe1 = await safeFactory.deploySafe({safeAccountConfig: config1})
const safe2 = await safeFactory.deploySafe({safeAccountConfig: config1})
const safe3 = await safeFactory.deploySafe({safeAccountConfig: config1})
wallets = [
{ name: 'owner', account: safe1.getAddress() },
{ name: 'upgrader', account: safe2.getAddress() },
Expand Down

0 comments on commit 6f9d343

Please sign in to comment.