assets

package
v0.2.104 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DIDRegistryABI = `` /* 1536-byte string literal not displayed */
View Source
const ERC20ABI = `` /* 3107-byte string literal not displayed */
View Source
const ERC721ABI = `` /* 4886-byte string literal not displayed */
View Source
const ERC721Template = `` /* 287-byte string literal not displayed */
View Source
const OwnerUpgradeableProxyABI = `` /* 1879-byte string literal not displayed */
View Source
const OwnerUpgradeableProxyBin = `` /* 4092-byte string literal not displayed */

Contract only upgradeable by owner.

View Source
const UpgradeableProxyABI = `` /* 1641-byte string literal not displayed */

Variables

This section is empty.

Functions

func EscapeName

func EscapeName(symbol string) string

func GenERC20

func GenERC20(ctx context.Context, openZeppelinVersion string, params *Erc20Params) (string, error)

func OwnerUpgradeableProxyCode

func OwnerUpgradeableProxyCode(target common.Address) string

OwnerUpgradeableProxyCode returns the code for an owner-upgradeable proxy contract.

func TrimContractCodeAuxdata

func TrimContractCodeAuxdata(code string) string

TrimContractCodeAuxdata removes the auxdata produced at the end of a contract. This only used to strip system contract code so it only supports "bzzr0".

Types

type Erc20Params

type Erc20Params struct {
	Symbol    string
	TokenName string
}

type Erc721Params

type Erc721Params struct {
	Symbol       string
	TokenName    string
	BaseURI      string // Base URL to look up token metadata
	ContractName string // for the contract, has to be escaped

}

Jump to

Keyboard shortcuts

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