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 CreateVendorAccount(suite *utils.TestSuite, accountName string, roles dclauthtypes.AccountRoles, ...) *dclauthtypes.Account
- 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 GetRejectedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.RejectedAccount, error)
- func GetRejectedAccounts(suite *utils.TestSuite) (res []dclauthtypes.RejectedAccount, err error)
- func GetRevokedAccount(suite *utils.TestSuite, address sdk.AccAddress) (*dclauthtypes.RevokedAccount, error)
- func GetRevokedAccounts(suite *utils.TestSuite) (res []dclauthtypes.RevokedAccount, 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)
- func RejectAddAccount(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/" 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 CreateAccount ¶
func CreateAccount( suite *utils.TestSuite, accountName string, roles dclauthtypes.AccountRoles, vendorID int32, proposerName string, proposerAccount *dclauthtypes.Account, approverName string, approverAccount *dclauthtypes.Account, info string, ) *dclauthtypes.Account
func CreateAccountInfo ¶
func CreateVendorAccount ¶ added in v0.11.0
func CreateVendorAccount( suite *utils.TestSuite, accountName string, roles dclauthtypes.AccountRoles, vendorID int32, 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, 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.
Click to show internal directories.
Click to hide internal directories.