diff --git a/dist/strategies/DirectGrants/DirectGrantsStrategy.js b/dist/strategies/DirectGrants/DirectGrantsStrategy.js index 9508d2b..6fb17ae 100644 --- a/dist/strategies/DirectGrants/DirectGrantsStrategy.js +++ b/dist/strategies/DirectGrants/DirectGrantsStrategy.js @@ -311,7 +311,7 @@ class DirectGrantsStrategy { } getRegisterRecipientData(data) { this.checkPoolId(); - const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uit256, string)"), [ + const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uint256, string)"), [ data.registryAnchor || types_1.ZERO_ADDRESS, data.recipientAddress, data.grantAmount, @@ -332,7 +332,7 @@ class DirectGrantsStrategy { this.checkPoolId(); const encodedParams = []; data.forEach((registerData) => { - const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uit256, string)"), [ + const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uint256, string)"), [ registerData.registryAnchor || types_1.ZERO_ADDRESS, registerData.recipientAddress, registerData.grantAmount, diff --git a/dist/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.js b/dist/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.js index 746108c..ab89cdd 100644 --- a/dist/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.js +++ b/dist/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.js @@ -442,7 +442,7 @@ class DonationVotingMerkleDistributionStrategy { this.checkPoolId(); const encodedParams = []; data.forEach((registerData) => { - const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, (uit256, string)"), [ + const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, (uint256, string)"), [ registerData.registryAnchor || types_1.ZERO_ADDRESS, registerData.recipientAddress, [registerData.metadata.protocol, registerData.metadata.pointer], diff --git a/dist/strategies/MicroGrantsStrategy/MicroGrantsStrategy.js b/dist/strategies/MicroGrantsStrategy/MicroGrantsStrategy.js index d669db2..1b45d7a 100644 --- a/dist/strategies/MicroGrantsStrategy/MicroGrantsStrategy.js +++ b/dist/strategies/MicroGrantsStrategy/MicroGrantsStrategy.js @@ -429,7 +429,7 @@ class MicroGrantsStrategy { this.checkPoolId(); const encodedParams = []; data.forEach((registerData) => { - const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uit256, string)"), [ + const encoded = (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, address, uint256, (uint256, string)"), [ registerData.registryAnchor || types_1.ZERO_ADDRESS, registerData.recipientAddress, registerData.requestedAmount, diff --git a/package.json b/package.json index 6394edf..c14405f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@allo-team/allo-v2-sdk", - "version": "1.0.50", + "version": "1.0.51", "description": "sdk for allo v2", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/strategies/DirectGrants/DirectGrantsStrategy.ts b/src/strategies/DirectGrants/DirectGrantsStrategy.ts index cb754e0..306d4c2 100644 --- a/src/strategies/DirectGrants/DirectGrantsStrategy.ts +++ b/src/strategies/DirectGrants/DirectGrantsStrategy.ts @@ -427,13 +427,14 @@ export class DirectGrantsStrategy { public getRegisterRecipientData(data: RegisterData): TransactionData { this.checkPoolId(); const encoded: `0x${string}` = encodeAbiParameters( - parseAbiParameters("address, address, uint256, (uit256, string)"), + parseAbiParameters("address, address, uint256, (uint256, string)"), [ data.registryAnchor || ZERO_ADDRESS, data.recipientAddress, data.grantAmount, [data.metadata.protocol, data.metadata.pointer], - ] + + ], ); const encodedData = encodeFunctionData({ @@ -455,13 +456,13 @@ export class DirectGrantsStrategy { data.forEach((registerData) => { const encoded: `0x${string}` = encodeAbiParameters( - parseAbiParameters("address, address, uint256, (uit256, string)"), + parseAbiParameters("address, address, uint256, (uint256, string)"), [ registerData.registryAnchor || ZERO_ADDRESS, registerData.recipientAddress, registerData.grantAmount, [registerData.metadata.protocol, registerData.metadata.pointer], - ] + ], ); encodedParams.push(encoded); diff --git a/src/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.ts b/src/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.ts index 957445f..41a34e7 100644 --- a/src/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.ts +++ b/src/strategies/DonationVotingMerkleDistributionStrategy/DonationVotingMerkleDistribution.ts @@ -542,7 +542,7 @@ export class DonationVotingMerkleDistributionStrategy { data.forEach((registerData) => { const encoded: `0x${string}` = encodeAbiParameters( - parseAbiParameters("address, address, (uit256, string)"), + parseAbiParameters("address, address, (uint256, string)"), [ registerData.registryAnchor || ZERO_ADDRESS, registerData.recipientAddress, diff --git a/src/strategies/MicroGrantsStrategy/MicroGrantsStrategy.ts b/src/strategies/MicroGrantsStrategy/MicroGrantsStrategy.ts index 78a619e..2dcb8e7 100644 --- a/src/strategies/MicroGrantsStrategy/MicroGrantsStrategy.ts +++ b/src/strategies/MicroGrantsStrategy/MicroGrantsStrategy.ts @@ -579,7 +579,7 @@ export class MicroGrantsStrategy { data.forEach((registerData) => { const encoded: `0x${string}` = encodeAbiParameters( - parseAbiParameters("address, address, uint256, (uit256, string)"), + parseAbiParameters("address, address, uint256, (uint256, string)"), [ registerData.registryAnchor || ZERO_ADDRESS, registerData.recipientAddress,