Open daoauth opened 1 week ago
const { getFullnodeUrl, SuiClient } = require('@mysten/sui.js/client');
const main = async () => {
const client = new SuiClient({ url: getFullnodeUrl('testnet') });
let loop = true;
let cursor = undefined;
let count = 0;
let total = 0;
const sponsore =
'0x0dec4c7d041b07e655637e0dd0f9010bd7701f7613c66894d898795a54431290';
while (loop) {
const { data, nextCursor, hasNextPage } =
await client.queryTransactionBlocks({
filter: {
MoveFunction: {
package:
'0xc6f3eccaa7b03c79bad6fd5a4093a42510cea5922862301532e6c1a53bf701f8',
module: 'voting',
function: 'vote',
},
},
options: {
showEffects: true,
showInput: true,
},
cursor,
});
cursor = nextCursor;
loop = hasNextPage;
total += data.length;
for (let i = 0; i < data.length; i++) {
if (sponsore !== data[i].effects.gasObject.owner.AddressOwner) {
count++;
console.log(
`[${data[i].digest}](https://suiscan.xyz/testnet/tx/${data[i].digest})`,
);
}
}
}
console.log(`abusing: ${count}/${total}`);
};
main();
When voting through the official voting website, all transactions should be sponsored transactions. However, some transactions are not sponsored transactions, which is quite strange.
Vote with sponsor transaction link
Vote with normal transaction link