Skip to content

Instantly share code, notes, and snippets.

View sampullman's full-sized avatar

Sam Pullman sampullman

View GitHub Profile
@sampullman
sampullman / PlasmicNewPage.tsx
Created January 20, 2026 13:52
App router server/client component codegen
/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
/* prettier-ignore-start */
/** @jsxRuntime classic */
/** @jsx createPlasmicElementProxy */
/** @jsxFrag React.Fragment */
// This class is auto-generated by Plasmic; please do not edit!
@sampullman
sampullman / PlasmicNewPage.tsx
Created January 20, 2026 13:51
Page router component and skeleton/wrapper
/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
/* prettier-ignore-start */
/** @jsxRuntime classic */
/** @jsx createPlasmicElementProxy */
/** @jsxFrag React.Fragment */
// This class is auto-generated by Plasmic; please do not edit!
use ggez::{
event::{run, EventHandler},
graphics::{self, Color, Image, Mesh},
Context, ContextBuilder, GameResult,
};
fn main() {
let (mut ctx, event_loop) = ContextBuilder::new("game", "Author")
.build()
.expect("ERROR: Could not create ggez context!");

System Overview

The Pledgecamp smart contract ecosystem serves four major purposes:

  • Enable trading of Pledge Coin (PLG), the main unit of exchange on Pledgecamp
  • Enforce holding of, and voting on, backer insurance for projects
  • Implement decentralized moderation of projects that have been flagged for review
  • Allow staking of PLG in the form of Camp Shares
  • Simplify access to the Pledgecamp features with an on-chain managed account system

Pledge Coin is a custom ERC20 implementation with trade locking and token burning capabilities. It was developed and audited in 2018 along with a basic crowdsale contract, located here. Pledge Coin was initially released in February 2019 with a total supply of 1 trillion, and reissued in May 2019 with a total supply of 10 billion. The PLGToken.sol contract in this repository is an exact copy of the version used in the reissue. More details on the contract itself can be found below.

System Overview

The Pledgecamp smart contract ecosystem serves four major purposes:

  • Enable trading of Pledge Coin (PLG), the main unit of exchange on Pledgecamp
  • Enforce holding of, and voting on, backer insurance for projects
  • Implement decentralized moderation of projects that have been flagged for review
  • Allow staking of PLG in the form of Camp Shares
  • Simplify access to the Pledgecamp features with an on-chain managed account system

Pledge Coin is a custom ERC20 implementation with trade locking and token burning capabilities. It was developed and audited in 2018 along with a basic crowdsale contract, located here. Pledge Coin was initially released in February 2019 with a total supply of 1 trillion, and reissued in May 2019 with a total supply of 10 billion. The PLGToken.sol contract in this repository is an exact copy of the version used in the reissue. More details on the contract itself can be found below.

Pledgecamp Engineering Update #21

(See previous update here)

Hello again from the engineering team! It's been a while since the last update, but we are still working hard on finishing the last few MVP platform features, fixing bugs, and improving our deployment workflow. We're also putting effort into international payment support, which is trickier due to legal differences regarding crypto related companies in different parts of the world.

Since the beginning of the project our API unit testing has been pretty good, but we're now paying more attention to integration testing and continuous deployment. In order to do this efficiently and without too much developer headache, we've moved to Ansible for building test and production environments, and Jenkins for managing them. We're also now doing end to end (E2E) testing of the frontend and API with a great tool called Cypress.

We are currently finishing up some major smart contra

Pledgecamp Engineering Update #20

(See previous update here)

Hello again from the engineering team! Two weeks ago we released an updated version of the click-through prototype at https://alpha.pledgecamp.com This week we focused on quality control and bug fixes for the platform frontend and backend. We improved quite a few UI interactions, updated layout and widgets to be more consistent across the site, and added a few simple animations. We also wrote specifications for a few new backend components, and began an overhaul of backer insurance smart contracts.

Backend

  • New lines of code: -6
  • Various bug fixes
  • Remove redundant code

Pledgecamp Engineering Update #19

(See previous update here)

Hello again from the engineering team! Last week we released an updated version of the click-through prototype at https://alpha.pledgecamp.com This week we worked on bug fixes, reviewing API integrations, and getting started on beta version of the Pledgecamp platform, which will include payments on a test network. We haven't yet put together a video walkthrough of the site yet, since most of our efforts have been focused on reviewing issues and doing quality control.

Speaking of bugs, we have a form set up here for public reports. We welcome any feedback about the design or user experience of the platform!

Backend

  • New lines of code: 63

Pledgecamp Engineering Update #18

(See previous update here)

Hello again from the engineering team, we’re here with a brief update this week - next week we'll release the final click through demo, as well as a video walkthrough of the site so far. We merged a decent amount of code last week, focused on bug fixes, improved testing, and minor API adjustments. We're nearly done revamping our test and deploy system for smart contracts, and plan to deploy on an Ethereum testnet in the next few weeks. This week we'll focus on quality control, account security review, and final UI updates for the demo.

Backend

  • New lines of code: 363
  • Improve user payment handling
  • Add API for requesting and confirming password reset
  • Add reward variants

Pledgecamp Engineering Update #16

(See previous update here)

Hello again from the engineering team, we’re here with another update! Last week we made a lot of progress across the board - the bulk of the website interface is done, and the backend API is close behind. Most of the remaining platform work revolves around finishing the backer insurance and Camp Share smart contracts, and integrating with the payments system. That being said, there are still lots of minor details to work out before we’re ready for an alpha release. We need to finish up the remaining API integrations for the project manager and moderator identity verification, and do a lot of quality control testing.

Over the next few weeks, we’ll roll out updates to our demo site. We’re targeting August 26 for an “alpha” release that demonstrates:

  • The full MVP site
  • Mock payment system (everything except the actual credit card transaction)
  • Preliminary smart cont