Skip to content

Commit 3fee157

Browse files
committed
add space actions
1 parent 6c32096 commit 3fee157

File tree

5 files changed

+2589
-16
lines changed

5 files changed

+2589
-16
lines changed

packages/hypergraph/src/identity/abis.ts

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,94 @@ export const safe7579Abi = [
6969
stateMutability: 'view',
7070
},
7171
];
72+
73+
// ABI for the DAO Factory, only with the functions we need
74+
export const daoFactoryAbi = [
75+
{
76+
inputs: [
77+
{
78+
components: [
79+
{
80+
internalType: 'address',
81+
name: 'trustedForwarder',
82+
type: 'address',
83+
},
84+
{
85+
internalType: 'string',
86+
name: 'daoURI',
87+
type: 'string',
88+
},
89+
{
90+
internalType: 'string',
91+
name: 'subdomain',
92+
type: 'string',
93+
},
94+
{
95+
internalType: 'bytes',
96+
name: 'metadata',
97+
type: 'bytes',
98+
},
99+
],
100+
internalType: 'struct DAOFactory.DAOSettings',
101+
name: '_daoSettings',
102+
type: 'tuple',
103+
},
104+
{
105+
components: [
106+
{
107+
components: [
108+
{
109+
components: [
110+
{
111+
internalType: 'uint8',
112+
name: 'release',
113+
type: 'uint8',
114+
},
115+
{
116+
internalType: 'uint16',
117+
name: 'build',
118+
type: 'uint16',
119+
},
120+
],
121+
internalType: 'struct PluginRepo.Tag',
122+
name: 'versionTag',
123+
type: 'tuple',
124+
},
125+
{
126+
internalType: 'contract PluginRepo',
127+
name: 'pluginSetupRepo',
128+
type: 'address',
129+
},
130+
],
131+
internalType: 'struct PluginSetupRef',
132+
name: 'pluginSetupRef',
133+
type: 'tuple',
134+
},
135+
{
136+
internalType: 'bytes',
137+
name: 'data',
138+
type: 'bytes',
139+
},
140+
],
141+
internalType: 'struct DAOFactory.PluginSettings[]',
142+
name: '_pluginSettings',
143+
type: 'tuple[]',
144+
},
145+
],
146+
name: 'createDao',
147+
outputs: [
148+
{
149+
internalType: 'contract DAO',
150+
name: 'createdDao',
151+
type: 'address',
152+
},
153+
],
154+
stateMutability: 'nonpayable',
155+
type: 'function',
156+
},
157+
] as const;
158+
159+
import mainVotingAbi from './abis/MainVotingPlugin.json' with { type: 'json' };
160+
import personalSpaceAdminAbi from './abis/PersonalSpaceAdminPlugin.json' with { type: 'json' };
161+
162+
export { mainVotingAbi, personalSpaceAdminAbi };

0 commit comments

Comments
 (0)