Giter VIP home page Giter VIP logo

Comments (18)

kariy avatar kariy commented on August 14, 2024 1

Will like to take care of this one!

assigned!

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024 1

alright then

from dojo.

Jonatan-Chaverri avatar Jonatan-Chaverri commented on August 14, 2024

Will like to take care of this one!

from dojo.

Jonatan-Chaverri avatar Jonatan-Chaverri commented on August 14, 2024

@kariy @glihm (or anybody who knows) I need help with this... how can I find real transactions on Voyager that match the criteria for every test? Deploy account, Declare and Invoke transactions, for v1, v2 and v3 for each... I'm I supposed to create those transactions?

from dojo.

kariy avatar kariy commented on August 14, 2024

@kariy @glihm (or anybody who knows) I need help with this... how can I find real transactions on Voyager that match the criteria for every test? Deploy account, Declare and Invoke transactions, for v1, v2 and v3 for each... I'm I supposed to create those transactions?

You can just pick any txs (of each type) on Voyager then take their hash and the tx data that are used as inputs for the tx hash computation.

For example, to compute a invoke tx hash you'd need these data:

pub fn compute_invoke_v1_tx_hash(
sender_address: FieldElement,
calldata: &[FieldElement],
max_fee: u128,
chain_id: FieldElement,
nonce: FieldElement,
is_query: bool,
) -> FieldElement {

starknet docs for extra reference: https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

hi @glihm, I would love to work on this

from dojo.

kariy avatar kariy commented on August 14, 2024

hey @Jonatan-Chaverri because there hasn't been any progress so far, i will be assigning this to @g4titanx instead.

from dojo.

Jonatan-Chaverri avatar Jonatan-Chaverri commented on August 14, 2024

@kariy Sure, sorry, have been busy these months with hackathons and other stuff. You can go ahead @g4titanx

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

okay, thanks

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

hi @kariy do you know of a faster way to search for versions of txs on voyager? i am having zero-luck finding a v3 declare type. i mean, since it's a v3 it should be among the latest txs. but even the latest txs dont use v3

from dojo.

kariy avatar kariy commented on August 14, 2024

hi @kariy do you know of a faster way to search for versions of txs on voyager? i am having zero-luck finding a v3 declare type. i mean, since it's a v3 it should be among the latest txs. but even the latest txs dont use v3

good question, tbh im also not sure. both starkscan and voyager doesn't seem to allow filtering by tx version.

i looked around the pathfinder repo for this, and maybe we can just copy the tx data for declare v3 from them https://github.com/eqlabs/pathfinder/blob/a133f157bda062187d99129367a0b18182476470/crates/common/src/transaction.rs#L1083.

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

hi @kariy do you know of a faster way to search for versions of txs on voyager? i am having zero-luck finding a v3 declare type. i mean, since it's a v3 it should be among the latest txs. but even the latest txs dont use v3

good question, tbh im also not sure. both starkscan and voyager doesn't seem to allow filtering by tx version.

i looked around the pathfinder repo for this, and maybe we can just copy the tx data for declare v3 from them https://github.com/eqlabs/pathfinder/blob/a133f157bda062187d99129367a0b18182476470/crates/common/src/transaction.rs#L1083.

yeah, we could. i entered the hash on voyager, there is no record of it tho.
does it make sense to use that same hash?

from dojo.

kariy avatar kariy commented on August 14, 2024

hi @kariy do you know of a faster way to search for versions of txs on voyager? i am having zero-luck finding a v3 declare type. i mean, since it's a v3 it should be among the latest txs. but even the latest txs dont use v3

good question, tbh im also not sure. both starkscan and voyager doesn't seem to allow filtering by tx version.
i looked around the pathfinder repo for this, and maybe we can just copy the tx data for declare v3 from them https://github.com/eqlabs/pathfinder/blob/a133f157bda062187d99129367a0b18182476470/crates/common/src/transaction.rs#L1083.

yeah, we could. i entered the hash on voyager, there is no record of it tho.

based on the test cases, it seems to be a tx from SN_GOERLI chain (which is now deprecated). lets just use that one.

from dojo.

kariy avatar kariy commented on August 14, 2024

does it make sense to use that same hash?

we just need to use chain id for SN_GOERLI when we compute the hash

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

we just need to use chain id for SN_GOERLI when we compute the hash

how do i reference the SN_GOERLI tho, it's not part of the chain id enum here

from dojo.

kariy avatar kariy commented on August 14, 2024

we just need to use chain id for SN_GOERLI when we compute the hash

how do i reference the SN_GOERLI tho, it's not part of the chain id enum here

replied on the PR, basically lets use Katana's own type for chain id, instead of starknet-rs's.

from dojo.

g4titanx avatar g4titanx commented on August 14, 2024

okay.

from dojo.

kariy avatar kariy commented on August 14, 2024

completed #2216

from dojo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.