Skip to content

Instantly share code, notes, and snippets.

View nodra-vr's full-sized avatar

Nodra Vr nodra-vr

  • runekeeper.quest
View GitHub Profile

Socials

Some stuff we like: https://drive.google.com/drive/folders/1bGWw3hZpuaTZz1TQPeY5GUmFrn5gdjAn?usp=sharing

  • Image: discord-server-logo: has some marked as liked/disliked.

  • For discord all but the splash seems to look best with some transparency.

  • Note: sizes in brackets are sizes used by the platform on difrent screens. The platform automaticly scales the images, but main details should not be lost when scaling down. (so this needs to be checked)

The Brand

>> Brands Name?
  • Arc
  • Arc76
  • Arc76.Near
  • Arc76.Space
@nodra-vr
nodra-vr / near-calls.rs
Last active May 19, 2022 18:40
Remote contract call to check nft ownership
// Define out going calls
#[ext_contract(ext_calls)]
pub trait ExtCalls {
fn nft_token(&self, token_id: TokenId) -> Option<JsonToken>;
}
// Define the returning callback
#[ext_contract(ext_callbacks)]
pub trait ExtCallbacks {
fn arc_link_callback(
@nodra-vr
nodra-vr / attributes.ts
Last active November 19, 2021 20:56
Actor Attributes - Rolling for a dice pool rule sets.
const ATTRIB_RANGE: Range = {
min: 64, max: 128,
};
const ATTRIB_DEFAULT = 96;
const ATRIB_COUNT = 9;
const ATTRIB_INDEX = ATRIB_COUNT - 1;
export interface Attributes {
strength: number
@nodra-vr
nodra-vr / account.ts
Last active November 18, 2021 22:21
Web3 inspired account encryption for algorand apps.
import * as algosdk from "algosdk";
import { v4 } from 'uuid';
import { scrypt } from "ethereum-cryptography/scrypt";
import { ripemd160 } from "ethereum-cryptography/ripemd160";
import { getRandomBytes } from "ethereum-cryptography/random";
import { decrypt, encrypt } from "ethereum-cryptography/aes";
import { toHex, hexToBytes } from "ethereum-cryptography/utils";
import { utf8ToBytes, bytesToUtf8 } from "ethereum-cryptography/utils";