New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aresrpg/aresrpg-sdk

Package Overview
Dependencies
Maintainers
3
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aresrpg/aresrpg-sdk - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

src/sui/read/get_policies_profit.js

10

package.json
{
"name": "@aresrpg/aresrpg-sdk",
"version": "2.4.0",
"version": "2.4.1",
"description": "General SDK to interract with AresRPG",

@@ -62,6 +62,6 @@ "type": "module",

"@mysten/sui.js": "^0.54.1",
"bignumber.js": "^9.1.2",
"iterator-helper": "^1.3.4",
"lru-cache": "^10.2.2",
"pino": "^9.1.0",
"bignumber.js": "^9.1.2",
"spiralloop": "^1.0.2"

@@ -71,4 +71,4 @@ },

"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"dotenv": "^16.4.5",

@@ -82,3 +82,3 @@ "eslint": "^8.57.0",

"husky": "^4.3.8",
"lint-staged": "15.2.2",
"lint-staged": "15.2.5",
"prettier": "3.2.5",

@@ -85,0 +85,0 @@ "typescript": "5.4.5"

@@ -39,6 +39,9 @@ import { KioskClient, Network } from '@mysten/kiosk'

import { delist_item } from './sui/write/delist_item.js'
import { admin_delete_admin_cap } from './sui/write/admin_delete_admin_cap.js'
import { admin_withdraw_profit } from './sui/write/admin_withdraw_profit.js'
import { get_policies_profit } from './sui/read/get_policies_profit.js'
const {
TESTNET_PUBLISH_DIGEST = 'EEztDkyUmhVGZpAkXWypSB2bbvJKWR3Yk7LdaMuraGMg',
TESTNET_POLICIES_DIGEST = '9fQ7Fme3c176gz4nTXWytBUzW7XzzUKHxJfV89PcKrUh',
TESTNET_PUBLISH_DIGEST = 'EzvVf9spp5TjWdtwMLt4hkiJMa6Qfura1Z47aDKpPSxa',
TESTNET_POLICIES_DIGEST = 'Eb3HXdwdS1scJhC1ynzsnEGEBnfDZiEv4geHuZrvTawT',
TESTNET_UPGRADE_DIGEST = '',

@@ -118,2 +121,3 @@ MAINNET_PUBLISH_DIGEST = '',

get_locked_characters_by_ids: get_locked_characters_by_ids(context),
get_policies_profit: get_policies_profit(context),

@@ -141,2 +145,4 @@ get_user_kiosks: get_user_kiosks(context),

admin_freeze_contract: admin_freeze_contract(context),
admin_delete_admin_cap: admin_delete_admin_cap(context),
admin_withdraw_profit: admin_withdraw_profit(context),

@@ -174,1 +180,8 @@ get_items: ids => get_items(context, ids, { allow_characters: true }),

}
const sdk = await SDK({
rpc_url: getFullnodeUrl('testnet'),
network: Network.TESTNET,
})
await sdk.get_policies_profit()

@@ -20,2 +20,7 @@ export function SDK({ rpc_url, wss_url, network, websocket_constructor, }: {

get_locked_characters_by_ids: (ids: string[]) => Promise<Map<string, import("../types.js").SuiCharacter>>;
get_policies_profit: (address: any) => Promise<{
is_owner: boolean;
character_profits: any;
item_profits: any;
}>;
get_user_kiosks: ({ tx, address }: {

@@ -143,2 +148,10 @@ tx?: import("@mysten/sui.js/transactions").TransactionBlock;

}) => import("@mysten/sui.js/transactions").TransactionBlock;
admin_delete_admin_cap: ({ tx, admin_cap }: {
tx?: import("@mysten/sui.js/transactions").TransactionBlock;
admin_cap: any;
}) => import("@mysten/sui.js/transactions").TransactionBlock;
admin_withdraw_profit: ({ tx, address }: {
tx?: import("@mysten/sui.js/transactions").TransactionBlock;
address: any;
}) => Promise<import("@mysten/sui.js/transactions").TransactionBlock>;
get_items: (ids: any) => Promise<Map<string, import("../types.js").SuiItem>>;

@@ -145,0 +158,0 @@ get_sui_balance(owner: any): Promise<bigint>;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc