Skip to content
Merged
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
178 changes: 159 additions & 19 deletions bindings/ccip/rmn_remote/rmn_remote.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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)
}
Loading
Loading