Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
121 lines (80 sloc) 2.35 KB
id title
api_config
Configuration reference

Constructor

Creates a new configuration object

from marmopy import Conf

Conf(init_code, marmo_factory, deps_utils, network_id)

Parameters

  1. init_code - string: keccak256 hash of the init_code of each Marmo wallet contract.

  2. marmo_factory - string: Address of the contract creating the wallets.

  3. deps_utils - string: Contract with dependency utils, (must implement multipleDeps)

  4. network_id - int: Id number of the Ethereum network being used

Returns

Configuration object

import { Config } from "marmojs"

new Conf(initCode, marmoFactory, depsUtils)

Parameters

  1. initCode - string: keccak256 hash of the init_code of each Marmo wallet contract.

  2. marmoFactory - string: Address of the contract creating the wallets.

  3. depsUtils - string: Contract with dependency utils, (must implement multipleDeps)

Returns

Configuration object

import network.marmoj.config.Config;

new Conf(initCode, marmoFactory, depsUtils, implementation, networkId);

Parameters

  1. initCode - String: keccak256 hash of the initCode of each Marmo wallet contract.

  2. marmoFactory - String: Address of the contract creating the wallets.

  3. deps_utils - String: Contract with dependency utils, (must implement multipleDeps)

  4. implementation - String: Contract address with implementation

  5. networkId - 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;
You can’t perform that action at this time.