Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
53 views

I’m building a web dApp that places futures positions with stop-loss (SL) and take-profit (TP) values. When the price crosses the SL or TP level, I want the position to close automatically. ### ...
pheonixdevelopers's user avatar
0 votes
0 answers
47 views

I'm playing with a simple project of issuing ERC20 token. Following the example in hardhat3 doc, I successifully deployed the contract on localhost with CLI as below: run local blockchain npx hardhat ...
Liuzhou Zhuo's user avatar
0 votes
2 answers
69 views

I am trying to create a dazl script that would listen to events on locally run daml sandbox, and upon catching an event, process it (with my bus. logic). AI gives me a bunch of suggestions that fail ...
Buddy Thomas's user avatar
2 votes
0 answers
97 views

Sui Move’s one-time witness (OTW) pattern ensures a module’s init function runs exactly once. From Move documentation The OTW is a special type of Witness that can be used only once. It cannot be ...
Yilmaz's user avatar
  • 51k
0 votes
2 answers
83 views

I am using eth gem to interact with a Smart Contract in EVM. The Smart Contract has a function whose ABI in JSON format is this: { "inputs": [ {"internalType": "...
p.matsinopoulos's user avatar
2 votes
1 answer
79 views

I know how to do this in Javascript with web3.js, but I don't know how to do this from a native mobile app written in Flutter/Dart. I have seen references for people having done this with web3Dart. ...
Stan Gregg's user avatar
1 vote
0 answers
37 views

I am trying to call the EIP-4788 contract from go. For development, I am using the Sepolia testnetwork. I have a local beacon chain client running connected to a geth instance running on the Sepolia ...
unsafe_where_true's user avatar
1 vote
1 answer
41 views

I'm using Midnight and learning compact. I'm hoping to get some clarification on the persistentHash function (export declare function persistentHash<a>(rt_type: CompactType<a>, value: a): ...
TechnicalError620's user avatar
0 votes
1 answer
60 views

I'm encountering an issue where the subscription ID returned by my script is different from the one shown on vrf.chain.link for the Sepolia network, which when i try to fund to the subid from my ...
Phc Chu Vaky Ramadan's user avatar
0 votes
0 answers
43 views

The _transfer() function only handles ERC20 token transfers, so I can't implement any logic for ETH or BNB within it. I integrated some functions, but they were not callable on PancakeSwap. When I ...
Nitesh Mehra's user avatar
1 vote
0 answers
52 views

I am trying to add liquidity to Uniswap V3 for my ERC20 token, which has a 4% tax deduction on transfers. The tax mechanism ensures that whenever users transfer tokens, 4% is sent to the owner's ...
Nitesh Mehra's user avatar
1 vote
1 answer
82 views

I am working on a smart contract that uses Risc Zero to verify proofs generated from a Rust program. I have successfully generated the seal, imageID, and journalDigest from the Risc Zero Rust program. ...
user59066's user avatar
0 votes
1 answer
38 views

Game.sol //contract using solidity pragma solidity ^0.8.0; contract HeadOrTail{ address public owner; event GameStarted(address indexed player1, address indexed player2, uint256 betAmount)...
Aakash's user avatar
  • 1
0 votes
0 answers
193 views

I'm working on an integration with PancakeSwap using Java and Web3J. All my tests were conducted on BSC Testnet. After conducting some research, I used the UI to perform a transaction that went ...
Fife's user avatar
  • 1
-2 votes
2 answers
60 views

https://bscscan.com/address/0x1732b451aa189832109e8715b9ae0563bab7c2bc#writeContract I have deployed this contract on BSC, can someone guide why it is taking some much gas fee. If you have any ...
user919573's user avatar
1 vote
0 answers
38 views

I'm trying to deploy a Smart Contract on the Polygon mainnet, but I need the deployment transaction to be signed by someone else's wallet (so they become the contract owner and receive the tokens). I’...
user2701487's user avatar
0 votes
0 answers
32 views

During packaging of chaincode of tar.gz file in IBM Hyperledger Fabric I'm getting the below error: Failed to determine workspace language type, supported languages are JavaScript, TypeScript, Go and ...
Prashant Barai's user avatar
0 votes
0 answers
58 views

I'm trying to write and compile a ZoKrates program that verifies if a private number x satisfies x^2 == 16. The program in ZoKrates should look like this: def main(private field x) -> field: ...
Rash's user avatar
  • 1
0 votes
1 answer
63 views

I'm using tact and I haven't found any resources that do this successfully: withdraw the tokens that were sent to the smart contract into a specified address. I have attempted this code to withdraw ...
Anon's user avatar
  • 11
0 votes
1 answer
52 views

I want to get name lists of new token more faster than Defined.fi/new I am knowing just Defined.fi/new. but more than faster, which web site or scrape tool do I have to use ? For new token listing, I'...
dr.mStar's user avatar
  • 101
0 votes
1 answer
81 views

I understand that the Pair contract will use TWPA to ensure price average, this _update function is called when Mint, Burn, Swap. In case the average period does not have the above transactions, the ...
Newbie's user avatar
  • 21
0 votes
0 answers
37 views

I'm encountering an issue with meta-transactions (OpenZeppelin Forwarder and Context) in my ERC-721 contract. When executing a batch token transfer via a meta-transaction, I receive the following ...
Antonio M's user avatar
0 votes
0 answers
46 views

I am able to compile the smart contract successfully, which generates the ABI and bytecode for the contract as expected. Below is my deployContract function that gets the ABI and bytecode for the ...
Gowtham Prabhu K A's user avatar
0 votes
1 answer
95 views

const ethers = require("ethers"); const fs = require("fs-extra"); async function main() { try { const provider = new ethers.JsonRpcProvider("http://127.0.0.1:7545")...
666ryuga's user avatar
0 votes
0 answers
69 views

I`m writing FunC ton language. Here is my code in recv_internal: int amount = 10004000; slice dis_address1 = "0QCqKALVHGWllnc90l3oQ0yn6j0bJ2vyQp-IV76Dxm9TnWdL"a; sum = sum + ...
ali shekari's user avatar

1
2 3 4 5
62