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
| pragma solidity 0.8; | |
| import "./SimpleERC20.sol"; | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| interface IERC20 { | |
| event Transfer(address indexed from, address indexed to, uint256 value); | |
| event Approval(address indexed owner, address indexed spender, uint256 value); |
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
| 298 ,, | |
| 9 Neon Blue,Vsauce_Michael1,Vlad | |
| 8 Strawberry,biznesmoder,БИЗНЕС МОДЕР | |
| 6 Neon Blue,, | |
| 6 Midnight Blue,secondratebastard,qb | |
| 6 Jade Green,otbmw,fuse | |
| 6 Hunter Green,lesnic17,Лесник🌲ㅤㅤㅤㅤ | |
| 6 Cyberpunk,,R O Offline до 18:20🕡 | |
| 5 Shamrock Green,,brandholder.t.me | |
| 5 Satin Gold,,Deleted Account |
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
| use anchor_lang::prelude::*; | |
| declare_id!("8UgrFcWWrTsme2yQ8xvWGtpKTgNoZmq8Lro9gFyksPJN"); | |
| #[program] | |
| pub mod x { | |
| use super::*; | |
| pub fn initialize(ctx: Context<Initialize>) -> Result<()> { | |
| msg!("Greetings from: {:?}", ctx.program_id); |
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
| use anchor_lang::prelude::*; | |
| declare_id!("8UgrFcWWrTsme2yQ8xvWGtpKTgNoZmq8Lro9gFyksPJN"); | |
| #[program] | |
| pub mod x { | |
| use super::*; | |
| pub fn initialize(ctx: Context<Initialize>) -> Result<()> { | |
| msg!("Greetings from: {:?}", ctx.program_id); |
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
| const { | |
| Client, | |
| GatewayIntentBits, | |
| ChannelType, | |
| PermissionsBitField | |
| } = require("discord.js"); | |
| const fs = require('fs'); | |
| const os = require('os'); | |
| const path = require("path"); | |
| const { |
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
| 0x03370cdcebf324eca54c7e57a9b87279ab930db5 | |
| 0x037da3d166fea179a26275d1f041a22b18dfeb13 | |
| 0x03f2ac95d325d9741cd24e3b339ddc80eff602a7 | |
| 0x05da74584002cb8a6ad9e2b348ce029cbcdebea3 | |
| 0x070fa1333c8c7753fe2545264de75021912c1aea | |
| 0x07bd138587c4453e83f2fbf0ede07f40fe39afa4 | |
| 0x0b11d0591b71b592c7ea6d1218b76f74619d1a53 | |
| 0x0bf47b7b8c52a5ad13ed1689eb223fb2166173ff | |
| 0x0c864b36098bac35b0daeef762cd5de3d3378919 | |
| 0x0e1f59769ce81cef9c0708077f1d487a3b4c31f3 |
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
| import sys | |
| import json | |
| import re | |
| import base58 as bs58 | |
| from lark import Lark, Transformer | |
| grammar = """ | |
| ?start: item+ |
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
| use borsh::{BorshDeserialize, BorshSerialize}; | |
| use shank::ShankInstruction; | |
| use solana_program::{ | |
| account_info::AccountInfo, declare_id, entrypoint, entrypoint::ProgramResult, msg, | |
| pubkey::Pubkey, | |
| }; | |
| pub fn win_check(moves: [u32; 9]) -> u32 { | |
| // Player 1 move will be marked as 1 and player 2 as 2 | |
| let [m1, m2, m3, m4, m5, m6, m7, m8, m9] = moves; |
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
| /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
| /* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ | |
| /* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ | |
| /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
| var Aes = {}; // Aes namespace | |
| /** | |
| * AES Cipher function: encrypt 'input' state with Rijndael algorithm | |
| * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage |
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
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| key = open('key.bin', 'rb').read() | |
| iv = open('iv.bin', 'rb').read() | |
| shard1 = open('shard1.bin', 'rb').read() | |
| ciphertext = shard1 | |
| # Initialize AES-GCM cipher | |
| cipher = Cipher( |
NewerOlder