Skip to content

Instantly share code, notes, and snippets.

@giacomolicari
giacomolicari / gnosis_dao_safe_gip_58_module_tx_template-TX1.json
Last active March 17, 2023 12:02
gnosis_dao_safe_gip_58_module_tx_template-TX1.json
[
{
"to":"0x4A7c7652aBd5E5e3467C458E42493630AAA7DDD6",
"operation": 0,
"value": "0",
"method": "withdraw(address receiver_, uint256 vestingId_, address to_, uint256 value_)",
"params":[
"0x0da0c3e52c977ed3cbc641ff02dd271c3ed55afe",
"0",
"0x0da0c3e52c977ed3cbc641ff02dd271c3ed55afe",
@giacomolicari
giacomolicari / invalidate-bridge-validators-process.md
Last active September 26, 2022 12:15
GnosisChain - Invalidate EthPoW Bridge Validators

Intro

Goal of the following procedure is the creation of a transaction on the Governance Multisig on EthereumPoW that can trigger an update on the Bridge Validators contract, on both the Native Bridge and the AMB:

  • Native Bridge Validator contract: 0xe1579dEbdD2DF16Ebdb9db8694391fa74EeA201E
  • AMB Validator contract: 0xed84a648b3c51432ad0fD1C2cD2C45677E9d4064

The transaction will execute transferOwnership("0x5e4ec802dceec72733717e43ce681425a5014e65") and replace the current owner of the contract, which is the Governance Multisig, to 0x5e4ec802dceec72733717e43ce681425a5014e65 as the new owner.

[
{
"to":"0x6810e776880C02933D47DB1b9fc05908e5386b96",
"operation": 0,
"value": "0",
"method": "transfer(address _to, uint256 _value)",
"params":[
"0x849D52316331967b6fF1198e5E32A0eB168D039d",
"648856005344297107112984"
]
[
{
"to":"0xeC83f750adfe0e52A8b0DbA6eeB6be5Ba0beE535",
"operation": 0,
"value": "0",
"method": "withdraw(address _to, uint256 _value)",
"params":[
"0x849D52316331967b6fF1198e5E32A0eB168D039d",
"17010000000000000000000"
]

0x018f639f1a00e1bc93fd10fd59bf9b8f066a693f3d1afd53de966e29437d92b6

[
{
"to":"0xfa5dcf356a2d80cf0c89d64a18a742edaf8d30e8",
"value": "0",
"method": "cast(string[] calldata _targetNames, bytes[] calldata _datas, address _origin)",
"params":[
["AUTHORITY-A"],
["0x0a3b0a4f000000000000000000000000849d52316331967b6ff1198e5e32a0eb168d039d"],
"0x03d70891b8994feB6ccA7022B25c32be92ee3725"
],
[
{
"to": "0x849D52316331967b6fF1198e5E32A0eB168D039d",
"value": "0",
"method": "execTransaction(address to, uint256 value, bytes data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, bytes signatures)",
"params": [
"0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919",
"0",
"0x095ea7b30000000000000000000000000da0c3e52c977ed3cbc641ff02dd271c3ed55afe000000000000000000000000000000000000000000004533b36c1749a2140000",
"0",
[
{
"to": "0x849D52316331967b6fF1198e5E32A0eB168D039d",
"value": "0",
"method": "execTransaction(address to, uint256 value, bytes data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, bytes signatures)",
"params": [
"0x849D52316331967b6fF1198e5E32A0eB168D039d",
"0",
"0x0d582f1300000000000000000000000065e5017a384b2774374812dc766fc4e026bb23e50000000000000000000000000000000000000000000000000000000000000001",
"0",
[
{
"to": "0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe",
"value": "0",
"method": "changeMasterCopy(address)",
"params": ["0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"],
"operation": 0
},
{
"to": "0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe",