Is there any code that actually *implements* ability to trade between multiple block chains in a very simple way?
There's a way to implement cross-chain trades using Freimarkets, but it won't be deployed into Freicoin because it would be very risky for the Freicoin network. We explicitly discourage its use for trades between public chains, it is designed to be used for transactions that involve in-chain and off-chain assets. Read the "Extrospection opcodes" section of the specs:
"The following opcodes assume the maintenance of a discrete set of
observed chains by each chain. If a public chain observes another
public chain, it's validation and security become completely
dependent on the observed chain, and any reorg on the later can
trigger another reorg on the former.
Even assuming that a public chain only observes its own chain, the
opcodes may require full nodes to have more data than it's currently
on the utxo set, opening the door to new DoS attacks vectors.
For these reasons the opcodes are only recommended to be used in
private chains, and even in those cases configure them with caution,
potentially limiting more strictly the standard behavior described
here. For example, in Freicoin their behavior is modified as
described in section \ref{freiExtOpcodes}."
[...]
"In Freicoin, the only observed chain is Freicoin itself. The depth of
the introspection is restricted too. So only the more limited
OUTPUT_SPENT_IN and OUTPUT_EXISTS_IN opcodes are available. Any
use of the generic ones will result in abnormal termination of the
script."
There are better solutions for cross-chain trade:
https://en.bitcoin.it/wiki/Contracts#Example_5:_Trading_across_chainshttps://bitcointalksearch.org/topic/coinswap-transaction-graph-disjoint-trustless-trading-321228I think I could have something that we can at least try out, but probably has some flaws that may be exploitable, but should easily be detectable in about 2 months for less than 25 BTC (~$20,000USD). Would this be worth applying for a grant to the freicoin foundation, or someone else?
I don't think this is particularly interesting at this point, but that's just my opinion.
You can list any non-profit project related to complementary currencies, free software/knowledge, sustainable development or charities.
From the foundation web:
"Any non-profit organization can be listed to receive donations. If your organization or project is not legally a non-profit but fits the goals of the Freicoin Foundation (stated on the home page) you can still submit a request to receive funds issued by the Freicoin Foundation in proportion to the donations you receive through this web.
[...]
The foundation will complement Freicoin donations with the foundation's issuance funds, increasing the amount by 10%."
http://foundation.freicoin.org/#/donations/joinBy the way, people donating Freicoins to Freimarkets should use this address (15xnKvBQVJHuqWbfUbPrTpTLmvEX3x7s6W) so that we get the match from the foundation:
http://foundation.freicoin.org/#/donations/detail/20