Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OpEVMDeployLinkToken = contract.NewDeploy(contract.DeployParams[struct{}]{ Name: "evm-link-token-deploy", Description: "Deploys LINK token (burn/mint ERC677) contract", Version: &types.BurnMintLinkTokenTypeAndVersion.Version, ContractMetadata: link_token.LinkTokenMetaData, BytecodeByTypeAndVersion: map[string]contract.Bytecode{ types.BurnMintLinkTokenTypeAndVersion.String(): { EVM: common.FromHex(link_token.LinkTokenBin), ZkSyncVM: link_token.ZkBytecode, }, }, })
View Source
var OpEVMDeployStaticLinkToken = contract.NewDeploy(contract.DeployParams[struct{}]{ Name: "evm-static-link-token-deploy", Description: "Deploys static LINK token (non-burn/mint) contract", Version: &types.StaticLinkTokenTypeAndVersion.Version, ContractMetadata: link_token_interface.LinkTokenMetaData, BytecodeByTypeAndVersion: map[string]contract.Bytecode{ types.StaticLinkTokenTypeAndVersion.String(): { EVM: common.FromHex(link_token_interface.LinkTokenBin), }, }, })
OpEVMDeployStaticLinkToken deploys a non-burn/mint static LINK token contract.
View Source
var OpSolanaDeployLinkToken = operations.NewOperation( "solana-link-token-deploy", semver.MustParse("1.0.0"), "Deploys LINK token (SPL token) on a Solana chain", func(b operations.Bundle, chain cldf_solana.Chain, input SolanaLinkDeployInput) (SolanaLinkDeployOutput, error) { instructions, err := solTokenUtil.CreateToken( b.GetContext(), solana.TokenProgramID, input.MintKey.PublicKey(), chain.DeployerKey.PublicKey(), input.Decimals, chain.Client, cldf_solana.SolDefaultCommitment, ) if err != nil { return SolanaLinkDeployOutput{}, fmt.Errorf("failed to generate token instructions: %w", err) } if err = chain.Confirm(instructions, solCommonUtil.AddSigners(input.MintKey)); err != nil { return SolanaLinkDeployOutput{}, fmt.Errorf("failed to confirm token deployment: %w", err) } return SolanaLinkDeployOutput{Address: input.MintKey.PublicKey().String()}, nil }, )
OpSolanaDeployLinkToken deploys a LINK SPL token on a Solana chain.
Functions ¶
This section is empty.
Types ¶
type SolanaLinkDeployInput ¶
type SolanaLinkDeployInput struct {
MintKey solana.PrivateKey
Decimals uint8
}
type SolanaLinkDeployOutput ¶
type SolanaLinkDeployOutput struct {
Address string
}
Click to show internal directories.
Click to hide internal directories.