Skip to content

Instantly share code, notes, and snippets.

View jwiegley's full-sized avatar

John Wiegley jwiegley

View GitHub Profile
Vulcan ~/kadena/work/aeson/pact $ cabal test
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
- pact-4.4 (test:hspec) (ephemeral targets)
Preprocessing test suite 'hspec' for pact-4.4..
Building test suite 'hspec' for pact-4.4..
Running 1 test suites...
Test suite hspec: RUNNING...
Blake2Spec
Boolean-0.2.4 [BSD-3-Clause, (c) 2009-2013 by Conal Elliott]
Cabal-3.2.1.0 [BSD-3-Clause, 2003-2020, Cabal Development Team (see AUTHORS file)]
Decimal-0.5.2 [BSD-3-Clause, Paul Johnson, 2013, 2018, 2021.]
Glob-0.10.2 [BSD-3-Clause]
HUnit-1.6.2.0 [BSD-3-Clause]
MemoTrie-0.6.10 [BSD-3-Clause, (c) 2008-2019 by Conal Elliott]
NumInstances-1.4 [BSD-3-Clause]
OneTuple-0.3 [BSD-3-Clause, (c) John Dorsey 2008]
Only-0.1 [BSD-3-Clause]
QuickCheck-2.14.2 [BSD-3-Clause, 2000-2019 Koen Claessen, 2006-2008 Bj rn Bringert, 2009-2019 Nick Smallbone]
12c12,14
< adjunctions-4.4.2 [BSD-3-Clause, Copyright (C) 2011-2014 Edward A. Kmett]
---
> abstract-deque-0.3 [BSD-3-Clause]
> abstract-par-0.3.3 [BSD-3-Clause, (c) Ryan Newton 2011-2012]
> adjunctions-4.4 [BSD-3-Clause, Copyright (C) 2011-2014 Edward A. Kmett]
15c17
< ansi-terminal-0.11.4 [BSD-3-Clause]
---
> ansi-terminal-0.11.3 [BSD-3-Clause]
diff --git a/cabal.project b/cabal.project
index 49723525c..57e6618de 100644
--- a/cabal.project
+++ b/cabal.project
@@ -54,7 +54,7 @@ package yet-another-logger
source-repository-package
type: git
location: https://github.com/kadena-io/pact.git
- tag: 842fbc4256b3cbbde337dbeaa393b649a26f1574
+ tag: 88051605d06de39dffe4608e25b85ad2b7da77d8
#include <stdio.h>
#include <math.h>
#define BUG_ON_GCC
#ifdef BUG_ON_GCC
__attribute__((noinline))
#else
inline __attribute__((always_inline))
#endif
double safe_pow(
{
"action": "ExecuteNnsFunction",
"action_nns_function": "UpdateAllowedPrincipals",
"proposal_id": 110388,
"reward_status": "SETTLED",
"status": "EXECUTED",
"topic": "TOPIC_SNS_AND_COMMUNITY_FUND"
}
{
"action": "ExecuteNnsFunction",
#!/bin/bash
URL='https://ic-api.internetcomputer.org/api/v3/proposals?include_action=ExecuteNnsFunction&offset=0&include_topic=TOPIC_REPLICA_VERSION_MANAGEMENT&limit=50&include_status=OPEN&include_reward_status=ACCEPT_VOTES'
if [[ ! -f proposals_seen ]]; then
touch proposals_seen
fi
echo "Checking for new proposals at $(date)"
pact> (load "/Users/johnw/kadena/kadenaswap/pact/exchange.repl")
"Loading /Users/johnw/kadena/kadenaswap/pact/exchange.repl..."
["DisablePact44"]
"Begin Tx 0"
"Setting transaction data"
"Loading root/fungible-v2.pact..."
"Loaded interface fungible-v2"
"Loading root/coin.pact..."
"Loaded module coin, hash 3eziVWts1RzJW3YkHEMVIeIgNNS1lgv6_peqzkAQ0ns"
"TableCreated"
pact> (load "/Users/johnw/kadena/kadenaswap/pact/exchange.repl")
"Loading /Users/johnw/kadena/kadenaswap/pact/exchange.repl..."
["DisablePact44"]
"Begin Tx 0"
"Setting transaction data"
"Loading root/fungible-v2.pact..."
"Loaded interface fungible-v2"
"Loading root/coin.pact..."
"Loaded module coin, hash 3eziVWts1RzJW3YkHEMVIeIgNNS1lgv6_peqzkAQ0ns"
"TableCreated"

Running full replay against a specific Chainweb+Pact

This document describes the steps I followed to run a full replay of Chainweb using a specific Git version of pact in combination with a specific version of chainweb-node.

Setup