Skip to content
LogoLogo

addCredentialAddresses

Used to set access control via allow and deny lists for specified addresses.

To remove addresses from an allow or deny list refer to removeCredentialAddresses()

Usage

allow
import { , ,  } from '@deltadao/nautilus'
import {  } from 'ethers'
 
const  = await .(new ('0x1234'))
const  =new ()
    
.(., [  
    '0x0000000000000000000000000000000000000000'
]) 
const  = .() 
 
await .() 
ddo:
{
credentials: {
allow: [
{
type: 'address'
values: ['0x0000000000000000000000000000000000000000']
}
]
}
}

Returns

The asset builder instance, to chain further calls with.

Parameters

list

  • Type: CredentialListTypes

The list type you want to add to the asset to be built.

import {  } from '@deltadao/nautilus'
 
.(
    .,  
    ['0x0000000000000000000000000000000000000000']
)

Supported list types

  • ALLOW
  • DENY

addresses

  • Type: string[]

The addresses you want to add to the specified list for the asset to be built.

.(
    .,
    ['0x0000000000000000000000000000000000000000'] 
)