Socket
Socket
Sign inDemoInstall

@iai-skunks/ml-registry-solana

Package Overview
Dependencies
5
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

8

dist/bindings.d.ts

@@ -14,2 +14,6 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";

* @param feeAccountKey The account for to where fees should be deposited
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param intercept The intercept coeff for the GLM. If not specifed, default to 0

@@ -31,4 +35,8 @@ * @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption

* @param mlServiceFeePctg The percentage cut the service earns per prediction fee
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption
*/
export declare function predictWithModel(connection: Connection, programId: PublicKey, payerKey: PublicKey, modelName: string, scoreAccountName: string, indVars: number[][], space: number, mlServiceKey: PublicKey, mlServiceFeePctg: number, serviceFeeAmount: number, tokenProgram: PublicKey, sourceTokenAccount: PublicKey, mlServiceUtilityKey: PublicKey, lamports?: number): Promise<[TransactionInstruction, PublicKey]>;

@@ -33,2 +33,6 @@ "use strict";

* @param feeAccountKey The account for to where fees should be deposited
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param intercept The intercept coeff for the GLM. If not specifed, default to 0

@@ -68,2 +72,6 @@ * @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption

* @param mlServiceFeePctg The percentage cut the service earns per prediction fee
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption

@@ -70,0 +78,0 @@ */

2

package.json
{
"name": "@iai-skunks/ml-registry-solana",
"version": "0.6.0",
"version": "0.6.1",
"description": "SPL ML Model Registry/Inference JavaScript API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -0,8 +1,16 @@

## v0.6.0
- added a new function (Float32Array2D) to handle array type buffer
- modified independent variable input to handle batch prediction
## v0.5.0
- update bindings to allow for service charges paid with a token program
## v0.4.1
- fix improper import of ModelState in bindings.ts
## v0.4.0
- added fee payments per prediction

@@ -12,5 +20,7 @@ - added a service charge per fee when a model is used for prediction

## v0.3.0
- added counter field to model data state
## v0.2.0
- added finding for model parameters

@@ -20,8 +30,11 @@ - updated the type for coeffs, intercept to string type for storage

## v0.1.4
- actually build changes before publish
## v0.1.3
- change score state to store string version of prediction
## v0.1.2
- move functions only used in tests to test dir

@@ -31,7 +44,9 @@ - move dev depenencies out of package main exports

## v0.1.1
- remove ML_PROGRAM_ID as a constant and instead make as a parameter to be
passed in bindings
passed in bindings
## v0.1.0
- initial release of library
- basic bindings to create models and use them for prediction
- basic bindings to create models and use them for prediction

@@ -29,2 +29,6 @@ import {

* @param feeAccountKey The account for to where fees should be deposited
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param intercept The intercept coeff for the GLM. If not specifed, default to 0

@@ -111,2 +115,6 @@ * @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption

* @param mlServiceFeePctg The percentage cut the service earns per prediction fee
* @param serviceFeeAmount The set usage fee per prediction for service provider
* @param tokenProgram SPL-token program ID
* @param sourceTokenAccount The source of SKNK account
* @param mlServiceUtilityKey The ML service account for to where fees should be deposited
* @param lamports The budget to be set for the name account. If not specified, it'll be the minimum for rent exemption

@@ -113,0 +121,0 @@ */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc