@helium/helium-entity-manager-sdk 0.0.5 → 0.0.6

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.
@@ -0,0 +1,118 @@
1
+ /// <reference types="bn.js" />
2
+ import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
3
+ import { Asset, AssetProof } from "@helium/spl-utils";
4
+ import { BN, Program } from "@project-serum/anchor";
5
+ import { PublicKey } from "@solana/web3.js";
6
+ export declare function changeMetadata({ program, hotspotConfig, assetId, location, elevation, gain, getAssetFn, getAssetProofFn, }: {
7
+ program: Program<HeliumEntityManager>;
8
+ location: BN | null;
9
+ elevation: number | null;
10
+ gain: number | null;
11
+ assetId: PublicKey;
12
+ hotspotConfig: PublicKey;
13
+ getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
14
+ getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
15
+ }): Promise<import("@project-serum/anchor").MethodsBuilder<HeliumEntityManager, {
16
+ name: "changeMetadataV0";
17
+ accounts: [{
18
+ name: "storage";
19
+ isMut: true;
20
+ isSigner: false;
21
+ }, {
22
+ name: "hotspotOwner";
23
+ isMut: true;
24
+ isSigner: true;
25
+ }, {
26
+ name: "merkleTree";
27
+ isMut: false;
28
+ isSigner: false;
29
+ }, {
30
+ name: "treeAuthority";
31
+ isMut: false;
32
+ isSigner: false;
33
+ pda: {
34
+ seeds: [{
35
+ kind: "account";
36
+ type: "publicKey";
37
+ path: "merkle_tree";
38
+ }];
39
+ programId: {
40
+ kind: "account";
41
+ type: "publicKey";
42
+ path: "bubblegum_program";
43
+ };
44
+ };
45
+ }, {
46
+ name: "ownerDcAta";
47
+ isMut: true;
48
+ isSigner: false;
49
+ }, {
50
+ name: "hotspotConfig";
51
+ isMut: false;
52
+ isSigner: false;
53
+ relations: ["dc_mint", "merkle_tree"];
54
+ }, {
55
+ name: "dcMint";
56
+ isMut: true;
57
+ isSigner: false;
58
+ }, {
59
+ name: "dc";
60
+ isMut: false;
61
+ isSigner: false;
62
+ pda: {
63
+ seeds: [{
64
+ kind: "const";
65
+ type: "string";
66
+ value: "dc";
67
+ }, {
68
+ kind: "account";
69
+ type: "publicKey";
70
+ account: "Mint";
71
+ path: "dc_mint";
72
+ }];
73
+ programId: {
74
+ kind: "account";
75
+ type: "publicKey";
76
+ path: "data_credits_program";
77
+ };
78
+ };
79
+ relations: ["dc_mint"];
80
+ }, {
81
+ name: "bubblegumProgram";
82
+ isMut: false;
83
+ isSigner: false;
84
+ }, {
85
+ name: "compressionProgram";
86
+ isMut: false;
87
+ isSigner: false;
88
+ }, {
89
+ name: "dataCreditsProgram";
90
+ isMut: false;
91
+ isSigner: false;
92
+ }, {
93
+ name: "tokenProgram";
94
+ isMut: false;
95
+ isSigner: false;
96
+ }, {
97
+ name: "associatedTokenProgram";
98
+ isMut: false;
99
+ isSigner: false;
100
+ }, {
101
+ name: "rent";
102
+ isMut: false;
103
+ isSigner: false;
104
+ }, {
105
+ name: "systemProgram";
106
+ isMut: false;
107
+ isSigner: false;
108
+ }];
109
+ args: [{
110
+ name: "args";
111
+ type: {
112
+ defined: "ChangeMetadataArgsV0";
113
+ };
114
+ }];
115
+ } & {
116
+ name: "changeMetadataV0";
117
+ }>>;
118
+ //# sourceMappingURL=changeMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changeMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/changeMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAA2B,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAO,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,wBAAsB,cAAc,CAAC,EACnC,OAAO,EACP,aAAa,EACb,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,UAAqB,EACrB,eAA+B,GAChC,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,EAAE,SAAS,CAAC;IACzB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CA"}
@@ -4,5 +4,6 @@ import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manage
4
4
  export * from "./pdas";
5
5
  export * from "./resolvers";
6
6
  export * from "./constants";
