Skip to content

Commit

Permalink
Merge pull request #7 from DINHaus/feat/optimism
Browse files Browse the repository at this point in the history
bump referrer
  • Loading branch information
dekanbro authored Jun 13, 2024
2 parents 692eb64 + 3f5acda commit 773587d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/components/UserDaos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const UserDaos = () => {
return;
}

console.log("fetching daos", NFT_DAO_REFERRER);

const fetchDaos = async () => {
const query = await listDaos({
networkId: chainId as ValidNetwork,
Expand Down
1 change: 1 addition & 0 deletions src/legos/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const APP_TX = {
contract: APP_CONTRACT.HOS_SUMMONER,
method: "summonBaalFromReferrer",
argCallback: "assembleCuratorSummonerArgs",
dissablePoll: true,
// customPoll: {
// fetch: pollLastTX,
// test: testLastTX,
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Summon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ const Summon = () => {

return (
<SingleColumnLayout>
<FormBuilder
{!txSuccess && (<FormBuilder
form={APP_FORM.SUMMON_CURATOR_NFT}
customFields={AppFieldLookup}
targetNetwork={chainId}
submitButtonText="Summon NFT DAO"
submitButtonText="Summon DIN Topic"
lifeCycleFns={{
onPollSuccess: (result) => {
console.log("poll success", result);
Expand All @@ -52,13 +52,13 @@ const Summon = () => {
setTxSuccess(true);
}
}}
/>
/>)}
{txSuccess && <LinkButton
showExternalIcon={true}
target="_blank"
href={`${ADMIN_URL}`}
>
Go to Topic List
Success! Go to Topic List to view your Hub.
</LinkButton>}
</SingleColumnLayout>
);
Expand Down
14 changes: 7 additions & 7 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { KeychainList } from "@daohaus/keychain-utils";

export const NFT_DAO_REFERRER = "DHNFTCuratorShamanSummonerV0.3";
export const NFT_DAO_REFERRER = "DHNFTCuratorShamanSummonerV0.4";

export const CURATOR_CONTRACTS: KeychainList = {
FIXED_LOOT_SUMMONER: {
Expand All @@ -12,7 +12,7 @@ export const CURATOR_CONTRACTS: KeychainList = {
NFT_CURATOR_SUMMONER: {
// "0x1": "0xb5a8838d27df4633894feaa4e5b902a874ec8e7e",
// "0x5": "0x759ef79cfcc4f155052554ca7ff9c39b0e76abd1",
"0xa": "0xeece40a7492efe0598e466ff501530feaddd501d",
"0xa": "0x2b69ee1e97b80213547929efe4f0500bf5b43a56",
"0xaa36a7": "0xd2ba2c50d16d35d6b8642a06b2c882f9fe790edd", // "0x70132cd79f90306bc68c1930f4364452a17aa552" // "0x4bb5d274dea3542bb836cba64bd7eed63233cb58"
},
BASIC_HOS_SUMMONER: {
Expand Down Expand Up @@ -44,7 +44,7 @@ export const CURATOR_CONTRACTS: KeychainList = {
},
NFT_CURATOR_SINGLETON: {
// "0x5": "0xb3dc8207075e9c7e78efb7148fb59b6f5da1dc28"
"0xa": "0xbde69c6e697580ba9e4d9ff0a10361ddb053aca2",
"0xa": "0xec0d1f8baed05ed6516fe0f9304566115f2dbbde",
"0xaa36a7": "0x5dbC54D909eA0dAFc42A08CAE140e46Af388d451", // "0xec0d1f8baed05ed6516fe0f9304566115f2dbbde", // "0xeece40a7492efe0598e466ff501530feaddd501d", // "0x31cb4b142ed082147d4c71da0c3bbef0b6c0f3ae"
},
CLAIM_SHAMAN_SINGLETON: {
Expand Down Expand Up @@ -90,10 +90,10 @@ export const SHARE_SYMBOL = "sVOTE";
export const LOOT_NAME = "Community Power";
export const LOOT_SYMBOL = "sLOOT";
export const DEFAULT_SUMMON_VALUES = {
//votingPeriodInSeconds: 259200,
votingPeriodInSeconds: 666,
// gracePeriodInSeconds: 172800,
gracePeriodInSeconds: 6,
votingPeriodInSeconds: 259200,
// votingPeriodInSeconds: 666,
gracePeriodInSeconds: 172800,
// gracePeriodInSeconds: 6,
newOffering: "10000000000000000",
quorum: "20",
sponsorThreshold: SHARE_PER_NFT,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/summonTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ const assembleInitActions = ({
initActions = [
governanceConfigTX(DEFAULT_SUMMON_VALUES),
metadataConfigTX(formValues, memberAddress, POSTER.toLowerCase()),
// tokenConfigTX(),
// tokenDistroTX(formValues, memberAddress),
tokenConfigTX(),
tokenDistroTX(formValues, memberAddress),
// this will not be indexed as is. move intro post to metadataConfigTX
// introPostConfigTX(formValues, memberAddress, POSTER.toLowerCase(), chainId),
];
Expand Down

0 comments on commit 773587d

Please sign in to comment.