@helium/helium-entity-manager-sdk 0.0.12 → 0.0.14
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 +59 -0
- package/lib/cjs/functions/onboardIotHotspot.js.map +1 -0
- package/lib/cjs/functions/onboardMobileHotspot.js +59 -0
- package/lib/cjs/functions/onboardMobileHotspot.js.map +1 -0
- package/lib/cjs/functions/updateIotMetadata.js +57 -0
- package/lib/cjs/functions/updateIotMetadata.js.map +1 -0
- package/lib/cjs/functions/updateMetadata.js +5 -5
- package/lib/cjs/functions/updateMetadata.js.map +1 -1
- package/lib/cjs/functions/updateMobileMetadata.js +54 -0
- package/lib/cjs/functions/updateMobileMetadata.js.map +1 -0
- package/lib/cjs/index.js +9 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/pdas.js +21 -12
- package/lib/cjs/pdas.js.map +1 -1
- package/lib/cjs/resolvers.js +21 -14
- package/lib/cjs/resolvers.js.map +1 -1
- package/lib/cjs/utils.js +25 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/esm/src/functions/onboardIotHotspot.js +44 -0
- package/lib/esm/src/functions/onboardIotHotspot.js.map +1 -0
- package/lib/esm/src/functions/onboardMobileHotspot.js +44 -0
- package/lib/esm/src/functions/onboardMobileHotspot.js.map +1 -0
- package/lib/esm/src/functions/updateIotMetadata.js +42 -0
- package/lib/esm/src/functions/updateIotMetadata.js.map +1 -0
- package/lib/esm/src/functions/updateMetadata.js +5 -5
- package/lib/esm/src/functions/updateMetadata.js.map +1 -1
- package/lib/esm/src/functions/updateMobileMetadata.js +39 -0
- package/lib/esm/src/functions/updateMobileMetadata.js.map +1 -0
- package/lib/esm/src/index.js +4 -1
- package/lib/esm/src/index.js.map +1 -1
- package/lib/esm/src/pdas.js +17 -9
- package/lib/esm/src/pdas.js.map +1 -1
- package/lib/esm/src/resolvers.js +21 -15
- package/lib/esm/src/resolvers.js.map +1 -1
- package/lib/esm/src/utils.js +21 -0
- package/lib/esm/src/utils.js.map +1 -0
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/functions/onboardIotHotspot.d.ts +141 -0
- package/lib/types/src/functions/onboardIotHotspot.d.ts.map +1 -0
- package/lib/types/src/functions/onboardMobileHotspot.d.ts +141 -0
- package/lib/types/src/functions/onboardMobileHotspot.d.ts.map +1 -0
- package/lib/types/src/functions/updateIotMetadata.d.ts +133 -0
- package/lib/types/src/functions/updateIotMetadata.d.ts.map +1 -0
- package/lib/types/src/functions/updateMetadata.d.ts +14 -6
- package/lib/types/src/functions/updateMetadata.d.ts.map +1 -1
- package/lib/types/src/functions/updateMobileMetadata.d.ts +131 -0
- package/lib/types/src/functions/updateMobileMetadata.d.ts.map +1 -0
- package/lib/types/src/index.d.ts +4 -1
- package/lib/types/src/index.d.ts.map +1 -1
- package/lib/types/src/pdas.d.ts +5 -4
- package/lib/types/src/pdas.d.ts.map +1 -1
- package/lib/types/src/resolvers.d.ts.map +1 -1
- package/lib/types/src/utils.d.ts +7 -0
- package/lib/types/src/utils.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
|
|
2
|
+
import { Asset, AssetProof } from "@helium/spl-utils";
|
|
3
|
+
import { Program } from "@project-serum/anchor";
|
|
4
|
+
import { PublicKey } from "@solana/web3.js";
|
|
5
|
+
export declare function onboardIotHotspot({ program, rewardableEntityConfig, assetId, maker, assetEndpoint, getAssetFn, getAssetProofFn, }: {
|
|
6
|
+
program: Program<HeliumEntityManager>;
|
|
7
|
+
assetId: PublicKey;
|
|
8
|
+
rewardableEntityConfig: PublicKey;
|
|
9
|
+
assetEndpoint?: string;
|
|
10
|
+
maker: PublicKey;
|
|
11
|
+
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
12
|
+
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
13
|
+
}): Promise<import("@project-serum/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<HeliumEntityManager, {
|
|
14
|
+
name: "onboardIotHotspotV0";
|
|
15
|
+
accounts: [{
|
|
16
|
+
name: "payer";
|
|
17
|
+
isMut: true;
|
|
18
|
+
isSigner: true;
|
|
19
|
+
}, {
|
|
20
|
+
name: "dcFeePayer";
|
|
21
|
+
isMut: false;
|
|
22
|
+
isSigner: true;
|
|
23
|
+
}, {
|
|
24
|
+
name: "issuingAuthority";
|
|
25
|
+
isMut: false;
|
|
26
|
+
isSigner: true;
|
|
27
|
+
}, {
|
|
28
|
+
name: "iotInfo";
|
|
29
|
+
isMut: true;
|
|
30
|
+
isSigner: false;
|
|
31
|
+
}, {
|
|
32
|
+
name: "hotspotOwner";
|
|
33
|
+
isMut: true;
|
|
34
|
+
isSigner: true;
|
|
35
|
+
}, {
|
|
36
|
+
name: "merkleTree";
|
|
37
|
+
isMut: false;
|
|
38
|
+
isSigner: false;
|
|
39
|
+
}, {
|
|
40
|
+
name: "dcBurner";
|
|
41
|
+
isMut: true;
|
|
42
|
+
isSigner: false;
|
|
43
|
+
}, {
|
|
44
|
+
name: "rewardableEntityConfig";
|
|
45
|
+
isMut: false;
|
|
46
|
+
isSigner: false;
|
|
47
|
+
relations: ["sub_dao"];
|
|
48
|
+
}, {
|
|
49
|
+
name: "makerApproval";
|
|
50
|
+
isMut: false;
|
|
51
|
+
isSigner: false;
|
|
52
|
+
pda: {
|
|
53
|
+
seeds: [{
|
|
54
|
+
kind: "const";
|
|
55
|
+
type: "string";
|
|
56
|
+
value: "maker_approval";
|
|
57
|
+
}, {
|
|
58
|
+
kind: "account";
|
|
59
|
+
type: "publicKey";
|
|
60
|
+
account: "RewardableEntityConfigV0";
|
|
61
|
+
path: "rewardable_entity_config";
|
|
62
|
+
}, {
|
|
63
|
+
kind: "account";
|
|
64
|
+
type: "publicKey";
|
|
65
|
+
account: "MakerV0";
|
|
66
|
+
path: "maker";
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
relations: ["maker", "rewardable_entity_config"];
|
|
70
|
+
}, {
|
|
71
|
+
name: "maker";
|
|
72
|
+
isMut: false;
|
|
73
|
+
isSigner: false;
|
|
74
|
+
relations: ["merkle_tree", "issuing_authority"];
|
|
75
|
+
}, {
|
|
76
|
+
name: "dao";
|
|
77
|
+
isMut: false;
|
|
78
|
+
isSigner: false;
|
|
79
|
+
relations: ["dc_mint"];
|
|
80
|
+
}, {
|
|
81
|
+
name: "subDao";
|
|
82
|
+
isMut: false;
|
|
83
|
+
isSigner: false;
|
|
84
|
+
relations: ["dao"];
|
|
85
|
+
}, {
|
|
86
|
+
name: "dcMint";
|
|
87
|
+
isMut: true;
|
|
88
|
+
isSigner: false;
|
|
89
|
+
}, {
|
|
90
|
+
name: "dc";
|
|
91
|
+
isMut: false;
|
|
92
|
+
isSigner: false;
|
|
93
|
+
pda: {
|
|
94
|
+
seeds: [{
|
|
95
|
+
kind: "const";
|
|
96
|
+
type: "string";
|
|
97
|
+
value: "dc";
|
|
98
|
+
}, {
|
|
99
|
+
kind: "account";
|
|
100
|
+
type: "publicKey";
|
|
101
|
+
account: "Mint";
|
|
102
|
+
path: "dc_mint";
|
|
103
|
+
}];
|
|
104
|
+
programId: {
|
|
105
|
+
kind: "account";
|
|
106
|
+
type: "publicKey";
|
|
107
|
+
path: "data_credits_program";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
relations: ["dc_mint"];
|
|
111
|
+
}, {
|
|
112
|
+
name: "compressionProgram";
|
|
113
|
+
isMut: false;
|
|
114
|
+
isSigner: false;
|
|
115
|
+
}, {
|
|
116
|
+
name: "dataCreditsProgram";
|
|
117
|
+
isMut: false;
|
|
118
|
+
isSigner: false;
|
|
119
|
+
}, {
|
|
120
|
+
name: "tokenProgram";
|
|
121
|
+
isMut: false;
|
|
122
|
+
isSigner: false;
|
|
123
|
+
}, {
|
|
124
|
+
name: "associatedTokenProgram";
|
|
125
|
+
isMut: false;
|
|
126
|
+
isSigner: false;
|
|
127
|
+
}, {
|
|
128
|
+
name: "systemProgram";
|
|
129
|
+
isMut: false;
|
|
130
|
+
isSigner: false;
|
|
131
|
+
}];
|
|
132
|
+
args: [{
|
|
133
|
+
name: "args";
|
|
134
|
+
type: {
|
|
135
|
+
defined: "OnboardIotHotspotArgsV0";
|
|
136
|
+
};
|
|
137
|
+
}];
|
|
138
|
+
} & {
|
|
139
|
+
name: "onboardIotHotspotV0";
|
|
140
|
+
}>>;
|
|
141
|
+
//# sourceMappingURL=onboardIotHotspot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboardIotHotspot.d.ts","sourceRoot":"","sources":["../../../../src/functions/onboardIotHotspot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAA2B,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAW,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,KAAK,EACL,aAAa,EACb,UAAqB,EACrB,eAA+B,GAChC,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,OAAO,EAAE,SAAS,CAAC;IACnB,sBAAsB,EAAE,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
|
|
2
|
+
import { Asset, AssetProof } from "@helium/spl-utils";
|
|
3
|
+
import { Program } from "@project-serum/anchor";
|
|
4
|
+
import { PublicKey } from "@solana/web3.js";
|
|
5
|
+
export declare function onboardMobileHotspot({ program, rewardableEntityConfig, assetId, maker, assetEndpoint, getAssetFn, getAssetProofFn, }: {
|
|
6
|
+
program: Program<HeliumEntityManager>;
|
|
7
|
+
assetId: PublicKey;
|
|
8
|
+
rewardableEntityConfig: PublicKey;
|
|
9
|
+
assetEndpoint?: string;
|
|
10
|
+
maker: PublicKey;
|
|
11
|
+
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
12
|
+
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
13
|
+
}): Promise<import("@project-serum/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<HeliumEntityManager, {
|
|
14
|
+
name: "onboardMobileHotspotV0";
|
|
15
|
+
accounts: [{
|
|
16
|
+
name: "payer";
|
|
17
|
+
isMut: true;
|
|
18
|
+
isSigner: true;
|
|
19
|
+
}, {
|
|
20
|
+
name: "dcFeePayer";
|
|
21
|
+
isMut: false;
|
|
22
|
+
isSigner: true;
|
|
23
|
+
}, {
|
|
24
|
+
name: "issuingAuthority";
|
|
25
|
+
isMut: false;
|
|
26
|
+
isSigner: true;
|
|
27
|
+
}, {
|
|
28
|
+
name: "mobileInfo";
|
|
29
|
+
isMut: true;
|
|
30
|
+
isSigner: false;
|
|
31
|
+
}, {
|
|
32
|
+
name: "hotspotOwner";
|
|
33
|
+
isMut: true;
|
|
34
|
+
isSigner: true;
|
|
35
|
+
}, {
|
|
36
|
+
name: "merkleTree";
|
|
37
|
+
isMut: false;
|
|
38
|
+
isSigner: false;
|
|
39
|
+
}, {
|
|
40
|
+
name: "dcBurner";
|
|
41
|
+
isMut: true;
|
|
42
|
+
isSigner: false;
|
|
43
|
+
}, {
|
|
44
|
+
name: "rewardableEntityConfig";
|
|
45
|
+
isMut: false;
|
|
46
|
+
isSigner: false;
|
|
47
|
+
relations: ["sub_dao"];
|
|
48
|
+
}, {
|
|
49
|
+
name: "makerApproval";
|
|
50
|
+
isMut: false;
|
|
51
|
+
isSigner: false;
|
|
52
|
+
pda: {
|
|
53
|
+
seeds: [{
|
|
54
|
+
kind: "const";
|
|
55
|
+
type: "string";
|
|
56
|
+
value: "maker_approval";
|
|
57
|
+
}, {
|
|
58
|
+
kind: "account";
|
|
59
|
+
type: "publicKey";
|
|
60
|
+
account: "RewardableEntityConfigV0";
|
|
61
|
+
path: "rewardable_entity_config";
|
|
62
|
+
}, {
|
|
63
|
+
kind: "account";
|
|
64
|
+
type: "publicKey";
|
|
65
|
+
account: "MakerV0";
|
|
66
|
+
path: "maker";
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
relations: ["maker", "rewardable_entity_config"];
|
|
70
|
+
}, {
|
|
71
|
+
name: "maker";
|
|
72
|
+
isMut: false;
|
|
73
|
+
isSigner: false;
|
|
74
|
+
relations: ["merkle_tree", "issuing_authority"];
|
|
75
|
+
}, {
|
|
76
|
+
name: "dao";
|
|
77
|
+
isMut: false;
|
|
78
|
+
isSigner: false;
|
|
79
|
+
relations: ["dc_mint"];
|
|
80
|
+
}, {
|
|
81
|
+
name: "subDao";
|
|
82
|
+
isMut: false;
|
|
83
|
+
isSigner: false;
|
|
84
|
+
relations: ["dao"];
|
|
85
|
+
}, {
|
|
86
|
+
name: "dcMint";
|
|
87
|
+
isMut: true;
|
|
88
|
+
isSigner: false;
|
|
89
|
+
}, {
|
|
90
|
+
name: "dc";
|
|
91
|
+
isMut: false;
|
|
92
|
+
isSigner: false;
|
|
93
|
+
pda: {
|
|
94
|
+
seeds: [{
|
|
95
|
+
kind: "const";
|
|
96
|
+
type: "string";
|
|
97
|
+
value: "dc";
|
|
98
|
+
}, {
|
|
99
|
+
kind: "account";
|
|
100
|
+
type: "publicKey";
|
|
101
|
+
account: "Mint";
|
|
102
|
+
path: "dc_mint";
|
|
103
|
+
}];
|
|
104
|
+
programId: {
|
|
105
|
+
kind: "account";
|
|
106
|
+
type: "publicKey";
|
|
107
|
+
path: "data_credits_program";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
relations: ["dc_mint"];
|
|
111
|
+
}, {
|
|
112
|
+
name: "compressionProgram";
|
|
113
|
+
isMut: false;
|
|
114
|
+
isSigner: false;
|
|
115
|
+
}, {
|
|
116
|
+
name: "dataCreditsProgram";
|
|
117
|
+
isMut: false;
|
|
118
|
+
isSigner: false;
|
|
119
|
+
}, {
|
|
120
|
+
name: "tokenProgram";
|
|
121
|
+
isMut: false;
|
|
122
|
+
isSigner: false;
|
|
123
|
+
}, {
|
|
124
|
+
name: "associatedTokenProgram";
|
|
125
|
+
isMut: false;
|
|
126
|
+
isSigner: false;
|
|
127
|
+
}, {
|
|
128
|
+
name: "systemProgram";
|
|
129
|
+
isMut: false;
|
|
130
|
+
isSigner: false;
|
|
131
|
+
}];
|
|
132
|
+
args: [{
|
|
133
|
+
name: "args";
|
|
134
|
+
type: {
|
|
135
|
+
defined: "OnboardMobileHotspotArgsV0";
|
|
136
|
+
};
|
|
137
|
+
}];
|
|
138
|
+
} & {
|
|
139
|
+
name: "onboardMobileHotspotV0";
|
|
140
|
+
}>>;
|
|
141
|
+
//# sourceMappingURL=onboardMobileHotspot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboardMobileHotspot.d.ts","sourceRoot":"","sources":["../../../../src/functions/onboardMobileHotspot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,KAAK,EACL,aAAa,EACb,UAAqB,EACrB,eAA+B,GAChC,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,OAAO,EAAE,SAAS,CAAC;IACnB,sBAAsB,EAAE,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CA"}
|
|
@@ -0,0 +1,133 @@
|
|
|
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 updateIotMetadata({ program, rewardableEntityConfig, assetId, location, elevation, gain, assetEndpoint, getAssetFn, getAssetProofFn, }: {
|
|
7
|
+
program: Program<HeliumEntityManager>;
|
|
8
|
+
location: BN | null;
|
|
9
|
+
elevation: number | null;
|
|
10
|
+
gain: number | null;
|
|
11
|
+
assetId: PublicKey;
|
|
12
|
+
rewardableEntityConfig: PublicKey;
|
|
13
|
+
assetEndpoint?: string;
|
|
14
|
+
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
15
|
+
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
16
|
+
}): Promise<import("@project-serum/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<HeliumEntityManager, {
|
|
17
|
+
name: "updateIotInfoV0";
|
|
18
|
+
accounts: [{
|
|
19
|
+
name: "payer";
|
|
20
|
+
isMut: false;
|
|
21
|
+
isSigner: true;
|
|
22
|
+
}, {
|
|
23
|
+
name: "dcFeePayer";
|
|
24
|
+
isMut: false;
|
|
25
|
+
isSigner: true;
|
|
26
|
+
}, {
|
|
27
|
+
name: "iotInfo";
|
|
28
|
+
isMut: true;
|
|
29
|
+
isSigner: false;
|
|
30
|
+
}, {
|
|
31
|
+
name: "hotspotOwner";
|
|
32
|
+
isMut: true;
|
|
33
|
+
isSigner: true;
|
|
34
|
+
}, {
|
|
35
|
+
name: "merkleTree";
|
|
36
|
+
isMut: false;
|
|
37
|
+
isSigner: false;
|
|
38
|
+
}, {
|
|
39
|
+
name: "treeAuthority";
|
|
40
|
+
isMut: false;
|
|
41
|
+
isSigner: false;
|
|
42
|
+
pda: {
|
|
43
|
+
seeds: [{
|
|
44
|
+
kind: "account";
|
|
45
|
+
type: "publicKey";
|
|
46
|
+
path: "merkle_tree";
|
|
47
|
+
}];
|
|
48
|
+
programId: {
|
|
49
|
+
kind: "account";
|
|
50
|
+
type: "publicKey";
|
|
51
|
+
path: "bubblegum_program";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
name: "dcBurner";
|
|
56
|
+
isMut: true;
|
|
57
|
+
isSigner: false;
|
|
58
|
+
}, {
|
|
59
|
+
name: "rewardableEntityConfig";
|
|
60
|
+
isMut: false;
|
|
61
|
+
isSigner: false;
|
|
62
|
+
relations: ["sub_dao"];
|
|
63
|
+
}, {
|
|
64
|
+
name: "dao";
|
|
65
|
+
isMut: false;
|
|
66
|
+
isSigner: false;
|
|
67
|
+
relations: ["dc_mint"];
|
|
68
|
+
}, {
|
|
69
|
+
name: "subDao";
|
|
70
|
+
isMut: false;
|
|
71
|
+
isSigner: false;
|
|
72
|
+
relations: ["dao"];
|
|
73
|
+
}, {
|
|
74
|
+
name: "dcMint";
|
|
75
|
+
isMut: true;
|
|
76
|
+
isSigner: false;
|
|
77
|
+
}, {
|
|
78
|
+
name: "dc";
|
|
79
|
+
isMut: false;
|
|
80
|
+
isSigner: false;
|
|
81
|
+
pda: {
|
|
82
|
+
seeds: [{
|
|
83
|
+
kind: "const";
|
|
84
|
+
type: "string";
|
|
85
|
+
value: "dc";
|
|
86
|
+
}, {
|
|
87
|
+
kind: "account";
|
|
88
|
+
type: "publicKey";
|
|
89
|
+
account: "Mint";
|
|
90
|
+
path: "dc_mint";
|
|
91
|
+
}];
|
|
92
|
+
programId: {
|
|
93
|
+
kind: "account";
|
|
94
|
+
type: "publicKey";
|
|
95
|
+
path: "data_credits_program";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
relations: ["dc_mint"];
|
|
99
|
+
}, {
|
|
100
|
+
name: "bubblegumProgram";
|
|
101
|
+
isMut: false;
|
|
102
|
+
isSigner: false;
|
|
103
|
+
}, {
|
|
104
|
+
name: "compressionProgram";
|
|
105
|
+
isMut: false;
|
|
106
|
+
isSigner: false;
|
|
107
|
+
}, {
|
|
108
|
+
name: "dataCreditsProgram";
|
|
109
|
+
isMut: false;
|
|
110
|
+
isSigner: false;
|
|
111
|
+
}, {
|
|
112
|
+
name: "tokenProgram";
|
|
113
|
+
isMut: false;
|
|
114
|
+
isSigner: false;
|
|
115
|
+
}, {
|
|
116
|
+
name: "associatedTokenProgram";
|
|
117
|
+
isMut: false;
|
|
118
|
+
isSigner: false;
|
|
119
|
+
}, {
|
|
120
|
+
name: "systemProgram";
|
|
121
|
+
isMut: false;
|
|
122
|
+
isSigner: false;
|
|
123
|
+
}];
|
|
124
|
+
args: [{
|
|
125
|
+
name: "args";
|
|
126
|
+
type: {
|
|
127
|
+
defined: "UpdateIotInfoArgsV0";
|
|
128
|
+
};
|
|
129
|
+
}];
|
|
130
|
+
} & {
|
|
131
|
+
name: "updateIotInfoV0";
|
|
132
|
+
}>>;
|
|
133
|
+
//# sourceMappingURL=updateIotMetadata.d.ts.map
|
|
@@ -0,0 +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,KAAK,EAAE,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,aAAa,EACb,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,sBAAsB,EAAE,SAAS,CAAC;IAClC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CA"}
|
|
@@ -3,20 +3,28 @@ import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manage
|
|
|
3
3
|
import { Asset, AssetProof } from "@helium/spl-utils";
|
|
4
4
|
import { BN, Program } from "@project-serum/anchor";
|
|
5
5
|
import { PublicKey } from "@solana/web3.js";
|
|
6
|
-
export declare function updateMetadata({ program,
|
|
6
|
+
export declare function updateMetadata({ program, rewardableEntityConfig, assetId, location, elevation, gain, assetEndpoint, getAssetFn, getAssetProofFn, }: {
|
|
7
7
|
program: Program<HeliumEntityManager>;
|
|
8
8
|
location: BN | null;
|
|
9
9
|
elevation: number | null;
|
|
10
10
|
gain: number | null;
|
|
11
11
|
assetId: PublicKey;
|
|
12
|
-
|
|
12
|
+
rewardableEntityConfig: PublicKey;
|
|
13
13
|
assetEndpoint?: string;
|
|
14
14
|
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
15
15
|
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
16
16
|
}): Promise<import("@project-serum/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<HeliumEntityManager, {
|
|
17
17
|
name: "updateIotInfoV0";
|
|
18
18
|
accounts: [{
|
|
19
|
-
name: "
|
|
19
|
+
name: "payer";
|
|
20
|
+
isMut: false;
|
|
21
|
+
isSigner: true;
|
|
22
|
+
}, {
|
|
23
|
+
name: "dcFeePayer";
|
|
24
|
+
isMut: false;
|
|
25
|
+
isSigner: true;
|
|
26
|
+
}, {
|
|
27
|
+
name: "iotInfo";
|
|
20
28
|
isMut: true;
|
|
21
29
|
isSigner: false;
|
|
22
30
|
}, {
|
|
@@ -44,14 +52,14 @@ export declare function updateMetadata({ program, hotspotConfig, assetId, locati
|
|
|
44
52
|
};
|
|
45
53
|
};
|
|
46
54
|
}, {
|
|
47
|
-
name: "
|
|
55
|
+
name: "dcBurner";
|
|
48
56
|
isMut: true;
|
|
49
57
|
isSigner: false;
|
|
50
58
|
}, {
|
|
51
|
-
name: "
|
|
59
|
+
name: "rewardableEntityConfig";
|
|
52
60
|
isMut: false;
|
|
53
61
|
isSigner: false;
|
|
54
|
-
relations: ["
|
|
62
|
+
relations: ["sub_dao"];
|
|
55
63
|
}, {
|
|
56
64
|
name: "dao";
|
|
57
65
|
isMut: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/updateMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"updateMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/updateMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,wBAAsB,cAAc,CAAC,EACnC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,aAAa,EACb,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,sBAAsB,EAAE,SAAS,CAAC;IAClC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 updateMobileMetadata({ program, rewardableEntityConfig, assetId, location, assetEndpoint, getAssetFn, getAssetProofFn, }: {
|
|
7
|
+
program: Program<HeliumEntityManager>;
|
|
8
|
+
location: BN | null;
|
|
9
|
+
assetId: PublicKey;
|
|
10
|
+
rewardableEntityConfig: PublicKey;
|
|
11
|
+
assetEndpoint?: string;
|
|
12
|
+
getAssetFn?: (url: string, assetId: PublicKey) => Promise<Asset | undefined>;
|
|
13
|
+
getAssetProofFn?: (url: string, assetId: PublicKey) => Promise<AssetProof | undefined>;
|
|
14
|
+
}): Promise<import("@project-serum/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<HeliumEntityManager, {
|
|
15
|
+
name: "updateMobileInfoV0";
|
|
16
|
+
accounts: [{
|
|
17
|
+
name: "payer";
|
|
18
|
+
isMut: false;
|
|
19
|
+
isSigner: true;
|
|
20
|
+
}, {
|
|
21
|
+
name: "dcFeePayer";
|
|
22
|
+
isMut: false;
|
|
23
|
+
isSigner: true;
|
|
24
|
+
}, {
|
|
25
|
+
name: "mobileInfo";
|
|
26
|
+
isMut: true;
|
|
27
|
+
isSigner: false;
|
|
28
|
+
}, {
|
|
29
|
+
name: "hotspotOwner";
|
|
30
|
+
isMut: true;
|
|
31
|
+
isSigner: true;
|
|
32
|
+
}, {
|
|
33
|
+
name: "merkleTree";
|
|
34
|
+
isMut: false;
|
|
35
|
+
isSigner: false;
|
|
36
|
+
}, {
|
|
37
|
+
name: "treeAuthority";
|
|
38
|
+
isMut: false;
|
|
39
|
+
isSigner: false;
|
|
40
|
+
pda: {
|
|
41
|
+
seeds: [{
|
|
42
|
+
kind: "account";
|
|
43
|
+
type: "publicKey";
|
|
44
|
+
path: "merkle_tree";
|
|
45
|
+
}];
|
|
46
|
+
programId: {
|
|
47
|
+
kind: "account";
|
|
48
|
+
type: "publicKey";
|
|
49
|
+
path: "bubblegum_program";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
name: "dcBurner";
|
|
54
|
+
isMut: true;
|
|
55
|
+
isSigner: false;
|
|
56
|
+
}, {
|
|
57
|
+
name: "rewardableEntityConfig";
|
|
58
|
+
isMut: false;
|
|
59
|
+
isSigner: false;
|
|
60
|
+
relations: ["sub_dao"];
|
|
61
|
+
}, {
|
|
62
|
+
name: "dao";
|
|
63
|
+
isMut: false;
|
|
64
|
+
isSigner: false;
|
|
65
|
+
relations: ["dc_mint"];
|
|
66
|
+
}, {
|
|
67
|
+
name: "subDao";
|
|
68
|
+
isMut: false;
|
|
69
|
+
isSigner: false;
|
|
70
|
+
relations: ["dao"];
|
|
71
|
+
}, {
|
|
72
|
+
name: "dcMint";
|
|
73
|
+
isMut: true;
|
|
74
|
+
isSigner: false;
|
|
75
|
+
}, {
|
|
76
|
+
name: "dc";
|
|
77
|
+
isMut: false;
|
|
78
|
+
isSigner: false;
|
|
79
|
+
pda: {
|
|
80
|
+
seeds: [{
|
|
81
|
+
kind: "const";
|
|
82
|
+
type: "string";
|
|
83
|
+
value: "dc";
|
|
84
|
+
}, {
|
|
85
|
+
kind: "account";
|
|
86
|
+
type: "publicKey";
|
|
87
|
+
account: "Mint";
|
|
88
|
+
path: "dc_mint";
|
|
89
|
+
}];
|
|
90
|
+
programId: {
|
|
91
|
+
kind: "account";
|
|
92
|
+
type: "publicKey";
|
|
93
|
+
path: "data_credits_program";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
relations: ["dc_mint"];
|
|
97
|
+
}, {
|
|
98
|
+
name: "bubblegumProgram";
|
|
99
|
+
isMut: false;
|
|
100
|
+
isSigner: false;
|
|
101
|
+
}, {
|
|
102
|
+
name: "compressionProgram";
|
|
103
|
+
isMut: false;
|
|
104
|
+
isSigner: false;
|
|
105
|
+
}, {
|
|
106
|
+
name: "dataCreditsProgram";
|
|
107
|
+
isMut: false;
|
|
108
|
+
isSigner: false;
|
|
109
|
+
}, {
|
|
110
|
+
name: "tokenProgram";
|
|
111
|
+
isMut: false;
|
|
112
|
+
isSigner: false;
|
|
113
|
+
}, {
|
|
114
|
+
name: "associatedTokenProgram";
|
|
115
|
+
isMut: false;
|
|
116
|
+
isSigner: false;
|
|
117
|
+
}, {
|
|
118
|
+
name: "systemProgram";
|
|
119
|
+
isMut: false;
|
|
120
|
+
isSigner: false;
|
|
121
|
+
}];
|
|
122
|
+
args: [{
|
|
123
|
+
name: "args";
|
|
124
|
+
type: {
|
|
125
|
+
defined: "UpdateMobileInfoArgsV0";
|
|
126
|
+
};
|
|
127
|
+
}];
|
|
128
|
+
} & {
|
|
129
|
+
name: "updateMobileInfoV0";
|
|
130
|
+
}>>;
|
|
131
|
+
//# sourceMappingURL=updateMobileMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMobileMetadata.d.ts","sourceRoot":"","sources":["../../../../src/functions/updateMobileMetadata.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAqB,EACrB,eAA+B,GAChC,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,sBAAsB,EAAE,SAAS,CAAC;IAClC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0CA"}
|
package/lib/types/src/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ 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 {
|
|
7
|
+
export { updateIotMetadata } from "./functions/updateIotMetadata";
|
|
8
|
+
export { updateMobileMetadata } from "./functions/updateMobileMetadata";
|
|
9
|
+
export { onboardIotHotspot } from "./functions/onboardIotHotspot";
|
|
10
|
+
export { onboardMobileHotspot } from "./functions/onboardMobileHotspot";
|
|
8
11
|
export declare const init: (provider: AnchorProvider, programId?: PublicKey, idl?: Idl | null) => Promise<Program<HeliumEntityManager>>;
|
|
9
12
|
//# 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;AAC5B,OAAO,EAAE,
|
|
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,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const hotspotCollectionKey: (
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const iotInfoKey: (
|
|
2
|
+
export declare const rewardableEntityConfigKey: (subDao: PublicKey, symbol: string, programId?: PublicKey) => [PublicKey, number];
|
|
3
|
+
export declare const hotspotCollectionKey: (maker: PublicKey, programId?: PublicKey) => [PublicKey, number];
|
|
4
|
+
export declare const makerKey: (name: String, programId?: PublicKey) => [PublicKey, number];
|
|
5
|
+
export declare const iotInfoKey: (rewardableEntityConfig: PublicKey, hotspotKey: string, programId?: PublicKey) => [PublicKey, number];
|
|
6
|
+
export declare const mobileInfoKey: (rewardableEntityConfig: PublicKey, hotspotKey: string, programId?: PublicKey) => [PublicKey, number];
|
|
6
7
|
export declare const collectionMetadataKey: (collection: PublicKey, programId?: PublicKey) => [PublicKey, number];
|
|
7
8
|
//# 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;AAM5C,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/pdas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,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,SACb,MAAM,cACD,SAAS,wBAQnB,CAAC;AAEJ,eAAO,MAAM,UAAU,2BACG,SAAS,cACrB,MAAM,cACP,SAAS,wBASrB,CAAC;AAEF,eAAO,MAAM,aAAa,2BACA,SAAS,cACrB,MAAM,cACP,SAAS,wBAarB,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":"AAWA,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/resolvers.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,4BAA4B,4FA8DxC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Asset } from "@helium/spl-utils";
|
|
2
|
+
import { HeliumEntityManager } from "@helium/idls/lib/types/helium_entity_manager";
|
|
3
|
+
import { IdlTypes } from "@project-serum/anchor";
|
|
4
|
+
type MetadataArgs = IdlTypes<HeliumEntityManager>["MetadataArgs"];
|
|
5
|
+
export declare function assetToMetadataArgs(asset: Asset): MetadataArgs;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,KAAK,YAAY,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC,cAAc,CAAC,CAAC;AAElE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,YAAY,CAoB9D"}
|