Skip to content

Instantly share code, notes, and snippets.

View bpolania's full-sized avatar

Boris Polania bpolania

View GitHub Profile
var HelloEthSalon = artifacts.require('./HelloEthSalon.sol');
contract(‘HelloEthSalon:GetMessage’, function(accounts) {
it(“should return a correct string”, function(done) {
var hello_eth_salon = HelloEthSalon.deployed();
hello_eth_salon.then(function(contract){
return contract.GetMessage.call(); // **IMPORTANT
}).then(function(result){
assert.isTrue(result === ‘Hello Ethereum Salon!’);
done();
})
@bpolania
bpolania / DataExtensions.swift
Last active September 18, 2024 16:49
Swift Extensions for Data, Int, UInt8, UInt16, and UInt32 types
// MIT License
// Copyright (c) 2018 Boris Polania
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
Owner: User #71475 Japanese style Faces
¢‿¢
©¿© o
ª{•̃̾_•̃̾}ª
¬_¬
¯\(º_o)/¯
¯\(º o)/¯
¯\_(⊙︿⊙)_/¯
¯\_(ツ)_/¯
°ω°
[Unit]
Description=cosmovisor
After=network.target
[Service]
Type=simple
User=ec2-user
Group=ec2-user
ExecStart=/usr/local/bin/cosmovisor run run --home=/home/ec2-user/story
Restart=on-failure
@bpolania
bpolania / readme.md
Last active September 16, 2024 22:59

Story Protocol SDK Documentation

Overview

The Story Protocol SDK is a TypeScript library that provides an interface to interact with the Story Protocol smart contracts. It includes classes for managing NFTs, handling various workflows, and dealing with errors specific to the protocol.

Installation

npm install story-protocol-sdk