Questions tagged [kadena]

Kadena is a decentralized platform for blockchain.

Kadena is a decentralized platform for blockchain.

https://kadena.io/

37 questions
3
votes
0 answers

How to use github's kadena-io/cardano-crypto.js mnemonic in react native wallet

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…
Tiny
  • 35
  • 2
2
votes
2 answers

How do I create a KDA wallet guard that will allow for an arbitrary number of people to withdraw from it, if they meet specific conditions?

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…
Nexion21
  • 309
  • 2
  • 7
2
votes
0 answers

How can i check the module-name in `cont` type transactions for gas-station?

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…
bart
  • 21
  • 4
2
votes
1 answer

Trying to initialize kadena token on testnet - readrow error Database error

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…
2
votes
1 answer

Kadena Cannot define a keyset outside of a namespace error

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…
att
  • 617
  • 8
  • 17
2
votes
2 answers

Storing and retrieving a module reference in PACT

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…
datoga
  • 103
  • 8
2
votes
1 answer

How do I install Pact onto Windows?

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…
2
votes
0 answers

Is there a way to view all unfinished pacts for a given account?

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.
billy
  • 21
  • 4
2
votes
1 answer

What the parameters before brackets mean?

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…
1
vote
0 answers

getClient not present in @kadena/client

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
Kitty Kad
  • 412
  • 1
  • 7
1
vote
1 answer

coin-v5.pact:516:12: Single-key account protocol violation

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 …
advanztek
  • 41
  • 3
1
vote
1 answer

How do I declare global variables in Pact lang?

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…
1
vote
1 answer

Kadene transfer-create call fails

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:…
att
  • 617
  • 8
  • 17
1
vote
1 answer

Deploying contract to Kadena localdevnet error: "Cannot resolve 'validate-principle'"

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…
att
  • 617
  • 8
  • 17
1
vote
1 answer

Kadena Pact Property Check

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…
att
  • 617
  • 8
  • 17
1
2 3