evanmarshall / cross-pile Goto Github PK
View Code? Open in Web Editor NEWA simple heads or tails (cross and pile) on Solana
A simple heads or tails (cross and pile) on Solana
User Pubkey: AfyttQHyJuLNBNDYWkvjNpXSQ19tvq5HQLZn8rWHa3h3
User 2 Pubkey: aomQraMKcXHSZW863r9edQ5NYUboGq1LpHLX2xQ8DLL
Server responded with 429 Too Many Requests. Retrying after 500ms delay...
Server responded with 429 Too Many Requests. Retrying after 1000ms delay...
Server responded with 429 Too Many Requests. Retrying after 2000ms delay...
Server responded with 429 Too Many Requests. Retrying after 4000ms delay...
1) Set up tests
Coin account: AgQhY4gFzSTsL8DrWEBgh1QyUsch7s1STYv5tVSfoV6W
2) Create a coin!
3) Approve a flip
Translating error TypeError: Cannot read properties of undefined (reading 'toString')
at forEach (/home/aravind/Jhusten-cross-pile/node_modules/@solana/web3.js/src/transaction.ts:402:47)
at Array.forEach ()
at Transaction.compileMessage (/home/aravind/Jhusten-cross-pile/node_modules/@solana/web3.js/src/transaction.ts:401:18)
at Transaction._compile (/home/aravind/Jhusten-cross-pile/node_modules/@solana/web3.js/src/transaction.ts:523:26)
at Transaction.partialSign (/home/aravind/Jhusten-cross-pile/node_modules/@solana/web3.js/src/transaction.ts:654:26)
at NodeWallet.signTransaction (/home/aravind/Jhusten-cross-pile/node_modules/@project-serum/anchor/src/provider.ts:246:8)
at Provider.send (/home/aravind/Jhusten-cross-pile/node_modules/@project-serum/anchor/src/provider.ts:105:23)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.rpc [as publishRandom] (/home/aravind/Jhusten-cross-pile/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:24:23)
at MockOracleSession.publishRandom (/home/aravind/Jhusten-cross-pile/node_modules/@demox-labs/solrand/app/sessions.js:123:9)
4) Oracle responds to request
5) Reveal the result
0 passing (18s)
5 failing
cross-pile
Set up tests:
Error: 429 Too Many Requests: {"jsonrpc":"2.0","error":{"code": 429, "message":"Too many requests for a specific RPC call, contact your app developer or [email protected]."}, "id": "c1d71c29-d02c-49a4-87a2-e0260f18b979" }
at ClientBrowser.callServer (node_modules/@solana/web3.js/src/connection.ts:1155:18)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
cross-pile
Create a coin!:
TypeError: Cannot read properties of undefined (reading 'toString')
at /home/aravind/Jhusten-cross-pile/tests/cross-pile.ts:106:49
at Generator.next ()
at fulfilled (tests/cross-pile.ts:28:58)
cross-pile
Approve a flip:
Error: Invalid arguments: requester not provided.
at /home/aravind/Jhusten-cross-pile/node_modules/@project-serum/anchor/src/program/common.ts:50:15
at Array.forEach ()
at validateAccounts (node_modules/@project-serum/anchor/src/program/common.ts:45:14)
at ix (node_modules/@project-serum/anchor/src/program/namespace/instruction.ts:43:23)
at txFn (node_modules/@project-serum/anchor/src/program/namespace/transaction.ts:20:14)
at Object.rpc [as approveFlip] (node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:21:18)
at /home/aravind/Jhusten-cross-pile/tests/cross-pile.ts:144:32
at Generator.next ()
at /home/aravind/Jhusten-cross-pile/tests/cross-pile.ts:31:71
at new Promise ()
at __awaiter (tests/cross-pile.ts:27:12)
at Context. (tests/cross-pile.ts:142:37)
at processImmediate (node:internal/timers:471:21)
cross-pile
Oracle responds to request:
TypeError: Cannot read properties of undefined (reading 'toString')
at forEach (node_modules/@solana/web3.js/src/transaction.ts:402:47)
at Array.forEach ()
at Transaction.compileMessage (node_modules/@solana/web3.js/src/transaction.ts:401:18)
at Transaction._compile (node_modules/@solana/web3.js/src/transaction.ts:523:26)
at Transaction.partialSign (node_modules/@solana/web3.js/src/transaction.ts:654:26)
at NodeWallet.signTransaction (node_modules/@project-serum/anchor/src/provider.ts:246:8)
at Provider.send (node_modules/@project-serum/anchor/src/provider.ts:105:23)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.rpc [as publishRandom] (node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:24:23)
at MockOracleSession.publishRandom (node_modules/@demox-labs/solrand/app/sessions.js:123:9)
cross-pile
Reveal the result:
Error: Invalid arguments: requester not provided.
at /home/aravind/Jhusten-cross-pile/node_modules/@project-serum/anchor/src/program/common.ts:50:15
at Array.forEach ()
at validateAccounts (node_modules/@project-serum/anchor/src/program/common.ts:45:14)
at ix (node_modules/@project-serum/anchor/src/program/namespace/instruction.ts:43:23)
at txFn (node_modules/@project-serum/anchor/src/program/namespace/transaction.ts:20:14)
at Object.rpc [as revealCoin] (node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:21:18)
at /home/aravind/Jhusten-cross-pile/tests/cross-pile.ts:184:32
at Generator.next ()
at /home/aravind/Jhusten-cross-pile/tests/cross-pile.ts:31:71
at new Promise ()
at __awaiter (tests/cross-pile.ts:27:12)
at Context. (tests/cross-pile.ts:182:40)
at processImmediate (node:internal/timers:471:21)
error Command failed with exit code 5.
PLEASE HELP!!!
It seems that the repo is not up to date to latest anchor versions (0.24.2 or 0.25.0) but was written with anchor 0.18.2.
Is it planned to be updated and is Solrand Oracle working with the new versions?
Thanks.
Hi, in your dependencies you have listed "@demox_labs/solrand": "^0.0.3" twice, but when installing with npm/yarn in the root I get
npm ERR! 404 '@demox_labs/solrand@https://registry.npmjs.org/@demox_labs/solrand/-/solrand-0.0.3.tgz' is not in this registry.
Hi Evan, I'm new to Solana. I'm having trouble running cross-pile locally. I suspect it's because there's something wrong with the dependency setup I have because I made to to replace every instance of "GxJJd3q28eUd7kpPCbNXGeixqHmBYJ2owqUYqse3ZrGS" with the account obtained from anchor deploy
of my own solrand installation in both repos.
Hi,
i am trying to run cross-pile locally on localnet and keep receiving the following message when i go to run anchor test
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: instruction expected an executable account
Any help would be appreciated!
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.