7
+ export { changeMetadata } from "./functions/changeMetadata";
7
8
  export declare const init: (provider: AnchorProvider, programId?: PublicKey, idl?: Idl | null) => Promise<Program<HeliumEntityManager>>;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAE5B,eAAO,MAAM,IAAI,aACL,cAAc,cACb,SAAS,QACd,GAAG,GAAG,IAAI,KACf,QAAQ,QAAQ,mBAAmB,CAAC,CActC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,eAAO,MAAM,IAAI,aACL,cAAc,cACb,SAAS,QACd,GAAG,GAAG,IAAI,KACf,QAAQ,QAAQ,mBAAmB,CAAC,CActC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function initHotspotConfigInstructions(): void;
2
+ //# sourceMappingURL=instructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../../src/instructions.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,SAI5C"}
@@ -2,7 +2,6 @@ import { PublicKey } from "@solana/web3.js";
2
2
  export declare const hotspotConfigKey: (subDao: PublicKey, symbol: string, programId?: PublicKey) => [PublicKey, number];
3
3
  export declare const hotspotCollectionKey: (subDao: PublicKey, symbol: string, programId?: PublicKey) => [PublicKey, number];
4
4
  export declare const hotspotIssuerKey: (hotspotConfig: PublicKey, maker: PublicKey, programId?: PublicKey) => [PublicKey, number];
5
- export declare const hotspotKey: (collection: PublicKey, eccCompact: Buffer, programId?: PublicKey) => [PublicKey, number];
6
- export declare const hotspotStorageKey: (hotspot: PublicKey, programId?: PublicKey) => [PublicKey, number];
5
+ export declare const hotspotStorageKey: (hotspotKey: string, programId?: PublicKey) => [PublicKey, number];
7
6
  export declare const collectionMetadataKey: (collection: PublicKey, programId?: PublicKey) => [PublicKey, number];
8
7
  //# 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,eAAO,MAAM,gBAAgB,WACnB,SAAS,UACT,MAAM,cACH,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,WACvB,SAAS,UACT,MAAM,cACH,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,gBAAgB,kBACZ,SAAS,SACjB,SAAS,cACL,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,UAAU,eACT,SAAS,cACT,MAAM,cACP,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,iBAAiB,YACnB,SAAS,cACP,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,qBAAqB,eACpB,SAAS,cACV,SAAS,wBASnB,CAAC"}
1
+ {"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/pdas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,eAAO,MAAM,gBAAgB,WACnB,SAAS,UACT,MAAM,cACH,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,WACvB,SAAS,UACT,MAAM,cACH,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,gBAAgB,kBACZ,SAAS,SACjB,SAAS,cACL,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,iBAAiB,eAChB,MAAM,cACP,SAAS,wBAYrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,eACpB,SAAS,cACV,SAAS,wBASnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const hotspotIssuanceResolvers: import("@project-serum/anchor").CustomAccountResolver<import("@project-serum/anchor").Idl>;
1
+ export declare const heliumEntityManagerResolvers: import("@project-serum/anchor").CustomAccountResolver<import("@project-serum/anchor").Idl>;
2
2
  //# sourceMappingURL=resolvers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/resolvers.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB,4FAuCpC,CAAC"}
1
+ {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/resolvers.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,4BAA4B,4FA2CxC,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.5",
8
+ "version": "0.0.6",
9
9
  "description": "Interface to the helium-entity-manager smart contract",
10
10
  "repository": {
11
11
  "type": "git",
@@ -31,9 +31,10 @@
31
31
  "prebuild": "npm run clean && npm run package"
32
32
  },
33
33
  "dependencies": {
34
- "@helium/helium-sub-daos-sdk": "^0.0.5",
35
- "@helium/idls": "^0.0.5",
36
- "@helium/spl-utils": "^0.0.5",
34
+ "@helium/address": "^4.6.2",
35
+ "@helium/helium-sub-daos-sdk": "^0.0.6",
36
+ "@helium/idls": "^0.0.6",
37
+ "@helium/spl-utils": "^0.0.6",
37
38
  "@metaplex-foundation/mpl-token-metadata": "^2.2.3",
38
39
  "@project-serum/anchor": "0.24.2",
39
40
  "@solana/spl-token": "0.3.5",
@@ -47,5 +48,5 @@
47
48
  "typescript": "^4.3.4",
48
49
  "yarn": "^1.22.18"
49
50
  },
50
- "gitHead": "3e271beef8444e8c48bb3722bcbccfba6276a081"
51
+ "gitHead": "2b194cc9ed36a339cb9281f50297fb47c9c0692a"
51
52
  }