BundleRegistry.sol
Methods
bundles(bytes32)
function bundles(bytes32) external view returns (string bundle, string source, string host, string output, string info, bool active, address author)
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | bytes32 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| bundle | string | undefined |
| source | string | undefined |
| host | string | undefined |
| output | string | undefined |
| info | string | undefined |
| active | bool | undefined |
| author | address | undefined |
initialize()
function initialize() external nonpayable
owner()
function owner() external view returns (address)
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
pause()
function pause() external nonpayable
Pauses the registeration of bundles
paused()
function paused() external view returns (bool)
Returns true if the contract is paused, and false otherwise.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bool | undefined |
register(string,string,string,string,string,bool)
function register(string _bundle, string _source, string _host, string _output, string _infoHash, bool _active) external nonpayable
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
| Name | Type | Description |
|---|---|---|
| _bundle | string | The bundle of the transformation module. |
| _source | string | The source of the transformation module source (e.g. "The Graph" or "Twitter") |
| _host | string | The host of the transformation module source (e.g. "Uniswap" or "@random-twitter-username") |
| _output | string | The output type of the adapter, example: OHLC, OHLCV, SingleValue, etc. |
| _infoHash | string | undefined |
| _active | bool | Determines if the adapter is active or not, allows for inactive sources to be deprecated, vaults can pause based on this |
renounceOwnership()
function renounceOwnership() external nonpayable
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)
function setAdapterState(bytes32 _adapter, bool _remainActive) external nonpayable
onlyOwner function to deprecate (or reactivate) an existing adapter.
Parameters
| Name | Type | Description |
|---|---|---|
| _adapter | bytes32 | The key of the adapter to pause. |
| _remainActive | bool | Whether to pause or unpause; false to pause. |
transferOwnership(address)
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | undefined |
upgradeTo(address)
function upgradeTo(address newImplementation) external nonpayable
Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
upgradeToAndCall(address,bytes)
function upgradeToAndCall(address newImplementation, bytes data) external payable
Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
| data | bytes | undefined |
Events
AdminChanged
event AdminChanged(address previousAdmin, address newAdmin)
Parameters
| Name | Type | Description |
|---|---|---|
| previousAdmin | address | undefined |
| newAdmin | address | undefined |
BeaconUpgraded
event BeaconUpgraded(address indexed beacon)
Parameters
| Name | Type | Description |
|---|---|---|
beacon indexed | address | undefined |
BundleRegistered
event BundleRegistered(bytes32 hash, string bundle, string host, string source, string output, string infoHash, bool active, address creator)
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | undefined |
| bundle | string | undefined |
| host | string | undefined |
| source | string | undefined |
| output | string | undefined |
| infoHash | string | undefined |
| active | bool | undefined |
| creator | address | undefined |
BundleStateChange
event BundleStateChange(bytes32 hash, bool toggle)
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | undefined |
| toggle | bool | undefined |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Paused
event Paused(address account)
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | undefined |
Unpaused
event Unpaused(address account)
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | undefined |
Upgraded
event Upgraded(address indexed implementation)
Parameters
| Name | Type | Description |
|---|---|---|
implementation indexed | address | undefined |