JBPermissions

package
v0.0.0-...-21c898a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JBPermissionsABI = JBPermissionsMetaData.ABI

JBPermissionsABI is the input ABI used to generate the binding from. Deprecated: Use JBPermissionsMetaData.ABI instead.

View Source
var JBPermissionsMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"hasPermission\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"permissionId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasPermissions\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"permissionIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"permissionsOf\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setPermissionsFor\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"permissionsData\",\"type\":\"tuple\",\"internalType\":\"structJBPermissionsData\",\"components\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"permissionIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"OperatorPermissionsSet\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"projectId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"permissionIds\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"packed\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"caller\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"PERMISSION_ID_OUT_OF_BOUNDS\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UNAUTHORIZED\",\"inputs\":[]}]",
}

JBPermissionsMetaData contains all meta data concerning the JBPermissions contract.

Functions

This section is empty.

Types

type JBPermissions

type JBPermissions struct {
	JBPermissionsCaller     // Read-only binding to the contract
	JBPermissionsTransactor // Write-only binding to the contract
	JBPermissionsFilterer   // Log filterer for contract events
}

JBPermissions is an auto generated Go binding around an Ethereum contract.

func NewJBPermissions

func NewJBPermissions(address common.Address, backend bind.ContractBackend) (*JBPermissions, error)

NewJBPermissions creates a new instance of JBPermissions, bound to a specific deployed contract.

type JBPermissionsCaller

type JBPermissionsCaller struct {
	// contains filtered or unexported fields
}

JBPermissionsCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewJBPermissionsCaller

func NewJBPermissionsCaller(address common.Address, caller bind.ContractCaller) (*JBPermissionsCaller, error)

NewJBPermissionsCaller creates a new read-only instance of JBPermissions, bound to a specific deployed contract.

func (*JBPermissionsCaller) HasPermission

func (_JBPermissions *JBPermissionsCaller) HasPermission(opts *bind.CallOpts, operator common.Address, account common.Address, projectId *big.Int, permissionId *big.Int) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0xc161c93f.

Solidity: function hasPermission(address operator, address account, uint256 projectId, uint256 permissionId) view returns(bool)

func (*JBPermissionsCaller) HasPermissions

func (_JBPermissions *JBPermissionsCaller) HasPermissions(opts *bind.CallOpts, operator common.Address, account common.Address, projectId *big.Int, permissionIds []*big.Int) (bool, error)

HasPermissions is a free data retrieval call binding the contract method 0x0f5932f0.

Solidity: function hasPermissions(address operator, address account, uint256 projectId, uint256[] permissionIds) view returns(bool)

func (*JBPermissionsCaller) PermissionsOf

func (_JBPermissions *JBPermissionsCaller) PermissionsOf(opts *bind.CallOpts, operator common.Address, account common.Address, projectId *big.Int) (*big.Int, error)

PermissionsOf is a free data retrieval call binding the contract method 0x80deb230.

Solidity: function permissionsOf(address operator, address account, uint256 projectId) view returns(uint256)

type JBPermissionsCallerRaw

type JBPermissionsCallerRaw struct {
	Contract *JBPermissionsCaller // Generic read-only contract binding to access the raw methods on
}

JBPermissionsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*JBPermissionsCallerRaw) Call

