Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/smartcontractkit/chainlink-aptos/bindings/ccip_token_pools/regulated_token_pool"
"github.com/smartcontractkit/chainlink-aptos/bindings/ccip_token_pools/token_pool"
"github.com/smartcontractkit/chainlink-aptos/bindings/ccip_token_pools/usdc_token_pool"
"github.com/smartcontractkit/chainlink-aptos/bindings/curse_mcms"
"github.com/smartcontractkit/chainlink-aptos/bindings/data_feeds"
"github.com/smartcontractkit/chainlink-aptos/bindings/managed_token"
"github.com/smartcontractkit/chainlink-aptos/bindings/managed_token_faucet"
Expand All @@ -36,6 +37,7 @@ var GlobalFunctionInfo = bind.CombineFunctionInfos(
managed_token_pool.FunctionInfo,
token_pool.FunctionInfo,
usdc_token_pool.FunctionInfo,
curse_mcms.FunctionInfo,
data_feeds.FunctionInfo,
managed_token.FunctionInfo,
managed_token_faucet.FunctionInfo,
Expand Down
58 changes: 58 additions & 0 deletions bindings/curse_mcms/curse_mcms.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package curse_mcms

import (
"github.com/aptos-labs/aptos-go-sdk"

"github.com/smartcontractkit/chainlink-aptos/bindings/bind"
"github.com/smartcontractkit/chainlink-aptos/bindings/compile"
module_curse_mcms "github.com/smartcontractkit/chainlink-aptos/bindings/curse_mcms/curse_mcms"
"github.com/smartcontractkit/chainlink-aptos/contracts"
)

type CurseMCMS interface {
Address() aptos.AccountAddress
CurseMCMS() module_curse_mcms.CurseMCMSInterface
}

var _ CurseMCMS = CurseMCMSContract{}

type CurseMCMSContract struct {
address aptos.AccountAddress
curseMcms module_curse_mcms.CurseMCMSInterface
}

func (c CurseMCMSContract) Address() aptos.AccountAddress {
return c.address
}

func (c CurseMCMSContract) CurseMCMS() module_curse_mcms.CurseMCMSInterface {
return c.curseMcms
}

const (
DefaultSeed = "chainlink_curse_mcms"
)

var FunctionInfo = bind.MustParseFunctionInfo(
module_curse_mcms.FunctionInfo,
)

func Bind(
address aptos.AccountAddress,
client aptos.AptosRpcClient,
) CurseMCMS {
return CurseMCMSContract{
address: address,
curseMcms: module_curse_mcms.NewCurseMCMS(address, client),
}
}

func Compile(address aptos.AccountAddress, ccipAddress aptos.AccountAddress, mcmsAddress aptos.AccountAddress, mcmsRegisterEntrypointsAddress aptos.AccountAddress) (compile.CompiledPackage, error) {
namedAddresses := map[string]aptos.AccountAddress{
"curse_mcms": address,
"ccip": ccipAddress,
"mcms": mcmsAddress,
"mcms_register_entrypoints": mcmsRegisterEntrypointsAddress,
}
return compile.CompilePackage(contracts.CurseMCMS, namedAddresses)
}
1,438 changes: 1,438 additions & 0 deletions bindings/curse_mcms/curse_mcms/curse_mcms.go

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions contracts/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ const (
Platform = Package("platform")
PlatformSecondary = Package("platform_secondary")

MCMS = Package("mcms")
MCMSTest = Package("mcms_test")
MCMS = Package("mcms")
MCMSTest = Package("mcms_test")
CurseMCMS = Package("curse_mcms")

LargePackages = Package("large_packages")

Expand Down Expand Up @@ -70,8 +71,9 @@ var Contracts map[Package]string = map[Package]string{
ManagedTokenMCMSRegistrar: filepath.Join("mcms_registrars", "managed_token_mcms_registrar"),
RegulatedTokenMCMSRegistrar: filepath.Join("mcms_registrars", "regulated_token_mcms_registrar"),

MCMS: filepath.Join("mcms", "mcms"),
MCMSTest: filepath.Join("mcms", "mcms_test"),
MCMS: filepath.Join("mcms", "mcms"),
MCMSTest: filepath.Join("mcms", "mcms_test"),
CurseMCMS: filepath.Join("mcms", "curse_mcms"),

LargePackages: "large_packages",

Expand Down
23 changes: 23 additions & 0 deletions contracts/mcms/curse_mcms/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "ChainlinkCurseMCMS"
version = "1.0.0"
authors = []
upgrade_policy = "immutable"

[addresses]
curse_mcms = "_"
curse_mcms_owner = "_"
ccip = "_"
mcms = "_"
mcms_owner = "0x0"
mcms_register_entrypoints = "_"

[dev-addresses]
curse_mcms = "0xCCC"
curse_mcms_owner = "0xCCD"
ccip = "0x30b33dec3fcac5ef3ea775128d88722b64ba59a4598277e537f284917403df29"
mcms = "0x4000"
mcms_register_entrypoints = "0x4001"

[dependencies]
ChainlinkCCIP = { local = "../../ccip/ccip" }
Loading
Loading