@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.
@@ -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,EAAiB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAO,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,wBAAsB,8BAA8B,CAAC,EACnD,OAAO,EACP,OAAO,EACP,eAAe,EACf,aAAa,EAEb,KAAyC,EACzC,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,eAAe,CAAC,EAAE,CAChB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,KACf,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCA"}
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"}
@@ -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, mint: PublicKey, programId?: PublicKey): [PublicKey, number];
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":"AAAA,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,IAAI,EAAE,SAAS,EACf,SAAS,GAAE,SAAsB,GAChC,CAAC,SAAS,EAAE,MAAM,CAAC,CAKrB;AAED,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,SAAS,EAC1B,UAAU,EAAE,SAAS,EACrB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,SAAsB,GAChC,CAAC,SAAS,EAAE,MAAM,CAAC,CAYrB"}
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":"AAYA,eAAO,MAAM,wBAAwB,oFA+HpC,CAAC"}
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.34",
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.34",
36
- "@helium/spl-utils": "^0.0.34",
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": "e7c6290989a099ef8984c03f8d01511768ef7786"
49
+ "gitHead": "d48c1d9c63054362edfa161f2afd0ca9ae3e2afd"
50
50
  }