Documentation ¶
Index ¶
- Constants
- func ApproveAddAccount(suite *utils.TestSuite, accAddr sdk.AccAddress, signerName string, ...) (*sdk.TxResponse, error)
- func ApproveRevokeAccount(suite *utils.TestSuite, accAddr sdk.AccAddress, signerName string, ...) (*sdk.TxResponse, error)
- func AuthDemo(suite *utils.TestSuite)
- func CreateAccount(suite *utils.TestSuite, accountName string, roles dclauthtypes.AccountRoles, ...) *dclauthtypes.Account
- func CreateAccountInfo(suite *utils.TestSuite, accountName string) keyring.Info
- func GetAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.Account, error)
- func GetAccounts(suite *utils.TestSuite) (res []dclauthtypes.Account, err error)
- func GetProposedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.PendingAccount, error)
- func GetProposedAccountToRevoke(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.PendingAccountRevocation, error)
- func GetProposedAccounts(suite *utils.TestSuite) (res []dclauthtypes.PendingAccount, err error)
- func GetProposedAccountsToRevoke(suite *utils.TestSuite) (res []dclauthtypes.PendingAccountRevocation, err error)
- func NewMsgCreateModel(vid int32, pid int32, signer string) *modeltypes.MsgCreateModel
- func ProposeAddAccount(suite *utils.TestSuite, accAddr sdk.AccAddress, accKey cryptotypes.PubKey, ...) (*sdk.TxResponse, error)
- func ProposeRevokeAccount(suite *utils.TestSuite, accAddr sdk.AccAddress, signerName string, ...) (*sdk.TxResponse, error)
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 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 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.
Click to show internal directories.
Click to hide internal directories.