Skip to content

Instantly share code, notes, and snippets.

View chicodias's full-sized avatar

Francisco Miranda chicodias

View GitHub Profile
@chicodias
chicodias / pact-intercontracts.md
Last active March 13, 2025 04:07
How to Make Two Pact Contracts Communicate with Each Other

How to Make Two Pact Contracts Communicate with Each Other

This guide demonstrates how to establish secure communication between Pact contracts. We will use the staking and aggregator contracts from the eckoDEX stack as an example. The respective contract addresses are kaddex.aggregator and kaddex.staking, and both contracts are deployed on chain 2.

For reference, view the contracts here:

In this setup, the aggregator contract handles functionalities such as tracking voting power, while the staking contract manages user staking positions. Users accrue voting power by staking their KDX tokens. Consequently, the staking contract’s stake and unstake entrypoints must update a table in the aggregator contract. Furthermore, the staking contract should be the only entity capable of updating this t

@chicodias
chicodias / chainweb-node-testnet.md
Last active March 20, 2025 15:20
How to Set Up a Kadena Testnet Node Without Genesis Sync

How to Set Up a Chainweb Node for Testnet

The official documentation is comprehensive for setting up a Chainweb node on the mainnet (refer to Chainweb Get Started). However, deploying on the testnet requires additional configuration, as detailed below.


Prerequisites

A Linux machine meeting the minimum requirements (see Chainweb Node README) with the following software installed:

  • Docker