Comments (11)
v0.7.1
is now released to alpha-goerli
. I'm starting to work on support for this version.
from starknet-rs.
The way I understood is it's us that should add a new fee
field when creating a transaction. It's not something that's coming in the API response.
from starknet-rs.
Hmmmm sounds.... reasonable. I mean I appreciate StarkWare providing the docs for preparation for the upcoming version, but it would be much nicer if it can be more detailed...
from starknet-rs.
Looks like OpenZeppelin updated their Account contract. I'll start working on task 1.
from starknet-rs.
100% with you that __execute__
looks ugly :)
Since the lib doesn't yet have a public release, I'd go with execute
. I think it's more future-proof (as you say, the now deprecated execute
will be eventually dropped) and more Rusty, a better abstraction.
from starknet-rs.
For task 1 I still haven't figured out where the field has been added to LOL. @milancermak any idea?
from starknet-rs.
So probably a new field to InvokeFunctionTransaction
, with a hardcoded value of 0 for now.
from starknet-rs.
I just tried adding a fee
field to InvokeFunctionTransactionRequest
and setting it to 0
or "0"
or "0x0"
, and got:
{
"code": "StarkErrorCode.SCHEMA_VALIDATION_ERROR",
"message": "Schema validation failed",
"problems": {
"fee": [
"Unknown field."
]
}
}
Looks like it's not how it works...
from starknet-rs.
Got clarification from StarkWare that this is rather a change on the account contract. We will probably need to wait for OpenZeppelin to update their account contract first, otherwise we'll just be sending invalid signatures.
from starknet-rs.
One thing up for discussion though. In the latest version of IAccount
, the execute function is renamed from execute
to __execute__
to deliberately break old clients (thanks to selectors not taking parameters into account :)))). Should we also name the function __execute__
?
For __execute__
:
- Using this makes it clear to developers that it's the new version of
execute
being called.
Against __execute__
:
- It looks very ugly, well, at least to me...
- I expect the old
execute
to be dropped eventually, so the point for__execute__
above will be irrelevant anyways. (I mean, it's already dropped by the account contract, and I'm talking about ecosystem support like wallets and previously deployed accounts.)
If we go against __execute__
, we can always document that it's __execute__
being called. It's obviously gonna be way less... obvious though.
@milancermak WDYT?
from starknet-rs.
There you go. Full v0.7.1 support is here!
from starknet-rs.
Related Issues (20)
- Support RPC 0.6.0 HOT 2
- `FieldElement` doesn't seem to support deserializing from non self-describing format HOT 1
- Fails to calculate Cairo 0 class hash when `program.attributes` is missing `accessible_scopes` HOT 4
- `validate_invocation` and `fee_transfer_invocation` fields don't have to be `Option` in `TransactionTrace` types HOT 4
- Make input for Accout::sign_execution publicly constructable HOT 3
- Remove `infinity` flag from `ProjectivePoint` HOT 3
- Migrate to starnet-types-rs Felt?
- Explanation: Comments have been added to explain the general purpose of the script and specific functions. Variables have more descriptive names to improve readability. Logic for cleaning and creating the target directory is clarified. Additional comments in the loop sections to explain the purpose of each step. Comments added for clarification in some loop steps.
- No reference to `result.transactions[0].sender_address` property in `starknet_getBlockWithTxs` method. HOT 1
- Support for STRK Fee Payment in RPC HOT 1
- `compute_hash_on_elements` could accept any iterator on `FieldElement` HOT 4
- Divide by zero panics in `bigint_mul_mod_floor` and `mul_mod_floor` if modulus set to 0 HOT 3
- `deploy_argent_account` has error
- Extend JSON-RPC transport capabilities for batch requests HOT 1
- Add more clippy lint rules HOT 2
- Add warn on `clippy::needless_pass_by_value` HOT 1
- Unify `pub enum TransactionStatus` variants HOT 1
- replace Poseidon implementation by `types-rs` HOT 2
- replace Pedersen implementation by `type-rs` HOT 2
- UDC: Contract deployment selector mismatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starknet-rs.