dclauth

package
v1.3.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ApproveAddAccount

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

func ApproveRevokeAccount

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

func AuthDemo

func AuthDemo(suite *utils.TestSuite)

func CreateAccount

func CreateAccount(
	suite *utils.TestSuite,
	accountName string,
	roles dclauthtypes.AccountRoles,
	vendorID int32,
	productIDs []*types.Uint16Range,
	proposerName string,
	proposerAccount *dclauthtypes.Account,
	approverName string,
	approverAccount *dclauthtypes.Account,
	info string,
) *dclauthtypes.Account

func CreateAccountInfo

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

func CreateVendorAccount added in v0.11.0

func CreateVendorAccount(
	suite *utils.TestSuite,
	accountName string,
	roles dclauthtypes.AccountRoles,
	vendorID int32,
	productIDs []*types.Uint16Range,
	proposerName string,
	proposerAccount *dclauthtypes.Account,
	approverName string,
	approverAccount *dclauthtypes.Account,
	info string,
) *dclauthtypes.Account

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 GetRejectedAccount added in v0.11.0

func GetRejectedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.RejectedAccount, error)

func GetRejectedAccounts added in v0.11.0

func GetRejectedAccounts(suite *utils.TestSuite) (res []dclauthtypes.RejectedAccount, err error)

func GetRevokedAccount added in v0.10.0

func GetRevokedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.RevokedAccount, error)

func GetRevokedAccounts added in v0.10.0

func GetRevokedAccounts(suite *utils.TestSuite) (res []dclauthtypes.RevokedAccount, 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,
	productIDs []*types.Uint16Range,
	signerName string,
	signerAccount *dclauthtypes.Account,
	info string,
) (*sdk.TxResponse, error)

func ProposeRevokeAccount

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

func RejectAddAccount added in v0.11.0

func RejectAddAccount(
	suite *utils.TestSuite,
	accAddr sdk.AccAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
	info string,
) (*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