@helium/distributor-oracle 0.9.23 → 0.9.24
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/server.js +128 -3
- package/lib/cjs/server.js.map +1 -1
- package/lib/esm/src/server.js +129 -4
- package/lib/esm/src/server.js.map +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/server.d.ts +4 -1
- package/lib/types/src/server.d.ts.map +1 -1
- package/package.json +11 -9
|
@@ -23,6 +23,7 @@ export declare class PgDatabase implements Database {
|
|
|
23
23
|
getCurrentRewardsByEntity(entityKeyStr: string): Promise<string>;
|
|
24
24
|
}
|
|
25
25
|
export declare class OracleServer {
|
|
26
|
+
tuktukProgram: any;
|
|
26
27
|
ldProgram: Program<LazyDistributor>;
|
|
27
28
|
roProgram: Program<RewardsOracle>;
|
|
28
29
|
hemProgram: Program<HeliumEntityManager>;
|
|
@@ -33,7 +34,7 @@ export declare class OracleServer {
|
|
|
33
34
|
app: FastifyInstance;
|
|
34
35
|
port: number;
|
|
35
36
|
server: string | undefined;
|
|
36
|
-
constructor(ldProgram: Program<LazyDistributor>, roProgram: Program<RewardsOracle>, hemProgram: Program<HeliumEntityManager>, oracle: Keypair, db: Database, lazyDistributor: PublicKey, dao?: PublicKey);
|
|
37
|
+
constructor(tuktukProgram: any, ldProgram: Program<LazyDistributor>, roProgram: Program<RewardsOracle>, hemProgram: Program<HeliumEntityManager>, oracle: Keypair, db: Database, lazyDistributor: PublicKey, dao?: PublicKey);
|
|
37
38
|
start(): Promise<void>;
|
|
38
39
|
close(): Promise<void>;
|
|
39
40
|
private addRoutes;
|
|
@@ -41,6 +42,8 @@ export declare class OracleServer {
|
|
|
41
42
|
private getCurrentRewardsHandler;
|
|
42
43
|
private getAllRewardsHandler;
|
|
43
44
|
private signTransaction;
|
|
45
|
+
private signHandler;
|
|
46
|
+
private tuktukHandler;
|
|
44
47
|
private signBulkTransactionsHandler;
|
|
45
48
|
private signTransactionHandler;
|
|
46
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAUA,OAAO,EAML,OAAO,EAER,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAY1E,OAAO,EACL,KAAK,EAKN,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,OAAO,EACP,SAAS,EAOV,MAAM,iBAAiB,CAAC;AAIzB,OAAgB,EACd,eAAe,EAGhB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAatE,MAAM,WAAW,QAAQ;IACvB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,yBAAyB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClE,iBAAiB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1E,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACrC;AAED,qBAAa,UAAW,YAAW,QAAQ;IAEvC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,mBAAmB,CAAC;IACtD,QAAQ,CAAC,UAAU,EAAE,CACnB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,KACb,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;gBAJtB,eAAe,EAAE,OAAO,CAAC,mBAAmB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ANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "0.9.
|
|
8
|
+
"version": "0.9.24",
|
|
9
9
|
"description": "Oracle server for the lazy distributor",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@coral-xyz/anchor": "^0.28.0",
|
|
38
38
|
"@fastify/cors": "^8.1.1",
|
|
39
|
-
"@helium/account-fetch-cache": "^0.9.
|
|
39
|
+
"@helium/account-fetch-cache": "^0.9.24",
|
|
40
40
|
"@helium/address": "^4.10.2",
|
|
41
|
-
"@helium/helium-entity-manager-sdk": "^0.9.
|
|
42
|
-
"@helium/helium-sub-daos-sdk": "^0.9.
|
|
43
|
-
"@helium/idls": "^0.9.
|
|
44
|
-
"@helium/lazy-distributor-sdk": "^0.9.
|
|
45
|
-
"@helium/rewards-oracle-sdk": "^0.9.
|
|
46
|
-
"@helium/spl-utils": "^0.9.
|
|
41
|
+
"@helium/helium-entity-manager-sdk": "^0.9.24",
|
|
42
|
+
"@helium/helium-sub-daos-sdk": "^0.9.24",
|
|
43
|
+
"@helium/idls": "^0.9.24",
|
|
44
|
+
"@helium/lazy-distributor-sdk": "^0.9.24",
|
|
45
|
+
"@helium/rewards-oracle-sdk": "^0.9.24",
|
|
46
|
+
"@helium/spl-utils": "^0.9.24",
|
|
47
|
+
"@helium/tuktuk-sdk": "^0.0.1",
|
|
47
48
|
"@metaplex-foundation/mpl-bubblegum": "^0.7.0",
|
|
48
49
|
"@solana/spl-token": "^0.3.8",
|
|
49
50
|
"@types/sequelize": "^4.28.14",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"pg": "^8.9.0",
|
|
59
60
|
"prom-client": "^15.0.0",
|
|
60
61
|
"sequelize": "^6.28.0",
|
|
62
|
+
"tweetnacl": "^1.0.3",
|
|
61
63
|
"typescript-collections": "^1.3.3"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
@@ -71,5 +73,5 @@
|
|
|
71
73
|
"ts-node": "^10.9.1",
|
|
72
74
|
"typescript": "^5.2.2"
|
|
73
75
|
},
|
|
74
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "b7f08b81123040f1b54c43ebd870af14d75458f0"
|
|
75
77
|
}
|