This file contains hidden or 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
/** | |
*Submitted for verification at Etherscan.io on 2021-10-31 | |
*/ | |
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol | |
// OpenZeppelin Contracts v4.3.2 (utils/Strings.sol) | |
pragma solidity ^0.8.0; |
This file contains hidden or 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
# @title The beginnings of Vector in Cairo | |
# @author 0xNonCents | |
# @notice Please let me know if this will save on gas compared to a @storage array | |
# MIT License | |
%builtins pedersen range_check | |
from starkware.cairo.common.alloc import alloc | |
from starkware.cairo.common.hash import hash2 | |
from starkware.cairo.common.cairo_builtins import HashBuiltin |
This file contains hidden or 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
// SPDX-License-Identifier: UNLICENSE | |
pragma solidity >=0.8.0 <0.9.0; | |
// NOT TESTED - USE AT YOUR OWN RISK | |
// Supports 32 byte word types. Could be easily extended to multiword types by | |
// passing in the size of the elements as well though | |
struct PushableArray { |
OlderNewer