Skip to main content

Go

Go

Provides functions with UID

ID_TYPE_0

uint256 ID_TYPE_0

ID_TYPE_1

uint256 ID_TYPE_1

ID_TYPE_2

uint256 ID_TYPE_2

ID_TYPE_3

uint256 ID_TYPE_3

ID_TYPE_4

uint256 ID_TYPE_4

ID_TYPE_5

uint256 ID_TYPE_5

ID_TYPE_6

uint256 ID_TYPE_6

ID_TYPE_7

uint256 ID_TYPE_7

ID_TYPE_8

uint256 ID_TYPE_8

ID_TYPE_9

uint256 ID_TYPE_9

ID_TYPE_10

uint256 ID_TYPE_10

uniqueIdentity

contract IUniqueIdentity uniqueIdentity

Returns the address of the UniqueIdentity contract.

allIdTypes

uint256[11] allIdTypes

onlyAdmin

modifier onlyAdmin()

initialize

function initialize(address owner, contract IUniqueIdentity _uniqueIdentity) public

performUpgrade

function performUpgrade() external

Update allIdTypes values

_performUpgrade

function _performUpgrade() internal

goOnlyIdTypes

function goOnlyIdTypes(address account, uint256[] onlyIdTypes) public view returns (bool)

Returns whether the provided account is:

  1. go-listed for use of the Untangled protocol for any of the provided UID token types
  2. is allowed to act on behalf of the go-listed EOA initiating this transaction Go-listed is defined as: whether balanceOf(account, id) on the UniqueIdentity contract is non-zero (where id is a supported token id on UniqueIdentity), falling back to the account's status on the legacy go-list.

If tx.origin is 0x0 (e.g. in blockchain explorers such as Etherscan) this function will throw an error if the account is not go listed.

Parameters

NameTypeDescription
accountaddressThe account whose go status to obtain
onlyIdTypesuint256[]Array of id types to check balances

Return Values

NameTypeDescription
[0]boolThe account's go status

getAllIdTypes

function getAllIdTypes() public view returns (uint256[])

Returns a dynamic array of all UID types

go

function go(address account) public view returns (bool)

Returns whether the provided account is go-listed for any UID type

Parameters

NameTypeDescription
accountaddressThe account whose go status to obtain

Return Values

NameTypeDescription
[0]boolThe account's go status

initZapperRole

function initZapperRole() external