func (_JBPermissions *JBPermissionsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type JBPermissionsCallerSession

type JBPermissionsCallerSession struct {
	Contract *JBPermissionsCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

JBPermissionsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*JBPermissionsCallerSession) HasPermission

func (_JBPermissions *JBPermissionsCallerSession) HasPermission(operator common.Address, account common.Address, projectId *big.Int, permissionId *big.Int) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0xc161c93f.

Solidity: function hasPermission(address operator, address account, uint256 projectId, uint256 permissionId) view returns(bool)

func (*JBPermissionsCallerSession) HasPermissions

func (_JBPermissions *JBPermissionsCallerSession) HasPermissions(operator common.Address, account common.Address, projectId *big.Int, permissionIds []*big.Int) (bool, error)

HasPermissions is a free data retrieval call binding the contract method 0x0f5932f0.

Solidity: function hasPermissions(address operator, address account, uint256 projectId, uint256[] permissionIds) view returns(bool)

func (*JBPermissionsCallerSession) PermissionsOf

func (_JBPermissions *JBPermissionsCallerSession) PermissionsOf(operator common.Address, account common.Address, projectId *big.Int) (*big.Int, error)

PermissionsOf is a free data retrieval call binding the contract method 0x80deb230.

Solidity: function permissionsOf(address operator, address account, uint256 projectId) view returns(uint256)

type JBPermissionsData

type JBPermissionsData struct {
	Operator      common.Address
	ProjectId     *big.Int
	PermissionIds []*big.Int
}

JBPermissionsData is an auto generated low-level Go binding around an user-defined struct.

type JBPermissionsFilterer

type JBPermissionsFilterer struct {
	// contains filtered or unexported fields
}

JBPermissionsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewJBPermissionsFilterer

func NewJBPermissionsFilterer(address common.Address, filterer bind.ContractFilterer) (*JBPermissionsFilterer, error)

NewJBPermissionsFilterer creates a new log filterer instance of JBPermissions, bound to a specific deployed contract.

func (*JBPermissionsFilterer) FilterOperatorPermissionsSet

func (_JBPermissions *JBPermissionsFilterer) FilterOperatorPermissionsSet(opts *bind.FilterOpts, operator []common.Address, account []common.Address, projectId []*big.Int) (*JBPermissionsOperatorPermissionsSetIterator, error)

FilterOperatorPermissionsSet is a free log retrieval operation binding the contract event 0xf8cdf10a0ce6189c6d069e97320ef146e2bcbd32d6c0b86dcbfbf3bd8578fa70.

Solidity: event OperatorPermissionsSet(address indexed operator, address indexed account, uint256 indexed projectId, uint256[] permissionIds, uint256 packed, address caller)

func (*JBPermissionsFilterer) ParseOperatorPermissionsSet

func (_JBPermissions *JBPermissionsFilterer) ParseOperatorPermissionsSet(log types.Log) (*JBPermissionsOperatorPermissionsSet, error)

ParseOperatorPermissionsSet is a log parse operation binding the contract event 0xf8cdf10a0ce6189c6d069e97320ef146e2bcbd32d6c0b86dcbfbf3bd8578fa70.

Solidity: event OperatorPermissionsSet(address indexed operator, address indexed account, uint256 indexed projectId, uint256[] permissionIds, uint256 packed, address caller)

func (*JBPermissionsFilterer) WatchOperatorPermissionsSet

func (_JBPermissions *JBPermissionsFilterer) WatchOperatorPermissionsSet(opts *bind.WatchOpts, sink chan<- *JBPermissionsOperatorPermissionsSet, operator []common.Address, account []common.Address, projectId []*big.Int) (event.Subscription, error)

WatchOperatorPermissionsSet is a free log subscription operation binding the contract event 0xf8cdf10a0ce6189c6d069e97320ef146e2bcbd32d6c0b86dcbfbf3bd8578fa70.

Solidity: event OperatorPermissionsSet(address indexed operator, address indexed account, uint256 indexed projectId, uint256[] permissionIds, uint256 packed, address caller)

type JBPermissionsOperatorPermissionsSet

type JBPermissionsOperatorPermissionsSet struct {
	Operator      common.Address
	Account       common.Address
	ProjectId     *big.Int
	PermissionIds []*big.Int
	Packed        *big.Int
	Caller        common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

JBPermissionsOperatorPermissionsSet represents a OperatorPermissionsSet event raised by the JBPermissions contract.

type JBPermissionsOperatorPermissionsSetIterator

type JBPermissionsOperatorPermissionsSetIterator struct {
	Event *JBPermissionsOperatorPermissionsSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

JBPermissionsOperatorPermissionsSetIterator is returned from FilterOperatorPermissionsSet and is used to iterate over the raw logs and unpacked data for OperatorPermissionsSet events raised by the JBPermissions contract.

func (*JBPermissionsOperatorPermissionsSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*JBPermissionsOperatorPermissionsSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*JBPermissionsOperatorPermissionsSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type JBPermissionsRaw

type JBPermissionsRaw struct {
	Contract *JBPermissions // Generic contract binding to access the raw methods on
}

JBPermissionsRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*JBPermissionsRaw) Call

func (_JBPermissions *JBPermissionsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*JBPermissionsRaw) Transact

func (_JBPermissions *JBPermissionsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*JBPermissionsRaw) Transfer

func (_JBPermissions *JBPermissionsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type JBPermissionsSession

type JBPermissionsSession struct {
	Contract     *JBPermissions    // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

JBPermissionsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*JBPermissionsSession) HasPermission

func (_JBPermissions *JBPermissionsSession) HasPermission(operator common.Address, account common.Address, projectId *big.Int, permissionId *big.Int) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0xc161c93f.

Solidity: function hasPermission(address operator, address account, uint256 projectId, uint256 permissionId) view returns(bool)

func (*JBPermissionsSession) HasPermissions

func (_JBPermissions *JBPermissionsSession) HasPermissions(operator common.Address, account common.Address, projectId *big.Int, permissionIds []*big.Int) (bool, error)

HasPermissions is a free data retrieval call binding the contract method 0x0f5932f0.

Solidity: function hasPermissions(address operator, address account, uint256 projectId, uint256[] permissionIds) view returns(bool)

func (*JBPermissionsSession) PermissionsOf

func (_JBPermissions *JBPermissionsSession) PermissionsOf(operator common.Address, account common.Address, projectId *big.Int) (*big.Int, error)

PermissionsOf is a free data retrieval call binding the contract method 0x80deb230.

Solidity: function permissionsOf(address operator, address account, uint256 projectId) view returns(uint256)

func (*JBPermissionsSession) SetPermissionsFor

func (_JBPermissions *JBPermissionsSession) SetPermissionsFor(account common.Address, permissionsData JBPermissionsData) (*types.Transaction, error)

SetPermissionsFor is a paid mutator transaction binding the contract method 0x05d2912e.

Solidity: function setPermissionsFor(address account, (address,uint256,uint256[]) permissionsData) returns()

type JBPermissionsTransactor

type JBPermissionsTransactor struct {
	// contains filtered or unexported fields
}

JBPermissionsTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewJBPermissionsTransactor

func NewJBPermissionsTransactor(address common.Address, transactor bind.ContractTransactor) (*JBPermissionsTransactor, error)

NewJBPermissionsTransactor creates a new write-only instance of JBPermissions, bound to a specific deployed contract.

func (*JBPermissionsTransactor) SetPermissionsFor

func (_JBPermissions *JBPermissionsTransactor) SetPermissionsFor(opts *bind.TransactOpts, account common.Address, permissionsData JBPermissionsData) (*types.Transaction, error)

SetPermissionsFor is a paid mutator transaction binding the contract method 0x05d2912e.

Solidity: function setPermissionsFor(address account, (address,uint256,uint256[]) permissionsData) returns()

type JBPermissionsTransactorRaw

type JBPermissionsTransactorRaw struct {
	Contract *JBPermissionsTransactor // Generic write-only contract binding to access the raw methods on
}

JBPermissionsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*JBPermissionsTransactorRaw) Transact

func (_JBPermissions *JBPermissionsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*JBPermissionsTransactorRaw) Transfer

func (_JBPermissions *JBPermissionsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type JBPermissionsTransactorSession

type JBPermissionsTransactorSession struct {
	Contract     *JBPermissionsTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

JBPermissionsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*JBPermissionsTransactorSession) SetPermissionsFor

func (_JBPermissions *JBPermissionsTransactorSession) SetPermissionsFor(account common.Address, permissionsData JBPermissionsData) (*types.Transaction, error)

SetPermissionsFor is a paid mutator transaction binding the contract method 0x05d2912e.

Solidity: function setPermissionsFor(address account, (address,uint256,uint256[]) permissionsData) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL