Skip to content

Commit

Permalink
fix typings, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
funderbrker committed Mar 4, 2024
1 parent 5edae43 commit 23cc9d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
16 changes: 0 additions & 16 deletions projects/sdk/src/lib/tractor/OperatorPasteInstrs.ts

This file was deleted.

4 changes: 3 additions & 1 deletion projects/sdk/src/lib/tractor/tractor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ describe("tractor mow", async () => {
signature: await publisher.signMessage(blueprintHash)
};

await sdk.contracts.beanstalk.runBlueprint(requisition).then((txn) => txn.wait());
const operatorData: ethers.Bytes = ethers.utils.arrayify("");

await sdk.contracts.beanstalk.tractor(requisition, operatorData).then((txn) => txn.wait());
});
});
7 changes: 5 additions & 2 deletions projects/sdk/src/lib/tractor/tractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Tractor {
}

static async getBlueprintHash(blueprint: Blueprint): Promise<string> {
return Tractor.sdk.contracts.beanstalk.interface.getBlueprintHash(blueprint);
return Tractor.sdk.contracts.beanstalk.getBlueprintHash(blueprint);
}

// async signRequisition(requisition: Requisition, signer: ethers.Signer) {
Expand All @@ -37,7 +37,10 @@ export class Tractor {

// async encodeOperatorData() {}

async tractor(requisition: Requisition, operatorData: Bytes): Promise<ContractTransaction> {
async tractor(
requisition: Requisition,
operatorData: ethers.Bytes
): Promise<ContractTransaction> {
return Tractor.sdk.contracts.beanstalk.tractor(requisition, operatorData);
}
}
4 changes: 2 additions & 2 deletions projects/sdk/src/lib/tractor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type uint80 = ethers.BigNumber;
export type Blueprint = {
publisher: string;
data: ethers.Bytes;
operatorPasteInstrs: ethers.Bytes;
operatorPasteInstrs: ethers.Bytes[];
maxNonce: ethers.BigNumber;
startTime: ethers.BigNumber;
endTime: ethers.BigNumber;
Expand All @@ -27,7 +27,7 @@ export type DraftAction = {
};

export type AdvancedFarmCall = {
callData: ethers.Bytes;
callData: string;
clipboard: string;
};

Expand Down

0 comments on commit 23cc9d1

Please sign in to comment.