keeper

package
v4.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIQUIDITY_BOOTSTRAPPING_POOL_AMOUNT = 30_000_000_000_000
	ECOSYSTEM_INCENTIVES_AMOUNT         = 6_500_000_000_000
	COMMUNITY_POOL_GENESIS_AMOUNT       = 37_500_000_000_000
)
View Source
const (
	TEAM_VESTING_AMOUNT = 339_118_201_000_000 // max team supply
	CLIFF_PERIOD        = 12                  // 1 year cliff
	VESTING_PERIOD      = 120                 // 10 years * 12 months
)
View Source
const DefaultLimit = 100
View Source
const MAX_SUPPLY int64 = 1711136433 * 1000000

https://github.com/cosmos/cosmos-sdk/issues/13308 total max supply in ulore

Variables

Functions

func DecoupleForkRepository

func DecoupleForkRepository(ctx sdk.Context, k msgServer, repositoryId uint64) error

func DoRemoveDao

func DoRemoveDao(ctx sdk.Context, k msgServer, user types.User, dao types.Dao)

func DoRemoveIssue

func DoRemoveIssue(ctx sdk.Context, k msgServer, issue types.Issue, repository types.Repository)

func DoRemovePullRequest

func DoRemovePullRequest(ctx sdk.Context, k msgServer, pullRequest types.PullRequest, repository types.Repository)

func DoRemoveRelease

func DoRemoveRelease(ctx sdk.Context, k msgServer, release types.Release, repository types.Repository)

func DoRemoveRepository

func DoRemoveRepository(ctx sdk.Context, k msgServer, repository types.Repository)

func DoRemoveUser

func DoRemoveUser(ctx sdk.Context, k msgServer, user types.User)

func ElementExists

func ElementExists(s []uint64, val uint64) (int, bool)

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) *types.GenesisState

ExportGenesis returns the capability module's exported genesis.

func GetBountyAddress

func GetBountyAddress(bountyId uint64) sdk.AccAddress

GetBountyIDBytes returns the Module address for bounty id

func GetBountyIDBytes

func GetBountyIDBytes(id uint64) []byte

GetBountyIDBytes returns the byte representation of the ID

func GetBountyIDFromBytes

func GetBountyIDFromBytes(bz []byte) uint64

GetBountyIDFromBytes returns ID in uint64 format from a byte array

func GetBranchIDBytes

func GetBranchIDBytes(id uint64) []byte

GetBranchIDBytes returns the byte representation of the ID

func GetBranchIDFromBytes

func GetBranchIDFromBytes(bz []byte) uint64

GetBranchIDFromBytes returns ID in uint64 format from a byte array

func GetCommentIDBytes

func GetCommentIDBytes(id uint64) []byte

GetCommentIDBytes returns the byte representation of the ID

func GetCommentIDFromBytes

func GetCommentIDFromBytes(bz []byte) uint64

GetCommentIDFromBytes returns ID in uint64 format from a byte array

func GetDaoIDBytes

func GetDaoIDBytes(id uint64) []byte

GetDaoIDBytes returns the byte representation of the ID

func GetDaoIDFromBytes

func GetDaoIDFromBytes(bz []byte) uint64

GetDaoIDFromBytes returns ID in uint64 format from a byte array

func GetExercisedAmountIDBytes

func GetExercisedAmountIDBytes(id uint64) []byte

GetExercisedAmountIDBytes returns the byte representation of the ID

func GetExercisedAmountIDFromBytes

func GetExercisedAmountIDFromBytes(bz []byte) uint64

GetExercisedAmountIDFromBytes returns ID in uint64 format from a byte array

func GetIssueIDBytes

func GetIssueIDBytes(id uint64) []byte

GetIssueIDBytes returns the byte representation of the ID

func GetIssueIDFromBytes

func GetIssueIDFromBytes(bz []byte) uint64

GetIssueIDFromBytes returns ID in uint64 format from a byte array

func GetMemberIDBytes

func GetMemberIDBytes(id uint64) []byte

GetMemberIDBytes returns the byte representation of the ID

func GetMemberIDFromBytes

func GetMemberIDFromBytes(bz []byte) uint64

GetMemberIDFromBytes returns ID in uint64 format from a byte array

