Parameters
- data: ICreateDistributorData
- accounts: Required<
ResolvedAccounts<
| {
docs: ["[MerkleDistributor]."];
name: "distributor";
pda: {
seeds: [
{
kind: "const";
value: [
77,
101,
114,
107,
108,
101,
68,
105,
115,
116,
114,
105,
98,
117,
116,
111,
114,
];
},
{ kind: "account"; path: "mint" },
{ kind: "arg"; path: "version" },
];
};
writable: true;
}
| {
docs: ["Clawback receiver token account"];
name: "clawbackReceiver";
writable: true;
}
| { docs: ["The mint to distribute."]; name: "mint" }
| {
docs: ["Token vault"];
name: "tokenVault";
pda: {
program: {
kind: "const";
value: [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89,
];
};
seeds: [
{ kind: "account"; path: "distributor" },
{ kind: "account"; path: "tokenProgram" },
{ kind: "account"; path: "mint" },
];
};
writable: true;
}
| {
docs: [
"Admin wallet, responsible for creating the distributor and paying for the transaction.",
"Also has the authority to set the clawback receiver and change itself.",
];
name: "admin";
signer: true;
writable: true;
}
| {
address: "11111111111111111111111111111111";
docs: ["The [System] program."];
name: "systemProgram";
}
| {
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
docs: ["The [Associated Token] program."];
name: "associatedTokenProgram";
}
| { docs: ["The [Token] program."]; name: "tokenProgram" }
| {
name: "partnerOracleConfig";
pda: {
program: {
kind: "const";
value: [
12,
48,
148,
48,
221,
89,
2,
209,
180,
126,
151,
216,
166,
3,
112,
50,
177,
192,
141,
218,
37,
78,
51,
109,
243,
106,
174,
122,
93,
121,
191,
119,
];
};
seeds: [
{
kind: "const";
value: [
97,
105,
114,
100,
114,
111,
112,
95,
99,
111,
110,
102,
105,
103,
];
},
];
};
}
| {
address: "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa";
docs: ["Partner Oracle program that stores fees"];
name: "partnerOracle";
},
>,
>
Returns Promise<TransactionInstruction>
Get all defaults fees applied by the protocol.