Documentation ¶
Index ¶
- Variables
- func GetImage(metaUrl string) (url string, hash string, err error)
- func MustGenerateTokenSeed(bridgeContract string) (string, string)
- func MustGetPDA(bridgeContract, tokenSeed string) string
- func MustPublicKeyFromHexStr(programId string) solana.PublicKey
- func MustVerifyTokenSeed(bridgeContract, tokenSeed string) bool
- type Metadata
- type TransferOperator
- type TransferVerifier
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MustGenerateTokenSeed ¶
MustGenerateTokenSeed returns seed and id hex-encoded with leading 0x
func MustGetPDA ¶
func MustPublicKeyFromHexStr ¶
func MustVerifyTokenSeed ¶
Types ¶
type TransferOperator ¶
type TransferOperator interface {
VerifyTransfer(ctx context.Context, tx, eventId string, transfer *rarimotypes.Transfer) error
}
TransferOperator implements logic for transfer generation on every chain. Every saver should implement it based on its chain peculiarities
type TransferVerifier ¶
type TransferVerifier struct {
// contains filtered or unexported fields
}
func NewTransferVerifier ¶
func NewTransferVerifier(operator TransferOperator, log *logan.Entry) *TransferVerifier
func (*TransferVerifier) Verify ¶
func (t *TransferVerifier) Verify(ctx context.Context, operation rarimotypes.Operation) (rarimotypes.VoteType, error)
Click to show internal directories.
Click to hide internal directories.