func GetPullRequestIDBytes

func GetPullRequestIDBytes(id uint64) []byte

GetPullRequestIDBytes returns the byte representation of the ID

func GetPullRequestIDFromBytes

func GetPullRequestIDFromBytes(bz []byte) uint64

GetPullRequestIDFromBytes returns ID in uint64 format from a byte array

func GetReleaseIDBytes

func GetReleaseIDBytes(id uint64) []byte

GetReleaseIDBytes returns the byte representation of the ID

func GetReleaseIDFromBytes

func GetReleaseIDFromBytes(bz []byte) uint64

GetReleaseIDFromBytes returns ID in uint64 format from a byte array

func GetRepositoryIDBytes

func GetRepositoryIDBytes(id uint64) []byte

GetRepositoryIDBytes returns the byte representation of the ID

func GetRepositoryIDFromBytes

func GetRepositoryIDFromBytes(bz []byte) uint64

GetRepositoryIDFromBytes returns ID in uint64 format from a byte array

func GetRepositoryKeyBytesFromBaseKey

func GetRepositoryKeyBytesFromBaseKey(repositoryId types.BaseRepositoryKey) []byte

func GetStorageIDBytes

func GetStorageIDBytes(id uint64) []byte

GetStorageIDBytes returns the byte representation of the ID

func GetStorageIDFromBytes

func GetStorageIDFromBytes(bz []byte) uint64

GetStorageIDFromBytes returns ID in uint64 format from a byte array

func GetTagIDBytes

func GetTagIDBytes(id uint64) []byte

GetTagIDBytes returns the byte representation of the ID

func GetTagIDFromBytes

func GetTagIDFromBytes(bz []byte) uint64

GetTagIDFromBytes returns ID in uint64 format from a byte array

func GetTaskIDBytes

func GetTaskIDBytes(id uint64) []byte

GetTaskIDBytes returns the byte representation of the ID

func GetTaskIDFromBytes

func GetTaskIDFromBytes(bz []byte) uint64

GetTaskIDFromBytes returns ID in uint64 format from a byte array

func GetUserIDBytes

func GetUserIDBytes(id uint64) []byte

GetUserIDBytes returns the byte representation of the ID

func GetUserIDFromBytes

func GetUserIDFromBytes(bz []byte) uint64

GetUserIDFromBytes returns ID in uint64 format from a byte array

func GetWhoisIDBytes

func GetWhoisIDBytes(id uint64) []byte

GetWhoisIDBytes returns the byte representation of the ID

func GetWhoisIDFromBytes

func GetWhoisIDFromBytes(bz []byte) uint64

GetWhoisIDFromBytes returns ID in uint64 format from a byte array

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, genState types.GenesisState)

InitGenesis initializes the capability module's state from a provided genesis state.

func NewDaoAddress

func NewDaoAddress(daoId uint64) sdk.AccAddress

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func PaginateAllForkRepository

func PaginateAllForkRepository(
	k Keeper,
	ctx sdk.Context,
	repository types.Repository,
	pageRequest *query.PageRequest,
	onResult func(repository types.RepositoryFork) error,
) (*query.PageResponse, error)

func PaginateAllRepositoryIssue

func PaginateAllRepositoryIssue(
	k Keeper,
	ctx sdk.Context,
	issues []*types.Issue,
	pageRequest *query.PageRequest,
	option *types.IssueOptions,
	onResult func(issue types.Issue) error,
) (*query.PageResponse, error)

PaginateAllRepositoryIssue does pagination of the provided issue list * based on the provided PageRequest.

func PaginateAllRepositoryPullRequest

func PaginateAllRepositoryPullRequest(
	k Keeper,
	ctx sdk.Context,
	pullRequests []*types.PullRequest,
	pageRequest *query.PageRequest,
	option *types.PullRequestOptions,
	onResult func(pullRequest types.PullRequest) error,
) (*query.PageResponse, error)

PaginateAllRepositoryPullRequest does pagination of the provided pullrequest list * based on the provided PageRequest.

func PaginateAllRepositoryRelease

func PaginateAllRepositoryRelease(
	k Keeper,
	ctx sdk.Context,
	releaseStore ks.KVStore,
	repository types.Repository,
	pageRequest *query.PageRequest,
	onResult func(release types.Release) error,
) (*query.PageResponse, error)

