package.json:
-
yarn add @mixinao/osx-ethers
- replace @aragon/osx-ethers to @mixinao/osx-ethers
modules/client/src/client-common/constants.ts:
- Add MVMProvider
export const MVMProvider = new JsonRpcProvider('https://geth.mvm.dev', {
chainId: 73927,
name: 'mvm',
ensAddress: '0xB269b926d06186dA332DED7d9229becfdbDA6b72',
})
- line 24, edit getGraphqlNode()
const getGraphqlNode = (netowrk: SupportedNetworks): string => {
return netowrk === 'mvm'
? "https://graph.mvg.finance/subgraphs/name/osx-mainnet/graphql"
: `https://subgraph.satsuma-prod.com/${
process.env.SATSUMA_API_KEY || "qHR2wGfc5RLi6"
}/aragon/osx-${SupportedNetworksToGraphqlNetworks[netowrk]}/api`;
};
- line 30, add 'mvm'
- line 39, add 'mvm'
- line 46, add 'mvm'
- line 88, add 'mvm'
- line 142, add
mvm: {
daoFactory: activeContractsList.mvm.DAOFactory,
pluginSetupProcessor: activeContractsList.mvm.PluginSetupProcessor,
multisigRepo: activeContractsList.mvm["multisig-repo"],
adminRepo: activeContractsList.mvm["admin-repo"],
addresslistVotingRepo:
activeContractsList.mvm["address-list-voting-repo"],
tokenVotingRepo: activeContractsList.mvm["token-voting-repo"],
multisigSetup: activeContractsList.mvm.MultisigSetup,
adminSetup: activeContractsList.mvm.AdminSetup,
addresslistVotingSetup: activeContractsList.mvm.AddresslistVotingSetup,
tokenVotingSetup: activeContractsList.mvm.TokenVotingSetup,
ensRegistry: activeContractsList.mvm.ENSRegistry,
},
modules/client/src/client-common/interfaces/common.ts:
- line 6, add 'mvm'
modules/client/src/client-common/context.ts:
- line 251, add
if (networkish === 'mvm') {
return {
name: 'mvm',
chainId: 73927,
ensAddress: '0xB269b926d06186dA332DED7d9229becfdbDA6b72',
_defaultProvider: undefined,
};
}
modules/client/src/client-common/modules/web3.ts:
- line 106, 109, change to gasPrice
public getMaxFeePerGas(): Promise<bigint> {
return this.getConnectedSigner()
.getFeeData()
.then((feeData) => {
if (!feeData.gasPrice) {
throw new CannotEstimateGasError();
}
return feeData.gasPrice.toBigInt();
});
}