testutil

package
v1.19.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBadAddr

func MakeBadAddr(base string, index uint8) sdk.AccAddress

MakeBadAddr makes an address that's longer than the max length allowed. The first byte is the index. The next bytes are the base. The byte after that is 33 (!) + the index. Each other byte is one more than the previous wrapping back to 0 after 255. Panics if the base is too long or index too high.

func MakeCopyOfAccAddress

func MakeCopyOfAccAddress(orig sdk.AccAddress) sdk.AccAddress

MakeCopyOfAccAddress makes a deep copy of an AccAddress.

func MakeCopyOfAccAddresses

func MakeCopyOfAccAddresses(orig []sdk.AccAddress) []sdk.AccAddress

MakeCopyOfAccAddresses makes a deep copy of a slice of AccAddresses.

func MakeCopyOfAutoResponseEntries

func MakeCopyOfAutoResponseEntries(orig []*quarantine.AutoResponseEntry) []*quarantine.AutoResponseEntry

MakeCopyOfAutoResponseEntries makes a deep copy of a slice of AutoResponseEntries.

func MakeCopyOfAutoResponseEntry

func MakeCopyOfAutoResponseEntry(orig *quarantine.AutoResponseEntry) *quarantine.AutoResponseEntry

MakeCopyOfAutoResponseEntry makes a deep copy of an AutoResponseEntry.

func MakeCopyOfByteSlice

func MakeCopyOfByteSlice(orig []byte) []byte

MakeCopyOfByteSlice makes a deep copy of a byte slice.

func MakeCopyOfByteSliceSlice

func MakeCopyOfByteSliceSlice(orig [][]byte) [][]byte

MakeCopyOfByteSliceSlice makes a deep copy of a slice of byte slices.

func MakeCopyOfCoins

func MakeCopyOfCoins(orig sdk.Coins) sdk.Coins

MakeCopyOfCoins makes a deep copy of some Coins.

func MakeCopyOfGenesisState

func MakeCopyOfGenesisState(orig *quarantine.GenesisState) *quarantine.GenesisState

MakeCopyOfGenesisState makes a deep copy of a GenesisState.

func MakeCopyOfQuarantineRecord

func MakeCopyOfQuarantineRecord(orig *quarantine.QuarantineRecord) *quarantine.QuarantineRecord

MakeCopyOfQuarantineRecord makes a deep copy of a QuarantineRecord.

func MakeCopyOfQuarantineRecordSuffixIndex

func MakeCopyOfQuarantineRecordSuffixIndex(orig *quarantine.QuarantineRecordSuffixIndex) *quarantine.QuarantineRecordSuffixIndex

MakeCopyOfQuarantineRecordSuffixIndex makes a deep copy of a QuarantineRecordSuffixIndex

func MakeCopyOfQuarantinedFunds

func MakeCopyOfQuarantinedFunds(orig *quarantine.QuarantinedFunds) *quarantine.QuarantinedFunds

MakeCopyOfQuarantinedFunds makes a deep copy of a QuarantinedFunds.

func MakeCopyOfQuarantinedFundsSlice

func MakeCopyOfQuarantinedFundsSlice(orig []*quarantine.QuarantinedFunds) []*quarantine.QuarantinedFunds

MakeCopyOfQuarantinedFundsSlice makes a deep copy of a slice of QuarantinedFunds.

func MakeCopyOfStringSlice

func MakeCopyOfStringSlice(orig []string) []string

MakeCopyOfStringSlice makes a deep copy of a slice of strings.

func MakeLongAddr

func MakeLongAddr(base string, index uint8) sdk.AccAddress

MakeLongAddr makes an AccAddress that's 32 bytes long. The first byte is the index. The next bytes are the base. The byte after that is 65 (A) + the index. Each other byte is one more than the previous. Panics if the base is too long or index too high.

func MakeTestAddr

func MakeTestAddr(base string, index uint8) sdk.AccAddress

MakeTestAddr makes an AccAddress that's 20 bytes long. The first byte is the index. The next bytes are the base. The byte after that is 97 (a) + the index. Each other byte is one more than the previous. Panics if the base is too long or index too high.

Types

This section is empty.

Jump to

Keyboard shortcuts

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