Documentation
¶
Index ¶
- Constants
- Variables
- func SdidUnauthorizedErrorID() common.Hash
- func SdidZeroAddressErrorID() common.Hash
- type MultiPrivilegeSetPrivilegeData
- type PrivilegeRecordOutput
- type Sdid
- func (c *Sdid) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
- func (sdid *Sdid) PackADMINROLE() []byte
- func (sdid *Sdid) PackApprove(to common.Address, tokenId *big.Int) []byte
- func (sdid *Sdid) PackBURNERROLE() []byte
- func (sdid *Sdid) PackBalanceOf(owner common.Address) []byte
- func (sdid *Sdid) PackBurn(tokenId *big.Int) []byte
- func (sdid *Sdid) PackCreatePrivilege(enabled bool, description string) []byte
- func (sdid *Sdid) PackDEFAULTADMINROLE() []byte
- func (sdid *Sdid) PackDimoRegistry() []byte
- func (sdid *Sdid) PackDisablePrivilege(privId *big.Int) []byte
- func (sdid *Sdid) PackEnablePrivilege(privId *big.Int) []byte
- func (sdid *Sdid) PackExists(tokenId *big.Int) []byte
- func (sdid *Sdid) PackGetApproved(tokenId *big.Int) []byte
- func (sdid *Sdid) PackGetRoleAdmin(role [32]byte) []byte
- func (sdid *Sdid) PackGrantRole(role [32]byte, account common.Address) []byte
- func (sdid *Sdid) PackHasPrivilege(tokenId *big.Int, privId *big.Int, user common.Address) []byte
- func (sdid *Sdid) PackHasRole(role [32]byte, account common.Address) []byte
- func (sdid *Sdid) PackInitialize(name string, symbol string, baseUri string, dimoRegistry common.Address, ...) []byte
- func (sdid *Sdid) PackIsApprovedForAll(owner common.Address, operator common.Address) []byte
- func (sdid *Sdid) PackMINTERROLE() []byte
- func (sdid *Sdid) PackName() []byte
- func (sdid *Sdid) PackOwnerOf(tokenId *big.Int) []byte
- func (sdid *Sdid) PackPrivilegeEntry(arg0 *big.Int, arg1 *big.Int, arg2 *big.Int, arg3 common.Address) []byte
- func (sdid *Sdid) PackPrivilegeExpiresAt(tokenId *big.Int, privId *big.Int, user common.Address) []byte
- func (sdid *Sdid) PackPrivilegeRecord(arg0 *big.Int) []byte
- func (sdid *Sdid) PackProxiableUUID() []byte
- func (sdid *Sdid) PackRenounceRole(role [32]byte, account common.Address) []byte
- func (sdid *Sdid) PackRevokeRole(role [32]byte, account common.Address) []byte
- func (sdid *Sdid) PackSafeMint(to common.Address) []byte
- func (sdid *Sdid) PackSafeMint0(to common.Address, uri string) []byte
- func (sdid *Sdid) PackSafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) []byte
- func (sdid *Sdid) PackSafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) []byte
- func (sdid *Sdid) PackSetApprovalForAll(operator common.Address, approved bool) []byte
- func (sdid *Sdid) PackSetBaseURI(baseURI string) []byte
- func (sdid *Sdid) PackSetDimoRegistryAddress(dimoRegistry common.Address) []byte
- func (sdid *Sdid) PackSetPrivilege(tokenId *big.Int, privId *big.Int, user common.Address, expires *big.Int) []byte
- func (sdid *Sdid) PackSetPrivileges(privData []MultiPrivilegeSetPrivilegeData) []byte
- func (sdid *Sdid) PackSetTrustedForwarder(addr common.Address, trusted bool) []byte
- func (sdid *Sdid) PackSupportsInterface(interfaceId [4]byte) []byte
- func (sdid *Sdid) PackSymbol() []byte
- func (sdid *Sdid) PackTRANSFERERROLE() []byte
- func (sdid *Sdid) PackTokenIdToVersion(arg0 *big.Int) []byte
- func (sdid *Sdid) PackTokenURI(tokenId *big.Int) []byte
- func (sdid *Sdid) PackTransferFrom(from common.Address, to common.Address, tokenId *big.Int) []byte
- func (sdid *Sdid) PackTrustedForwarders(arg0 common.Address) []byte
- func (sdid *Sdid) PackUPGRADERROLE() []byte
- func (sdid *Sdid) PackUpgradeTo(newImplementation common.Address) []byte
- func (sdid *Sdid) PackUpgradeToAndCall(newImplementation common.Address, data []byte) []byte
- func (sdid *Sdid) UnpackADMINROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackAdminChangedEvent(log *types.Log) (*SdidAdminChanged, error)
- func (sdid *Sdid) UnpackApprovalEvent(log *types.Log) (*SdidApproval, error)
- func (sdid *Sdid) UnpackApprovalForAllEvent(log *types.Log) (*SdidApprovalForAll, error)
- func (sdid *Sdid) UnpackBURNERROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackBalanceOf(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackBatchMetadataUpdateEvent(log *types.Log) (*SdidBatchMetadataUpdate, error)
- func (sdid *Sdid) UnpackBeaconUpgradedEvent(log *types.Log) (*SdidBeaconUpgraded, error)
- func (sdid *Sdid) UnpackDEFAULTADMINROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackDimoRegistry(data []byte) (common.Address, error)
- func (sdid *Sdid) UnpackError(raw []byte) (any, error)
- func (sdid *Sdid) UnpackExists(data []byte) (bool, error)
- func (sdid *Sdid) UnpackGetApproved(data []byte) (common.Address, error)
- func (sdid *Sdid) UnpackGetRoleAdmin(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackHasPrivilege(data []byte) (bool, error)
- func (sdid *Sdid) UnpackHasRole(data []byte) (bool, error)
- func (sdid *Sdid) UnpackInitializedEvent(log *types.Log) (*SdidInitialized, error)
- func (sdid *Sdid) UnpackIsApprovedForAll(data []byte) (bool, error)
- func (sdid *Sdid) UnpackMINTERROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackMetadataUpdateEvent(log *types.Log) (*SdidMetadataUpdate, error)
- func (sdid *Sdid) UnpackName(data []byte) (string, error)
- func (sdid *Sdid) UnpackOwnerOf(data []byte) (common.Address, error)
- func (sdid *Sdid) UnpackPrivilegeCreatedEvent(log *types.Log) (*SdidPrivilegeCreated, error)
- func (sdid *Sdid) UnpackPrivilegeDisabledEvent(log *types.Log) (*SdidPrivilegeDisabled, error)
- func (sdid *Sdid) UnpackPrivilegeEnabledEvent(log *types.Log) (*SdidPrivilegeEnabled, error)
- func (sdid *Sdid) UnpackPrivilegeEntry(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackPrivilegeExpiresAt(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackPrivilegeRecord(data []byte) (PrivilegeRecordOutput, error)
- func (sdid *Sdid) UnpackPrivilegeSetEvent(log *types.Log) (*SdidPrivilegeSet, error)
- func (sdid *Sdid) UnpackProxiableUUID(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackRoleAdminChangedEvent(log *types.Log) (*SdidRoleAdminChanged, error)
- func (sdid *Sdid) UnpackRoleGrantedEvent(log *types.Log) (*SdidRoleGranted, error)
- func (sdid *Sdid) UnpackRoleRevokedEvent(log *types.Log) (*SdidRoleRevoked, error)
- func (sdid *Sdid) UnpackSafeMint(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackSafeMint0(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackSupportsInterface(data []byte) (bool, error)
- func (sdid *Sdid) UnpackSymbol(data []byte) (string, error)
- func (sdid *Sdid) UnpackTRANSFERERROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackTokenIdToVersion(data []byte) (*big.Int, error)
- func (sdid *Sdid) UnpackTokenURI(data []byte) (string, error)
- func (sdid *Sdid) UnpackTransferEvent(log *types.Log) (*SdidTransfer, error)
- func (sdid *Sdid) UnpackTrustedForwarders(data []byte) (bool, error)
- func (sdid *Sdid) UnpackUPGRADERROLE(data []byte) ([32]byte, error)
- func (sdid *Sdid) UnpackUnauthorizedError(raw []byte) (*SdidUnauthorized, error)
- func (sdid *Sdid) UnpackUpgradedEvent(log *types.Log) (*SdidUpgraded, error)
- func (sdid *Sdid) UnpackZeroAddressError(raw []byte) (*SdidZeroAddress, error)
- type SdidAdminChanged
- type SdidApproval
- type SdidApprovalForAll
- type SdidBatchMetadataUpdate
- type SdidBeaconUpgraded
- type SdidInitialized
- type SdidMetadataUpdate
- type SdidPrivilegeCreated
- type SdidPrivilegeDisabled
- type SdidPrivilegeEnabled
- type SdidPrivilegeSet
- type SdidRoleAdminChanged
- type SdidRoleGranted
- type SdidRoleRevoked
- type SdidTransfer
- type SdidUnauthorized
- type SdidUpgraded
- type SdidZeroAddress
Constants ¶
const SdidAdminChangedEventName = "AdminChanged"
const SdidApprovalEventName = "Approval"
const SdidApprovalForAllEventName = "ApprovalForAll"
const SdidBatchMetadataUpdateEventName = "BatchMetadataUpdate"
const SdidBeaconUpgradedEventName = "BeaconUpgraded"
const SdidInitializedEventName = "Initialized"
const SdidMetadataUpdateEventName = "MetadataUpdate"
const SdidPrivilegeCreatedEventName = "PrivilegeCreated"
const SdidPrivilegeDisabledEventName = "PrivilegeDisabled"
const SdidPrivilegeEnabledEventName = "PrivilegeEnabled"
const SdidPrivilegeSetEventName = "PrivilegeSet"
const SdidRoleAdminChangedEventName = "RoleAdminChanged"
const SdidRoleGrantedEventName = "RoleGranted"
const SdidRoleRevokedEventName = "RoleRevoked"
const SdidTransferEventName = "Transfer"
const SdidUpgradedEventName = "Upgraded"
Variables ¶
var SdidMetaData = bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_toTokenId\",\"type\":\"uint256\"}],\"name\":\"BatchMetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"privilegeId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"PrivilegeCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"privilegeId\",\"type\":\"uint256\"}],\"name\":\"PrivilegeDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"privilegeId\",\"type\":\"uint256\"}],\"name\":\"PrivilegeEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"PrivilegeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BURNER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFERER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPGRADER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"createPrivilege\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dimoRegistry\",\"outputs\":[{\"internalType\":\"contractIDimoRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"}],\"name\":\"disablePrivilege\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"}],\"name\":\"enablePrivilege\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"exists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPrivilege\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"baseUri_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"dimoRegistry_\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"trustedForwarders_\",\"type\":\"address[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"privilegeEntry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"privilegeExpiresAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"privilegeRecord\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"safeMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"safeMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dimoRegistry_\",\"type\":\"address\"}],\"name\":\"setDimoRegistryAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"setPrivilege\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"privId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"internalType\":\"structMultiPrivilege.SetPrivilegeData[]\",\"name\":\"privData\",\"type\":\"tuple[]\"}],\"name\":\"setPrivileges\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"trusted\",\"type\":\"bool\"}],\"name\":\"setTrustedForwarder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenIdToVersion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustedForwarders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
ID: "Sdid",
}
SdidMetaData contains all meta data concerning the Sdid contract.
Functions ¶
func SdidUnauthorizedErrorID ¶
ErrorID returns the hash of canonical representation of the error's signature.
Solidity: error Unauthorized()
func SdidZeroAddressErrorID ¶
ErrorID returns the hash of canonical representation of the error's signature.
Solidity: error ZeroAddress()
Types ¶
type MultiPrivilegeSetPrivilegeData ¶
type MultiPrivilegeSetPrivilegeData struct { TokenId *big.Int PrivId *big.Int User common.Address Expires *big.Int }
MultiPrivilegeSetPrivilegeData is an auto generated low-level Go binding around an user-defined struct.
type PrivilegeRecordOutput ¶
PrivilegeRecordOutput serves as a container for the return parameters of contract method PrivilegeRecord.
type Sdid ¶
type Sdid struct {
// contains filtered or unexported fields
}
Sdid is an auto generated Go binding around an Ethereum contract.
func (*Sdid) Instance ¶
Instance creates a wrapper for a deployed contract instance at the given address. Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
func (*Sdid) PackADMINROLE ¶
PackADMINROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*Sdid) PackApprove ¶
PackApprove is the Go binding used to pack the parameters required for calling the contract method with ID 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*Sdid) PackBURNERROLE ¶
PackBURNERROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0x282c51f3.
Solidity: function BURNER_ROLE() view returns(bytes32)
func (*Sdid) PackBalanceOf ¶
PackBalanceOf is the Go binding used to pack the parameters required for calling the contract method with ID 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*Sdid) PackBurn ¶
PackBurn is the Go binding used to pack the parameters required for calling the contract method with ID 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*Sdid) PackCreatePrivilege ¶
PackCreatePrivilege is the Go binding used to pack the parameters required for calling the contract method with ID 0xc1d58b3b.
Solidity: function createPrivilege(bool enabled, string description) returns()
func (*Sdid) PackDEFAULTADMINROLE ¶
PackDEFAULTADMINROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*Sdid) PackDimoRegistry ¶
PackDimoRegistry is the Go binding used to pack the parameters required for calling the contract method with ID 0x20678275.
Solidity: function dimoRegistry() view returns(address)
func (*Sdid) PackDisablePrivilege ¶
PackDisablePrivilege is the Go binding used to pack the parameters required for calling the contract method with ID 0x1a153ed0.
Solidity: function disablePrivilege(uint256 privId) returns()
func (*Sdid) PackEnablePrivilege ¶
PackEnablePrivilege is the Go binding used to pack the parameters required for calling the contract method with ID 0x831ba696.
Solidity: function enablePrivilege(uint256 privId) returns()
func (*Sdid) PackExists ¶
PackExists is the Go binding used to pack the parameters required for calling the contract method with ID 0x4f558e79.
Solidity: function exists(uint256 tokenId) view returns(bool)
func (*Sdid) PackGetApproved ¶
PackGetApproved is the Go binding used to pack the parameters required for calling the contract method with ID 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*Sdid) PackGetRoleAdmin ¶
PackGetRoleAdmin is the Go binding used to pack the parameters required for calling the contract method with ID 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*Sdid) PackGrantRole ¶
PackGrantRole is the Go binding used to pack the parameters required for calling the contract method with ID 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*Sdid) PackHasPrivilege ¶
PackHasPrivilege is the Go binding used to pack the parameters required for calling the contract method with ID 0x05d80b00.
Solidity: function hasPrivilege(uint256 tokenId, uint256 privId, address user) view returns(bool)
func (*Sdid) PackHasRole ¶
PackHasRole is the Go binding used to pack the parameters required for calling the contract method with ID 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*Sdid) PackInitialize ¶
func (sdid *Sdid) PackInitialize(name string, symbol string, baseUri string, dimoRegistry common.Address, trustedForwarders []common.Address) []byte
PackInitialize is the Go binding used to pack the parameters required for calling the contract method with ID 0x2cd0213f.
Solidity: function initialize(string name_, string symbol_, string baseUri_, address dimoRegistry_, address[] trustedForwarders_) returns()
func (*Sdid) PackIsApprovedForAll ¶
PackIsApprovedForAll is the Go binding used to pack the parameters required for calling the contract method with ID 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*Sdid) PackMINTERROLE ¶
PackMINTERROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0xd5391393.
Solidity: function MINTER_ROLE() view returns(bytes32)
func (*Sdid) PackName ¶
PackName is the Go binding used to pack the parameters required for calling the contract method with ID 0x06fdde03.
Solidity: function name() view returns(string)
func (*Sdid) PackOwnerOf ¶
PackOwnerOf is the Go binding used to pack the parameters required for calling the contract method with ID 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*Sdid) PackPrivilegeEntry ¶
func (sdid *Sdid) PackPrivilegeEntry(arg0 *big.Int, arg1 *big.Int, arg2 *big.Int, arg3 common.Address) []byte
PackPrivilegeEntry is the Go binding used to pack the parameters required for calling the contract method with ID 0x48db4640.
Solidity: function privilegeEntry(uint256 , uint256 , uint256 , address ) view returns(uint256)
func (*Sdid) PackPrivilegeExpiresAt ¶
func (sdid *Sdid) PackPrivilegeExpiresAt(tokenId *big.Int, privId *big.Int, user common.Address) []byte
PackPrivilegeExpiresAt is the Go binding used to pack the parameters required for calling the contract method with ID 0xd0f8f5f6.
Solidity: function privilegeExpiresAt(uint256 tokenId, uint256 privId, address user) view returns(uint256)
func (*Sdid) PackPrivilegeRecord ¶
PackPrivilegeRecord is the Go binding used to pack the parameters required for calling the contract method with ID 0xf9ad3efe.
Solidity: function privilegeRecord(uint256 ) view returns(bool enabled, string description)
func (*Sdid) PackProxiableUUID ¶
PackProxiableUUID is the Go binding used to pack the parameters required for calling the contract method with ID 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*Sdid) PackRenounceRole ¶
PackRenounceRole is the Go binding used to pack the parameters required for calling the contract method with ID 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*Sdid) PackRevokeRole ¶
PackRevokeRole is the Go binding used to pack the parameters required for calling the contract method with ID 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*Sdid) PackSafeMint ¶
PackSafeMint is the Go binding used to pack the parameters required for calling the contract method with ID 0x40d097c3.
Solidity: function safeMint(address to) returns(uint256 tokenId)
func (*Sdid) PackSafeMint0 ¶
PackSafeMint0 is the Go binding used to pack the parameters required for calling the contract method with ID 0xd204c45e.
Solidity: function safeMint(address to, string uri) returns(uint256 tokenId)
func (*Sdid) PackSafeTransferFrom ¶
func (sdid *Sdid) PackSafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) []byte
PackSafeTransferFrom is the Go binding used to pack the parameters required for calling the contract method with ID 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*Sdid) PackSafeTransferFrom0 ¶
func (sdid *Sdid) PackSafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) []byte
PackSafeTransferFrom0 is the Go binding used to pack the parameters required for calling the contract method with ID 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*Sdid) PackSetApprovalForAll ¶
PackSetApprovalForAll is the Go binding used to pack the parameters required for calling the contract method with ID 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*Sdid) PackSetBaseURI ¶
PackSetBaseURI is the Go binding used to pack the parameters required for calling the contract method with ID 0x55f804b3.
Solidity: function setBaseURI(string baseURI_) returns()
func (*Sdid) PackSetDimoRegistryAddress ¶
PackSetDimoRegistryAddress is the Go binding used to pack the parameters required for calling the contract method with ID 0x0db857ea.
Solidity: function setDimoRegistryAddress(address dimoRegistry_) returns()
func (*Sdid) PackSetPrivilege ¶
func (sdid *Sdid) PackSetPrivilege(tokenId *big.Int, privId *big.Int, user common.Address, expires *big.Int) []byte
PackSetPrivilege is the Go binding used to pack the parameters required for calling the contract method with ID 0xeca3221a.
Solidity: function setPrivilege(uint256 tokenId, uint256 privId, address user, uint256 expires) returns()
func (*Sdid) PackSetPrivileges ¶
func (sdid *Sdid) PackSetPrivileges(privData []MultiPrivilegeSetPrivilegeData) []byte
PackSetPrivileges is the Go binding used to pack the parameters required for calling the contract method with ID 0x57ae9754.
Solidity: function setPrivileges((uint256,uint256,address,uint256)[] privData) returns()
func (*Sdid) PackSetTrustedForwarder ¶
PackSetTrustedForwarder is the Go binding used to pack the parameters required for calling the contract method with ID 0xe691d03b.
Solidity: function setTrustedForwarder(address addr, bool trusted) returns()
func (*Sdid) PackSupportsInterface ¶
PackSupportsInterface is the Go binding used to pack the parameters required for calling the contract method with ID 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*Sdid) PackSymbol ¶
PackSymbol is the Go binding used to pack the parameters required for calling the contract method with ID 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Sdid) PackTRANSFERERROLE ¶
PackTRANSFERERROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0x0ade7dc1.
Solidity: function TRANSFERER_ROLE() view returns(bytes32)
func (*Sdid) PackTokenIdToVersion ¶
PackTokenIdToVersion is the Go binding used to pack the parameters required for calling the contract method with ID 0xf1a9d41c.
Solidity: function tokenIdToVersion(uint256 ) view returns(uint256)
func (*Sdid) PackTokenURI ¶
PackTokenURI is the Go binding used to pack the parameters required for calling the contract method with ID 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*Sdid) PackTransferFrom ¶
PackTransferFrom is the Go binding used to pack the parameters required for calling the contract method with ID 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
func (*Sdid) PackTrustedForwarders ¶
PackTrustedForwarders is the Go binding used to pack the parameters required for calling the contract method with ID 0x54776bb9.
Solidity: function trustedForwarders(address ) view returns(bool)
func (*Sdid) PackUPGRADERROLE ¶
PackUPGRADERROLE is the Go binding used to pack the parameters required for calling the contract method with ID 0xf72c0d8b.
Solidity: function UPGRADER_ROLE() view returns(bytes32)
func (*Sdid) PackUpgradeTo ¶
PackUpgradeTo is the Go binding used to pack the parameters required for calling the contract method with ID 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*Sdid) PackUpgradeToAndCall ¶
PackUpgradeToAndCall is the Go binding used to pack the parameters required for calling the contract method with ID 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*Sdid) UnpackADMINROLE ¶
UnpackADMINROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*Sdid) UnpackAdminChangedEvent ¶
func (sdid *Sdid) UnpackAdminChangedEvent(log *types.Log) (*SdidAdminChanged, error)
UnpackAdminChangedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*Sdid) UnpackApprovalEvent ¶
func (sdid *Sdid) UnpackApprovalEvent(log *types.Log) (*SdidApproval, error)
UnpackApprovalEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*Sdid) UnpackApprovalForAllEvent ¶
func (sdid *Sdid) UnpackApprovalForAllEvent(log *types.Log) (*SdidApprovalForAll, error)
UnpackApprovalForAllEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*Sdid) UnpackBURNERROLE ¶
UnpackBURNERROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x282c51f3.
Solidity: function BURNER_ROLE() view returns(bytes32)
func (*Sdid) UnpackBalanceOf ¶
UnpackBalanceOf is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*Sdid) UnpackBatchMetadataUpdateEvent ¶
func (sdid *Sdid) UnpackBatchMetadataUpdateEvent(log *types.Log) (*SdidBatchMetadataUpdate, error)
UnpackBatchMetadataUpdateEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId)
func (*Sdid) UnpackBeaconUpgradedEvent ¶
func (sdid *Sdid) UnpackBeaconUpgradedEvent(log *types.Log) (*SdidBeaconUpgraded, error)
UnpackBeaconUpgradedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*Sdid) UnpackDEFAULTADMINROLE ¶
UnpackDEFAULTADMINROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*Sdid) UnpackDimoRegistry ¶
UnpackDimoRegistry is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x20678275.
Solidity: function dimoRegistry() view returns(address)
func (*Sdid) UnpackError ¶
UnpackError attempts to decode the provided error data using user-defined error definitions.
func (*Sdid) UnpackExists ¶
UnpackExists is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x4f558e79.
Solidity: function exists(uint256 tokenId) view returns(bool)
func (*Sdid) UnpackGetApproved ¶
UnpackGetApproved is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*Sdid) UnpackGetRoleAdmin ¶
UnpackGetRoleAdmin is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*Sdid) UnpackHasPrivilege ¶
UnpackHasPrivilege is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x05d80b00.
Solidity: function hasPrivilege(uint256 tokenId, uint256 privId, address user) view returns(bool)
func (*Sdid) UnpackHasRole ¶
UnpackHasRole is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*Sdid) UnpackInitializedEvent ¶
func (sdid *Sdid) UnpackInitializedEvent(log *types.Log) (*SdidInitialized, error)
UnpackInitializedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event Initialized(uint8 version)
func (*Sdid) UnpackIsApprovedForAll ¶
UnpackIsApprovedForAll is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*Sdid) UnpackMINTERROLE ¶
UnpackMINTERROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xd5391393.
Solidity: function MINTER_ROLE() view returns(bytes32)
func (*Sdid) UnpackMetadataUpdateEvent ¶
func (sdid *Sdid) UnpackMetadataUpdateEvent(log *types.Log) (*SdidMetadataUpdate, error)
UnpackMetadataUpdateEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event MetadataUpdate(uint256 _tokenId)
func (*Sdid) UnpackName ¶
UnpackName is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x06fdde03.
Solidity: function name() view returns(string)
func (*Sdid) UnpackOwnerOf ¶
UnpackOwnerOf is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*Sdid) UnpackPrivilegeCreatedEvent ¶
func (sdid *Sdid) UnpackPrivilegeCreatedEvent(log *types.Log) (*SdidPrivilegeCreated, error)
UnpackPrivilegeCreatedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event PrivilegeCreated(uint256 indexed privilegeId, bool enabled, string description)
func (*Sdid) UnpackPrivilegeDisabledEvent ¶
func (sdid *Sdid) UnpackPrivilegeDisabledEvent(log *types.Log) (*SdidPrivilegeDisabled, error)
UnpackPrivilegeDisabledEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event PrivilegeDisabled(uint256 indexed privilegeId)
func (*Sdid) UnpackPrivilegeEnabledEvent ¶
func (sdid *Sdid) UnpackPrivilegeEnabledEvent(log *types.Log) (*SdidPrivilegeEnabled, error)
UnpackPrivilegeEnabledEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event PrivilegeEnabled(uint256 indexed privilegeId)
func (*Sdid) UnpackPrivilegeEntry ¶
UnpackPrivilegeEntry is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x48db4640.
Solidity: function privilegeEntry(uint256 , uint256 , uint256 , address ) view returns(uint256)
func (*Sdid) UnpackPrivilegeExpiresAt ¶
UnpackPrivilegeExpiresAt is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xd0f8f5f6.
Solidity: function privilegeExpiresAt(uint256 tokenId, uint256 privId, address user) view returns(uint256)
func (*Sdid) UnpackPrivilegeRecord ¶
func (sdid *Sdid) UnpackPrivilegeRecord(data []byte) (PrivilegeRecordOutput, error)
UnpackPrivilegeRecord is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xf9ad3efe.
Solidity: function privilegeRecord(uint256 ) view returns(bool enabled, string description)
func (*Sdid) UnpackPrivilegeSetEvent ¶
func (sdid *Sdid) UnpackPrivilegeSetEvent(log *types.Log) (*SdidPrivilegeSet, error)
UnpackPrivilegeSetEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event PrivilegeSet(uint256 indexed tokenId, uint256 version, uint256 indexed privId, address indexed user, uint256 expires)
func (*Sdid) UnpackProxiableUUID ¶
UnpackProxiableUUID is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*Sdid) UnpackRoleAdminChangedEvent ¶
func (sdid *Sdid) UnpackRoleAdminChangedEvent(log *types.Log) (*SdidRoleAdminChanged, error)
UnpackRoleAdminChangedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*Sdid) UnpackRoleGrantedEvent ¶
func (sdid *Sdid) UnpackRoleGrantedEvent(log *types.Log) (*SdidRoleGranted, error)
UnpackRoleGrantedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*Sdid) UnpackRoleRevokedEvent ¶
func (sdid *Sdid) UnpackRoleRevokedEvent(log *types.Log) (*SdidRoleRevoked, error)
UnpackRoleRevokedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*Sdid) UnpackSafeMint ¶
UnpackSafeMint is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x40d097c3.
Solidity: function safeMint(address to) returns(uint256 tokenId)
func (*Sdid) UnpackSafeMint0 ¶
UnpackSafeMint0 is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xd204c45e.
Solidity: function safeMint(address to, string uri) returns(uint256 tokenId)
func (*Sdid) UnpackSupportsInterface ¶
UnpackSupportsInterface is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*Sdid) UnpackSymbol ¶
UnpackSymbol is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Sdid) UnpackTRANSFERERROLE ¶
UnpackTRANSFERERROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x0ade7dc1.
Solidity: function TRANSFERER_ROLE() view returns(bytes32)
func (*Sdid) UnpackTokenIdToVersion ¶
UnpackTokenIdToVersion is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xf1a9d41c.
Solidity: function tokenIdToVersion(uint256 ) view returns(uint256)
func (*Sdid) UnpackTokenURI ¶
UnpackTokenURI is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*Sdid) UnpackTransferEvent ¶
func (sdid *Sdid) UnpackTransferEvent(log *types.Log) (*SdidTransfer, error)
UnpackTransferEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*Sdid) UnpackTrustedForwarders ¶
UnpackTrustedForwarders is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x54776bb9.
Solidity: function trustedForwarders(address ) view returns(bool)
func (*Sdid) UnpackUPGRADERROLE ¶
UnpackUPGRADERROLE is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xf72c0d8b.
Solidity: function UPGRADER_ROLE() view returns(bytes32)
func (*Sdid) UnpackUnauthorizedError ¶
func (sdid *Sdid) UnpackUnauthorizedError(raw []byte) (*SdidUnauthorized, error)
UnpackUnauthorizedError is the Go binding used to decode the provided error data into the corresponding Go error struct.
Solidity: error Unauthorized()
func (*Sdid) UnpackUpgradedEvent ¶
func (sdid *Sdid) UnpackUpgradedEvent(log *types.Log) (*SdidUpgraded, error)
UnpackUpgradedEvent is the Go binding that unpacks the event data emitted by contract.
Solidity: event Upgraded(address indexed implementation)
func (*Sdid) UnpackZeroAddressError ¶
func (sdid *Sdid) UnpackZeroAddressError(raw []byte) (*SdidZeroAddress, error)
UnpackZeroAddressError is the Go binding used to decode the provided error data into the corresponding Go error struct.
Solidity: error ZeroAddress()
type SdidAdminChanged ¶
type SdidAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw *types.Log // Blockchain specific contextual infos }
SdidAdminChanged represents a AdminChanged event raised by the Sdid contract.
func (SdidAdminChanged) ContractEventName ¶
func (SdidAdminChanged) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidApproval ¶
type SdidApproval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidApproval represents a Approval event raised by the Sdid contract.
func (SdidApproval) ContractEventName ¶
func (SdidApproval) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidApprovalForAll ¶
type SdidApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw *types.Log // Blockchain specific contextual infos }
SdidApprovalForAll represents a ApprovalForAll event raised by the Sdid contract.
func (SdidApprovalForAll) ContractEventName ¶
func (SdidApprovalForAll) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidBatchMetadataUpdate ¶
type SdidBatchMetadataUpdate struct { FromTokenId *big.Int ToTokenId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidBatchMetadataUpdate represents a BatchMetadataUpdate event raised by the Sdid contract.
func (SdidBatchMetadataUpdate) ContractEventName ¶
func (SdidBatchMetadataUpdate) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidBeaconUpgraded ¶
type SdidBeaconUpgraded struct { Beacon common.Address Raw *types.Log // Blockchain specific contextual infos }
SdidBeaconUpgraded represents a BeaconUpgraded event raised by the Sdid contract.
func (SdidBeaconUpgraded) ContractEventName ¶
func (SdidBeaconUpgraded) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidInitialized ¶
type SdidInitialized struct { Version uint8 Raw *types.Log // Blockchain specific contextual infos }
SdidInitialized represents a Initialized event raised by the Sdid contract.
func (SdidInitialized) ContractEventName ¶
func (SdidInitialized) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidMetadataUpdate ¶
type SdidMetadataUpdate struct { TokenId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidMetadataUpdate represents a MetadataUpdate event raised by the Sdid contract.
func (SdidMetadataUpdate) ContractEventName ¶
func (SdidMetadataUpdate) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidPrivilegeCreated ¶
type SdidPrivilegeCreated struct { PrivilegeId *big.Int Enabled bool Description string Raw *types.Log // Blockchain specific contextual infos }
SdidPrivilegeCreated represents a PrivilegeCreated event raised by the Sdid contract.
func (SdidPrivilegeCreated) ContractEventName ¶
func (SdidPrivilegeCreated) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidPrivilegeDisabled ¶
type SdidPrivilegeDisabled struct { PrivilegeId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidPrivilegeDisabled represents a PrivilegeDisabled event raised by the Sdid contract.
func (SdidPrivilegeDisabled) ContractEventName ¶
func (SdidPrivilegeDisabled) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidPrivilegeEnabled ¶
type SdidPrivilegeEnabled struct { PrivilegeId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidPrivilegeEnabled represents a PrivilegeEnabled event raised by the Sdid contract.
func (SdidPrivilegeEnabled) ContractEventName ¶
func (SdidPrivilegeEnabled) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidPrivilegeSet ¶
type SdidPrivilegeSet struct { TokenId *big.Int Version *big.Int PrivId *big.Int User common.Address Expires *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidPrivilegeSet represents a PrivilegeSet event raised by the Sdid contract.
func (SdidPrivilegeSet) ContractEventName ¶
func (SdidPrivilegeSet) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidRoleAdminChanged ¶
type SdidRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw *types.Log // Blockchain specific contextual infos }
SdidRoleAdminChanged represents a RoleAdminChanged event raised by the Sdid contract.
func (SdidRoleAdminChanged) ContractEventName ¶
func (SdidRoleAdminChanged) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidRoleGranted ¶
type SdidRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw *types.Log // Blockchain specific contextual infos }
SdidRoleGranted represents a RoleGranted event raised by the Sdid contract.
func (SdidRoleGranted) ContractEventName ¶
func (SdidRoleGranted) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidRoleRevoked ¶
type SdidRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw *types.Log // Blockchain specific contextual infos }
SdidRoleRevoked represents a RoleRevoked event raised by the Sdid contract.
func (SdidRoleRevoked) ContractEventName ¶
func (SdidRoleRevoked) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidTransfer ¶
type SdidTransfer struct { From common.Address To common.Address TokenId *big.Int Raw *types.Log // Blockchain specific contextual infos }
SdidTransfer represents a Transfer event raised by the Sdid contract.
func (SdidTransfer) ContractEventName ¶
func (SdidTransfer) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidUnauthorized ¶
type SdidUnauthorized struct { }
SdidUnauthorized represents a Unauthorized error raised by the Sdid contract.
type SdidUpgraded ¶
type SdidUpgraded struct { Implementation common.Address Raw *types.Log // Blockchain specific contextual infos }
SdidUpgraded represents a Upgraded event raised by the Sdid contract.
func (SdidUpgraded) ContractEventName ¶
func (SdidUpgraded) ContractEventName() string
ContractEventName returns the user-defined event name.
type SdidZeroAddress ¶
type SdidZeroAddress struct { }
SdidZeroAddress represents a ZeroAddress error raised by the Sdid contract.