@orca-so/whirlpools-automation 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +2 -1
  2. package/dist/generated/accounts/automation.d.ts +72 -35
  3. package/dist/generated/accounts/globalConfig.d.ts +52 -19
  4. package/dist/generated/errors/whirlpoolsAutomationProgram.d.ts +54 -8
  5. package/dist/generated/instructions/createAutomation.d.ts +197 -66
  6. package/dist/generated/instructions/fundAutomation.d.ts +86 -27
  7. package/dist/generated/instructions/harvestAndReinvest.d.ts +286 -85
  8. package/dist/generated/instructions/harvestSwapAndReinvestPost.d.ts +278 -82
  9. package/dist/generated/instructions/harvestSwapAndReinvestPre.d.ts +259 -78
  10. package/dist/generated/instructions/initializeGlobalConfig.d.ts +90 -30
  11. package/dist/generated/instructions/removeAutomations.d.ts +154 -45
  12. package/dist/generated/instructions/updateGlobalConfig.d.ts +79 -24
  13. package/dist/generated/programs/whirlpoolsAutomationProgram.d.ts +58 -33
  14. package/dist/generated/shared/index.d.ts +34 -10
  15. package/dist/generated/types/accountDiscriminator.d.ts +8 -5
  16. package/dist/generated/types/action.d.ts +3 -3
  17. package/dist/generated/types/condition.d.ts +63 -33
  18. package/dist/generated/types/event.d.ts +205 -137
  19. package/dist/generated/types/fundAutomationMethod.d.ts +6 -3
  20. package/dist/generated/types/fundAutomationVariant.d.ts +33 -13
  21. package/dist/generated/types/increaseLiquidityByTokenAmountsAccountsType.d.ts +15 -11
  22. package/dist/generated/types/increaseLiquidityByTokenAmountsRemainingAccountsInfo.d.ts +10 -4
  23. package/dist/generated/types/increaseLiquidityByTokenAmountsRemainingAccountsSlice.d.ts +12 -6
  24. package/dist/generated/types/increaseLiquidityMethod.d.ts +30 -15
  25. package/dist/generated/types/nonZeroU32.d.ts +6 -2
  26. package/dist/generated/types/position.d.ts +22 -22
  27. package/dist/generated/types/positionRewardInfo.d.ts +8 -5
  28. package/dist/generated/types/tokenAccount.d.ts +22 -22
  29. package/dist/generated/types/tokenAccountState.d.ts +7 -4
  30. package/dist/generated/types/tokenMint.d.ts +14 -14
  31. package/dist/generated/types/updateGlobalConfigVariant.d.ts +58 -20
  32. package/dist/generated/types/whirlpool.d.ts +40 -40
  33. package/dist/generated/types/whirlpoolRewardInfo.d.ts +14 -11
  34. package/dist/index.browser.js +2490 -2092
  35. package/dist/index.node.js +2497 -2102
  36. package/dist/pda.d.ts +16 -4
  37. package/dist/staging.d.ts +1 -1
  38. package/package.json +3 -3
  39. package/CHANGELOG.md +0 -13
package/dist/pda.d.ts CHANGED
@@ -1,8 +1,20 @@
1
1
  import { Address } from '@solana/kit';
2
2
 
3
3
  export declare function findGlobalConfigAddress(): Promise<readonly [Address, number]>;
4
- export declare function findAutomationAddress(positionTokenAccount: Address, automationIndex: number): Promise<readonly [Address, number]>;
5
- export declare function findAutomationAuthorityAddress(positionTokenAccount: Address): Promise<readonly [Address, number]>;
4
+ export declare function findAutomationAddress(
5
+ positionTokenAccount: Address,
6
+ position: Address,
7
+ automationIndex: number
8
+ ): Promise<readonly [Address, number]>;
9
+ export declare function findAutomationAuthorityAddress(
10
+ positionTokenAccount: Address
11
+ ): Promise<readonly [Address, number]>;
6
12
  export declare function findGlobalConfigAddressSync(): readonly [Address, number];
7
- export declare function findAutomationAddressSync(positionTokenAccount: Address, automationIndex: number): readonly [Address, number];
8
- export declare function findAutomationAuthorityAddressSync(positionTokenAccount: Address): readonly [Address, number];
13
+ export declare function findAutomationAddressSync(
14
+ positionTokenAccount: Address,
15
+ position: Address,
16
+ automationIndex: number
17
+ ): readonly [Address, number];
18
+ export declare function findAutomationAuthorityAddressSync(
19
+ positionTokenAccount: Address
20
+ ): readonly [Address, number];
package/dist/staging.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { Address } from '@solana/kit';
2
2
 
3
- export declare const WHIRLPOOLS_AUTOMATION_PROGRAM_STAGING_ADDRESS: Address<"J5YZi2SoRbaAFcMJWcvkQRUgpB3YdMHJ4AEKhEV6ED7x">;
3
+ export declare const WHIRLPOOLS_AUTOMATION_PROGRAM_STAGING_ADDRESS: Address<'J5YZi2SoRbaAFcMJWcvkQRUgpB3YdMHJ4AEKhEV6ED7x'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orca-so/whirlpools-automation",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Whirlpools Automation Program JS client",
5
5
  "license": "CUSTOM",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "build:node": "vite build --mode node",
28
28
  "build:browser": "vite build --mode browser",
29
29
  "build": "yarn run build:node && yarn run build:browser",
30
- "fmt": "prettier './**/*.{js,jsx,ts,tsx,json}' --write"
30
+ "fmt": "yarn exec prettier './**/*.{js,jsx,ts,tsx,json}' --write"
31
31
  },
32
32
  "dependencies": {
33
33
  "@noble/hashes": "^2.0.1",
@@ -43,4 +43,4 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  }
46
- }
46
+ }
package/CHANGELOG.md DELETED
@@ -1,13 +0,0 @@
1
- # @orca-so/whirlpools-automation
2
-
3
- ## 0.3.0
4
-
5
- ### Minor Changes
6
-
7
- - Add synchronous PDA helper functions: `findGlobalConfigAddressSync`, `findAutomationAddressSync`, and `findAutomationAuthorityAddressSync`.
8
-
9
- ## 0.2.0
10
-
11
- ### Minor Changes
12
-
13
- - 31261fd: Add pda utils