File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 8282 "@endo/far" : " ^1.1.4" ,
8383 "@endo/init" : " ^1.1.3" ,
8484 "@endo/marshal" : " ^1.5.2" ,
85- "@endo/patterns" : " ^1.4.2"
85+ "@endo/patterns" : " ^1.4.2" ,
86+ "dapp-agoric-orca-proto" : " workspace:*"
8687 },
8788 "ava" : {
8889 "extensions" : {
Original file line number Diff line number Diff line change 1+ import { test } from './prepare-test-env-ava.js' ;
2+ import { MsgCreateThought } from '../../protos/dist/cyber/dmn/v1beta1/tx.js' ;
3+
4+ test ( 'custom proto' , t => {
5+ const msg = MsgCreateThought . toProtoMsg ( {
6+ name : 'test' ,
7+ particle : 'test' ,
8+ program : 'test' ,
9+ trigger : {
10+ block : 1n ,
11+ period : 1n ,
12+ } ,
13+ load : {
14+ gasPrice : {
15+ denom : 'ubld' ,
16+ amount : '1' ,
17+ } ,
18+ input : 'test' ,
19+ } ,
20+ } ) ;
21+
22+ t . like ( msg , {
23+ typeUrl : '/cyber.dmn.v1beta1.MsgCreateThought' ,
24+ } ) ;
25+ t . true ( msg . value instanceof Uint8Array ) ;
26+ } ) ;
Original file line number Diff line number Diff line change @@ -13242,6 +13242,7 @@ __metadata:
1324213242 "@typescript-eslint/parser": "npm:^7.15.0"
1324313243 agoric: "npm:^0.22.0-u17.1"
1324413244 ava: "npm:^5.3.1"
13245+ dapp-agoric-orca-proto: "workspace:*"
1324513246 eslint: "npm:^8.57.0"
1324613247 eslint-config-airbnb-base: "npm:^15.0.0"
1324713248 eslint-config-jessie: "npm:^0.0.6"
@@ -13265,7 +13266,7 @@ __metadata:
1326513266 languageName: unknown
1326613267 linkType: soft
1326713268
13268- "dapp-agoric-orca-proto@workspace:protos":
13269+ "dapp-agoric-orca-proto@workspace:*, dapp-agoric-orca-proto@workspace: protos":
1326913270 version: 0.0.0-use.local
1327013271 resolution: "dapp-agoric-orca-proto@workspace:protos"
1327113272 dependencies:
You can’t perform that action at this time.
0 commit comments