Skip to content

Commit

Permalink
chore: resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrecojs committed Nov 19, 2024
2 parents 85f8c68 + f86027a commit b7de87e
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
5 changes: 0 additions & 5 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
6 changes: 3 additions & 3 deletions contract/test/airdrop.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ import { makeMockTools } from '../tools/boot-tools.js';
import {
makeTerms,
startAirdrop as startAirdropCampaignContract,
} from '../src/airdrop.proposal.js';
} from '../src/tribbles/airdrop.proposal.js';

/** @type {import('ava').TestFn<Awaited<ReturnType<setupTestContext>>>} */
const test = anyTest;

const nodeRequire = createRequire(import.meta.url);

const bundleRoots = {
airdrop: nodeRequire.resolve('../src/airdrop.contract.js'),
airdrop: nodeRequire.resolve('../src/tribbles/airdrop.contract.js'),
};

const scriptRoots = {
airdrop: nodeRequire.resolve('../src/airdrop.proposal.js'),
airdrop: nodeRequire.resolve('../src/tribbles/airdrop.proposal.js'),
};

/** @param {import('ava').ExecutionContext} t */
Expand Down
2 changes: 1 addition & 1 deletion contract/test/bundle-source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { E, passStyleOf } from '@endo/far';
import { makeZoeKitForTest } from '@agoric/zoe/tools/setup-zoe.js';

const myRequire = createRequire(import.meta.url);
const contractPath = myRequire.resolve(`../src/airdrop.contract.js`);
const contractPath = myRequire.resolve(`../src/tribbles/airdrop.contract.js`);

test.serial('bundleSource() bundles the contract for use with zoe', async t => {
const bundle = await bundleSource(contractPath);
Expand Down
10 changes: 7 additions & 3 deletions contract/test/tribbles-airdrop/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ const test = anyTest;
const nodeRequire = createRequire(import.meta.url);

const bundleRoots = {
tribblesAirdrop: nodeRequire.resolve('../../src/airdrop.contract.js'),
tribblesAirdrop: nodeRequire.resolve(
'../../src/tribbles/airdrop.contract.js',
),
};

const scriptRoots = {
tribblesAirdrop: nodeRequire.resolve('../../src/airdrop.proposal.js'),
tribblesAirdrop: nodeRequire.resolve(
'../../src/tribbles/airdrop.proposal.js',
),
};

/** @param {import('ava').ExecutionContext} t */
Expand Down Expand Up @@ -207,7 +211,7 @@ test.skip('E2E test', async t => {
]);
consoleCounter();

/** @type {import('../../src/airdrop.proposal.js').AirdropSpace} */
/** @type {import('../../src/tribbles/airdrop.proposal.js').AirdropSpace} */
// @ts-expect-error cast
const airdropSpace = powers;
const instance = await airdropSpace.instance.consume.tribblesAirdrop;
Expand Down
Binary file added ui/dapp-ertp-airdrop-ui.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@
"@agoric/ui-components": "^0.3.9-u13.0",
"@agoric/web-components": "0.15.1-dev-8fc28e8.0",
"@cosmjs/proto-signing": "^0.32.4",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@noble/hashes": "1.5.0",
"bech32": "2.0.0",
"buffer": "^6.0.3",
"chain-registry": "1.28.0",
"cosmos-kit": "^2.19.0",
"daisyui": "^4.12.10",
"framer-motion": "^11.11.11",
"react": "^18.3.1",
"react-daisyui": "^5.0.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 0 additions & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import '@agoric/react-components/dist/style.css';
function App() {
const { themeClass } = useTheme();

console.log({themeClass})
return (
<ThemeProvider>
<div className={themeClass}>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Orchestration/Orchestration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Orchestration = () => {
walletConnection,
pubkeyToAgoricAddress,
});
return purse?.currentAmount?.value !== 0n ? (
return !purse == false && purse?.currentAmount?.value !== 0n ? (
<div className="flex flex-col items-center shadow-lg bg-purple-900 rounded text-white">
<h3>Tribbles Allocation</h3>

Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11574,7 +11574,6 @@ __metadata:
eslint-plugin-react-hooks: "npm:^4.6.0"
eslint-plugin-react-refresh: "npm:^0.4.5"
framer-motion: "npm:^11.11.11"
immer: "npm:^10.1.1"
postcss: "npm:^8.4.35"
react: "npm:^18.3.1"
react-daisyui: "npm:^5.0.0"
Expand Down

0 comments on commit b7de87e

Please sign in to comment.