Skip to content

Commit

Permalink
gas report + format
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Jun 6, 2024
1 parent 2abd54e commit 8f36b00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions gas-report.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ Summary:
┌───────────────────────┬─────────────────────┬─────────┬────────────────┬────────────────┬─────────────────┬───────────┬──────────────┬──────────────────────────────┬───────────────┬────────┬─────────┐
│ (index) │ Actual fee │ Fee usd │ Fee without DA │ Gas without DA │ Computation gas │ Event gas │ Calldata gas │ Max computation per Category │ Storage diffs │ DA fee │ DA mode │
├───────────────────────┼─────────────────────┼─────────┼────────────────┼────────────────┼─────────────────┼───────────┼──────────────┼──────────────────────────────┼───────────────┼────────┼─────────┤
│ Deposit (txV3: false) │ '1.152.000.000.352' │ 0.004611520000000003231 │ 4 │ 1 │ 'steps' │ 4 │ 352 │ 'BLOB' │
│ Deposit (txV3: false) │ '1.116.000.000.352' │ 0.004411160000000003130 │ 4 │ 1 │ 'steps' │ 4 │ 352 │ 'BLOB' │
│ Claim (txV3: false) │ '1.260.000.000.192' │ 0.005 │ 1260000000000 │ 35 │ 34 │ 2 │ 1 │ 'steps' │ 3 │ 192 │ 'BLOB' │
│ Deposit (txV3: true) │ '1.152.000.000.480' │ 0.004611520000000003231 │ 4 │ 1 │ 'steps' │ 5 │ 480 │ 'BLOB' │
│ Deposit (txV3: true) │ '1.116.000.000.480' │ 0.004411160000000003130 │ 4 │ 1 │ 'steps' │ 5 │ 480 │ 'BLOB' │
│ Claim (txV3: true) │ '1.260.000.000.192' │ 0 │ 1260000000000 │ 35 │ 34 │ 2 │ 1 │ 'steps' │ 3 │ 192 │ 'BLOB' │
└───────────────────────┴─────────────────────┴─────────┴────────────────┴────────────────┴─────────────────┴───────────┴──────────────┴──────────────────────────────┴───────────────┴────────┴─────────┘
Resources:
┌───────────────────────┬─────────┬───────┬───────┬────────┬──────────┬──────────┬─────────────┬───────┐
│ (index) │ bitwise │ ec_op │ ecdsa │ keccak │ pedersen │ poseidon │ range_check │ steps │
├───────────────────────┼─────────┼───────┼───────┼────────┼──────────┼──────────┼─────────────┼───────┤
│ Deposit (txV3: false) │ 0 │ 3 │ 0 │ 0 │ 38 │ 0 │ 27712098
│ Claim (txV3: false) │ 0 │ 3 │ 0 │ 0 │ 71 │ 0 │ 456 │ 13231
│ Deposit (txV3: true) │ 0 │ 3 │ 0 │ 0 │ 38 │ 0 │ 27712099
│ Claim (txV3: true) │ 0 │ 3 │ 0 │ 0 │ 71 │ 0 │ 490 │ 13429
│ Deposit (txV3: false) │ 0 │ 3 │ 0 │ 0 │ 38 │ 0 │ 27311991
│ Claim (txV3: false) │ 0 │ 3 │ 0 │ 0 │ 71 │ 0 │ 456 │ 13228
│ Deposit (txV3: true) │ 0 │ 3 │ 0 │ 0 │ 38 │ 0 │ 27311992
│ Claim (txV3: true) │ 0 │ 3 │ 0 │ 0 │ 71 │ 0 │ 490 │ 13426
└───────────────────────┴─────────┴───────┴───────┴────────┴──────────┴──────────┴─────────────┴───────┘
2 changes: 1 addition & 1 deletion scripts/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const factory = await manager.deployContract("GiftFactory", {
});

for (const useTxV3 of [false, true]) {
const signer = new LegacyStarknetKeyPair();
const signer = new LegacyStarknetKeyPair(12n);
const claimPubkey = signer.publicKey;
const amount = 1000000000000000n;
const maxFee = 50000000000000n;
Expand Down
2 changes: 1 addition & 1 deletion tests-integration/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe("Gifting", function () {
const claim = {
factory: factory.address,
class_hash: claimAccountClassHash,
...constructorArgs
...constructorArgs,
};

// cant call another contract
Expand Down

0 comments on commit 8f36b00

Please sign in to comment.