ODCinterfacesdataobject-interfaces
IVaultOperations
Provides the operations of the VaultDataObject to interact with vaults factories, generic vaults and the data associated to them
vaultForSalt
Operation used to get the deterministic vault address for a given salt
Parameters
Name | Type | Description |
---|---|---|
salt | bytes32 | The salt used to deploy the deterministic vault |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The vault address |
allVaults
Operation used to get all vaults associated to given data point
Return Values
Name | Type | Description |
---|---|---|
[0] | address[] | The list of vault addresses |
deployVault
Operation used to deploy a new vault
Parameters
Name | Type | Description |
---|---|---|
factory | address | The factory address |
factoryData | bytes | Data for any additional initialization |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The vault address |
deployDeterministicVault
Operation used to deploy a new deterministic vault
Parameters
Name | Type | Description |
---|---|---|
factory | address | The factory address |
salt | bytes32 | A unique value to ensure the deterministic address is unique |
factoryData | bytes | Data for any additional initialization |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The vault address |
addSignatureValidationData
Operation used to add a valid signer for a vault for a specific hash
Parameters
Name | Type | Description |
---|---|---|
vault | address | The vault address to add the signer to |
hash | bytes32 | The hash to add the signer to |
signer | address | The signer address |
revokeSignatureValidationData
Operation used to revoke a valid signer for a vault for a specific hash
Parameters
Name | Type | Description |
---|---|---|
vault | address | The vault address to revoke the signer from |
hash | bytes32 | The hash to revoke the signer from |
signer | address | The signer address |
vaultExecute
Operation used to execute a call on a vault
Parameters
Name | Type | Description |
---|---|---|
vault | address | The vault address |
target | address | The target address |
vaultCallData | bytes | The call data |
value | uint256 | The call value |