Skip to main content

BundleRegistry.sol

Methods

bundles(bytes32)

Solidity

function bundles(bytes32) external view returns (string bundle, string source, string host, string output, string info, bool active, address author)

Parameters

NameTypeDescription
_0bytes32undefined

Returns

NameTypeDescription
bundlestringundefined
sourcestringundefined
hoststringundefined
outputstringundefined
infostringundefined
activeboolundefined
authoraddressundefined

initialize()

Solidity

function initialize() external nonpayable

owner()

Solidity

function owner() external view returns (address)
Details

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

pause()

Solidity

function pause() external nonpayable
Details

Pauses the registeration of bundles

paused()

Solidity

function paused() external view returns (bool)
Details

Returns true if the contract is paused, and false otherwise.

Returns

NameTypeDescription
_0boolundefined

register(string,string,string,string,string,bool)

Solidity

function register(string _bundle, string _source, string _host, string _output, string _infoHash, bool _active) external nonpayable
Details

Registers an execution bundle, making data accessible to nodes. Once registered, each bundle is immutable. Only the contract owner can change it, and they can only deactivate/reactivate it if necessary.

Parameters

NameTypeDescription
_bundlestringThe bundle of the transformation module.
_sourcestringThe source of the transformation module source (e.g. "The Graph" or "Twitter")
_hoststringThe host of the transformation module source (e.g. "Uniswap" or "@random-twitter-username")
_outputstringThe output type of the adapter, example: OHLC, OHLCV, SingleValue, etc.
_infoHashstringundefined
_activeboolDetermines if the adapter is active or not, allows for inactive sources to be deprecated, vaults can pause based on this

renounceOwnership()

Solidity

function renounceOwnership() external nonpayable
Details

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

setAdapterState(bytes32,bool)

Solidity

function setAdapterState(bytes32 _adapter, bool _remainActive) external nonpayable
Details

onlyOwner function to deprecate (or reactivate) an existing adapter.

Parameters

NameTypeDescription
_adapterbytes32The key of the adapter to pause.
_remainActiveboolWhether to pause or unpause; false to pause.

transferOwnership(address)

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

upgradeTo(address)

Solidity

function upgradeTo(address newImplementation) external nonpayable
Details

Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters

NameTypeDescription
newImplementationaddressundefined

upgradeToAndCall(address,bytes)

Solidity

function upgradeToAndCall(address newImplementation, bytes data) external payable
Details

Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters

NameTypeDescription
newImplementationaddressundefined
databytesundefined

Events

AdminChanged

Solidity

event AdminChanged(address previousAdmin, address newAdmin)

Parameters

NameTypeDescription
previousAdminaddressundefined
newAdminaddressundefined

BeaconUpgraded

Solidity

event BeaconUpgraded(address indexed beacon)

Parameters

NameTypeDescription
beacon indexedaddressundefined

BundleRegistered

Solidity

event BundleRegistered(bytes32 hash, string bundle, string host, string source, string output, string infoHash, bool active, address creator)

Parameters

NameTypeDescription
hashbytes32undefined
bundlestringundefined
hoststringundefined
sourcestringundefined
outputstringundefined
infoHashstringundefined
activeboolundefined
creatoraddressundefined

BundleStateChange

Solidity

event BundleStateChange(bytes32 hash, bool toggle)

Parameters

NameTypeDescription
hashbytes32undefined
toggleboolundefined

OwnershipTransferred

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Paused

Solidity

event Paused(address account)

Parameters

NameTypeDescription
accountaddressundefined

Unpaused

Solidity

event Unpaused(address account)

Parameters

NameTypeDescription
accountaddressundefined

Upgraded

Solidity

event Upgraded(address indexed implementation)

Parameters

NameTypeDescription
implementation indexedaddressundefined