Skip to content

Commit

Permalink
chore: Merge pull request #127
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrecojs authored Nov 19, 2024
2 parents f86027a + b7de87e commit 02f32be
Show file tree
Hide file tree
Showing 73 changed files with 24,120 additions and 3,666 deletions.
9 changes: 1 addition & 8 deletions contract/builder/start-tribbles-airdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Fail } from '@endo/errors';
import { makeTracer, deeplyFulfilledObject } from '@agoric/internal';
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';

const ONE_DAY = 86_000n;

const AIRDROP_TIERS_STATIC = [9000n, 6500n, 3500n, 1500n, 750n].map(
x => x * 1_000_000n,
);
Expand Down Expand Up @@ -181,15 +179,12 @@ export const startAirdrop = async (powers, config) => {
value: 5n,
}),
};
trace('BEFORE assert(config?.options?.merkleRoot');
assert(
customTerms?.merkleRoot,
'can not start contract without merkleRoot???',
);
trace('AFTER assert(config?.options?.merkleRoot');
const marshaller = await E(board).getReadonlyMarshaller();

console.log('------------------------');
const startOpts = {
installation: await airdropInstallationP,
label: contractName,
Expand Down Expand Up @@ -321,9 +316,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
'getManifestForAirdrop',
{
installKeys: {
tribblesAirdrop: publishRef(
install('./src/tribbles/airdrop.contract.js'),
),
tribblesAirdrop: publishRef(install('./src/airdrop.contract.js')),
},
},
],
Expand Down
12 changes: 6 additions & 6 deletions contract/bundle-airdrop-js-meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,35 @@
"mtime": "2024-09-09T22:44:50.209Z"
},
{
"relativePath": "../airdrop/helpers/time.js",
"relativePath": "../src/helpers/time.js",
"mtime": "2024-08-21T14:40:19.525Z"
},
{
"relativePath": "../../node_modules/@agoric/ertp/src/index.js",
"mtime": "2024-09-09T22:44:50.102Z"
},
{
"relativePath": "../airdrop/helpers/validation.js",
"relativePath": "../src/helpers/validation.js",
"mtime": "2024-08-20T14:25:40.905Z"
},
{
"relativePath": "../../node_modules/@agoric/zoe/src/contractSupport/index.js",
"mtime": "2024-09-09T22:44:50.209Z"
},
{
"relativePath": "../airdrop/helpers/stateMachine.js",
"relativePath": "../src/helpers/stateMachine.js",
"mtime": "2024-09-11T15:45:13.443Z"
},
{
"relativePath": "../../node_modules/@agoric/zoe/src/contractSupport/ratio.js",
"mtime": "2024-09-09T22:44:50.209Z"
},
{
"relativePath": "../airdrop/helpers/messages.js",
"relativePath": "../src/helpers/messages.js",
"mtime": "2024-08-20T14:25:40.904Z"
},
{
"relativePath": "../airdrop/helpers/objectTools.js",
"relativePath": "../src/helpers/objectTools.js",
"mtime": "2024-08-29T16:33:56.879Z"
},
{
Expand Down Expand Up @@ -123,7 +123,7 @@
"mtime": "2024-09-09T22:44:38.133Z"
},
{
"relativePath": "../airdrop/helpers/lenses.js",
"relativePath": "../src/helpers/lenses.js",
"mtime": "2024-09-09T16:53:44.572Z"
},
{
Expand Down
8 changes: 7 additions & 1 deletion contract/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
"strictNullChecks": true,
"moduleResolution": "node"
},
"include": ["src/**/*.js", "test/**/*.js", "exported.js", "globals.d.ts"]
"include": [
"src/**/*.js",
"test/**/*.js",
"src/types.js",
"exported.js",
"globals.d.ts"
]
}
4 changes: 3 additions & 1 deletion contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@agoric/eslint-config": "dev",
"@endo/bundle-source": "^2.8.0",
"@endo/eslint-plugin": "^0.5.2",
"@endo/eslint-plugin": "^2.2.3",
"@endo/init": "^0.5.60",
"@endo/ses-ava": "^1.2.7",
"@jessie.js/eslint-plugin": "^0.4.0",
Expand Down Expand Up @@ -71,6 +71,7 @@
"@endo/promise-kit": "^1.1.7",
"@noble/hashes": "1.5.0",
"@noble/secp256k1": "^2.1.0",
"@paralleldrive/cuid2": "^2.2.2",
"bech32": "^2.0.0"
},
"ava": {
Expand Down Expand Up @@ -108,6 +109,7 @@
},
"extends": [
"@agoric",
"plugin:@endo/recommended",
"prettier"
],
"ignorePatterns": [
Expand Down
Loading

0 comments on commit 02f32be

Please sign in to comment.