mirror of
https://github.com/status-im/status-go.git
synced 2025-01-27 23:18:40 +00:00
6acb34bab7
This commit does a few things: 1) Extend create/import account endpoint to get wallet config, some of which has been moved to the backend 2) Set up a loop for retrieving balances every 10 minutes, caching the balances 3) Return information about which checks are not passing when trying to join a token gated community 4) Add tests to the token gated communities 5) Fixes an issue with addresses not matching when checking for permissions The move to the wallet as a background task is not yet complete, I need to publish a signal, and most likely I will disable it before merging for now, as it's currently not used by desktop/mobile, but the PR was getting to big
24 lines
442 B
Go
24 lines
442 B
Go
package requests
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
)
|
|
|
|
var (
|
|
ErrCheckPermissionToJoinCommunityInvalidID = errors.New("check-permission-to-join-community: invalid id")
|
|
)
|
|
|
|
type CheckPermissionToJoinCommunity struct {
|
|
CommunityID types.HexBytes
|
|
}
|
|
|
|
func (u *CheckPermissionToJoinCommunity) Validate() error {
|
|
if len(u.CommunityID) == 0 {
|
|
return ErrCheckPermissionToJoinCommunityInvalidID
|
|
}
|
|
|
|
return nil
|
|
}
|