func VestedTeamTokens

func VestedTeamTokens(startTime, currentTime time.Time) sdk.Coin

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	minterAccountName string,
	feeCollectorAccount string,
	ak authkeeper.AccountKeeper,
	authzKeeper *authzkeeper.Keeper,
	bankKeeper bankKeeper.Keeper,
	mintKeeper *mintkeeper.Keeper,
	distrKeeper *distrkeeper.Keeper,
	authority string,
) *Keeper

func (Keeper) AppendBounty

func (k Keeper) AppendBounty(
	ctx sdk.Context,
	bounty types.Bounty,
) uint64

AppendBounty appends a bounty in the store with a new id and update the count

func (Keeper) AppendBranch

func (k Keeper) AppendBranch(
	ctx sdk.Context,
	branch types.Branch,
) uint64

AppendBranch appends a branch in the store with a new id and update the count

func (Keeper) AppendComment

func (k Keeper) AppendComment(
	ctx sdk.Context,
	comment types.Comment,
) uint64

AppendComment appends a comment in the store with a new id and update the count

func (Keeper) AppendDao

func (k Keeper) AppendDao(
	ctx sdk.Context,
	dao types.Dao,
) uint64

AppendDao appends a Dao in the store with a new id and update the count

func (Keeper) AppendExercisedAmount

func (k Keeper) AppendExercisedAmount(
	ctx sdk.Context,
	exercisedAmount types.ExercisedAmount,
) uint64

AppendExercisedAmount appends a exercised amount in the store and update the count

func (Keeper) AppendIssue

func (k Keeper) AppendIssue(
	ctx sdk.Context,
	issue types.Issue,
) uint64

AppendIssue appends a issue in the store with a new id and update the count

func (Keeper) AppendMember

func (k Keeper) AppendMember(
	ctx sdk.Context,
	member types.Member,
) uint64

AppendMember appends a member in the store with a new id and update the count

func (Keeper) AppendPullRequest

func (k Keeper) AppendPullRequest(
	ctx sdk.Context,
	pullRequest types.PullRequest,
) uint64

AppendPullRequest appends a pullRequest in the store with a new id and update the count

func (Keeper) AppendRelease

func (k Keeper) AppendRelease(
	ctx sdk.Context,
	release types.Release,
) uint64

AppendRelease appends a release in the store with a new id and update the count

func (Keeper) AppendRepository

func (k Keeper) AppendRepository(
	ctx sdk.Context,
	repository types.Repository,
) uint64

AppendRepository appends a repository in the store with a new id and update the count

func (Keeper) AppendStorage

func (k Keeper) AppendStorage(
	ctx sdk.Context,
	storage types.Storage,
) uint64

AppendStorage appends a storage in the store with a new id and update the count

func (Keeper) AppendTag

func (k Keeper) AppendTag(
	ctx sdk.Context,
	tag types.Tag,
) uint64

AppendTag appends a tag in the store with a new id and update the count

func (Keeper) AppendTask

func (k Keeper) AppendTask(
	ctx sdk.Context,
	task types.Task,
) uint64

AppendTask appends a task in the store with a new id and update the count

func (Keeper) AppendUser

func (k Keeper) AppendUser(
	ctx sdk.Context,
	user types.User,
) uint64

AppendUser appends a user in the store with a new id and update the count

func (Keeper) AppendWhois

func (k Keeper) AppendWhois(
	ctx sdk.Context,
	whois types.Whois,
) uint64

AppendWhois appends a whois in the store with a new id and update the count

func (Keeper) AuthorizeProvider

func (k Keeper) AuthorizeProvider(
	ctx sdk.Context,
	provider string,
	user string,
	expiry *time.Time,
	providerType types.ProviderPermission) error

func (Keeper) CreateModuleAccount

func (k Keeper) CreateModuleAccount(ctx sdk.Context, name string, permissions ...string)

func (Keeper) DaoAll

func (Keeper) GetAddressRepository

func (k Keeper) GetAddressRepository(ctx sdk.Context, address string, name string) (val types.Repository, found bool)

GetAddressRepository returns a repository by address

func (Keeper) GetAllAddressRepository

