Skip to content

Commit

Permalink
Prepare for Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbutner committed Mar 28, 2024
1 parent e3facad commit fc06cad
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
5 changes: 5 additions & 0 deletions contracts/src/graveyard.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

//TODO let user cancel their up before timeunit expires, just action that calls this function with negative flag

//ACTION configdomain(const name& submitter, const string& url, const name& up_token_contract, const symbol& up_token_symbol, const name& reward_token_contract, const symbol& reward_token_symbol, const asset& one_up_amount, const asset& one_reward_amount);

Expand Down Expand Up @@ -173,3 +174,7 @@ Find the top content in each area by indexes provided.
- Use index for a location, like country
- Then read the totals table for the # of ups
/*/



{"msg": "succeeded", "keys": {"active_key": {"public": "EOS5cdMeqUkXyTfqpiLhDTfZyGx1VuRuLFdGozJDr2d2L9r3iw1i6", "private": "5KiDctDdD2uTqtbKq3NcpDvBnW8oHTxFmGLckk7v3gxt5MhDuy6"}, "owner_key": {"public": "EOS5Yk4FQChWb21RhGdDyvZ43hnbEGJW9VwqjyzK8Wvw1RSu5ckhF", "private": "5JJ6kk6Sappoqd4CpKGzXUqhDcqQRqZ8NVHYsbFXXVg5FepaQRk"}}, "account": "upsupsupsup4"}
21 changes: 21 additions & 0 deletions contracts/src/jungle.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const { Blockchain, nameToBigInt } = require("@proton/vert");
const { assert } = require("chai");
const blockchain = new Blockchain()

// Load contract (use paths relative to the root of the project)
const contract = blockchain.createContract('contract', 'build/contract')

/* Runs before each test */
beforeEach(async () => {
blockchain.resetTables()
})

/* Tests */
describe('Test', () => {
it('testing', async () => {
const [usera, userb] = blockchain.createAccounts('usera', 'userb')
const result = await contract.actions.newuser(['usera']).send('usera@active')
const rows = contract.tables.users(nameToBigInt('contract')).getTableRow(nameToBigInt('usera'));
assert(!!rows, "User not found")
});
});
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "your-project",
"name": "Ups",
"version": "1.0.0",
"main": "index.js",
"license": "",
"description": "Localized curation contract for Antelope blockchains",
"main": "ups.hpp",
"contributors": [{
"name": "Douglas Butner",
"email": "[email protected]",
}],
"license": "MIT",
"scripts": {
"build": "npx fuckyea build",
"deploy": "npx fuckyea deploy",
Expand Down
2 changes: 1 addition & 1 deletion tests/contract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { assert } = require("chai");
const blockchain = new Blockchain()

// Load contract (use paths relative to the root of the project)
const contract = blockchain.createContract('contract', 'build/contract')
const contract = blockchain.createContract('contract', 'build/contract/src')

/* Runs before each test */
beforeEach(async () => {
Expand Down

0 comments on commit fc06cad

Please sign in to comment.