Agent
Solidity
IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);
BosonTypes.Agent memory agent = BosonTypes.Agent({
id: 0, // will be ignored and auto-assigned
feePercentage: 500, // 5%
wallet: payable(agentWalletAddress),
active: true
});
bosonProtocol.createAgent(agent);IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);
BosonTypes.Agent memory agent = BosonTypes.Agent({
id: 1, // existing agent ID
feePercentage: 300, // 3%
wallet: payable(newWalletAddress),
active: true
});
bosonProtocol.updateAgent(agent);Last updated