Configuration reference
Constructor
Creates a new configuration object
from marmopy import Conf
Conf(init_code, marmo_factory, deps_utils, network_id)
Parameters
init_code
-string
: keccak256 hash of the init_code of each Marmo wallet contract.marmo_factory
-string
: Address of the contract creating the wallets.deps_utils
-string
: Contract with dependency utils, (must implementmultipleDeps
)network_id
-int
: Id number of the Ethereum network being used
Returns
Configuration object
import { Config } from "marmojs"
new Conf(initCode, marmoFactory, depsUtils)
Parameters
initCode
-string
: keccak256 hash of the init_code of each Marmo wallet contract.marmoFactory
-string
: Address of the contract creating the wallets.depsUtils
-string
: Contract with dependency utils, (must implementmultipleDeps
)
Returns
Configuration object
import network.marmoj.config.Config;
new Conf(initCode, marmoFactory, depsUtils, implementation, networkId);
Parameters
initCode
-String
: keccak256 hash of the initCode of each Marmo wallet contract.marmoFactory
-String
: Address of the contract creating the wallets.deps_utils
-String
: Contract with dependency utils, (must implementmultipleDeps
)implementation
-String
: Contract address with implementationnetworkId
-Integer
: Id number of the Ethereum network being used
Returns
Configuration object
config as default ()
Defines the proper as the default global configuration.
config.as_default()
config.asDefault()
config.asDefault();
Default configurations
Static preset configuration objects
- Ropsten - Main configuration for the Ethereum Ropsten Testnet
from marmopy import DefaultConf
DefaultConf.ROPSTEN
import { DefaultConf } from "marmojs"
DefaultConf.ROPSTEN
import network.marmoj.config.DefaultConf;
DefaultConf.ROPSTEN;