dclauth

package
v0.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DCLAuthAccountsEndpoint                   = "/dcl/auth/accounts/"
	DCLAuthProposedAccountsEndpoint           = "/dcl/auth/proposed-accounts/"
	DCLAuthProposedRevocationAccountsEndpoint = "/dcl/auth/proposed-revocation-accounts/"
)

Variables

This section is empty.

Functions

func ApproveAddAccount

func ApproveAddAccount(
	suite *utils.TestSuite,
	accAddr sdk.AccAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func ApproveRevokeAccount

func ApproveRevokeAccount(
	suite *utils.TestSuite,
	accAddr sdk.AccAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func AuthDemo

func AuthDemo(suite *utils.TestSuite)

func CreateAccount

func CreateAccount(
	suite *utils.TestSuite,
	accountName string,
	roles dclauthtypes.AccountRoles,
	vendorId int32,
	proposerName string,
	proposerAccount *dclauthtypes.Account,
	approverName string,
	approverAccount *dclauthtypes.Account,
) *dclauthtypes.Account

func CreateAccountInfo

func CreateAccountInfo(suite *utils.TestSuite, accountName string) keyring.Info

func GetAccount

func GetAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.Account, error)

func GetAccounts

func GetAccounts(suite *utils.TestSuite) (res []dclauthtypes.Account, err error)

func GetProposedAccount

func GetProposedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.PendingAccount, error)

func GetProposedAccountToRevoke

func GetProposedAccountToRevoke(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.PendingAccountRevocation, error)

func GetProposedAccounts

func GetProposedAccounts(suite *utils.TestSuite) (res []dclauthtypes.PendingAccount, err error)

func GetProposedAccountsToRevoke

func GetProposedAccountsToRevoke(suite *utils.TestSuite) (
	res []dclauthtypes.PendingAccountRevocation, err error,
)

func NewMsgCreateModel

func NewMsgCreateModel(vid int32, pid int32, signer string) *modeltypes.MsgCreateModel

func ProposeAddAccount

func ProposeAddAccount(
	suite *utils.TestSuite,
	accAddr sdk.AccAddress,
	accKey cryptotypes.PubKey,
	roles dclauthtypes.AccountRoles,
	vendorID int32,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func ProposeRevokeAccount

func ProposeRevokeAccount(
	suite *utils.TestSuite,
	accAddr sdk.AccAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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