I want to use github's kadena-io/cardano-crypto.js.This is the cardano-crypto.js Link: https://github.com/kadena-io/cardano-crypto.js. But it is an error when used. I've tried a lot to fix the error, but it doesn't work. To get lib.js file in…
Question: How do I create a wallet guard that will allow for an arbitrary number of people to withdraw from it, if they meet specific conditions?
I am trying to make a wallet with a guard that lets a user withdraw a specific amount from it depending…
I have implemented a gas-station for my project.
When i tried to pay gas for a cont type txn, and it threw me Inside an exec error.
(defcap GAS_PAYER:bool
( user:string
limit:integer
price:decimal
)
(enforce (= "exec" (at…
I am receiving this error when trying to initialize a token contract on kadena.
I am using free.mykeyset name in the define and enforce
keysetname in read
Calling transaction , tried using the signer "keysetname" as well as the full non k public…
I'm learning Kadena pact-lang and following the tutorial at
https://docs.kadena.io/learn-pact/beginner/hello-world
I copy pasted the code
(define-keyset 'hello-admin (read-keyset 'hello-keyset))
(module hello 'hello-admin
"Pact hello-world with…
I have an interface which is implemented by a module.
(interface my_interface
(defun balance:decimal())
)
(module IMPL 'admin
(implements my_interface)
(defun balance:decimal() 1.1)
)
In another module, I have a schema which includes a…
I was going through the beginner tutorial and came to the Atom SDK page. I have a windows system, so installing brew doesn't work, but the tutorial only gives a way for Linux systems or Mac OS systems to install Pact. Is there any way to install…
Is there a pact or chainweb api query to view all unfinished pacts for a given account? This will be useful for stuff like finishing all unfinished cross-chain transfers for example.
In the documentation you can insert data inside a table with the following syntax:
(insert table-name id {"parameter":parameterValue})
But here, in this example i have extra values in parameters before the brackets.
(insert loans-inventory…
I tried following the kadena wallet connect example
However it can't import {getClient} from '@kadena/client'
This causes a failure when trying to get balances for the accounts
Hi guys I really need help on this, I have a domain name registry smart contract with file name "name.pact" and a REPL file named "name.repl".
This is the file structure:
--->smartcontract
-->root
-->coin-v5.pact
…
I'm writing a smart contract and I want to declare global variables. I want the functions in my smart contract to be able to access and update these variables.
For example, in Solidity I can do this as follows:
pragma solidity ^0.5.0;
contract…
I'm trying to call transfer 10 K tokens to account k:81df193e0d913bc87e127150efdaaee39584abbd2d0223ed8c9afb0b31cf9db2, with transfer-create function. However it fails and the error message is here =>
Request key:…
I'm following https://github.com/thomashoneyman/real-world-pact/ to deploy my contract on local devnet.
I've updated the deployment script as
const deployK = async () => {
const detailArgs = ["--local", "k-contract-details"];
const…
The Pact Language has a property system.
The call to create-account should fail for accounts shorter than 3 and longer than 256 chars. However, I couldn't make it work.
This is the result of REPL unit test.
I was expecting the create-account call…