func (k Keeper) GetAllAddressRepository(ctx sdk.Context, address string) (list []types.Repository)

GetAllAddressRepository returns all repository for address

func (Keeper) GetAllBaseRepositoryKey

func (k Keeper) GetAllBaseRepositoryKey(ctx sdk.Context) (list []types.BaseRepositoryKey)

GetAllBaseRepositoryKey returns all repository

func (Keeper) GetAllBounty

func (k Keeper) GetAllBounty(ctx sdk.Context) (list []types.Bounty)

GetAllBounty returns all bounty

func (Keeper) GetAllBranch

func (k Keeper) GetAllBranch(ctx sdk.Context) (list []types.Branch)

GetAllBranch returns all branch

func (Keeper) GetAllComment

func (k Keeper) GetAllComment(ctx sdk.Context) (list []types.Comment)

GetAllComment returns all comment

func (Keeper) GetAllDao

func (k Keeper) GetAllDao(ctx sdk.Context) (list []types.Dao)

GetAllDao returns all Dao

func (Keeper) GetAllDaoMember

func (k Keeper) GetAllDaoMember(ctx sdk.Context, daoAddress string) (list []types.Member)

GetAllDaoMember returns all dao member

func (Keeper) GetAllDaoOwner

func (k Keeper) GetAllDaoOwner(ctx sdk.Context, daoAddress string) (list []types.Member)

GetDaoOwner returns all dao owner

func (Keeper) GetAllExercisedAmount

func (k Keeper) GetAllExercisedAmount(ctx sdk.Context) (list []types.ExercisedAmount)

GetAllExercisedAmount returns all exercised amount

func (Keeper) GetAllIssue

func (k Keeper) GetAllIssue(ctx sdk.Context) (list []types.Issue)

GetAllIssue returns all issue

func (Keeper) GetAllIssueComment

func (k Keeper) GetAllIssueComment(ctx sdk.Context, repositoryId uint64, issueIid uint64) (list []types.Comment)

GetAllIssueComment returns all issue comment for repository

func (Keeper) GetAllMember

func (k Keeper) GetAllMember(ctx sdk.Context) (list []types.Member)

GetAllMember returns all member

func (Keeper) GetAllPullRequest

func (k Keeper) GetAllPullRequest(ctx sdk.Context) (list []types.PullRequest)

GetAllPullRequest returns all pullRequest

func (Keeper) GetAllPullRequestComment

func (k Keeper) GetAllPullRequestComment(ctx sdk.Context, repositoryId uint64, pullRequestIid uint64) (list []types.Comment)

GetAllPullRequestComment returns all issue comment for repository

func (Keeper) GetAllRelease

func (k Keeper) GetAllRelease(ctx sdk.Context) (list []types.Release)

GetAllRelease returns all release

func (Keeper) GetAllRepository

func (k Keeper) GetAllRepository(ctx sdk.Context) (list []types.Repository)

GetAllRepository returns all repository

func (Keeper) GetAllRepositoryBranch

func (k Keeper) GetAllRepositoryBranch(ctx sdk.Context, repositoryId uint64) (list []types.Branch)

GetAllRepositoryBranch returns all branch for repository-id

func (Keeper) GetAllRepositoryIssue

func (k Keeper) GetAllRepositoryIssue(ctx sdk.Context, repositoryId uint64) (list []types.Issue)

GetAllRepositoryIssue returns all repository issue

func (Keeper) GetAllRepositoryPullRequest

func (k Keeper) GetAllRepositoryPullRequest(ctx sdk.Context, repositoryId uint64) (list []types.PullRequest)

GetAllRepositoryPullRequest returns all repository pullRequest

func (Keeper) GetAllRepositoryTag

func (k Keeper) GetAllRepositoryTag(ctx sdk.Context, repositoryId uint64) (list []types.Tag)

GetAllRepositoryTag returns all repository tag

func (Keeper) GetAllStorage

func (k Keeper) GetAllStorage(ctx sdk.Context) (list []types.Storage)

GetAllStorage returns all Storage

func (Keeper) GetAllTag

func (k Keeper) GetAllTag(ctx sdk.Context) (list []types.Tag)

GetAllTag returns all tag

func (Keeper) GetAllTask

