[package]
name = "gdext_lib"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies]
This file contains 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
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}; |
This file contains 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
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}; |
This file contains 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
const base = 1200; | |
const total = 7100 + 1250 + 400 + 70.183; | |
const MihaR = base; | |
const Costya = base - 400; | |
const LyohaM = base - 70.183; | |
const Antoha = base; | |
const DimanK = base - 1250; | |
const DimanV = base; | |
const Me = base; |
This file contains 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
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) |
This file contains 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
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({}), |
This file contains 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
diff --git a/tests/Cargo.lock b/tests/Cargo.lock | |
index 3feacfe..635bbcf 100644 | |
--- a/tests/Cargo.lock | |
+++ b/tests/Cargo.lock | |
@@ -98,9 +98,9 @@ dependencies = [ | |
[[package]] | |
name = "bumpalo" | |
-version = "3.12.2" | |
+version = "3.12.1" |
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!
NewerOlder