-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add deployment cost in gas benchmark
- Loading branch information
Showing
5 changed files
with
307 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
{ | ||
"deployment_costs": { | ||
"UniversalProfile": 3000497, | ||
"KeyManager": 3439409, | ||
"LSP1DelegateUP": 1623804, | ||
"LSP7Mintable": 2354082, | ||
"LSP8Mintable": 2476554 | ||
}, | ||
"runtime_costs": { | ||
"EOA_owner": { | ||
"execute": { | ||
"case_1": { | ||
"description": "Transfer 1 LYX to an EOA without data", | ||
"gas_cost": 37537 | ||
}, | ||
"case_2": { | ||
"description": "Transfer 1 LYX to a UP without data", | ||
"gas_cost": 36639 | ||
}, | ||
"case_3": { | ||
"description": "Transfer 1 LYX to an EOA with 256 bytes of data", | ||
"gas_cost": 42210 | ||
}, | ||
"case_4": { | ||
"description": "Transfer 1 LYX to a UP with 256 bytes of data", | ||
"gas_cost": 44855 | ||
}, | ||
"case_5": { | ||
"description": "Transfer 0.1 LYX to 3x EOA without data", | ||
"gas_cost": 70862 | ||
}, | ||
"case_6": { | ||
"description": "Transfer 0.1 LYX to 3x UP without data", | ||
"gas_cost": 75680 | ||
}, | ||
"case_7": { | ||
"description": "Transfer 0.1 LYX to 3x EOA with 256 bytes of data", | ||
"gas_cost": 84814 | ||
}, | ||
"case_8": { | ||
"description": "Transfer 0.1 LYX to 3x UPs with 256 bytes of data", | ||
"gas_cost": 100285 | ||
} | ||
}, | ||
"setData": { | ||
"case_1": { | ||
"description": "Set a 20 bytes long value", | ||
"gas_cost": 49971 | ||
}, | ||
"case_2": { | ||
"description": "Set a 60 bytes long value", | ||
"gas_cost": 95293 | ||
}, | ||
"case_3": { | ||
"description": "Set a 160 bytes long value", | ||
"gas_cost": 164465 | ||
}, | ||
"case_4": { | ||
"description": "Set a 300 bytes long value", | ||
"gas_cost": 279676 | ||
}, | ||
"case_5": { | ||
"description": "Set a 600 bytes long value", | ||
"gas_cost": 484136 | ||
}, | ||
"case_6": { | ||
"description": "Change the value of a data key already set", | ||
"gas_cost": 32859 | ||
}, | ||
"case_7": { | ||
"description": "Remove the value of a data key already set", | ||
"gas_cost": 27333 | ||
}, | ||
"case_8": { | ||
"description": "Set 2 data keys of 20 bytes long value", | ||
"gas_cost": 78454 | ||
}, | ||
"case_9": { | ||
"description": "Set 2 data keys of 100 bytes long value", | ||
"gas_cost": 260618 | ||
}, | ||
"case_10": { | ||
"description": "Set 3 data keys of 20 bytes long value", | ||
"gas_cost": 105171 | ||
}, | ||
"case_11": { | ||
"description": "Change the value of three data keys already set of 20 bytes long value", | ||
"gas_cost": 45459 | ||
}, | ||
"case_12": { | ||
"description": "Remove the value of three data keys already set", | ||
"gas_cost": 41360 | ||
} | ||
}, | ||
"tokens": { | ||
"case_1": { | ||
"description": "Minting a LSP7Token to a UP (No Delegate) from an EOA", | ||
"gas_cost": 91982 | ||
}, | ||
"case_2": { | ||
"description": "Minting a LSP7Token to an EOA from an EOA", | ||
"gas_cost": 59289 | ||
}, | ||
"case_3": { | ||
"description": "Transferring an LSP7Token from a UP to another UP (No Delegate)", | ||
"gas_cost": 100092 | ||
}, | ||
"case_4": { | ||
"description": "Minting a LSP8Token to a UP (No Delegate) from an EOA ", | ||
"gas_cost": 159126 | ||
}, | ||
"case_5": { | ||
"description": "Minting a LSP8Token to an EOA from an EOA ", | ||
"gas_cost": 126433 | ||
}, | ||
"case_6": { | ||
"description": "Transferring an LSP8Token from a UP to another UP (No Delegate)", | ||
"gas_cost": 148899 | ||
} | ||
} | ||
}, | ||
"KeyManager_owner": { | ||
"execute": { | ||
"case_1": { | ||
"description": "LYX transfer --> to an EOA", | ||
"main_controller": 60408, | ||
"restricted_controller": 73899 | ||
}, | ||
"case_2": { | ||
"description": "LYX transfer --> to a UP", | ||
"main_controller": 62010, | ||
"restricted_controller": 76988 | ||
}, | ||
"case_3": { | ||
"description": "LSP7 token transfer --> to an EOA", | ||
"main_controller": 117832, | ||
"restricted_controller": 132523 | ||
}, | ||
"case_4": { | ||
"description": "LSP7 token transfer --> to a UP", | ||
"main_controller": 254217, | ||
"restricted_controller": 268908 | ||
}, | ||
"case_5": { | ||
"description": "LSP8 NFT transfer --> to an EOA", | ||
"main_controller": 182075, | ||
"restricted_controller": 196743 | ||
}, | ||
"case_6": { | ||
"description": "LSP8 NFT transfer --> to a UP", | ||
"main_controller": 301707, | ||
"restricted_controller": 316375 | ||
} | ||
}, | ||
"setData": { | ||
"case_1": { | ||
"description": "Update Profile details (LSP3Profile Metadata)", | ||
"main_controller": 68545, | ||
"restricted_controller": 78544 | ||
}, | ||
"case_2": { | ||
"description": "Add a new controller with permission to `SET_DATA` + 3x allowed data keys: <br/> `AddressPermissions[]` <br/> + `AddressPermissions[index]` <br/> + `AddressPermissions:Permissions:<controller>` <br/> + `AddressPermissions:AllowedERC725YDataKeys:<controller`)", | ||
"main_controller": 211942, | ||
"restricted_controller": 221582 | ||
}, | ||
"case_3": { | ||
"description": "Update permissions of previous controller. Allow it now to `SUPER_SETDATA`", | ||
"main_controller": 53432, | ||
"restricted_controller": 56415 | ||
}, | ||
"case_4": { | ||
"description": "Remove a controller: <br/> 1. decrease `AddressPermissions[]` Array length <br/> 2. remove the controller address at `AddressPermissions[index]` <br/> 3. set \"0x\" for the controller permissions under AddressPermissions:Permissions:<controller-address>", | ||
"main_controller": 80426, | ||
"restricted_controller": 91493 | ||
}, | ||
"case_5": { | ||
"description": "Write 5x new LSP12 Issued Assets", | ||
"main_controller": 68098, | ||
"restricted_controller": 102702 | ||
}, | ||
"case_6": { | ||
"description": "Update 3x data keys (first 3)", | ||
"main_controller": 127385, | ||
"restricted_controller": 161466 | ||
}, | ||
"case_7": { | ||
"description": "Update 3x data keys (middle 3)", | ||
"main_controller": 107473, | ||
"restricted_controller": 145620 | ||
}, | ||
"case_8": { | ||
"description": "Update 3x data keys (last 3)", | ||
"main_controller": 127385, | ||
"restricted_controller": 170953 | ||
}, | ||
"case_9": { | ||
"description": "Set 2 x new data keys + add 3x new controllers", | ||
"main_controller": 815830, | ||
"restricted_controller": 876099 | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters