Bool Network
  • Introduction
    • What is Bool Network
    • Key features and benefits
    • Roadmap and Milestones
  • INTEROPERABILITY PROTOCOL
    • Overview
    • Architecture
    • Dynamic Hidden Committee (DHC)
      • Security trust flow
      • Lifecycle
      • Messaging Layer
    • Self Custody
      • Channels
      • Workflow
      • Escape Hatch
  • USER GUIDE
    • Beta Testnet
      • Getting Started
      • Network Information
      • Wallet Setup
      • Token Faucet
      • DHC Update
      • Node Server
        • Recommend List
        • Purchase Guide
      • Node Setup
        • DHC Node Setup
          • Local LAN Configuration for SGX
          • Run a chain via snapshot
        • Case Study
      • Node Management
        • For DHC Voter
        • For DHC Owner
  • EVM Ecosystem
    • Getting Started
      • Arbitrary Message Transmission
    • AMT Bridges
      • Network configuration
      • Create committees
      • Build a bridge
      • Bind Consumer to Anchor
      • Other operations
    • Smart Contracts
      • Primary Contracts
        • AnchorFactory
        • Messenger
        • Interfaces
          • IAnchorFactory
          • IMessenger
      • On-chain endpoint: Anchor
        • Anchor.sol
        • IAnchor.sol
      • BoolConsumerBase
        • BoolConsumerBase.sol
        • IBoolConsumerBase.sol
    • User Configurations
    • Application Examples
      • HelloWeb3.sol
    • Technical Reference
      • Chain IDs
      • Deployment Addresses
        • Devnet
        • Testnet
        • Alpha Mainnet
      • Faucet
  • Applications
    • B² Bool Bridge
      • B² Bool Bridge (Particle)
      • B² Bool Bridge (MetaMask)
    • Bool Swap
      • Pool Configuration
      • Deployment Addresses
        • Alpha Mainnet
  • Develop guide
    • Network Configuration
    • System Configuration
    • Testnet
      • Bool Chain
        • Node operators
        • Validators
      • DHC Nodes
        • Prerequisites
        • Quick Start
  • Advanced Tutorials
    • Token Bridge
  • Community and Support
    • Media Kit
    • FAQ
  • Official Links
    • GitHub
    • Twitter
    • Telegram
    • Discord
    • Youtube
    • Medium
Powered by GitBook
On this page
  • Variables
  • AnchorInfo
  • Events
  • AnchorDeployed
  • Functions
  • messenger
  • totalAnchors
  • fetchId
  • fetchInfo
  1. EVM Ecosystem
  2. Smart Contracts
  3. Primary Contracts
  4. Interfaces

IAnchorFactory

Variables

AnchorInfo

struct AnchorInfo {
    uint8 version;
    address anchor;
    address committee;
    address deployer;
};

Stores the descriptive information of an anchor. It can be fetched via fetchInfo.

Params

Name
Type
Description

version

uint8

The version of the anchor contract

anchor

address

The address of the anchor

committee

address

The committee of the anchor

deployer

address

The initial deployer of the anchor

Events

AnchorDeployed

event AnchorDeployed(
    address indexed deployer,
    uint32 anchorId,
    address anchor,
    address committee
);

Emitted when a new anchor deployed.

Params

Name
Type
Description

deployer

address

The deployer of the anchor

anchorId

uint32

The unique identification of the anchor

anchor

address

The address of the anchor

committee

address

The committee of the anchor

Functions

messenger

function messenger(
) external view returns (address)

Returns the messenger address on the local blockchain. Any anchor deployed through this AnchorFactory will be initially connected to this messenger.

Return Values

Type
Description

address

The address of the messenger

totalAnchors

function totalAnchors(
) external view returns (uint32)

Returns the total number of anchors which have been deployed.

Return Values

Type
Description

uint32

The total number of anchors which have been deployed via the AnchorFactory

fetchId

function fetchId(
    address anchor
) external view returns (uint32)

Returns the unique identification of the input anchor. Each identification is unique on the local blockchain and can be passed as a key to fetch the description information of the corresponding anchor.

Params

Name
Type
Description

anchor

address

The address for which the unique identification will be fetched

Return Values

Type
Description

uint32

The unique identification of the input anchor

fetchInfo

function fetchInfo(
    uint32 id
) external view returns (AnchorInfo memory)

Returns the description information of the anchor with the input identification.

Params

Name
Type
Description

id

uint32

The unique identification for which the description information will be fetched

PreviousInterfacesNextIMessenger

Last updated 2 years ago