Documentation ¶
Overview ¶
Package metatx defines a Transactor that uses meta transactions to pay gas fees on behalf of a user.
Index ¶
- func NewTransactor(base types.TransactorAPI, meta gasless.Transactor, signer gasless.Signer) types.TransactorAPI
- func TransactOpts(account accounts.Account, wallet accounts.Wallet, chainID *big.Int) *bind.TransactOpts
- type Transactor
- func (t *Transactor) CreateOrganizationTx(txopts *bind.TransactOpts, metaCID cid.Cid) (*ethtypes.Transaction, error)
- func (t *Transactor) CreateRepositoryTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, repoMeta string) (*ethtypes.Transaction, error)
- func (t *Transactor) LinkOrganizationNameTx(txopts *bind.TransactOpts, orgID common.Hash, name string) (*ethtypes.Transaction, error)
- func (t *Transactor) SetRepositoryMetaTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, repoMeta string) (*ethtypes.Transaction, error)
- func (t *Transactor) VoteOrganizationThresholdTx(txopts *bind.TransactOpts, orgID common.Hash, threshold *big.Int) (*ethtypes.Transaction, error)
- func (t *Transactor) VoteReleaseTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, ...) (*ethtypes.Transaction, error)
- func (t *Transactor) VoteRepositoryThresholdTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, ...) (*ethtypes.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransactor ¶
func NewTransactor(base types.TransactorAPI, meta gasless.Transactor, signer gasless.Signer) types.TransactorAPI
func TransactOpts ¶
func TransactOpts(account accounts.Account, wallet accounts.Wallet, chainID *big.Int) *bind.TransactOpts
TransactOpts returns transaction options for a meta transcation.
Types ¶
type Transactor ¶
type Transactor struct {
// contains filtered or unexported fields
}
func (*Transactor) CreateOrganizationTx ¶
func (t *Transactor) CreateOrganizationTx(txopts *bind.TransactOpts, metaCID cid.Cid) (*ethtypes.Transaction, error)
func (*Transactor) CreateRepositoryTx ¶
func (t *Transactor) CreateRepositoryTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, repoMeta string) (*ethtypes.Transaction, error)
func (*Transactor) LinkOrganizationNameTx ¶
func (t *Transactor) LinkOrganizationNameTx(txopts *bind.TransactOpts, orgID common.Hash, name string) (*ethtypes.Transaction, error)
func (*Transactor) SetRepositoryMetaTx ¶
func (t *Transactor) SetRepositoryMetaTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, repoMeta string) (*ethtypes.Transaction, error)
func (*Transactor) VoteOrganizationThresholdTx ¶
func (t *Transactor) VoteOrganizationThresholdTx(txopts *bind.TransactOpts, orgID common.Hash, threshold *big.Int) (*ethtypes.Transaction, error)
func (*Transactor) VoteReleaseTx ¶
func (t *Transactor) VoteReleaseTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, release *types.Release) (*ethtypes.Transaction, error)
func (*Transactor) VoteRepositoryThresholdTx ¶
func (t *Transactor) VoteRepositoryThresholdTx(txopts *bind.TransactOpts, orgID common.Hash, repoName string, threshold *big.Int) (*ethtypes.Transaction, error)
Click to show internal directories.
Click to hide internal directories.