func (k Keeper) GetAllTask(ctx sdk.Context) (list []types.Task)

GetAllTask returns all task

func (Keeper) GetAllUser

func (k Keeper) GetAllUser(ctx sdk.Context) (list []types.User)

GetAllUser returns all user

func (Keeper) GetAllUserDao

func (k Keeper) GetAllUserDao(ctx sdk.Context, userAddress string) ([]types.Dao, error)

GetAllUserDao returns all user

func (Keeper) GetAllUserDaoEntry

func (k Keeper) GetAllUserDaoEntry(ctx sdk.Context) (list []types.UserDao)

GetAllUserDaoEntry returns all UserDao

func (Keeper) GetAllWhois

func (k Keeper) GetAllWhois(ctx sdk.Context) (list []types.Whois)

GetAllWhois returns all whois

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/gitopia module's authority.

func (Keeper) GetBounty

func (k Keeper) GetBounty(ctx sdk.Context, id uint64) (val types.Bounty, found bool)

GetBounty returns a bounty from its id

func (Keeper) GetBountyCount

func (k Keeper) GetBountyCount(ctx sdk.Context) uint64

GetBountyCount get the total number of bounty

func (Keeper) GetBranchCount

func (k Keeper) GetBranchCount(ctx sdk.Context) uint64

GetBranchCount get the total number of branch

func (Keeper) GetCommentCount

func (k Keeper) GetCommentCount(ctx sdk.Context) uint64

GetCommentCount get the total number of comment

func (Keeper) GetDao

func (k Keeper) GetDao(ctx sdk.Context, address string) (val types.Dao, found bool)

GetDao returns a Dao from its address

func (Keeper) GetDaoCount

func (k Keeper) GetDaoCount(ctx sdk.Context) uint64

GetDaoCount get the total number of Dao

func (Keeper) GetDaoMember

func (k Keeper) GetDaoMember(ctx sdk.Context, daoAddress string, memberAddress string) (val types.Member, found bool)

GetDaoMember returns a member from its id

func (Keeper) GetExercisedAmount

func (k Keeper) GetExercisedAmount(ctx sdk.Context, address string) (val types.ExercisedAmount, found bool)

GetExercisedAmount returns the exercised amount information

func (Keeper) GetExercisedAmountCount

func (k Keeper) GetExercisedAmountCount(ctx sdk.Context) uint64

GetExercisedAmountCount get the total number of exercised amounts

func (Keeper) GetIssueComment

func (k Keeper) GetIssueComment(ctx sdk.Context, repositoryId uint64, issueIid uint64, commentIid uint64) (val types.Comment, found bool)

GetIssueComment returns a comment from its id

func (Keeper) GetIssueCount

func (k Keeper) GetIssueCount(ctx sdk.Context) uint64

GetIssueCount get the total number of issue

func (Keeper) GetMemberCount

func (k Keeper) GetMemberCount(ctx sdk.Context) uint64

GetMemberCount get the total number of member

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetParamsOfType

func (k Keeper) GetParamsOfType(ctx sdk.Context, p interface{})

func (Keeper) GetPullRequestComment

func (k Keeper) GetPullRequestComment(ctx sdk.Context, repositoryId uint64, pullRequestIid uint64, commentIid uint64) (val types.Comment, found bool)

GetPullRequestComment returns a comment from its id

func (Keeper) GetPullRequestCount

func (k Keeper) GetPullRequestCount(ctx sdk.Context) uint64

GetPullRequestCount get the total number of pullRequest

func (Keeper) GetRelease

func (k Keeper) GetRelease(ctx sdk.Context, id uint64) (val types.Release, found bool)

GetRelease returns a release from its id

func (Keeper) GetReleaseCount

func (k Keeper) GetReleaseCount(ctx sdk.Context) uint64

GetReleaseCount get the total number of release

func (Keeper) GetRepositoryBranch

func (k Keeper) GetRepositoryBranch(ctx sdk.Context, repositoryId uint64, branch string) (val types.Branch, found bool)

GetRepositoryBranch returns a branch from its name

func (Keeper) GetRepositoryById

func (k Keeper) GetRepositoryById(ctx sdk.Context, repositoryId uint64) (types.Repository, bool)

