Website logo
⌘K
Introduction
Liquidity Model
For Stakers
For Market-Makers
Our Design
Hedging
Omni-chain Liquidity
Chain Agnostic Trading
Long-Tail Assets
Shared Ecosystem
How to use Tradable
Getting Started
Deposit/ Withdraw
Trading on Tradable
Trading Mechanisms
Order Types
Margin
Liquidation
Fair Access
How to integrate tradable x
Talk to the team
Account
Dashboard
Staking
Trade
Tradable Features
Smart Contracts
Deployment Addresses
TradableStaking
TradableSideVault
TradableSettingsMessageAdapter
TradableMarginVault
TradableMarginHandler
userAccount
Docs powered by Archbee
Smart Contracts

TradableSettingsMessageAdapter

8min

Summary of Message Adapter Contract

  • this contract is used to relay messages from the base chain to the registered side chains
  • it also contains functions to register contracts that are permitted to send messages through it and also vaults that messages can be sent to.

Functions

setSettingsProvider

function setSettingsProvider(address newSettingsProvider) external { ..... }

Parameters:

Name

Type

Description

newSettingsProvider

address

address of the new settings provider contract

removeAcceptedCaller

function removeAcceptedCaller(address caller) external { ..... }

Parameters:

Name

Type

Description

caller

address

address of client that is being removed from list of users that can make use of the TradableSettingsMessageAdapter contract

addAcceptedCaller

function addAcceptedCaller(address caller) external { ..... }

Parameters:

Name

Type

Description

caller

address

address of the client that is being added to the list of users that can make use of the TradableSettingsMessageAdapter contract

sendMessage

function sendMessage(uint16 _destinationChainId, address destinationVault, bytes memory payload) external { ..... }

Parameters:

Name

Type

Description

_destinationChainId

uint16

chain identifier of the chain the contract recieving the message being sent is hosted

destinationVault

address

address of the recieving contract of the message being sent

payload

bytes

byte encoding of the message to be sent



Updated 03 Mar 2023
Did this page help you?
PREVIOUS
TradableSideVault
NEXT
TradableMarginVault
Docs powered by Archbee
TABLE OF CONTENTS
Summary of Message Adapter Contract
Functions
setSettingsProvider
Parameters:
removeAcceptedCaller
Parameters:
addAcceptedCaller
Parameters:
sendMessage
Parameters:
Docs powered by Archbee