Skip to content

Instantly share code, notes, and snippets.

View justBanks's full-sized avatar
🏠
Working from home

Darryl Banks justBanks

🏠
Working from home
  • Seattle
  • 18:08 (UTC -07:00)
View GitHub Profile
@justBanks
justBanks / homework-09.sol
Last active December 5, 2022 11:10
VolcanoNFT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; // for per-token metadata
//contract 0xB4606dc53BeF988F6DD1D4d9241C735B3729Be61
contract VolcanoNFT is Ownable, ERC721URIStorage
@justBanks
justBanks / homework-04.sol
Created October 25, 2022 08:37
homework 4
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract VolcanoCoin {
uint private totalSupply = 10000;
address private minter;
mapping(address => uint) public balances;
struct Payment {
@justBanks
justBanks / homework-03.sol
Last active October 25, 2022 07:02
homework 3
/*
To this contract, add a variable to hold the address of the deployer of the contract
Update that variable with the deployer's address when the contract is deployed.
Write an external function to return Address 0x000000000000000000000000000000000000dEaD if called by the deployer (the deployer's address otherwise)
*/
// SPDX-License-Identifier: None
pragma solidity 0.8.7;

Developer Guide - Salesforce API Integration

All about the integration between DemocracyLab's web site and Salesforce instance

Based on OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration

Overview

Access to Salesforce data is provided by the Lightning Platform REST API. Exposing this API from DemocracyLab's Salesforce instance is achieved by configuring a Salesforce connected app, which in our case is named "DemocracyLab Integration." This connected app secures the API by way of a signed certificate (used to generate a JSON web token).

App Manager