From de611871fa5dcfa562747215ff3d5407c419b505 Mon Sep 17 00:00:00 2001 From: Norman Meier Date: Thu, 15 Feb 2024 14:16:01 +0100 Subject: [PATCH] chore: remove unused package Signed-off-by: Norman Meier --- .../conflict_solver/conflict_handler.gno | 9 ----- .../conflict_handler_teritori_testnet.sh | 37 ------------------- .../r/demo/teritori/conflict_solver/spec.md | 13 ------- 3 files changed, 59 deletions(-) delete mode 100644 examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler.gno delete mode 100644 examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler_teritori_testnet.sh delete mode 100644 examples/gno.land/r/demo/teritori/conflict_solver/spec.md diff --git a/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler.gno b/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler.gno deleted file mode 100644 index 69c629f1683..00000000000 --- a/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler.gno +++ /dev/null @@ -1,9 +0,0 @@ -package conflict_handler - -import ( - escrow "gno.land/r/demo/escrow_12" -) - -func HandleConflict(contractId uint64, contractorAmount uint64) { - escrow.CompleteContractByConflictHandler(contractId, contractorAmount) -} diff --git a/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler_teritori_testnet.sh b/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler_teritori_testnet.sh deleted file mode 100644 index fda7b2f6360..00000000000 --- a/examples/gno.land/r/demo/teritori/conflict_solver/conflict_handler_teritori_testnet.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -gnokey add gopher -- addr: g1x2xyqca98auaw9lnat2h9ycd4lx3w0jer9vjmt - -gnokey add gopher2 -- addr: g1c5y8jpe585uezcvlmgdjmk5jt2glfw88wxa3xq - -TERITORI=g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -GOPHER=g1x2xyqca98auaw9lnat2h9ycd4lx3w0jer9vjmt - -# check balance -gnokey query bank/balances/$GOPHER -remote="51.15.236.215:26657" - -gnokey maketx addpkg \ - -deposit="1ugnot" \ - -gas-fee="1ugnot" \ - -gas-wanted="5000000" \ - -broadcast="true" \ - -remote="51.15.236.215:26657" \ - -chainid="teritori-1" \ - -pkgdir="./conflict_solver" \ - -pkgpath="gno.land/r/demo/conflict_solver_01" \ - teritori - -# Handle conflict through the contract -gnokey maketx call \ - -gas-fee="1ugnot" \ - -gas-wanted="5000000" \ - -broadcast="true" \ - -remote="51.15.236.215:26657" \ - -chainid="teritori-1" \ - -pkgpath="gno.land/r/demo/conflict_solver_01" \ - -func="HandleConflict" \ - -args="0" \ - -args="10" \ - teritori diff --git a/examples/gno.land/r/demo/teritori/conflict_solver/spec.md b/examples/gno.land/r/demo/teritori/conflict_solver/spec.md deleted file mode 100644 index 60ffe4602c0..00000000000 --- a/examples/gno.land/r/demo/teritori/conflict_solver/spec.md +++ /dev/null @@ -1,13 +0,0 @@ -# Conflict Solver Template - -Conflict Solver Template is a minimum viable version of conflict solver realm that handles conflict between two parties on escrow realm. - -## Conflict Solver Requirement - -Conflict solver realm should import escrow realm and should have a function to call `escrow.CompleteContractByConflictHandler`. - -The conflict solving logic could be implemented to solve puzzle, to bet using VRF, or implemented as a third party driven solution like Justice DAO. - -## Template functionality - -Conflict solver template has `HandleConflict` function that calls `escrow.CompleteContractByConflictHandler` directly and passing the received params to the escrow realm, anyone can call it.