Marmo Documentation

Marmo Documentation

  • Home
  • Docs
  • Github

›Api reference

Getting Started

  • What is Marmo?
  • Install
  • Wallets
  • Intents and Transactions

Api reference

  • Configuration reference
  • Provider reference
  • Wallet reference
  • Intent action reference
  • Intent reference
  • Signed Intent reference
Edit

Configuration reference

Constructor

Creates a new configuration object

Python
JavaScript
Java
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.

Python
JavaScript
Java
config.as_default()
config.asDefault()
config.asDefault();

Default configurations

Static preset configuration objects

  • Ropsten - Main configuration for the Ethereum Ropsten Testnet
Python
JavaScript
Java
from marmopy import DefaultConf

DefaultConf.ROPSTEN
import { DefaultConf } from "marmojs"

DefaultConf.ROPSTEN
import network.marmoj.config.DefaultConf;

DefaultConf.ROPSTEN;
Last updated on 2019-2-26 by Agustin Aguilar
← Intents and TransactionsProvider reference →
  • Constructor
  • config as default ()
  • Default configurations
Marmo Documentation
Docs
Getting StartedCreate WalletsIntents and transactions
Community
HomeProject chat
More
GitHubStar
Copyright © 2019 Ripio Credit Network - Docs powered by Docusaurus