@haven-fi/solauto-sdk 1.0.210 → 1.0.211
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/dist/clients/referralStateManager.d.ts +0 -1
- package/dist/clients/referralStateManager.d.ts.map +1 -1
- package/dist/clients/referralStateManager.js +1 -1
- package/dist/clients/txHandler.d.ts +1 -0
- package/dist/clients/txHandler.d.ts.map +1 -1
- package/dist/transactions/transactionUtils.js +1 -1
- package/package.json +1 -1
- package/src/clients/referralStateManager.ts +1 -2
- package/src/clients/txHandler.ts +2 -0
- package/src/transactions/transactionUtils.ts +1 -1
|
@@ -16,7 +16,6 @@ export declare class ReferralStateManager extends TxHandler {
|
|
|
16
16
|
referralAuthority: PublicKey;
|
|
17
17
|
referralState: PublicKey;
|
|
18
18
|
referralStateData: ReferralState | null;
|
|
19
|
-
referredByAuthority?: PublicKey;
|
|
20
19
|
referredByState?: PublicKey;
|
|
21
20
|
constructor(heliusApiUrl: string, localTest?: boolean | undefined);
|
|
22
21
|
initialize(args: ReferralStateManagerArgs): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referralStateManager.d.ts","sourceRoot":"","sources":["../../src/clients/referralStateManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAEL,MAAM,EAEN,kBAAkB,EAClB,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,aAAa,EAEd,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAGL,aAAa,EAGd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,mBAAmB,CAAC,EAAE,SAAS,C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AkB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAC3D"}
|
|
@@ -51,7 +51,7 @@ class ReferralStateManager extends txHandler_1.TxHandler {
|
|
|
51
51
|
: referredByAuthority
|
|
52
52
|
? (0, utils_1.getReferralState)(referredByAuthority)
|
|
53
53
|
: undefined;
|
|
54
|
-
this.
|
|
54
|
+
this.referredBy = referredByAuthority;
|
|
55
55
|
}
|
|
56
56
|
updateReferralStatesIx(destFeesMint, referredBy, lookupTable) {
|
|
57
57
|
return (0, generated_1.updateReferralStates)(this.umi, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txHandler.d.ts","sourceRoot":"","sources":["../../src/clients/txHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGxD,8BAAsB,SAAS;IACtB,MAAM,EAAG,MAAM,CAAC;IAChB,GAAG,EAAG,GAAG,CAAC;IACV,UAAU,EAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"txHandler.d.ts","sourceRoot":"","sources":["../../src/clients/txHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGxD,8BAAsB,SAAS;IACtB,MAAM,EAAG,MAAM,CAAC;IAChB,GAAG,EAAG,GAAG,CAAC;IACV,UAAU,EAAG,UAAU,CAAC;IAExB,UAAU,CAAC,EAAE,SAAS,CAAC;gBAG5B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,OAAO;IAYrB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAIzB,QAAQ,CAAC,mBAAmB,IAAI,MAAM,EAAE;IAExC,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAE7D,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI;CACrD"}
|
|
@@ -58,7 +58,7 @@ async function transactionChoresBefore(client, accountsGettingCreated, solautoAc
|
|
|
58
58
|
(client.authorityLutAddress !== undefined &&
|
|
59
59
|
client.referralStateManager.referralStateData.lookupTable ==
|
|
60
60
|
(0, umi_1.publicKey)(web3_js_1.PublicKey.default))) {
|
|
61
|
-
chores = chores.add(client.referralStateManager.updateReferralStatesIx(undefined, client.referralStateManager.
|
|
61
|
+
chores = chores.add(client.referralStateManager.updateReferralStatesIx(undefined, client.referralStateManager.referredBy, client.authorityLutAddress));
|
|
62
62
|
}
|
|
63
63
|
if (client.selfManaged) {
|
|
64
64
|
if (client.solautoPositionData === null) {
|
package/package.json
CHANGED
|
@@ -37,7 +37,6 @@ export class ReferralStateManager extends TxHandler {
|
|
|
37
37
|
public referralState!: PublicKey;
|
|
38
38
|
public referralStateData!: ReferralState | null;
|
|
39
39
|
|
|
40
|
-
public referredByAuthority?: PublicKey;
|
|
41
40
|
public referredByState?: PublicKey;
|
|
42
41
|
|
|
43
42
|
constructor(
|
|
@@ -98,7 +97,7 @@ export class ReferralStateManager extends TxHandler {
|
|
|
98
97
|
: referredByAuthority
|
|
99
98
|
? getReferralState(referredByAuthority!)
|
|
100
99
|
: undefined;
|
|
101
|
-
this.
|
|
100
|
+
this.referredBy = referredByAuthority;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
updateReferralStatesIx(
|
package/src/clients/txHandler.ts
CHANGED
|
@@ -150,7 +150,7 @@ async function transactionChoresBefore(
|
|
|
150
150
|
chores = chores.add(
|
|
151
151
|
client.referralStateManager.updateReferralStatesIx(
|
|
152
152
|
undefined,
|
|
153
|
-
client.referralStateManager.
|
|
153
|
+
client.referralStateManager.referredBy,
|
|
154
154
|
client.authorityLutAddress
|
|
155
155
|
)
|
|
156
156
|
);
|