@helium/helium-entity-manager-sdk 0.0.19 → 0.0.20
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/onboardIotHotspot.js +1 -1
- package/lib/cjs/functions/onboardIotHotspot.js.map +1 -1
- package/lib/cjs/functions/onboardMobileHotspot.js +1 -1
- package/lib/cjs/functions/onboardMobileHotspot.js.map +1 -1
- package/lib/cjs/functions/updateIotMetadata.js +2 -2
- package/lib/cjs/functions/updateIotMetadata.js.map +1 -1
- package/lib/cjs/functions/updateMobileMetadata.js +1 -1
- package/lib/cjs/functions/updateMobileMetadata.js.map +1 -1
- package/lib/cjs/index.js +9 -27
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/init.js +24 -0
- package/lib/cjs/init.js.map +1 -0
- package/lib/cjs/pdas.js +24 -11
- package/lib/cjs/pdas.js.map +1 -1
- package/lib/cjs/resolvers.js +10 -4
- package/lib/cjs/resolvers.js.map +1 -1
- package/lib/esm/src/functions/onboardIotHotspot.js +1 -1
- package/lib/esm/src/functions/onboardIotHotspot.js.map +1 -1
- package/lib/esm/src/functions/onboardMobileHotspot.js +1 -1
- package/lib/esm/src/functions/onboardMobileHotspot.js.map +1 -1
- package/lib/esm/src/functions/updateIotMetadata.js +2 -2
- package/lib/esm/src/functions/updateIotMetadata.js.map +1 -1
- package/lib/esm/src/functions/updateMobileMetadata.js +1 -1
- package/lib/esm/src/functions/updateMobileMetadata.js.map +1 -1
- package/lib/esm/src/index.js +5 -14
- package/lib/esm/src/index.js.map +1 -1
- package/lib/esm/src/init.js +11 -0
- package/lib/esm/src/init.js.map +1 -0
- package/lib/esm/src/pdas.js +21 -8
- package/lib/esm/src/pdas.js.map +1 -1
- package/lib/esm/src/resolvers.js +10 -4
- package/lib/esm/src/resolvers.js.map +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/functions/updateIotMetadata.d.ts.map +1 -1
- package/lib/types/src/index.d.ts +5 -8
- package/lib/types/src/index.d.ts.map +1 -1
- package/lib/types/src/init.d.ts +5 -0
- package/lib/types/src/init.d.ts.map +1 -0
- package/lib/types/src/pdas.d.ts +2 -2
- package/lib/types/src/pdas.d.ts.map +1 -1
- package/lib/types/src/resolvers.d.ts.map +1 -1
- package/package.json +5 -5
- package/lib/cjs/instructions.js +0 -7
- package/lib/cjs/instructions.js.map +0 -1
- package/lib/esm/src/instructions.js +0 -3
- package/lib/esm/src/instructions.js.map +0 -1
- package/lib/types/src/instructions.d.ts +0 -2
- package/lib/types/src/instructions.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateIotMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/updateIotMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAwB,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAExF,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,GAAG,IAAI,EACR,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,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,sBAAsB,EAAE,SAAS,CAAC;CACnC,GAAG,IAAI,CAAC,wBAAwB,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"updateIotMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/updateIotMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAwB,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAExF,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,GAAG,IAAI,EACR,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,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,sBAAsB,EAAE,SAAS,CAAC;CACnC,GAAG,IAAI,CAAC,wBAAwB,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC/C"}
|
package/lib/types/src/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { AnchorProvider, Idl, Program } from "@project-serum/anchor";
|
|
2
|
-
import { PublicKey } from "@solana/web3.js";
|
|
3
|
-
import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
|
|
4
|
-
export * from "./pdas";
|
|
5
|
-
export * from "./resolvers";
|
|
6
1
|
export * from "./constants";
|
|
7
|
-
export { updateIotMetadata } from "./functions/updateIotMetadata";
|
|
8
|
-
export { updateMobileMetadata } from "./functions/updateMobileMetadata";
|
|
9
2
|
export { onboardIotHotspot } from "./functions/onboardIotHotspot";
|
|
10
3
|
export { onboardMobileHotspot } from "./functions/onboardMobileHotspot";
|
|
11
4
|
export { proofArgsAndAccounts } from "./functions/proofArgsAndAccounts";
|
|
12
|
-
export
|
|
5
|
+
export { updateIotMetadata } from "./functions/updateIotMetadata";
|
|
6
|
+
export { updateMobileMetadata } from "./functions/updateMobileMetadata";
|
|
7
|
+
export { init } from "./init";
|
|
8
|
+
export * from "./pdas";
|
|
9
|
+
export * from "./resolvers";
|
|
13
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
|
|
2
|
+
import { AnchorProvider, Idl, Program } from "@project-serum/anchor";
|
|
3
|
+
import { PublicKey } from "@solana/web3.js";
|
|
4
|
+
export declare const init: (provider: AnchorProvider, programId?: PublicKey, idl?: Idl | null) => Promise<Program<HeliumEntityManager>>;
|
|
5
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,IAAI,aACL,cAAc,cACb,SAAS,QACd,GAAG,GAAG,IAAI,KACf,QAAQ,QAAQ,mBAAmB,CAAC,CActC,CAAC"}
|
package/lib/types/src/pdas.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const hotspotCollectionKey: (maker: PublicKey, programId?: Public
|
|
|
4
4
|
export declare const makerKey: (name: String, programId?: PublicKey) => [PublicKey, number];
|
|
5
5
|
export declare const makerApprovalKey: (rewardableEntityConfig: PublicKey, maker: PublicKey, programId?: PublicKey) => [PublicKey, number];
|
|
6
6
|
export declare const keyToAssetKey: (dao: PublicKey, entityKey: Buffer | string, programId?: PublicKey) => Promise<[PublicKey, number]>;
|
|
7
|
-
export declare const iotInfoKey: (rewardableEntityConfig: PublicKey,
|
|
8
|
-
export declare const mobileInfoKey: (rewardableEntityConfig: PublicKey,
|
|
7
|
+
export declare const iotInfoKey: (rewardableEntityConfig: PublicKey, entityKey: Buffer | string, programId?: PublicKey) => Promise<[PublicKey, number]>;
|
|
8
|
+
export declare const mobileInfoKey: (rewardableEntityConfig: PublicKey, entityKey: Buffer | string, programId?: PublicKey) => Promise<[PublicKey, number]>;
|
|
9
9
|
export declare const collectionMetadataKey: (collection: PublicKey, programId?: PublicKey) => [PublicKey, number];
|
|
10
10
|
//# 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;AAiB5C,eAAO,MAAM,yBAAyB,WAC5B,SAAS,UACT,MAAM,cACH,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,UACxB,SAAS,cACL,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/pdas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAiB5C,eAAO,MAAM,yBAAyB,WAC5B,SAAS,UACT,MAAM,cACH,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,UACxB,SAAS,cACL,SAAS,wBAKnB,CAAC;AAEJ,eAAO,MAAM,QAAQ,SAAU,MAAM,cAAa,SAAS,wBAIxD,CAAC;AAEJ,eAAO,MAAM,gBAAgB,2BACH,SAAS,SAC1B,SAAS,cACL,SAAS,wBASnB,CAAC;AAEJ,eAAO,MAAM,aAAa,QACnB,SAAS,aACH,MAAM,GAAG,MAAM,cACf,SAAS,iCAWrB,CAAC;AAEF,eAAO,MAAM,UAAU,2BACG,SAAS,aACtB,MAAM,GAAG,MAAM,cACf,SAAS,iCAerB,CAAC;AAEF,eAAO,MAAM,aAAa,2BACA,SAAS,aACtB,MAAM,GAAG,MAAM,cACf,SAAS,iCAerB,CAAC;AAEF,eAAO,MAAM,qBAAqB,eACpB,SAAS,cACV,SAAS,wBASnB,CAAC"}
|
|
@@ -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":"AAkBA,eAAO,MAAM,4BAA4B,4FA4FxC,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.20",
|
|
9
9
|
"description": "Interface to the helium-entity-manager smart contract",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@helium/address": "^4.6.2",
|
|
35
|
-
"@helium/helium-sub-daos-sdk": "^0.0.
|
|
36
|
-
"@helium/idls": "^0.0.
|
|
37
|
-
"@helium/spl-utils": "^0.0.
|
|
35
|
+
"@helium/helium-sub-daos-sdk": "^0.0.20",
|
|
36
|
+
"@helium/idls": "^0.0.20",
|
|
37
|
+
"@helium/spl-utils": "^0.0.20",
|
|
38
38
|
"@metaplex-foundation/mpl-bubblegum": "^0.6.0",
|
|
39
39
|
"@metaplex-foundation/mpl-token-metadata": "^2.2.3",
|
|
40
40
|
"@project-serum/anchor": "0.26.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"typescript": "^4.3.4",
|
|
53
53
|
"yarn": "^1.22.18"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3ce4e21a8bd0a0b8945bacd4a65dd2f714d60533"
|
|
56
56
|
}
|
package/lib/cjs/instructions.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initHotspotConfigInstructions = void 0;
|
|
4
|
-
function initHotspotConfigInstructions() {
|
|
5
|
-
}
|
|
6
|
-
exports.initHotspotConfigInstructions = initHotspotConfigInstructions;
|
|
7
|
-
//# sourceMappingURL=instructions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/instructions.ts"],"names":[],"mappings":";;;AAAA,SAAgB,6BAA6B;AAI7C,CAAC;AAJD,sEAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../../src/instructions.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,6BAA6B;AAI7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../../src/instructions.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,SAI5C"}
|