Questions tagged [kadena]

Kadena is a decentralized platform for blockchain.

Kadena is a decentralized platform for blockchain.

https://kadena.io/

37 questions
1
vote
1 answer

Kadene Pact Contract "Required Capability Not Granted" error

I'm getting following error, while crediting an account tuncatunc in the reply file. There are 2 keysets, k-admin-keyset and k-player-keyset. k-player-keyset is used to create account (create-account "tuncatunc" (read-keyset…
att
  • 617
  • 8
  • 17
1
vote
1 answer

Interface not defined: free.fungible-xchain-v1

Trying to deploy the contract on Kadena testnet chain 1 and errors with this message. Error from (api.testnet.chainweb.com): : Failure: Interface not defined: free.fungible-xchain-v1 free.fungible-xchain-v1 is deployed and I can find it from the…
att
  • 617
  • 8
  • 17
1
vote
1 answer

How do I run a function in Pact REPL without a keyset I defined

I defined a keyset (i.e. "my-admin-keyset") in the pact environment data. I want to test a function without that keyset present. However every function I run, signs with that keyset. How do I exclude a keyset when running a function?
Kitty Kad
  • 412
  • 1
  • 7
1
vote
1 answer

How to create an instance of a specific type in Pact-Lang (Smart Contracts)?

Pact's documentation says you can type objects with schemas. I have been unable to work out how to do this. When creating an object, eg. in the REPL, with eg. {"a":1.0,"b":2.0}, it is of type object:*. I have a schema of: (defschema data a :…
1
vote
1 answer

If ten people call a function that counts up by 1 every time it is called, how are these requests handled if they're submitted to the same block?

If I have a function that counts up by 1 every time someone calls it, what happens if 10 people all call the function at the same time, during the same block? Without knowing for sure, I see two possibilities. A particular sender is chosen to…
Nexion21
  • 309
  • 2
  • 7
1
vote
2 answers

How do I snapshot the database in the Kadena devnet?

I am using Kadena's devnet for integration testing. Unfortunately, every time I start up devnet it begins from scratch, with no history, and it takes a long time (more than an hour) to become usable. As described in the README: If you are starting…
trh
  • 171
  • 6
1
vote
1 answer

Are there any functions in the `fungible-v2` interface for minting/burning coins?

I'd like to create a function (deposit-fungible-v2-burn (account:string amount:decimal token:module{fungible-v2})) that burns amount tokens from the account. Are there any functions in the fungible-v2 interface for minting/burning coins? It is…
1
vote
1 answer

How do you make 2 or more keys to sign a transaction and verify the keyset?

When building keysets, they have three options: keys-all, keys-2, and keys-any. I wanted to create a keyset that required 3 keys to sign the transaction, but I was confused about how to force the keyset to take all three keys in the signature…
1
vote
0 answers

What does the error "1:1Typechecker Internal Error: User type in value position" mean?

I was going through the Rotatable Wallet tutorial on the Kadena beginner tutorial, and I ran into this error: "1:1Typechecker Internal Error: User type in value position". What does this mean? And where exactly is the error occurring?
1
vote
1 answer

How do you add an account to Kadena Chainweaver?

When I was trying to deploy the HelloWorld contract using the beginner tutorial, I got to the configuration page in the deployment popup. I made two public keys, but the tutorial specified nothing about the accounts. How do I create accounts so I…
1
vote
2 answers

Webpack/polyfill Error after installing pact-lang-api

While trying to connect a react frontend, which was just created using create-react-app, I got this error message when running npm run start after importing pact-lang-api to the app: ERROR in ./node_modules/eventsource/lib/eventsource.js 5:12-28…
1
vote
0 answers

`Undefined symbol: ossl_sha3_512_functions` when trying to build the Kadena chainweb-node Haskell project

I've been trying to compile the Kadena chainweb-node project from source (via the docs found here) in a docker container running the arm64v8/ubuntu base image on an Apple M1 host machine and I keep getting errors. Thanks to the super helpful folks…
Gokstad
  • 11
  • 1
1
vote
1 answer

Key-pair generation for Kadena

Chainweaver uses the following code to generate a key-pair from a Bip 39-generated seed: https://github.com/kadena-io/cardano-crypto.js/blob/c50fb8c2fcd4e8d396506fb0c07de9d658aa1bae/kadena-crypto.js#L336 Is there any documentation regarding this…
herrtim
  • 2,697
  • 1
  • 26
  • 36
0
votes
0 answers

Getting a "BuyGasFailure" error when fetching k: account balance using @kadena/chainweb-node-client

I'm encountering a "BuyGasFailure" error while trying to fetch the balance given a k: account a and contract address using the @kadena/chainweb-node-client v0.2.5 library. I'm using the get-balance function with the appropriate contract address and…
0
votes
0 answers

Walletconnect 2.0 signing requests on Kadena blockchain

I've been able to connect walletconnect to my eckoWallet by using the qr code, problem now is signing requests doesn't respond. The code below contains two functions, first which is the walletConnect which is working perfectly fine. My main issue is…
advanztek
  • 41
  • 3