@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.
- package/README.md +2 -1
- package/dist/generated/accounts/automation.d.ts +72 -35
- package/dist/generated/accounts/globalConfig.d.ts +52 -19
- package/dist/generated/errors/whirlpoolsAutomationProgram.d.ts +54 -8
- package/dist/generated/instructions/createAutomation.d.ts +197 -66
- package/dist/generated/instructions/fundAutomation.d.ts +86 -27
- package/dist/generated/instructions/harvestAndReinvest.d.ts +286 -85
- package/dist/generated/instructions/harvestSwapAndReinvestPost.d.ts +278 -82
- package/dist/generated/instructions/harvestSwapAndReinvestPre.d.ts +259 -78
- package/dist/generated/instructions/initializeGlobalConfig.d.ts +90 -30
- package/dist/generated/instructions/removeAutomations.d.ts +154 -45
- package/dist/generated/instructions/updateGlobalConfig.d.ts +79 -24
- package/dist/generated/programs/whirlpoolsAutomationProgram.d.ts +58 -33
- package/dist/generated/shared/index.d.ts +34 -10
- package/dist/generated/types/accountDiscriminator.d.ts +8 -5
- package/dist/generated/types/action.d.ts +3 -3
- package/dist/generated/types/condition.d.ts +63 -33
- package/dist/generated/types/event.d.ts +205 -137
- package/dist/generated/types/fundAutomationMethod.d.ts +6 -3
- package/dist/generated/types/fundAutomationVariant.d.ts +33 -13
- package/dist/generated/types/increaseLiquidityByTokenAmountsAccountsType.d.ts +15 -11
- package/dist/generated/types/increaseLiquidityByTokenAmountsRemainingAccountsInfo.d.ts +10 -4
- package/dist/generated/types/increaseLiquidityByTokenAmountsRemainingAccountsSlice.d.ts +12 -6
- package/dist/generated/types/increaseLiquidityMethod.d.ts +30 -15
- package/dist/generated/types/nonZeroU32.d.ts +6 -2
- package/dist/generated/types/position.d.ts +22 -22
- package/dist/generated/types/positionRewardInfo.d.ts +8 -5
- package/dist/generated/types/tokenAccount.d.ts +22 -22
- package/dist/generated/types/tokenAccountState.d.ts +7 -4
- package/dist/generated/types/tokenMint.d.ts +14 -14
- package/dist/generated/types/updateGlobalConfigVariant.d.ts +58 -20
- package/dist/generated/types/whirlpool.d.ts +40 -40
- package/dist/generated/types/whirlpoolRewardInfo.d.ts +14 -11
- package/dist/index.browser.js +2490 -2092
- package/dist/index.node.js +2497 -2102
- package/dist/pda.d.ts +16 -4
- package/dist/staging.d.ts +1 -1
- package/package.json +3 -3
- 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(
|
|
5
|
-
|
|
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(
|
|
8
|
-
|
|
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<
|
|
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
|
+
"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
|