-
Core concept: A belief market lets people “bet” on answers to questions that may never be cleanly or universally resolvable. Instead of a single objective resolution, outcomes are virtually resolved by consensus within subsets of participants, and different factions can persist side-by-side.
-
How it differs from prediction markets:
- Prediction markets require questions that will resolve unambiguously at a known time; payouts hinge on that resolution.
- Belief markets accept inherently ambiguous, value-laden, or far-future questions. Positions can continue to have value even without universal agreement.
-
Mechanism intuition (non-technical):
Okay, let's break down that line of code and its significance within the useLoadTxHistory.ts file. We'll cover the method itself, the parameters used, what the returned logs represent, and some areas for further investigation.
Detailed Explanation of the Code
-
safeContract.queryFilter(safeContract.filters.ExecutionSuccess(), 0, 'latest')safeContract: This is an instance of an ethers.js Contract object (specifically, aGnosis_safecontract instance). It represents a connection to a specific Safe smart contract deployed on the blockchain, as defined ineternalsafe/src/utils/safe-versions.ts.- How
safeContractis obtained: ThesafeContractis derived by combining the Safe's address, the Safe's version as retrieved from the Safe Info from the Safe Gateway, and the current web3 provider from/src/hooks/wallets/web3.ts. The version will help retrieve the specific ABI from/src/utils/safe-versions.ts. This all happens in `eternalsafe/src/hooks/loadables/use
- How
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| contract EthGrowthToken { | |
| uint256 ethBalance = 0; | |
| uint constant depositFeePc = 1; | |
| uint constant withdrawFeePc = 1; | |
| // Following function implement growth logic: | |
| // ether can be converted to and from tokens according to a current price which | |
| // is calculated as (ethBalance / totalTokens), however we charge deposit |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Dict, List, Union, Any, Tuple | |
| from enum import Enum | |
| import asn1 | |
| # Define GTV types | |
| RawGtv = Union[None, bool, bytes, str, int, Dict[str, Any], List[Any]] | |
| DictPairTuple = Tuple[str, Any] | |
| class GTVType(Enum): | |
| NULL = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; -*- lexical-binding: t; -*- | |
| (require 'url) | |
| (defun llm (command) | |
| (interactive "sWhat: ") | |
| (let* ((start (if (use-region-p) (region-beginning) (point))) | |
| (end (if (use-region-p) (region-end) (point))) | |
| (text-before (buffer-substring-no-properties (point-min) start)) | |
| (selection (buffer-substring-no-properties start end)) | |
| (text-after (buffer-substring-no-properties end (point-max)))) |
Hello. I want you to emulate SHRDLU behavior. We start with the following initial state:
objects:
- id: B1
type: BLOCK
position: [110, 100, 0]
size: [100, 100, 100]
color: RED
- id: B2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import yaml | |
| from typing import List, Dict, Optional | |
| class PlanItem: | |
| def __init__(self, id: str, description: str, status: str, subtasks: List['PlanItem'] = None): | |
| self.id = id | |
| self.status = status | |
| self.description = description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| from typing import List, Union, Dict, Optional | |
| import yaml | |
| import openai | |
| import requests | |
| MARKER_PREFIX = "///" | |
| class CodeFragment: | |
| def __init__(self, marker: str, description: str, content: str): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override fun createSpecialOperations(position: SpecialTransactionPosition, bctx: BlockEContext): List<OpData> { | |
| if (position == SpecialTransactionPosition.Begin) { | |
| val retval = mutableListOf<OpData>() | |
| val rqs = this.module.query(bctx, "get_auth_requests", | |
| GtvDictionary.build(mapOf())) | |
| for (r in rqs.asArray()) { | |
| val rString = r.asString() | |
| val res = pendingRequests[rString] |
NewerOlder