GetRepositoryFromKey returns a repository by key

func (Keeper) GetRepositoryCount

func (k Keeper) GetRepositoryCount(ctx sdk.Context) uint64

GetRepositoryCount get the total number of repository

func (Keeper) GetRepositoryFromKey

func (k Keeper) GetRepositoryFromKey(ctx sdk.Context, repositoryKey []byte) (val types.Repository, found bool)

GetRepositoryFromKey returns a repository by key

func (Keeper) GetRepositoryIssue

func (k Keeper) GetRepositoryIssue(ctx sdk.Context, repositoryId uint64, issueIid uint64) (val types.Issue, found bool)

GetRepositoryIssue returns a repository issue from its id

func (Keeper) GetRepositoryKeyBytesFromId

func (k Keeper) GetRepositoryKeyBytesFromId(
	ctx sdk.Context,
	repositoryId uint64,
) ([]byte, bool)

func (Keeper) GetRepositoryPullRequest

func (k Keeper) GetRepositoryPullRequest(ctx sdk.Context, repositoryId uint64, iid uint64) (val types.PullRequest, found bool)

GetRepositoryPullRequest returns a pullRequest from its id

func (Keeper) GetRepositoryStorage

func (k Keeper) GetRepositoryStorage(ctx sdk.Context, repositoryId uint64) (val types.Storage, found bool)

GetRepositoryStorage returns a Storage from its repository id

func (Keeper) GetRepositoryTag

func (k Keeper) GetRepositoryTag(ctx sdk.Context, repositoryId uint64, tag string) (val types.Tag, found bool)

GetRepositoryTag returns a tag from its name

func (Keeper) GetStorageCount

func (k Keeper) GetStorageCount(ctx sdk.Context) uint64

GetStorageCount get the total number of storage

func (Keeper) GetTagCount

func (k Keeper) GetTagCount(ctx sdk.Context) uint64

GetTagCount get the total number of tag

func (Keeper) GetTask

func (k Keeper) GetTask(ctx sdk.Context, id uint64) (val types.Task, found bool)

GetTask returns a task from its id

func (Keeper) GetTaskCount

func (k Keeper) GetTaskCount(ctx sdk.Context) uint64

GetTaskCount get the total number of task

func (Keeper) GetUser

func (k Keeper) GetUser(ctx sdk.Context, id string) (val types.User, found bool)

GetUser returns a user from its id

func (Keeper) GetUserCount

func (k Keeper) GetUserCount(ctx sdk.Context) uint64

GetUserCount get the total number of user

func (Keeper) GetVestedProportion

func (k Keeper) GetVestedProportion(ctx sdk.Context, address string) (sdk.Coin, error)

func (Keeper) GetWhois

func (k Keeper) GetWhois(ctx sdk.Context, username string) (val types.Whois, found bool)

GetWhois returns the whois information

func (Keeper) GetWhoisCount

func (k Keeper) GetWhoisCount(ctx sdk.Context) uint64

GetWhoisCount get the total number of whois

func (Keeper) HavePermission

func (k Keeper) HavePermission(ctx sdk.Context, creator string, repository types.Repository, minAllowedPermission types.RepositoryCollaborator_Permission) (havePermission bool)

func (Keeper) InflationFn

func (k Keeper) InflationFn(ctx sdk.Context, minter minttypes.Minter, mintParams minttypes.Params, bondedRatio sdk.Dec) sdk.Dec

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) RemoveAddressRepository

func (k Keeper) RemoveAddressRepository(ctx sdk.Context, address string, name string)

RemoveAddressRepository removes a repository from the store by address

func (Keeper) RemoveBaseRepositoryKey

func (k Keeper) RemoveBaseRepositoryKey(
	ctx sdk.Context,
	repositoryId uint64,
)

func (Keeper) RemoveBounty

func (k Keeper) RemoveBounty(ctx sdk.Context, id uint64)

RemoveBounty removes a bounty from the store

func (Keeper) RemoveDao

func (k Keeper) RemoveDao(ctx sdk.Context, address string)

RemoveDao removes a Dao from the store

func (Keeper) RemoveDaoMember

func (k Keeper) RemoveDaoMember(ctx sdk.Context, daoAddress string, memberAddress string)

