mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
40 lines
782 B
Go
40 lines
782 B
Go
// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
"os/exec"
|
|
|
|
"github.com/luxfi/cli/tests/e2e/utils"
|
|
"github.com/luxfi/constants"
|
|
"github.com/onsi/gomega"
|
|
)
|
|
|
|
const (
|
|
InterchainCMD = "interchain"
|
|
)
|
|
|
|
/* #nosec G204 */
|
|
func DeployInterchainTokenTransferrer(args []string) string {
|
|
// Create config
|
|
icctArgs := []string{
|
|
InterchainCMD,
|
|
"tokenTransferrer",
|
|
"deploy",
|
|
"--" + constants.SkipUpdateFlag,
|
|
}
|
|
|
|
cmd := exec.Command(CLIBinary, append(icctArgs, args...)...)
|
|
output, err := cmd.CombinedOutput()
|
|
fmt.Println(string(output))
|
|
if err != nil {
|
|
fmt.Println(cmd.String())
|
|
utils.PrintStdErr(err)
|
|
}
|
|
gomega.Expect(err).Should(gomega.BeNil())
|
|
|
|
return string(output)
|
|
}
|