@sudobility/contracts 1.17.32 โ 1.17.44
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/react-native/src/unified/types.d.ts +2 -1
- package/dist/react-native/src/unified/types.d.ts.map +1 -1
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts +3 -3
- package/dist/unified/src/unified/types.d.ts +2 -1
- package/dist/unified/src/unified/types.d.ts.map +1 -1
- package/package.json +17 -14
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChainType,
|
|
1
|
+
import { ChainType, Optional } from '@sudobility/types';
|
|
2
|
+
import { MessageSendResponse, DomainRegistrationResponse, MailboxDelegationResponse } from '@sudobility/mail_box_types';
|
|
2
3
|
import type { WalletClient, PublicClient } from 'viem';
|
|
3
4
|
import type { ChainInfo } from '@sudobility/configs';
|
|
4
5
|
interface SolanaWalletInterfaceLocal {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unified/types.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unified/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE;QAAE,QAAQ,IAAI,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1C,eAAe,CAAC,CAAC,SAAS;QAAE,SAAS,IAAI,MAAM,CAAA;KAAE,EAAE,WAAW,EAAE,CAAC,GAAG,O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AE,SAAS,EAAE,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvF,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAG5C,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC"}
|
|
@@ -41,13 +41,13 @@ export declare function useMessaging(client: OnchainMailerClient, connectedWalle
|
|
|
41
41
|
resolveSenderToName?: boolean;
|
|
42
42
|
}>;
|
|
43
43
|
}): {
|
|
44
|
-
sendMessage: UseMutationResult<import("@sudobility/
|
|
44
|
+
sendMessage: UseMutationResult<import("@sudobility/mail_box_types").MessageSendResponse, Error, {
|
|
45
45
|
subject: string;
|
|
46
46
|
body: string;
|
|
47
47
|
priority?: boolean;
|
|
48
48
|
resolveSenderToName?: boolean;
|
|
49
49
|
}, unknown>;
|
|
50
|
-
sendPrepared: UseMutationResult<import("@sudobility/
|
|
50
|
+
sendPrepared: UseMutationResult<import("@sudobility/mail_box_types").MessageSendResponse, Error, {
|
|
51
51
|
to: string;
|
|
52
52
|
mailId: string;
|
|
53
53
|
priority?: boolean;
|
|
@@ -117,7 +117,7 @@ export declare function useDelegation(client: OnchainMailerClient, connectedWall
|
|
|
117
117
|
delegatorAddress: string;
|
|
118
118
|
}>;
|
|
119
119
|
}): {
|
|
120
|
-
delegateTo: UseMutationResult<import("@sudobility/
|
|
120
|
+
delegateTo: UseMutationResult<import("@sudobility/mail_box_types").MailboxDelegationResponse, Error, {
|
|
121
121
|
delegate: string;
|
|
122
122
|
}, unknown>;
|
|
123
123
|
rejectDelegation: UseMutationResult<UnifiedTransaction, Error, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChainType,
|
|
1
|
+
import { ChainType, Optional } from '@sudobility/types';
|
|
2
|
+
import { MessageSendResponse, DomainRegistrationResponse, MailboxDelegationResponse } from '@sudobility/mail_box_types';
|
|
2
3
|
import type { WalletClient, PublicClient } from 'viem';
|
|
3
4
|
import type { ChainInfo } from '@sudobility/configs';
|
|
4
5
|
interface SolanaWalletInterfaceLocal {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unified/types.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unified/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE;QAAE,QAAQ,IAAI,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1C,eAAe,CAAC,CAAC,SAAS;QAAE,SAAS,IAAI,MAAM,CAAA;KAAE,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/E,mBAAmB,CAAC,CAAC,CAAC,SAAS;QAAE,SAAS,IAAI,MAAM,CAAA;KAAE,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,QAAQ,CAAC,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|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/unified/src/unified/index.js",
|
|
6
6
|
"types": "dist/unified/src/unified/index.d.ts",
|
|
@@ -53,12 +53,13 @@
|
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@solana/spl-token": ">=0.4.0",
|
|
55
55
|
"@solana/web3.js": ">=1.95.0",
|
|
56
|
+
"@sudobility/mail_box_types": "^1.0.2",
|
|
56
57
|
"@tanstack/react-query": ">=5.0.0",
|
|
58
|
+
"buffer": ">=6.0.0",
|
|
57
59
|
"react": "^18.0.0 || ^19.0.0",
|
|
58
60
|
"react-native": ">=0.70.0",
|
|
59
61
|
"react-native-get-random-values": ">=1.8.0",
|
|
60
62
|
"react-native-url-polyfill": ">=2.0.0",
|
|
61
|
-
"buffer": ">=6.0.0",
|
|
62
63
|
"text-encoding": ">=0.7.0",
|
|
63
64
|
"viem": ">=2.0.0"
|
|
64
65
|
},
|
|
@@ -95,30 +96,31 @@
|
|
|
95
96
|
}
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|
|
98
|
-
"build": "
|
|
99
|
-
"build:ci": "
|
|
99
|
+
"build": "bun run build:evm && bun run build:solana && bun run build:unified && bun run build:react-native",
|
|
100
|
+
"build:ci": "bun run build:unified && bun run build:react-native",
|
|
100
101
|
"build:evm": "npx hardhat compile && tsc --project tsconfig.evm.json",
|
|
101
102
|
"build:solana": "cargo build --manifest-path programs/mailer/Cargo.toml && tsc --project tsconfig.solana.json",
|
|
102
103
|
"build:unified": "tsc --project tsconfig.unified.json",
|
|
103
104
|
"build:react-native": "tsc --project tsconfig.react-native.json",
|
|
104
|
-
"
|
|
105
|
-
"test
|
|
105
|
+
"pretest": "npx hardhat compile",
|
|
106
|
+
"test": "bun run test:evm && bun run test:solana && bun run test:unified:direct",
|
|
107
|
+
"test:ci": "bun run build:unified && bun run test:unified:direct",
|
|
106
108
|
"test:evm": "npx hardhat test test/evm/Mailer.test.ts",
|
|
107
109
|
"test:solana": "cd programs/mailer && cargo test",
|
|
108
110
|
"test:unified": "mocha dist/test/unified/**/*.test.js",
|
|
109
111
|
"test:unified:direct": "node scripts/run-unified-tests.mjs",
|
|
110
|
-
"compile": "
|
|
112
|
+
"compile": "bun run compile:evm",
|
|
111
113
|
"compile:evm": "npx hardhat compile",
|
|
112
114
|
"compile:solana": "anchor build",
|
|
113
115
|
"clean": "npx hardhat clean",
|
|
114
|
-
"prepublishOnly": "
|
|
115
|
-
"prepack": "
|
|
116
|
+
"prepublishOnly": "bun run clean && bun run compile && bun run build",
|
|
117
|
+
"prepack": "bun run build",
|
|
116
118
|
"ai:workflow": "npx ts-node scripts/ai-helpers/dev-workflow.ts",
|
|
117
119
|
"ai:status": "echo '๐ค Multi-Chain Messaging Contracts AI Status' && echo '๐ฆ Package: @sudobility/contracts v'$(node -p \"require('./package.json').version\") && echo '๐ Architecture: Single Mailer contracts on EVM & Solana' && git status --porcelain",
|
|
118
|
-
"ai:build": "echo '๐จ AI-Optimized Build Process' &&
|
|
120
|
+
"ai:build": "echo '๐จ AI-Optimized Build Process' && bun run clean && bun run compile && bun run build && echo 'โ
Build Complete - Ready for Development'",
|
|
119
121
|
"ai:test": "echo '๐งช Comprehensive Test Suite' && npm test && echo '๐ Test Summary: EVM(75) + Unified(41) = 116 tests โ
'",
|
|
120
122
|
"ai:check": "echo '๐ Quick Validation Check' && npx tsc --noEmit && npx eslint src/ test/ --ext .ts,.js && echo 'โ
All validation checks passed'",
|
|
121
|
-
"ai:dev": "echo '๐ AI Development Helper Commands:' && echo 'โข
|
|
123
|
+
"ai:dev": "echo '๐ AI Development Helper Commands:' && echo 'โข bun run ai:status - Check project health' && echo 'โข bun run ai:build - Clean build everything' && echo 'โข bun run ai:test - Run all 116 tests' && echo 'โข bun run ai:check - TypeScript + ESLint validation' && echo 'โข bun run ai:examples - Test all examples compile' && echo 'โข bun run ai:docs - Show AI documentation files' && bun run ai:status",
|
|
122
124
|
"ai:examples": "echo '๐ Testing AI Examples Compilation...' && npx tsc --noEmit --skipLibCheck examples/solana-usage.ts && npx tsc --noEmit --skipLibCheck examples/unified-usage.ts && echo 'โ
Solana and Unified examples compile successfully (EVM example temporarily disabled due to viem v2.37.7 compatibility)'",
|
|
123
125
|
"ai:docs": "echo '๐ AI Documentation Files:' && echo 'โข README.md - Main project documentation' && echo 'โข CLAUDE.md - AI assistant development guide' && echo 'โข contracts/Mailer.sol - Single contract with all functionality' && echo 'โข programs/mailer/ - Single Solana program' && echo 'โข src/unified/ - Cross-chain client library' && echo 'โข test/ - 116 comprehensive tests'",
|
|
124
126
|
"lint": "eslint --ext .ts,.js . --ignore-pattern 'examples/**'",
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
"deploy:solana:local": "anchor deploy --provider.cluster localnet",
|
|
135
137
|
"deploy:solana:devnet": "anchor deploy --provider.cluster devnet",
|
|
136
138
|
"deploy:solana:mainnet": "anchor deploy --provider.cluster mainnet-beta",
|
|
137
|
-
"deploy:unified": "
|
|
139
|
+
"deploy:unified": "bun run deploy:evm:local && bun run deploy:solana:local",
|
|
138
140
|
"deploy:evm:localhost": "npx hardhat run scripts/evm/deploy.ts --network localhost",
|
|
139
141
|
"deploy:evm:mainnet": "npx hardhat run scripts/evm/deploy.ts --network mainnet",
|
|
140
142
|
"deploy:evm:sepolia": "npx hardhat run scripts/evm/deploy.ts --network sepolia",
|
|
@@ -264,6 +266,7 @@
|
|
|
264
266
|
"@solana/spl-token": "^0.4.14",
|
|
265
267
|
"@solana/wallet-adapter-base": "^0.9.27",
|
|
266
268
|
"@solana/web3.js": "^1.98.4",
|
|
269
|
+
"@sudobility/mail_box_types": "^1.0.2",
|
|
267
270
|
"@tanstack/react-query": "^5.90.1",
|
|
268
271
|
"@typechain/hardhat": "^9.1.0",
|
|
269
272
|
"@types/chai": "^4.3.20",
|
|
@@ -291,8 +294,8 @@
|
|
|
291
294
|
},
|
|
292
295
|
"dependencies": {
|
|
293
296
|
"@openzeppelin/contracts": "^5.4.0",
|
|
294
|
-
"@sudobility/configs": "^0.0.
|
|
295
|
-
"@sudobility/types": "^1.9.
|
|
297
|
+
"@sudobility/configs": "^0.0.50",
|
|
298
|
+
"@sudobility/types": "^1.9.41"
|
|
296
299
|
},
|
|
297
300
|
"overrides": {
|
|
298
301
|
"bigint-buffer": "^1.1.5",
|