@helium/lazy-distributor-sdk 0.0.34 → 0.0.35
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/lib/cjs/functions/distributeCompressionRewards.js +3 -3
- package/lib/cjs/functions/distributeCompressionRewards.js.map +1 -1
- package/lib/cjs/functions/initializeCompressionRecipient.js +14 -4
- package/lib/cjs/functions/initializeCompressionRecipient.js.map +1 -1
- package/lib/cjs/pdas.js +3 -14
- package/lib/cjs/pdas.js.map +1 -1
- package/lib/cjs/resolvers.js +3 -1
- package/lib/cjs/resolvers.js.map +1 -1
- package/lib/esm/src/functions/distributeCompressionRewards.js +3 -3
- package/lib/esm/src/functions/distributeCompressionRewards.js.map +1 -1
- package/lib/esm/src/functions/initializeCompressionRecipient.js +15 -5
- package/lib/esm/src/functions/initializeCompressionRecipient.js.map +1 -1
- package/lib/esm/src/pdas.js +2 -12
- package/lib/esm/src/pdas.js.map +1 -1
- package/lib/esm/src/resolvers.js +4 -2
- package/lib/esm/src/resolvers.js.map +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/functions/initializeCompressionRecipient.d.ts +3 -24
- package/lib/types/src/functions/initializeCompressionRecipient.d.ts.map +1 -1
- package/lib/types/src/pdas.d.ts +1 -2
- package/lib/types/src/pdas.d.ts.map +1 -1
- package/lib/types/src/resolvers.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { LazyDistributor } from "@helium/idls/lib/types/lazy_distributor";
|
|
2
|
-
import { AssetProof } from "@helium/spl-utils";
|
|
2
|
+
import { Asset, AssetProof } from "@helium/spl-utils";
|
|
3
3
|
import { Program } from "@coral-xyz/anchor";
|
|
4
4
|
import { PublicKey } from "@solana/web3.js";
|
|
5
|
-
export declare function initializeCompressionRecipient({ program, assetId, lazyDistributor, assetEndpoint, owner, getAssetProofFn, }: {
|
|
5
|
+
export declare function initializeCompressionRecipient({ program, assetId, lazyDistributor, assetEndpoint, owner, getAssetFn, getAssetProofFn, }: {
|
|
6
6
|
program: Program<LazyDistributor>;
|
|
7
7
|
assetId: PublicKey;
|
|
8
8
|
lazyDistributor: PublicKey;
|
|
9
9
|
owner?: PublicKey;
|
|
10
10
|
assetEndpoint?: string;
|
|
11
|
+
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
11
12
|
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
12
13
|
}): Promise<import("@coral-xyz/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<LazyDistributor, {
|
|
13
14
|
name: "initializeCompressionRecipientV0";
|
|
@@ -35,28 +36,6 @@ export declare function initializeCompressionRecipient({ program, assetId, lazyD
|
|
|
35
36
|
name: "recipient";
|
|
36
37
|
isMut: true;
|
|
37
38
|
isSigner: false;
|
|
38
|
-
pda: {
|
|
39
|
-
seeds: [{
|
|
40
|
-
kind: "const";
|
|
41
|
-
type: "string";
|
|
42
|
-
value: "recipient";
|
|
43
|
-
}, {
|
|
44
|
-
kind: "account";
|
|
45
|
-
type: "publicKey";
|
|
46
|
-
account: "LazyDistributorV0";
|
|
47
|
-
path: "lazy_distributor";
|
|
48
|
-
}, {
|
|
49
|
-
kind: "account";
|
|
50
|
-
type: "publicKey";
|
|
51
|
-
path: "merkle_tree";
|
|
52
|
-
}, {
|
|
53
|
-
kind: "arg";
|
|
54
|
-
type: {
|
|
55
|
-
defined: "InitializeCompressionRecipientArgsV0";
|
|
56
|
-
};
|
|
57
|
-
path: "args.index";
|
|
58
|
-
}];
|
|
59
|
-
};
|
|
60
39
|
}, {
|
|
61
40
|
name: "merkleTree";
|
|
62
41
|
isMut: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeCompressionRecipient.d.ts","sourceRoot":"","sources":["../../../../src/functions/initializeCompressionRecipient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"initializeCompressionRecipient.d.ts","sourceRoot":"","sources":["../../../../src/functions/initializeCompressionRecipient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAW,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,wBAAsB,8BAA8B,CAAC,EACnD,OAAO,EACP,OAAO,EACP,eAAe,EACf,aAAa,EAEb,KAAyC,EACzC,UAAqB,EACrB,eAA+B,GAChC,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,eAAe,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAC7E,eAAe,CAAC,EAAE,CAChB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,KACf,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgDA"}
|
package/lib/types/src/pdas.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
|
2
2
|
export declare function lazyDistributorKey(mint: PublicKey, programId?: PublicKey): [PublicKey, number];
|
|
3
|
-
export declare function recipientKey(lazyDistributor: PublicKey,
|
|
4
|
-
export declare function compressedRecipientKey(lazyDistributor: PublicKey, merkleTree: PublicKey, index: number, programId?: PublicKey): [PublicKey, number];
|
|
3
|
+
export declare function recipientKey(lazyDistributor: PublicKey, asset: PublicKey, programId?: PublicKey): [PublicKey, number];
|
|
5
4
|
//# sourceMappingURL=pdas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/pdas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/pdas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,SAAS,EACf,SAAS,GAAE,SAAsB,GAChC,CAAC,SAAS,EAAE,MAAM,CAAC,CAKrB;AAED,wBAAgB,YAAY,CAC1B,eAAe,EAAE,SAAS,EAC1B,KAAK,EAAE,SAAS,EAChB,SAAS,GAAE,SAAsB,GAChC,CAAC,SAAS,EAAE,MAAM,CAAC,CAKrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/resolvers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/resolvers.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,wBAAwB,oFA8HpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.35",
|
|
9
9
|
"description": "Interface to the lazy-distributor smart contract",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@coral-xyz/anchor": "0.26.0",
|
|
35
|
-
"@helium/circuit-breaker-sdk": "^0.0.
|
|
36
|
-
"@helium/spl-utils": "^0.0.
|
|
35
|
+
"@helium/circuit-breaker-sdk": "^0.0.35",
|
|
36
|
+
"@helium/spl-utils": "^0.0.35",
|
|
37
37
|
"@metaplex-foundation/mpl-token-metadata": "^2.2.3",
|
|
38
38
|
"@solana/spl-token": "^0.3.6",
|
|
39
39
|
"bn.js": "^5.2.0",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"typescript": "^4.3.4",
|
|
47
47
|
"yarn": "^1.22.18"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d48c1d9c63054362edfa161f2afd0ca9ae3e2afd"
|
|
50
50
|
}
|