-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from CosmWasm/HumanizeAddressFunc
GoAPI renamings
- Loading branch information
Showing
7 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package types | ||
|
||
type ( | ||
HumanizeAddress func([]byte) (string, uint64, error) | ||
CanonicalizeAddress func(string) ([]byte, uint64, error) | ||
// HumanizeAddressFunc is a type for functions that convert a canonical address (bytes) | ||
// to a human readable address (typically bech32). | ||
HumanizeAddressFunc func([]byte) (string, uint64, error) | ||
// CanonicalizeAddressFunc is a type for functions that convert a human readable address (typically bech32) | ||
// to a canonical address (bytes). | ||
CanonicalizeAddressFunc func(string) ([]byte, uint64, error) | ||
) | ||
|
||
type GoAPI struct { | ||
HumanAddress HumanizeAddress | ||
CanonicalAddress CanonicalizeAddress | ||
HumanizeAddress HumanizeAddressFunc | ||
CanonicalizeAddress CanonicalizeAddressFunc | ||
} |