Skip to content

Instantly share code, notes, and snippets.

View davidatwhiletrue's full-sized avatar

David Hernando davidatwhiletrue

  • Barcelona, Spain
View GitHub Profile
@davidatwhiletrue
davidatwhiletrue / gas-comparison-gh-4382.md
Last active February 1, 2024 15:48
Gas comparison -> v152 vs gh-4382-lowering-costs

CEP-78

Task v152 gh-4382-lowering-costs Gas reduction
Install 267_841_863_240 254_525_031_240 95,03 %
mint 1st token 2_894_138_030 750_959_030 25,95 %
mint 2nd token 2_912_645_350 753_356_350 25,86 %
mint 3rd token 2_912_645_350 753_356_350 25,86 %
transfer 2_054_723_390 554_360_390 26,98 %
approve 1_175_644_810 279_370_810 23,76 %
@davidatwhiletrue
davidatwhiletrue / Program.cs
Last active February 15, 2022 05:19
GetAccountBalance with Task.WhenAll()
using System;
using System.Threading.Tasks;
using Casper.Network.SDK;
using Casper.Network.SDK.JsonRpc;
using Casper.Network.SDK.Types;
namespace Casper.NET.SDK.Examples
{
public class GetAccountBalance
{
@davidatwhiletrue
davidatwhiletrue / 0_reuse_code.js
Created September 16, 2017 05:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console