RemoveDaoMember removes a member from the store

func (Keeper) RemoveExercised

func (k Keeper) RemoveExercised(ctx sdk.Context, address string)

RemoveExercisedAmount removes a exercised amount from the store

func (Keeper) RemoveIssueComment

func (k Keeper) RemoveIssueComment(ctx sdk.Context, repositoryId uint64, issueIid uint64, commentIid uint64)

RemoveIssueComment removes a comment from the store

func (Keeper) RemovePullRequestComment

func (k Keeper) RemovePullRequestComment(ctx sdk.Context, repositoryId uint64, pullRequestIid uint64, commentIid uint64)

RemovePullRequestComment removes a comment from the store

func (Keeper) RemoveRelease

func (k Keeper) RemoveRelease(ctx sdk.Context, id uint64)

RemoveRelease removes a release from the store

func (Keeper) RemoveRepositoryBranch

func (k Keeper) RemoveRepositoryBranch(ctx sdk.Context, repositoryId uint64, branchName string)

RemoveBranch removes a branch from the store

func (Keeper) RemoveRepositoryIssue

func (k Keeper) RemoveRepositoryIssue(ctx sdk.Context, repositoryId uint64, issueIid uint64)

RemoveRepositoryIssue removes a repository issue from the store

func (Keeper) RemoveRepositoryPullRequest

func (k Keeper) RemoveRepositoryPullRequest(ctx sdk.Context, repositoryId uint64, iid uint64)

RemoveRepositoryPullRequest removes a pullRequest from the store

func (Keeper) RemoveRepositoryStorage

func (k Keeper) RemoveRepositoryStorage(ctx sdk.Context, repositoryId uint64)

RemoveStorage removes a storage from the store

func (Keeper) RemoveRepositoryTag

func (k Keeper) RemoveRepositoryTag(ctx sdk.Context, repositoryId uint64, tag string)

RemoveRepositoryTag removes a tag from the store

func (Keeper) RemoveTask

func (k Keeper) RemoveTask(ctx sdk.Context, id uint64)

RemoveTask removes a task from the store

func (Keeper) RemoveUser

func (k Keeper) RemoveUser(ctx sdk.Context, id string)

RemoveUser removes a user from the store

func (Keeper) RemoveWhois

func (k Keeper) RemoveWhois(ctx sdk.Context, username string)

RemoveWhois removes a whois from the store

func (Keeper) ResolveAddress

func (k Keeper) ResolveAddress(ctx sdk.Context, id string) (address *WhoisAddress, err error)

Checks if username or address is valid and exists. Also identify its type (USER/DAO).

func (Keeper) SetBaseRepositoryKey

func (k Keeper) SetBaseRepositoryKey(
	ctx sdk.Context,
	repositoryKey types.BaseRepositoryKey,
)

func (Keeper) SetBounty

func (k Keeper) SetBounty(ctx sdk.Context, bounty types.Bounty)

SetBounty set a specific bounty in the store

func (Keeper) SetBountyCount

func (k Keeper) SetBountyCount(ctx sdk.Context, count uint64)

SetBountyCount set the total number of bounty

func (Keeper) SetBranchCount

func (k Keeper) SetBranchCount(ctx sdk.Context, count uint64)

SetBranchCount set the total number of branch

func (Keeper) SetComment

func (k Keeper) SetComment(ctx sdk.Context, comment types.Comment)

SetComment set a specific comment in the store

func (Keeper) SetCommentCount

func (k Keeper) SetCommentCount(ctx sdk.Context, count uint64)

SetCommentCount set the total number of comment

func (Keeper) SetDao

func (k Keeper) SetDao(ctx sdk.Context, dao types.Dao)

SetDao set a specific Dao in the store

func (Keeper) SetDaoCount

func (k Keeper) SetDaoCount(ctx sdk.Context, count uint64)

SetDaoCount set the total number of Dao

func (Keeper) SetExercisedAmount

func (k Keeper) SetExercisedAmount(ctx sdk.Context, exercisedAmount types.ExercisedAmount)

SetExercisedAmount set a specific exercised amount in the store

func (Keeper) SetExercisedAmountCount

func (k Keeper) SetExercisedAmountCount(ctx sdk.Context, count uint64)

SetExercisedAmountCount set the total number of exercised amount

func (Keeper) SetInflation

func (k Keeper) SetInflation(ctx sdk.Context, inflation sdk.Dec)

func (Keeper) SetIssue

func (k Keeper) SetIssue(ctx sdk.Context, issue types.Issue)

SetIssue set a specific repository issue in the store

func (Keeper) SetIssueCount

func (k Keeper) SetIssueCount(ctx sdk.Context, count uint64)

SetIssueCount set the total number of issue

func (Keeper) SetMember

func (k Keeper) SetMember(ctx sdk.Context, member types.Member)

SetMember set a specific member in the store

func (Keeper) SetMemberCount

func (k Keeper) SetMemberCount(ctx sdk.Context, count uint64)

SetMemberCount set the total number of member

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error

SetParams set the params

func (Keeper) SetPullRequest

func (k Keeper) SetPullRequest(ctx sdk.Context, pullRequest types.PullRequest)

SetPullRequest set a specific pullRequest in the store

func (Keeper) SetPullRequestCount

func (k Keeper) SetPullRequestCount(ctx sdk.Context, count uint64)

SetPullRequestCount set the total number of pullRequest

func (Keeper) SetRelease

func (k Keeper) SetRelease(ctx sdk.Context, release types.Release)

SetRelease set a specific release in the store

func (Keeper) SetReleaseCount

func (k Keeper) SetReleaseCount(ctx sdk.Context, count uint64)

SetReleaseCount set the total number of release

func (Keeper) SetRepository

func (k Keeper) SetRepository(ctx sdk.Context, repository types.Repository)

SetRepository set a specific repository in the store

func (Keeper) SetRepositoryBranch

func (k Keeper) SetRepositoryBranch(ctx sdk.Context, branch types.Branch)

SetBranch set a specific branch in the store for repository-id

func (Keeper) SetRepositoryCount

func (k Keeper) SetRepositoryCount(ctx sdk.Context, count uint64)

SetRepositoryCount set the total number of repository

func (Keeper) SetRepositoryStorage

func (k Keeper) SetRepositoryStorage(ctx sdk.Context, storage types.Storage)

SetStorage set a specific storage in the store for repository-id

func (Keeper) SetRepositoryTag

func (k Keeper) SetRepositoryTag(ctx sdk.Context, tag types.Tag)

SetTag set a specific tag in the store

func (Keeper) SetStorageCount

func (k Keeper) SetStorageCount(ctx sdk.Context, count uint64)

SetStorageCount set the total number of storage

func (Keeper) SetTagCount

func (k Keeper) SetTagCount(ctx sdk.Context, count uint64)

SetTagCount set the total number of tag

func (Keeper) SetTask

func (k Keeper) SetTask(ctx sdk.Context, task types.Task)

SetTask set a specific task in the store

func (Keeper) SetTaskCount

func (k Keeper) SetTaskCount(ctx sdk.Context, count uint64)

SetTaskCount set the total number of task

func (Keeper) SetUser

func (k Keeper) SetUser(ctx sdk.Context, user types.User)

SetUser set a specific user in the store

func (Keeper) SetUserCount

func (k Keeper) SetUserCount(ctx sdk.Context, count uint64)

SetUserCount set the total number of user

func (Keeper) SetUserDao

func (k Keeper) SetUserDao(
	ctx sdk.Context,
	userDao types.UserDao,
)

func (Keeper) SetWhois

func (k Keeper) SetWhois(ctx sdk.Context, whois types.Whois)

SetWhois set a specific whois in the store

func (Keeper) SetWhoisCount

func (k Keeper) SetWhoisCount(ctx sdk.Context, count uint64)

SetWhoisCount set the total number of whois

func (Keeper) TagAll

func (Keeper) TokenDistribution

func (k Keeper) TokenDistribution(ctx sdk.Context)

func (Keeper) TransferProportion

func (k Keeper) TransferProportion(
	ctx sdk.Context,
	totalCoin sdk.Coin,
	from string,
	to string,
	proportion sdk.Dec) (sdk.Coins, error)

type WhoisAddress

type WhoisAddress struct {
	Address   string
	OwnerType types.OwnerType
}

Jump to

Keyboard shortcuts

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