@magicnewton/newton-protocol-sdk 0.2.11--canary.91.20260735644.0 → 0.2.11--canary.91.20271899388.0

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/dist/cjs/const.js CHANGED
@@ -1 +1 @@
1
- "use strict";const A="https://gateway-avs.sepolia.newt.foundation/",T="https://gateway-avs.newt.foundation/",E={createTask:"newt_createTask"},_="0xb9758d9d03e6dfb8001cadf63b87ba519a618e13",a="0xc8da20766a6baaa7daeea1be8006f10c0fa4b7a0",N="0x2010dbaa5438801bdc3f08174a799fe344f544ee",I="0x263c275c15867a4611a44c600e77144a23012a06";exports.GATEWAY_METHODS=E,exports.MAINNET_ATTESTATION_VALIDATOR=I,exports.MAINNET_GATEWAY_API=T,exports.MAINNET_NEWTON_PROVER_TASK_MANAGER=N,exports.SEPOLIA_ATTESTATION_VALIDATOR=a,exports.SEPOLIA_NEWTON_PROVER_TASK_MANAGER=_,exports.TESTNET_GATEWAY_API=A;
1
+ "use strict";const A="https://gateway-avs.sepolia.newt.foundation/rpc",T="https://gateway-avs.newt.foundation/rpc",E={createTask:"newt_createTask"},_="0xb9758d9d03e6dfb8001cadf63b87ba519a618e13",a="0xc8da20766a6baaa7daeea1be8006f10c0fa4b7a0",N="0x2010dbaa5438801bdc3f08174a799fe344f544ee",I="0x263c275c15867a4611a44c600e77144a23012a06";exports.GATEWAY_METHODS=E,exports.MAINNET_ATTESTATION_VALIDATOR=I,exports.MAINNET_GATEWAY_API=T,exports.MAINNET_NEWTON_PROVER_TASK_MANAGER=N,exports.SEPOLIA_ATTESTATION_VALIDATOR=a,exports.SEPOLIA_NEWTON_PROVER_TASK_MANAGER=_,exports.TESTNET_GATEWAY_API=A;
@@ -1 +1 @@
1
- "use strict";let n=0;function r(){return++n}function a(e,t){return{jsonrpc:"2.0",id:r(),method:e,params:t}}exports.createJsonRpcRequestPayload=a;
1
+ "use strict";var a=require("crypto");function t(e,r){return{jsonrpc:"2.0",id:a.randomUUID(),method:e,params:r}}exports.createJsonRpcRequestPayload=t;
package/dist/es/const.js CHANGED
@@ -1 +1 @@
1
- const a="https://gateway-avs.sepolia.newt.foundation/",A="https://gateway-avs.newt.foundation/",T={createTask:"newt_createTask"},e="0xb9758d9d03e6dfb8001cadf63b87ba519a618e13",E="0xc8da20766a6baaa7daeea1be8006f10c0fa4b7a0",_="0x2010dbaa5438801bdc3f08174a799fe344f544ee",t="0x263c275c15867a4611a44c600e77144a23012a06";export{T as GATEWAY_METHODS,t as MAINNET_ATTESTATION_VALIDATOR,A as MAINNET_GATEWAY_API,_ as MAINNET_NEWTON_PROVER_TASK_MANAGER,E as SEPOLIA_ATTESTATION_VALIDATOR,e as SEPOLIA_NEWTON_PROVER_TASK_MANAGER,a as TESTNET_GATEWAY_API};
1
+ const a="https://gateway-avs.sepolia.newt.foundation/rpc",A="https://gateway-avs.newt.foundation/rpc",T={createTask:"newt_createTask"},e="0xb9758d9d03e6dfb8001cadf63b87ba519a618e13",E="0xc8da20766a6baaa7daeea1be8006f10c0fa4b7a0",_="0x2010dbaa5438801bdc3f08174a799fe344f544ee",t="0x263c275c15867a4611a44c600e77144a23012a06";export{T as GATEWAY_METHODS,t as MAINNET_ATTESTATION_VALIDATOR,A as MAINNET_GATEWAY_API,_ as MAINNET_NEWTON_PROVER_TASK_MANAGER,E as SEPOLIA_ATTESTATION_VALIDATOR,e as SEPOLIA_NEWTON_PROVER_TASK_MANAGER,a as TESTNET_GATEWAY_API};
@@ -1 +1 @@
1
- let r=0;function t(){return++r}function o(e,n){return{jsonrpc:"2.0",id:t(),method:e,params:n}}export{o as createJsonRpcRequestPayload};
1
+ import{randomUUID as e}from"crypto";function t(o,r){return{jsonrpc:"2.0",id:e(),method:o,params:r}}export{t as createJsonRpcRequestPayload};
@@ -1,5 +1,5 @@
1
- export declare const TESTNET_GATEWAY_API = "https://gateway-avs.sepolia.newt.foundation/";
2
- export declare const MAINNET_GATEWAY_API = "https://gateway-avs.newt.foundation/";
1
+ export declare const TESTNET_GATEWAY_API = "https://gateway-avs.sepolia.newt.foundation/rpc";
2
+ export declare const MAINNET_GATEWAY_API = "https://gateway-avs.newt.foundation/rpc";
3
3
  export declare const GATEWAY_METHODS: {
4
4
  createTask: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  export declare function createJsonRpcRequestPayload(method: string, params: any): {
2
2
  jsonrpc: string;
3
- id: number;
3
+ id: string;
4
4
  method: string;
5
5
  params: any;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicnewton/newton-protocol-sdk",
3
- "version": "0.2.11--canary.91.20260735644.0",
3
+ "version": "0.2.11--canary.91.20271899388.0",
4
4
  "description": "Official SDK for the Newton Protocol.",
5
5
  "author": "Newton Foundation <https://x.com/newtfoundation> (https://newton.foundation)",
6
6
  "private": false,