[package]
name = "gdext_lib"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies]
use bip32::{Language, Mnemonic}; | |
use cardano_message_signing as ms; | |
use cardano_serialization_lib as csl; | |
use cardano_serialization_lib::address::NetworkInfo; | |
use csl::{ | |
address::{Address, BaseAddress, StakeCredential}, | |
crypto::{Bip32PrivateKey, Bip32PublicKey}, | |
}; | |
use ms::{builders::AlgorithmId, Label}; |
use bip32::{Language, Mnemonic}; | |
use cardano_message_signing as ms; | |
use cardano_serialization_lib as csl; | |
use cardano_serialization_lib::address::NetworkInfo; | |
use csl::{ | |
address::{Address, BaseAddress, StakeCredential}, | |
crypto::{Bip32PrivateKey, Bip32PublicKey}, | |
}; | |
use ms::{builders::AlgorithmId, Label}; |
with token_res_id as (select id | |
from entities | |
where address = ?), | |
current_state as (select entity_id, | |
max(from_state_version) as state | |
from entity_resource_aggregated_vaults_history, | |
token_res_id | |
where resource_entity_id = token_res_id.id | |
and from_state_version <= ? -- 3293441 -- 3297103 | |
group by entity_id) |
async function deploy() { | |
contract.setContractHash("hash-2131266e1784f2f1bd9061f579f4a55ef04b40d1e11ad7dc12dd9597d3870f05"); | |
provider.getActivePublicKey() | |
.then(pubKeyHex => { | |
console.log("PK hex: " + pubKeyHex); | |
const pubKey = CLPublicKey.fromHex(pubKeyHex); | |
const deploy = contract.callEntrypoint( | |
"counter_inc", | |
RuntimeArgs.fromMap({}), |
The idea is that participants submit action UTXOs and then single "batcher" (as referred in some DEXes) runs those "actions" by submitting transactions that can spend state UTXO. The difference form existing batchers is that batcher - is leader picked among participants in trustless manner.
Each participant builds and submits "action" transaction that creates UTXO at custodial script
address.
flowchart LR
The following are appendices from Optics By Example, a comprehensive guide to optics from beginner to advanced! If you like the content below, there's plenty more where that came from; pick up the book!
GHC Core to PLC plugin: E042:Error: Unsupported feature: Kind: forall k. * -> k -> * Context: Compiling kind: forall k. * -> k -> * Context: Compiling type: Data.Functor.Const.Const () Context: Compiling expr: PlutusTx.Foldable.foldMap @ (Data.Functor.Const.Const ()) Context: Compiling expr: PlutusTx.Foldable.foldMap @ (Data.Functor.Const.Const ()) (PlutusTx.Foldable.$fFoldableConst @ ()) Context: Compiling expr: PlutusTx.Foldable.foldMap @ (Data.Functor.Const.Const ())
This document describes how to prepare hosted PAB deployment from scratch that can operate on Alonzo purple testnet.
The following required to be run on host machine to use PAB with contracts in hosted scenario on testnet (for 2020-11-05 PAB Release):
- Cardano node connected to Alonzo testnet
- cardano wallet connected to node
- chain-index connected to node
- PAB executable connected to node, cardano-wallet and chain-index
Note: we are using somewhat more involved setup with a bit custom docker compose, and wallet and chain-index being built from sources, but there is ready to go node+wallet docker solution available